KiteMCP
Planned future enhancement for sending order confirmations and alerts related to Zerodha trading activities
Enables programmatic stock trading on Zerodha using the KiteConnect API, allowing buy/sell operations with specified symbols, exchanges, quantities, and prices
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
π KiteMCP β Zerodha Trading via MCP
KiteMCP is a command-based Zerodha trading system built using the KiteConnect API, Bun, and the Model Context Protocol (MCP). It allows real-time stock buy/sell operations through MCP command calls from a local server, currently integrated with Claude or any compatible tool interface.
π Features
π Buy and sell stocks programmatically via commands
π Modular MCP tool structure (
buy-stock,sell-stock)π Secure API key handling via
.envβ Schema validation using Zod
βοΈ Fast runtime with Bun and TypeScript
π§ͺ Local test environment with log outputs
Related MCP server: Kite MCP Server
π§ Setup Instructions
1. Clone the Repository
git clone https://github.com/your-username/zerodha-trade
cd zerodha-trade2. Install Dependencies (using Bun)
bun install3. Configure Environment Variables
Create a .env file in the root:
KITE_API_KEY=your_api_key
KITE_API_SECRET=your_api_secret
ACCESS_TOKEN=your_access_token4. Start the MCP Server
bun index.tsπΈ Screenshots
Claude AI making transaction
Zerodha server
π₯ Example Command Usage
Send the following JSON to the server via terminal or Claude:
{
"id": "1",
"action": "call_tool",
"tool": "buy-stock",
"arguments": {
"symbol": "RELIANCE",
"exchange": "NSE",
"quantity": 10,
"price": 2800
}
}β Input Validation
All tool inputs are validated using Zod for:
Required fields:
symbol,exchange,quantityType and range checks
Custom error messages on invalid input
π§ͺ Example Output
{
"status": "success",
"message": "Buy order placed for RELIANCE at βΉ2800"
}π‘οΈ Security Notes
Do not expose your
.envfile in productionAdd rate limiting and request authentication if going public
Store order logs securely
π Future Enhancements
π Deploy on cloud with webhook interface
π Add portfolio view and PnL tracking
π Telegram/email alerts for order confirmations
π§ Auto-trading with strategy modules
π¨βπ» Author
Utkarsh Agarwal
GitHub β’ LinkedIn
π License
MIT License Β© 2025 Utkarsh Agarwal
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogβ¦
This server cannot be deployed
Maintenance
Related MCP Connectors
Trading MCP server for AI agents, with live market data, account reads and controlled execution.
Open-source MCP server for Zerodha Kite Connect. Portfolio, market data, backtesting, alerts.
MCP server for Gainium β manage trading bots, deals, and balances via AI assistants
Hosted MCP server for Indian market quotes, option-chain Greeks and multi-broker telemetry.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceA Model Context Protocol server that enables AI models to interact with the Zerodha trading platform, allowing users to execute trades, view portfolio holdings, and manage positions through a standardized interface.3MIT
- AlicenseNot gradedqualityDmaintenanceAn MCP server for integrating with Zerodha Kite API that provides Claude with tools to interact with your Kite trading account, enabling portfolio management, market data access, and order execution.5MIT
- AlicenseNot gradedqualityDmaintenanceAn MCP server that integrates with the Zerodha KiteConnect API to facilitate programmatic stock trading operations. It enables users to execute buy and sell commands directly through an MCP-compatible interface.ISC
- FlicenseNot gradedqualityDmaintenanceAn MCP server for Zerodha Kite Connect that enables AI agents to execute trades, manage portfolios, fetch market data, and perform technical and fundamental analysis.-