Zerodha Trading Bot
Serves as the runtime environment for the trading bot, handling API requests and responses to the Zerodha platform.
Integrates with the Zerodha trading platform to enable automated stock trading operations, including session management, portfolio tracking, and executing buy/sell orders for stocks.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Zerodha Trading Botbuy 10 shares of RELIANCE"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Zerodha Trading Bot
A Node.js-based trading bot that integrates with the Zerodha trading platform using the Model Context Protocol (MCP) for automated trading operations.
Features
Automated stock trading through Zerodha platform
Session management and token handling
Portfolio management
Buy and Sell operations
Real-time portfolio tracking
Related MCP server: Zerodha Trading Bot MCP
Prerequisites
Node.js (v14 or higher)
Zerodha Trading Account
API Key and Secret from Zerodha
Installation
Clone the repository:
git clone <repository-url>
cd trading-journalInstall dependencies:
npm installConfigure your Zerodha credentials:
Open
backend/index.jsReplace
apiKeyandapiSecretwith your Zerodha credentials
Project Structure
├── backend/
│ ├── index.js # Main server file with MCP tools
│ ├── trading.js # Zerodha trading implementation
│ └── tokenManager.js # Token management systemAvailable Tools
The bot provides the following MCP tools:
Generate-Session
Generates a new session token using request token
Required parameter:
requestToken
Buy-Stock
Places a buy order for specified stock
Parameters:
stock: Stock symbolqty: Quantity to buy
Sell-Stock
Places a sell order for specified stock
Parameters:
stock: Stock symbolqty: Quantity to sell
Show-Portfolio
Displays current portfolio holdings
No parameters required
Usage
Start the server:
node backend/index.jsThe server will start and listen for MCP commands through stdio transport.
Security Notes
Never commit your API credentials to version control
Keep your
apiSecretsecure and privateUse environment variables for sensitive data in production
Error Handling
The bot includes comprehensive error handling for:
Authentication failures
Trading operation errors
Network issues
Invalid parameters
Contributing
Fork the repository
Create your feature branch
Commit your changes
Push to the branch
Create a new Pull Request
License
This project is licensed under the MIT License - see the LICENSE file for details.
Disclaimer
This trading bot is for educational purposes only. Use at your own risk. Always test thoroughly before using with real money.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityDmaintenanceA Model Context Protocol server that enables AI models to interact with the Zerodha trading platform, allowing users to execute trades, view portfolio holdings, and manage positions through a standardized interface.3MIT
- Flicense-qualityDmaintenanceAn automated trading bot that interfaces with Zerodha to execute stock trades, manage positions, and access market information through natural language commands.1
- Flicense-qualityDmaintenanceA Model Context Protocol server that integrates with Zerodha APIs for automated trading, providing tools for authentication, market data retrieval, order placement, and portfolio management.
- Alicense-qualityDmaintenanceAn MCP server that integrates with the Zerodha KiteConnect API to facilitate programmatic stock trading operations. It enables users to execute buy and sell commands directly through an MCP-compatible interface.229Apache 2.0
Related MCP Connectors
Open-source MCP server for Zerodha Kite Connect. Portfolio, market data, backtesting, alerts.
TradeOS MCP: ticker search, My Agent, chart TA, macro news. npm stdio or HTTP.
MCP server for Gainium — manage trading bots, deals, and balances via AI assistants
Appeared in Searches
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/yogendhra9/ZerodhaMCP'
If you have feedback or need assistance with the MCP directory API, please join our Discord server