Back to MCP directory
publicPublicdnsLocal runtime

kite-mcp-server

Kite MCP服务是一个与Kite Connect API集成的服务,提供多种交易和账户管理功能,包括用户信息、订单交易、市场数据等接口的调用。

article

README

🚀 Kite MCP 服务器

Kite MCP 服务器提供了与 Claude 集成的配置选项,以及 Kite Connect API 的集成状态信息,方便用户进行开发和使用。

🚀 快速开始

✨ Claude 配置

可以在 claude_desktop_config.json 文件中找到配置文件的路径。

  • Linux 系统:~/.config/Claude/claude_desktop_config.json

标准输入输出模式(stdio mode)

{
  "mcpServers": {
    "kite": {
      "command": "go",
      "args": ["run", "<ABSOLUTE_PATH>/main.go"],
      "env": {
        "APP_MODE": "stdio",
        "KITE_API_KEY": "<your_api_key>",
        "KITE_API_SECRET": "<your_api_secret>"
      }
    }
  }
}

流数据模式(SSE mode)

对于 SSE 模式,您可以使用以下命令启动服务器:

go run main.go
{
  "mcpServers": {
    "kite": {
      "command": "npx",
      "args": ["mcp-remote", "http://localhost:8081/sse"]
    }
  }
}

如果您想使用托管版本,可以使用以下配置:

{
  "mcpServers": {
    "kite": {
      "command": "npx",
      "args": ["mcp-remote", "http://mcp.kite.trade/sse"]
    }
  }
}

🔧 Kite Connect API 集成状态

| API 方法 | 集成状态 | 备注 | | ---- | ---- | ---- | | 用户与账户方法 | | | | GetUserProfile() | [x] | 已实现为 get_profile 工具 | | GetUserMargins() | [x] | 已实现为 get_margins 工具 | | GetHoldings() | [x] | 已实现为 get_holdings 工具 | | GetPositions() | [x] | 已实现为 get_positions 工具 | | GetFullUserProfile() | [ ] | 未实现 | | InvalidateAccessToken() | [ ] | 未实现 | | InvalidateRefreshToken() | [ ] | 未实现 | | RenewAccessToken() | [ ] | 未实现 | | 订单与交易方法 | | | | GetOrders() | [x] | 已实现为 get_orders 工具 | | GetTrades() | [x] | 已实现为 get_trades 工具 | | PlaceOrder() | [x] | 已实现为 place_order 工具 | | ModifyOrder() | [x] | 已实现为 modify_order 工具 | | CancelOrder() | [x] | 已实现为 cancel_order 工具 | | ExitOrder() | [ ] | 未实现 | | ConvertPosition() | [ ] | 未实现 | | GetUserSegmentMargins() | [ ] | 未实现 |

help

Runtime guide

cloud

Hosted runtime

Hosted servers run from a provider-managed environment. You usually connect the MCP client to the hosted endpoint or follow the provider's authorization flow, without keeping a local process alive

  1. Open provider connection page
  2. Authorize or copy endpoint
  3. Connect from your MCP client
terminal

Local runtime / other methods

Local servers run on your own machine or infrastructure. You normally copy the server_config into your MCP client, install the required package, and provide env variables from env_schema when needed

  1. Copy server_config
  2. Install required package
  3. Fill env variables and restart client