JUHE API Marketplace
AmritanshuPrashar avatar
MCP Server

Zerodha Trading Bot MCP

An automated trading bot that interfaces with Zerodha to execute stock trades, manage positions, and access market information through natural language commands.

1
GitHub Stars
11/21/2025
Last Updated
No Configuration
Please check the documentation below.
  1. Home
  2. MCP Servers
  3. zerodha-mcp

README Documentation

Trading Bot with MCP

A trading bot built using the Model Context Protocol (MCP) that provides a set of tools for automated trading operations. This bot offers various functionalities for trading stocks, managing positions, and accessing market information.

Features

  • Stock Trading

    • Buy stocks with specified quantity
    • Sell stocks with specified quantity
    • Cancel existing orders
  • Market Information

    • Get real-time quotes for stocks
    • Check market status
    • View order history
  • Account Management

    • View current positions
    • Check account balance
    • Monitor order status

Prerequisites

  • Node.js (Latest LTS version recommended)
  • npm or yarn package manager
  • Trading account credentials (configured in mcp-conf.json)

Installation

  1. Clone the repository:
git clone https://github.com/AmritanshuPrashar/zerodha-mcp.git
cd mcp-zerodha
  1. Install dependencies:
npm install
  1. Configure your trading credentials:
    • Create a mcp-conf.json file in the root directory
    • Add your trading platform credentials and configuration

Configuration

The mcp-conf.json file should contain the following structure:

{
  "buyStock": {
    "prompt": "Your buy stock prompt"
  },
  "sellStock": {
    "prompt": "Your sell stock prompt"
  },
  "getPosition": {
    "prompt": "Your get position prompt"
  },
  "getMarketStatus": {
    "prompt": "Your market status prompt"
  },
  "getQuote": {
    "prompt": "Your quote prompt"
  },
  "getOrderHistory": {
    "prompt": "Your order history prompt"
  },
  "cancelOrder": {
    "prompt": "Your cancel order prompt"
  },
  "getAccountBalance": {
    "prompt": "Your account balance prompt"
  }
}

Usage

The bot provides several tools that can be used through the MCP interface:

  • buy-stock: Place buy orders for stocks
  • sell-stock: Place sell orders for stocks
  • get-positions: View current positions
  • get-market-status: Check market status
  • get-quote: Get real-time quotes
  • get-order-history: View order history
  • cancel-order: Cancel existing orders
  • get-account-balance: Check account balance

Development

The project is built using:

  • TypeScript
  • Model Context Protocol (MCP) SDK
  • Zod for schema validation

License

[Add your chosen license here]

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

Disclaimer

This trading bot is for educational purposes only. Use at your own risk. Always test thoroughly before using with real money.

Quick Actions

View on GitHubView All Servers

Key Features

Model Context Protocol
Secure Communication
Real-time Updates
Open Source

Boost your projects with Wisdom Gate LLM API

Supporting GPT-5, Claude-4, DeepSeek v3, Gemini and more.

Enjoy a free trial and save 20%+ compared to official pricing.

Learn More
JUHE API Marketplace

Accelerate development, innovate faster, and transform your business with our comprehensive API ecosystem.

JUHE API VS

  • vs. RapidAPI
  • vs. API Layer
  • API Platforms 2025
  • API Marketplaces 2025
  • Best Alternatives to RapidAPI

For Developers

  • Console
  • Collections
  • Documentation
  • MCP Servers
  • Free APIs
  • Temp Mail Demo

Product

  • Browse APIs
  • Suggest an API
  • Wisdom Gate LLM
  • Global SMS Messaging
  • Temp Mail API

Company

  • What's New
  • Welcome
  • About Us
  • Contact Support
  • Terms of Service
  • Privacy Policy
Featured on Startup FameFeatured on Twelve ToolsFazier badgeJuheAPI Marketplace - Connect smarter, beyond APIs | Product Huntai tools code.marketDang.ai
Copyright © 2025 - All rights reserved