serverf21/zerodha-mcp-claude
3.1
If you are the rightful owner of zerodha-mcp-claude and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
A Model Context Protocol (MCP) server that integrates Claude AI with Zerodha for trading.
Zerodha-Claude AI Integration
A Model Context Protocol (MCP) server that enables Claude AI to interact with your Zerodha trading account. This integration allows Claude to execute trades and analyze your portfolio through natural language commands.
https://github.com/user-attachments/assets/88546ad9-3318-4973-bb73-8408046edec5
Features
- 🚀 Execute market orders (buy/sell stocks)
- 📊 View portfolio holdings and analysis
- 🔐 Secure API integration with Zerodha
- 🤖 Natural language trading commands through Claude AI
Prerequisites
- Bun runtime
- Zerodha Kite account with:
- API Key
- API Secret
- Access Token
Setup
- Install dependencies:
bun install
- Configure environment variables in Claude Desktop config:
{
"mcpServers": {
"trade": {
"command": "/path/to/bun",
"args": ["index.ts"],
"env": {
"ZERODHA_API_KEY": "your_api_key",
"ZERODHA_API_SECRET": "your_api_secret",
"ZERODHA_ACCESS_TOKEN": "your_access_token"
}
}
}
}
- Run the server:
bun run index.ts
Available Commands in Claude
Buy stocks
: Execute buy ordersBuy 10 shares of RELIANCE
Sell stocks
: Execute sell ordersSell 5 shares of TCS
View portfolio
: Check your holdingsShow my portfolio
Security Note
- Keep your API credentials secure
- Never share your access tokens
- Monitor your trades regularly
Tech Stack
- TypeScript
- Bun Runtime
- Model Context Protocol (MCP)
- Zerodha Kite API
- Claude AI Integration