Zerodha Trading MCP Server
Enables programmatic trading on the Zerodha platform using the KiteConnect API, allowing users to execute buy and sell stock commands.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Zerodha Trading MCP Server
This project implements a Model Context Protocol (MCP) server for trading on the Zerodha platform using the KiteConnect API. The server allows users to execute buy and sell stock commands programmatically.
Prerequisites Before setting up the MCP server, ensure you have the following:
Node.js: Install from nodejs.org.
Install the Clause Desktop Application
Zerodha Developer App: Create an app on Zerodha's Developer Portal to obtain your API key and secret.
Access Token: Generate an access token for your Zerodha account. Refer to this YouTube tutorial for step-by-step instructions.
Have the developer mode switched on in clause desktop version
Installation
Clone this repository:
git clone https://github.com/kingnavneeth094/Zerodha-MCP.git
cd Zerodha-MCPInstall dependencies:
npm install
Configure the MCP server:Create or update the MCP configuration file with the following structure:
{
"mcpServers": {
"trader": {
"command": "<path-to-node-executable>",
"args": ["<path-to-index.js>"]
}
}
}Replace with the path to your Node.js executable (e.g., C:\Program Files\nodejs\node.exe). Replace <path-to-index.js> with the path to the index.js file in your project folder (e.g., C:\Projects\mcp-servers\zero\index.js).
Usage
Ensure your Zerodha access token is available and configured in your application.
Open claude and check the tools menu to see if the server tools are available.
If yes, Send commands to the server to buy or sell stocks as per your implementation.
References This project is built using the following SDKs and libraries:
KiteConnectJS: Official JavaScript SDK for Zerodha's KiteConnect API. MCP TypeScript SDK: SDK for implementing MCP servers in TypeScript.
Related MCP Connectors
Open-source MCP server for Zerodha Kite Connect. Portfolio, market data, backtesting, alerts.
Trading MCP server for AI agents, with live market data, account reads and controlled execution.
MCP server exposing the Backtest360 engine API as tools for AI agents.
Hosted MCP server for MT4 and MT5: read accounts, prices and candles, and place or close orders.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceA 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
- AlicenseNot gradedqualityDmaintenanceAn MCP server for integrating with Zerodha Kite API that provides Claude with tools to interact with your Kite trading account, enabling portfolio management, market data access, and order execution.40 npm5MIT
- FlicenseNot gradedqualityDmaintenanceA command-based MCP server that enables programmatic stock trading on Zerodha through natural language interfaces like Claude, allowing users to buy and sell stocks via API calls.-
- AlicenseNot gradedqualityDmaintenanceA Model Context Protocol server that integrates with Zerodha APIs for automated trading, providing tools for authentication, market data retrieval, order placement, and portfolio management.MIT