Zerodha Kite Connect — Claude Code MCP server: what it does and setup
Bridges Zerodha Kite Connect trading accounts with AI assistants via MCP. It checks portfolio balances, streams Indian market data, and executes stock orders.
no license updated 2026-10-29
Open on GitHubWhat Zerodha Kite Connect does
This server exposes Kite Connect API endpoints directly to AI coding agents. The assistant gains tools to monitor portfolio holdings, verify available margin, and fetch historical OHLC bars for NSE and BSE equities. It also handles order actions, supporting MARKET, LIMIT, SL, and SL-M types alongside standard product codes like CNC or MIS.
Authentication relies on standard OAuth 2.0. You need a registered Kite Connect developer application providing KITE_API_KEY and KITE_API_SECRET, plus active TOTP two-factor security on Zerodha. Without valid developer credentials, API calls fail immediately. Indian trading sessions run on weekdays between 9:15 AM and 3:30 PM IST, which makes the built-in get_market_status tool useful before attempting live trades.
What it helps with
- fetch real-time quotes and historical OHLC bars from NSE and BSE
- inspect demat holdings and margin limits inside the chat
- submit, adjust, and revoke equity orders through AI tools
- verify market session hours before running trading actions
Example prompts for the agent
- Check if Indian markets are currently open and fetch live quotes for INFY.
- Inspect my demat holdings and report the remaining cash margin in Zerodha.
- Place a CNC market buy order for 10 shares of RELIANCE on the NSE.
How to install Zerodha Kite Connect
Install
The MCP registry has no launch command for it: see the repository README
Step by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more
Questions about Zerodha Kite Connect
How do I install the Zerodha Kite Connect MCP server?
Pull the prebuilt image with docker pull mcp/zerodha-kite:latest. Alternatively, clone the repository with git clone https://github.com/anshuljain90/zerodha-kite-mcp.git, enter the folder via cd zerodha-kite-mcp, and run npm install followed by npm run build.
What does the Zerodha Kite Connect MCP server do?
It connects AI assistants to Zerodha brokerage accounts using the Model Context Protocol. The assistant can track positions, inspect quotes, and place stock orders directly.
What credentials are required to run this server?
You need a Zerodha account with TOTP enabled and an active Kite Connect developer registration providing an API key and secret for the OAuth flow.