Kite
🐍 🏠 - Trade Indian stocks on Zerodha Kite via natural conversation. 14 tools for holdings, orders, quotes,
What is Kite?
Kite is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to 🐍 🏠 - trade indian stocks on zerodha kite via natural conversation. 14 tools for holdings, orders, quotes,
🐍 🏠 - Trade Indian stocks on Zerodha Kite via natural conversation. 14 tools for holdings, orders, quotes,
This server falls under the Finance & Fintech category on MCPgee, the world's largest MCP server directory with 33,000+ servers.
Features
- MCP protocol support
Use Cases
Maintainer
Works with
Installation
Manual Installation
npx kiteConfiguration
Configuration Details
claude_desktop_config.json
Performance
Response Metrics
Resource Usage
How to Set Up and Use Kite
The Kite MCP Server gives AI assistants direct, conversational access to a Zerodha Kite trading account, exposing 110+ tools covering portfolio analysis, live market data, options Greeks, backtesting, Telegram alerts, and order placement (on self-hosted deployments). It connects through Zerodha's Kite Connect API via OAuth 2.1 + PKCE, includes an 11-check RiskGuard layer before every order reaches the exchange, and works with any MCP-compliant client including Claude Desktop, Claude Code, ChatGPT, and Cursor. A hosted read-only demo is available instantly; full trading requires a self-hosted local instance with your own Kite developer app.
Prerequisites
- A Zerodha trading account and a Kite Connect developer app (API key and secret from kite.trade/developers)
- Docker (for the easiest self-hosted setup) or Go 1.25+ for building from source
- An MCP-compatible client: Claude Desktop, Claude Code, ChatGPT Desktop, Cursor, VS Code Copilot, or Windsurf
- OAUTH_JWT_SECRET environment variable set (required for multi-user HTTP deployments)
- Optional: Telegram bot token for price alerts and daily P&L briefings
Connect to the hosted read-only demo (quickest start)
For portfolio viewing, market data, and backtesting without any setup, point your MCP client at the hosted demo endpoint. Order placement is gated off on the hosted instance.
claude mcp add --transport http kite https://kite-mcp-server.fly.dev/mcpClone the repository and configure environment for self-hosting
For full trading functionality, clone the repo and create a `.env` file from the provided example. At minimum set OAUTH_JWT_SECRET; optionally set KITE_API_KEY and KITE_API_SECRET for a shared app.
git clone https://github.com/Sundeepg98/kite-mcp-server && cd kite-mcp-server
cp .env.example .env
# Edit .env: set OAUTH_JWT_SECRET=<random-secret> and ENABLE_TRADING=trueStart the server with Docker Compose
Launch the server locally using Docker Compose. It builds the Dockerfile and starts the MCP server on port 8080.
docker compose up -d
curl http://localhost:8080/healthz # should return 'ok'Configure your MCP client to connect
Add the server to your client config using mcp-remote as a bridge, pointing at your local instance. For Claude Desktop, edit claude_desktop_config.json.
Log in via OAuth and start trading
Ask your AI assistant to log you in. This opens a browser OAuth flow through your Kite developer app. After login, your session is stored (AES-256-GCM encrypted) and you can start placing orders.
Enable paper trading for safe experimentation
Before placing real orders, enable paper trading mode for a virtual Rs 1 crore portfolio with simulated order fills and no real money at risk.
Kite Examples
Client configuration
Connect to the self-hosted local instance via mcp-remote in claude_desktop_config.json. Replace localhost:8080 with your server URL if deployed remotely.
{
"mcpServers": {
"kite": {
"command": "npx",
"args": ["mcp-remote", "http://localhost:8080/mcp", "--allow-http"]
}
}
}Prompts to try
Use these prompts after logging in to interact with your Kite account through natural language.
- "Log me in to Kite"
- "Show my portfolio with current P&L and sector exposure"
- "Enable paper trading mode"
- "Backtest SMA crossover strategy on INFY for the last 6 months"
- "Set an alert for RELIANCE to notify me if it drops 2%"
- "Show the options chain for NIFTY with Greeks"Troubleshooting Kite
OAuth login fails or browser does not open during the login flow
Ensure EXTERNAL_URL in your .env matches the publicly accessible URL of your server (e.g., http://localhost:8080 for local). On Windows with Claude Code, pass OAuth client info via a file using `--static-oauth-client-info @path/to/client-info.json` instead of inline JSON args to avoid shell escaping issues.
Order placement tools are missing or return 'trading not enabled'
Set ENABLE_TRADING=true in your .env file. Order placement tools are disabled by default and are gated off entirely on the hosted demo at kite-mcp-server.fly.dev. You must run the server locally against your own Kite developer app to access order tools.
RiskGuard blocks orders unexpectedly
RiskGuard enforces defaults of Rs 50,000 per order, 20 orders/day, and Rs 2,00,000 daily notional cap. If your orders are being blocked, check the 11 pre-trade check conditions in guard.go or adjust the limits by configuring the RiskGuard parameters in your environment.
Frequently Asked Questions about Kite
What is Kite?
Kite is a Model Context Protocol (MCP) server that 🐍 🏠 - trade indian stocks on zerodha kite via natural conversation. 14 tools for holdings, orders, quotes, It connects AI assistants to external tools and data sources through a standardized interface.
How do I install Kite?
Follow the installation instructions on the Kite GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.
Which AI clients work with Kite?
Kite works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.
Is Kite free to use?
Yes, Kite is open source and available under the MIT license. You can use it freely in both personal and commercial projects.
Kite Alternatives — Similar Finance & Fintech Servers
Looking for alternatives to Kite? Here are other popular finance & fintech servers you can use with Claude, Cursor, and VS Code.
ValueCell
★ 10.7kValueCell is a community-driven, multi-agent platform for financial applications.
Vibe Trading
★ 8.1k'Vibe-Trading: Your Personal Trading Agent'
Quantdinger
★ 6.2kAI quantitative trading platform for crypto, stocks, and forex with backtesting, live trading, market data, and multi-agent research.vibe-trading ,trading-agents,ai-trader,ai-trading
TradingView
★ 2.8kReal-time crypto & stock screening, advanced technical indicators, Bollinger Bands intelligence, candlestick patterns + native Claude Desktop integration. Multi-exchange (Binance, KuCoin, Bybit+). Open-source AI trading infrastructure.
Financial Datasets
★ 2.1kProvides access to comprehensive financial data including income statements, balance sheets, cash flow statements, stock prices, company news, SEC filings, and cryptocurrency information with built-in financial ratio analysis.
Stripe
★ 1.6kThe Stripe Model Context Protocol server allows you to integrate with Stripe APIs through function calling. This protocol supports various tools to interact with different Stripe services.
Browse More Finance & Fintech MCP Servers
Explore all finance & fintech servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.
Set Up Kite in Your Editor
Choose your AI client for step-by-step setup instructions.
Quick Config Preview
Add this to your claude_desktop_config.json or .cursor/mcp.json
Ready to use Kite?
Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.