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.
Screen.Recording.2025-06-06.at.10.00.46.AM.1.mp4
- 🚀 Execute market orders (buy/sell stocks)
- 📊 View portfolio holdings and analysis
- 🔐 Secure API integration with Zerodha
- 🤖 Natural language trading commands through Claude AI
- Bun runtime
- Zerodha Kite account with:
- API Key
- API Secret
- Access Token
- 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.tsBuy stocks: Execute buy ordersBuy 10 shares of RELIANCESell stocks: Execute sell ordersSell 5 shares of TCSView portfolio: Check your holdingsShow my portfolio
- Keep your API credentials secure
- Never share your access tokens
- Monitor your trades regularly
- TypeScript
- Bun Runtime
- Model Context Protocol (MCP)
- Zerodha Kite API
- Claude AI Integration