
sukeesh/zerodha-mcp-go
Developer tools이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기
MCP Server for Zerodha written in Golang
개요
Protocol to communicate with your Zerodha data written in Golang 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. - Go (version 1.21 or later) - A Zerodha Kite trading account - Claude Desktop App - API credentials from the Kite Connect developer portal The binary will be installed to your GOBIN directory, which should be in your PATH. https://github.com/user-attachments/assets/849c4aca-0ca2-4aed-a9be-3df135f8a5c5 1. Get your ZERODHA_API_KEY and ZERODHA_API_SECRET from the Kite Connect developer portal 2. Set up a redirect URL in the Kite developer portal: 3. Configure Claude Desktop: - Open Claude Desktop → Settings → Developer → Edit Config - Add the following to your claude_desktop_config.json:
README
원문 README의 일부입니다. 원문 보기.
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
https://github.com/user-attachments/assets/849c4aca-0ca2-4aed-a9be-3df135f8a5c5
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": "",
"env": {
"ZERODHA_API_KEY": "",
"ZERODHA_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 |
설치
This server does not publish a one-line install command.
Open the repository installation guide MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →설정
{
"mcpServers": {
"zerodha": {
"command": "<path-to-zerodha-mcp-binary>",
"env": {
"ZERODHA_API_KEY": "<api_key>",
"ZERODHA_API_SECRET": "<api_secret>"
}
}
}
}