Kite MCP Server
@codeglyph
About Kite MCP Server
A Model Context Protocol (MCP) server for integrating with Zerodha Kite API. This server provides Claude with tools to interact with your Kite trading account. This is an unofficial integration with Zerodha Kite API. Use at your own risk. Always verify trades and orders before ex
Config
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"kite-mcp": {
"command": "bun",
"args": [
"run",
"auth"
]
}
}
}Tools
No tools detected
We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.
Overview
What is Kite MCP Server?
A Model Context Protocol (MCP) server that integrates with the Zerodha Kite API, giving Claude tools to interact with your Kite trading account. It handles portfolio management, market data, order management, and account information via a secure OAuth 2.0 flow.
How to use Kite MCP Server?
Install dependencies with bun install, set your API Key and Secret in a .env file, then run bun run auth to log in via OAuth and save an access token. Start the server with bun start. Finally, add the server to your Claude Desktop configuration using the bun command and the path to src/index.ts.
Key features of Kite MCP Server
- Portfolio management: positions, holdings, orders
- Real-time market data: quotes, LTP, instrument list
- Order management: place, modify, cancel orders
- Account info: profile, margins, authentication status
- Secure OAuth 2.0 authentication with token persistence
- Single Responsibility Principle architecture for maintainability
Use cases of Kite MCP Server
- Ask Claude for your current trading positions and holdings
- Get the last traded price or detailed quotes for instruments
- Place, modify, or cancel orders through natural language
- Check account margins and authentication status
- Retrieve your user profile and today’s order history
FAQ from Kite MCP Server
What prerequisites do I need?
You need a Zerodha Kite Connect app (API Key and Secret) and the latest version of Bun runtime.
How do I authenticate with the Kite API?
Run bun run auth to start a local OAuth server, open your browser to Kite login, and securely save the access token. The redirect URL must be set to http://localhost:50000/zerodha/auth/redirect in your Kite Connect app.
How long does an access token last and what happens when it expires?
Kite tokens expire roughly every 6 hours. When expired, re-run bun run auth to get a new token. The server will notify you of your authentication status.
Where are tokens stored?
Tokens are stored locally in an access_token.json file. API credentials are never logged or exposed, and tokens auto‑expire for security.
Is this an official Zerodha integration?
No, this is an unofficial integration. Use at your own risk and always verify trades and orders before execution.
Frequently asked questions
What prerequisites do I need?
You need a Zerodha Kite Connect app (API Key and Secret) and the latest version of Bun runtime.
How do I authenticate with the Kite API?
Run `bun run auth` to start a local OAuth server, open your browser to Kite login, and securely save the access token. The redirect URL must be set to `http://localhost:50000/zerodha/auth/redirect` in your Kite Connect app.
How long does an access token last and what happens when it expires?
Kite tokens expire roughly every 6 hours. When expired, re-run `bun run auth` to get a new token. The server will notify you of your authentication status.
Where are tokens stored?
Tokens are stored locally in an `access_token.json` file. API credentials are never logged or exposed, and tokens auto‑expire for security.
Is this an official Zerodha integration?
No, this is an unofficial integration. Use at your own risk and always verify trades and orders before execution.
Basic information
More Other MCP servers
MCP Registry
modelcontextprotocolA community driven registry service for Model Context Protocol (MCP) servers.
Codelf
unbugA search tool helps dev to solve the naming things problem.
MCP Go 🚀
mark3labsA Go implementation of the Model Context Protocol (MCP), enabling seamless integration between LLM applications and external data sources and tools.
MaxKB
1Panel-dev🔥 MaxKB is an open-source platform for building enterprise-grade agents. 强大易用的开源企业级智能体平台。
Reactive Resume
amruthpillaiA one-of-a-kind resume builder that keeps your privacy in mind. Completely secure, customizable, portable, open-source and free forever. Try it out today!
Comments