Zerodha MCP Server
sukeesh/zerodha-mcp-go · 11 stars · Go
MCP server MCP Server for Zerodha written in Golang
Install
The repo has no one-line install. Follow its README.
Files
Zerodha MCP Server
Protocol to communicate with your Zerodha data written in Golang
Overview
Zerodha MCP Server provides an implementation of the Claude MCP (Model Completion Protocol) interface for Zerodha trading data. This allows Claude AI to access your Zerodha trading account information directly.
Prerequisites
- Go (version 1.21 or later)
- A Zerodha Kite trading account
- Claude Desktop App
- API credentials from the Kite Connect developer portal
Installation
Option 1: Using Go Install
go install github.com/sukeesh/zerodha-mcp@latest
Option 2: Build from Source
git clone https://github.com/sukeesh/zerodha-mcp.git cd zerodha-mcp go install
The binary will be installed to your GOBIN directory, which should be in your PATH.
Usage with an MCP Client
GPT 4o mini
5ire.as.MCP.Client.mp4
Claude Sonnet 3.7
Configuration
-
Get your
ZERODHA_API_KEYandZERODHA_API_SECRETfrom the Kite Connect developer portal -
Set up a redirect URL in the Kite developer portal:
http://127.0.0.1:5888/auth -
Configure Claude Desktop:
- Open Claude Desktop → Settings → Developer → Edit Config
- Add the following to your
claude_desktop_config.json:
{
"mcpServers": {
"zerodha": {
"command": "<path-to-zerodha-mcp-binary>",
"env": {
"ZERODHA_API_KEY": "<api_key>",
"ZERODHA_API_SECRET": "<api_secret>"
}
}
}
}
- Restart Claude Desktop. When prompted, authenticate with your Zerodha Kite credentials.
Debugging
The logs for MCP Server are available at ~/Library/Logs/Claude
Known Bugs
When the Claude desktop is shutdown, the underlying MCP Server is not getting killed.
kill -9 $(lsof -t -i:5888)
Available Tools
| Category | Tool | Status | Description |
|---|---|---|---|
| Account Information | get_user_profile |
✅ | Get basic user profile information |
get_user_margins |
✅ | Get all user margins | |
get_user_segment_margins |
✅ | Get segment-wise user margins | |
| Portfolio & Positions | get_kite_holdings |
✅ | Get current holdings in Zerodha Kite account |
get_positions |
✅ | Get current day and net positions | |
get_order_margins |
✅ | Get margin requirements for specific orders | |
| Market Data | get_ltp |
✅ | Get Last Traded Price for specific instruments |
get_quote |
✅ | Get detailed quotes for specific instruments | |
get_ohlc |
✅ | Get Open, High, Low, Close quotes | |
| Instruments | get_instruments |
✅ | Get list of all available instruments on Zerodha |
get_instruments_by_exchange |
✅ | Get instruments filtered by exchange | |
get_auction_instruments |
✅ | Get instruments available for auction sessions | |
| Mutual Funds | get_mf_instruments |
✅ | Get list of all available mutual fund instruments |
get_mf_holdings |
✅ | Get list of mutual fund holdings | |
get_mf_holdings_info |
✅ | Get detailed information about mutual fund holdings | |
get_mf_orders |
✅ | Get list of all mutual fund orders | |
get_mf_order_info |
✅ | Get detailed information about specific mutual fund orders | |
get_mf_sip_info |
✅ | Get information about mutual fund SIPs | |
get_mf_allotted_isins |
✅ | Get allotted mutual fund ISINs |
Usage
After setup, you can interact with your Zerodha account data directly through Claude. For example:
- "Show me my current portfolio holdings"
- "What's my current margin availability?"
- "Give me the latest price for RELIANCE"
- "Show me my open positions with P&L"
Limitations
- Only read operations are supported; trading is not yet available
- Authentication token expires daily and requires re-login
Facts
- Kind
- MCP server
- Group
- Uncategorized
- Stars
- 11
- Language
- Go
- Last push
- 2026-09-02
- Forks
- 3
- 1REAio.github.morluto/reaReverse engineer anything from your terminal or agent with one CLI and MCP server.125.3k
- 2com.browser-use/browser-usecom.browser-use/browser-useControl a real Chrome browser to complete any task: fill forms, extract data, book flights.117.7k
- 3World Monitorapp.worldmonitor/mcpLive markets, conflicts, country risk, chokepoints, energy, and China decision signals. 93 tools.88.3k
- 4Scrapling MCP Serverd4vinci/scrapling🕷️ An adaptive Web Scraping framework that handles everything from a single request to a full-scale crawl! Don't be shy, join here: https://discord.gg/EMgGbDceNQ and follow here for daily tips and tricks: https://x.com/Scraplingdev86.9k
- 5Everythingmodelcontextprotocol/serversThis MCP server attempts to exercise all the features of the MCP protocol. It is not intended to be a useful server, but rather a test server for builders of MCP clients. It implements prompts, tools, resources, sampling, and more to showcase MCP capabilities.85.8k
- 6Fetchmodelcontextprotocol/serversA Model Context Protocol server that provides web content fetching capabilities. This server enables LLMs to retrieve and process content from web pages, converting HTML to markdown for easier consumption.85.8k
