Zerodha MCP Integration
Mcp server to connect with zerodha's kite trade apis
Overview
Zerodha MCP Integration is a project that connects Zerodha's trading platform with Claude AI using the Multi-Cloud Plugin (MCP) framework, enabling users to interact with their Zerodha trading accounts directly through Claude.
To use this integration, you need to set up a Zerodha developer account, create a new app, obtain API credentials, configure environment variables, install dependencies, and register the MCP config on your Claude desktop app.
- Direct interaction with Zerodha trading account via Claude AI - Authentication and session management - Access to stock trading functionalities and mutual fund management - Historical data retrieval and order placement capabilities
- Checking account margins and portfolio holdings.
- Placing buy/sell orders for stocks and mutual funds.
- Managing mutual fund investments and SIPs.
- Retrieving historical price data for analysis.
Add to your AI client
Use these steps to connect Zerodha MCP Integration in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.
Cursor
Add this to your .cursor/mcp.json file in your project root, then restart Cursor.
.cursor/mcp.json
{
"mcpServers": {
"zerodha-mcp-aptro": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-zerodha-mcp-aptro"
]
}
}
}Claude Desktop
Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.
~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
{
"mcpServers": {
"zerodha-mcp-aptro": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-zerodha-mcp-aptro"
]
}
}
}Claude Code
Add this to your project's .mcp.json file. Claude Code will detect it automatically.
.mcp.json (project root)
{
"mcpServers": {
"zerodha-mcp-aptro": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-zerodha-mcp-aptro"
]
}
}
}VS Code (Copilot)
Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.
.vscode/mcp.json
{
"servers": {
"zerodha-mcp-aptro": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-zerodha-mcp-aptro"
]
}
}
}Windsurf
Add this to your Windsurf MCP config file, then restart Windsurf.
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"zerodha-mcp-aptro": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-zerodha-mcp-aptro"
]
}
}
}Cline
Open Cline settings, navigate to MCP Servers, and add this server configuration.
Cline MCP Settings (via UI)
{
"mcpServers": {
"zerodha-mcp-aptro": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-zerodha-mcp-aptro"
]
}
}
}FAQ
Can I use this integration for all Zerodha functionalities?
Yes! This integration allows access to a wide range of trading functionalities available on Zerodha.
Is there any cost associated with using Zerodha MCP Integration?
The integration itself is free, but standard Zerodha trading fees apply.
How secure is my data with Zerodha MCP Integration?
Your API credentials are stored locally and not transmitted to any third parties, ensuring your data remains secure.7:["$","div",null,{"className":"container mx-auto flex flex-col gap-4","children":["$L26","$L27",["$","$L28",null,{"currentProject":{"id":2788,"uuid":"8c5245d1-837e-445e-a903-07dfcd8bda2a","name":"zerodha-mcp","title":"Zerodha MCP Integration","description":"Mcp server to connect with zerodha's kite trade apis","avatar_url":"https://avatars.githubusercontent.com/u/10391409?v=4","created_at":"$D2025-03-14T01:54:44.968Z","updated_at":"$D2025-03-14T02:13:52.478Z","status":"created","author_name":"aptro","author_avatar_url":"https://avatars.githubusercontent.com/u/10391409?v=4","tags":"[]","category":"finance","is_featured":false,"sort":1,"url":"https://github.com/aptro/zerodha-mcp","target":"_self","content":"$29","summary":"$2a","img_url":"https://camo.githubusercontent.com/5425271d52d69615c9b34d36e491499c87cddd014189b60e0c350321b4c69380/68747470733a2f2f736d6974686572792e61692f62616467652f40617074726f2f7a65726f6468612d6d6370","type":null,"metadata":"{\"star\":\"6\",\"license\":\"MIT license\",\"language\":\"Python\",\"is_official\":false,\"latest_commit_time\":\"2025-04-08 23:37:05\"}","user_uuid":null,"tools":null,"sse_url":null,"sse_provider":null,"sse_params":null,"is_official":false,"server_command":null,"server_params":null,"server_config":null,"allow_call":false,"is_innovation":false,"is_dxt":false,"dxt_manifest":null,"dxt_file_url":null,"is_audit":false},"randomProjects":[],"currentServerKey":"$undefined"}]]}]