Zerodha Kite Connect MCP Server
@manucr619
This is a Cloudflare Worker that serves as an MCP (Model Context Protocol) server for interacting with the Zerodha Kite Connect API.
Overview
What is Zerodha Kite Connect MCP Server?
A Cloudflare Worker that serves as an MCP server for interacting with the Zerodha Kite Connect API. It provides a comprehensive interface for trading and portfolio management through Zerodha, designed for use with Claude Desktop and other MCP clients.
How to use Zerodha Kite Connect MCP Server?
Deploy the Worker using npx wrangler deploy with configured API credentials and a Cloudflare KV namespace. After deployment, add the worker URL as an MCP server in Claude Desktop under Settings > MCP Servers. Claude will automatically discover the available methods.
Key features of Zerodha Kite Connect MCP Server
- Zerodha authentication and session management
- Portfolio management (holdings, positions)
- GTT (Good Till Triggered) orders retrieval
- Historical data retrieval for instruments
- MCP-compatible responses for seamless integration
Use cases of Zerodha Kite Connect MCP Server
- Retrieve current equity holdings and positions via Claude Desktop
- Obtain historical candle data for analysis and charting
- Manage Good Till Triggered orders without a separate dashboard
- Automate trading workflows using an MCP-enabled AI assistant
FAQ from Zerodha Kite Connect MCP Server
What dependencies are required to run the server?
A Cloudflare account, Zerodha Kite Connect API credentials (API Key and Secret), and Node.js with npm are required for deployment.
How are access tokens and credentials stored?
API keys and secrets are stored in Cloudflare environment variables; access tokens are stored in a Cloudflare KV namespace. The wrangler.jsonc configuration file is gitignored.
What data does the server access?
It accesses Zerodha portfolio data (holdings, positions), GTT orders, and historical market data via the Kite Connect API. No data is stored outside of the KV namespace used for session tokens.
Can I add more Zerodha API endpoints?
Yes. Extend the ZerodhaWorker class in src/index.js, implement the desired API calls, format responses per the MCP specification, update docs.json, and redeploy.
What transport does the server use?
The server is a Cloudflare Worker, accessible over HTTPS. It uses standard HTTP request/response with MCP content array format. No additional transports are documented.