
zerodha/kite-mcp-server 是从 https://github.com/zerodha/kite-mcp-server. 导入的 MCP 服务器候选服务器
概览
zerodha/kite-mcp-server 是从 https://github.com/zerodha/kite-mcp-server. 导入的 MCP 服务器候选服务器
概述(AI 翻译)
一个模型上下文协议(MCP)服务器,为AI助手提供对Kite Connect交易API的安全访问。该服务器使AI代理能够检索市场数据、管理投资组合并通过标准化界面执行交易。
简而言之;交易者简要总结
想用 AI 配合你的 Kite 交易账户?只需在你的 AI 客户端配置中添加 https://mcp.kite.trade/mcp。无需安装或 API 密钥——它已经托管并随时可用。
特色
- 投资组合管理:查看持仓、持仓、保证金及共同基金投资
- 订单管理:提供完整订单历史的订单下达、修改和取消
- GTT 订单:良好至触发订单管理
- 市场数据访问:实时报价、历史数据、OHLC数据
- 分页支持:对大型数据集(持仓、订单、交易)自动分页
- 全面覆盖:实现大多数Kite Connect API端点
- 多种部署模式:stdio、HTTP、SSE和混合模式(生产环境)
- 内置文档:运行时自动提供文档
快速启动
托管版本(推荐)
最简单的入门方式是使用我们在’mcp上的托管版本。
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
Kite MCP Server
A Model Context Protocol (MCP) server that provides AI assistants with secure access to the Kite Connect trading API. This server enables AI agents to retrieve market data, manage portfolios, and execute trades through a standardized interface.
TL;DR for Traders
Want to use AI with your Kite trading account? Just add https://mcp.kite.trade/mcp to your AI client configuration. No installation or API keys required - it’s hosted and ready to use.
Features
- Portfolio Management: View holdings, positions, margins, and mutual fund investments
- Order Management: Place, modify, and cancel orders with full order history
- GTT Orders: Good Till Triggered order management
- Market Data Access: Real-time quotes, historical data, OHLC data
- Pagination Support: Automatic pagination for large datasets (holdings, orders, trades)
- Comprehensive Coverage: Implements most Kite Connect API endpoints
- Multiple Deployment Modes: stdio, HTTP, SSE, and hybrid mode (production)
- Built-in Documentation: Auto-served documentation at runtime
Quick Start
Hosted Version (Recommended)
The easiest way to get started is with our hosted version at mcp.kite.trade. Both /mcp and /sse endpoints are available - no installation or API keys required on your end.
Quick Setup: Add the following to your MCP configuration:
https://mcp.kite.trade/mcp
Recommended: Use the new HTTP mode (/mcp endpoint) for better performance and reliability. You can use mcp-remote to connect to the hosted server.
For self-hosting with your own API keys, follow the installation steps below.
Prerequisites
- For hosted version (recommended): Nothing! Just use
https://mcp.kite.trade/mcp - For self-hosting: Go 1.21 or later
- For self-hosting: Valid Kite Connect API credentials
Getting started
git clone https://github.com/zerodha/kite-mcp-server
cd kite-mcp-server
Configuration
Create a .env file with your Kite Connect credentials:
KITE_API_KEY=your_api_key
KITE_API_SECRET=your_api_secret
APP_MODE=http
APP_PORT=8080
APP_HOST=localhost
PUBLIC_BASE_URL=http://localhost:8080
You can also use the provided justfile to initialize the config.
just init-env
Running the Server
# Build and run
go build -o kite-mcp-server
./kite-mcp-server
# Or run directly
go run main.go
The server will start and serve a status page at http://localhost:8080/
Client Integration
Setup Guide
- Claude Desktop (Hosted Mode) - Recommended
- Claude Desktop (HTTP Mode) - Recommended
- Claude Desktop (SSE Mode)
- Claude Desktop (stdio Mode)
- Other MCP Clients
Claude Desktop (Hosted Mode)
安装
npx mcp-remote https://mcp.kite.trade/mcp配置
{
"mcpServers": {
"kite": {
"command": "npx",
"args": ["mcp-remote", "https://mcp.kite.trade/mcp"]
}
}
}