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
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@KiteMCPbuy 5 shares of TCS at current market price"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
📈 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: Zerodha Trading MCP
🔧 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
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- FlicenseBqualityFmaintenanceAn MCP server that enables AI models like Claude to interact with the Trading Simulator API for checking balances, viewing prices, and executing trades with automatic chain detection.Last updated15
- Alicense-qualityDmaintenanceA 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.Last updated3MIT
- Alicense-qualityCmaintenanceAn 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.Last updated345MIT
- Alicense-qualityDmaintenanceAn 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.Last updated373Apache 2.0
Related MCP Connectors
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 connecting claude.ai, ChatGPT and other AI apps to your own computer
Appeared in Searches
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/utkarshagar2121/KiteMCP'
If you have feedback or need assistance with the MCP directory API, please join our Discord server