kite-mcp-server

command module
v0.1.0-dev0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 26, 2025 License: MIT Imports: 7 Imported by: 0

README

Kite MCP Server

Development Environment with Nix

This project includes a Nix flake for setting up a consistent development environment. This ensures that all developers have the same tools and dependencies regardless of their operating system.

Prerequisites
Getting Started with Nix
  1. Enter the development shell:

    nix develop
    
  2. If you're using direnv, simply enter the directory and allow direnv:

    direnv allow
    
  3. The development environment includes:

    • Go 1.24
    • gopls (Go language server)
    • golangci-lint
    • delve (Go debugger)
    • go-tools
Environment Variables

Remember to set up your environment variables in .env file:

KITE_API_KEY=your_api_key
KITE_API_SECRET=your_api_secret
APP_MODE=sse  # or stdio
APP_PORT=8080  # optional
APP_HOST=localhost  # optional

Claude config:

The path to the config file can be found in the claude_desktop_config.json file.

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

For the SSE mode, you can run the following command to start the server:

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

If you want to use the hosted version, you can use the following config:

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

Kite Connect API Integration Status

API Method Integration Status Remarks
User & Account Methods
GetUserProfile() [x] Implemented as get_profile tool
GetUserMargins() [x] Implemented as get_margins tool
GetHoldings() [x] Implemented as get_holdings tool
GetPositions() [x] Implemented as get_positions tool
GetFullUserProfile() [ ] Not yet implemented
InvalidateAccessToken() [ ] Not yet implemented
InvalidateRefreshToken() [ ] Not yet implemented
RenewAccessToken() [ ] Not yet implemented
Orders & Trades Methods
GetOrders() [x] Implemented as get_orders tool
GetTrades() [x] Implemented as get_trades tool
PlaceOrder() [x] Implemented as place_order tool
ModifyOrder() [x] Implemented as modify_order tool
CancelOrder() [x] Implemented as cancel_order tool
ExitOrder() [ ] Not yet implemented
ConvertPosition() [ ] Not yet implemented
GetOrderHistory() [x] Implemented as get_order_history tool
GetOrderTrades() [ ] Not yet implemented
GetOrderMargins() [ ] Not yet implemented
GetBasketMargins() [ ] Not yet implemented
GetOrderCharges() [ ] Not yet implemented
GTT Orders
GetGTTs() [x] Implemented as get_gtts tool
GetGTT() [ ] Not yet implemented
PlaceGTT() [x] Implemented as place_gtt_order tool
ModifyGTT() [x] Implemented as modify_gtt_order tool
DeleteGTT() [x] Implemented as delete_gtt_order tool
Market Data Methods
GetQuote() [x] Implemented as get_quotes tool
GetHistoricalData() [x] Implemented as get_historical_data tool
GetLTP() [x] Implemented as get_ltp tool
GetOHLC() [x] Implemented as get_ohlc tool
GetInstruments() [-] Won't implement. Use instruments_search tool.
GetInstrumentsByExchange() [-] Won't implement
GetAuctionInstruments() [ ] Not yet implemented
Mutual Funds Methods
GetMFOrders() [ ] Not yet implemented
GetMFOrderInfo() [ ] Not yet implemented
PlaceMFOrder() [ ] Not yet implemented
CancelMFOrder() [ ] Not yet implemented
GetMFSIPs() [ ] Not yet implemented
GetMFSIPInfo() [ ] Not yet implemented
PlaceMFSIP() [ ] Not yet implemented
ModifyMFSIP() [ ] Not yet implemented
CancelMFSIP() [ ] Not yet implemented
GetMFHoldings() [x] Implemented as get_mf_holdings tool
GetMFHoldingInfo() [ ] Not yet implemented
GetMFInstruments() [ ] Not yet implemented
GetMFOrdersByDate() [ ] Not yet implemented
GetMFAllottedISINs() [ ] Not yet implemented
Other Methods
InitiateHoldingsAuth() [ ] Not yet implemented
GetUserSegmentMargins() [ ] Not yet implemented

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
kc

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL