Kite MCP服务器

Kite MCP服务器是一个用于集成Kite Connect API的服务,提供用户账户管理、订单交易、市场数据获取等功能。

  • by illustriousj
  • Go
  • 本地部署
  • 更新于
在 GitHub 查看 illustriousj/kite-mcp-server

使用说明

Kite MCP服务器

克劳德配置:

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

Linux: ~/.config/Claude/claude_desktop_config.json

stdio模式:

{
  "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模式

对于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() [] 尚未实施
GetOrderHistory() [] 尚未实施
GetOrderTrades() [] 尚未实施
GetOrderMargins() [] 尚未实施
GetBasketMargins() [] 尚未实施
GetOrderCharges() [] 尚未实施
GTT订单
GetGTTs() [x] 已实现 get_gtts 工具
GetGTT() [] 尚未实施
PlaceGTT() [x] 已实现 place_gtt_order 工具
ModifyGTT() [x] 已实现 modify_gtt_order 工具
DeleteGTT() [x] 已实现 delete_gtt_order 工具
市场数据方法
GetQuote() [x] 已实现 get_quotes 工具
GetHistoricalData() [x] 已实现 get_historical_data 工具
GetLTP() [] 尚未实施
GetOHLC() [] 尚未实施
GetInstruments() [-] 无法实现。使用 instruments_search 工具。
GetInstrumentsByExchange() [-] 不会执行
GetAuctionInstruments() [] 尚未实施
共同基金方法
GetMFOrders() [] 尚未实施
GetMFOrderInfo() [] 尚未实施
PlaceMFOrder() [] 尚未实施
CancelMFOrder() [] 尚未实施
GetMFSIPs() [] 尚未实施
GetMFSIPInfo() [] 尚未实施
PlaceMFSIP() [] 尚未实施
ModifyMFSIP() [] 尚未实施
CancelMFSIP() [] 尚未实施
GetMFHoldings() [x] 已实现 get_mf_holdings 工具
GetMFHoldingInfo() [] 尚未实施
GetMFInstruments() [] 尚未实施
GetMFOrdersByDate() [] 尚未实施
GetMFAllottedISINs() [] 尚未实施
其他方法
InitiateHoldingsAuth() [] 尚未实施
GetUserSegmentMargins() [] 尚未实施