Self-host the Kite MCP Server
masterTo run the server locally with your own Kite Connect API credentials, follow these steps:
- Prerequisites: Ensure you have Go 1.21 or later installed.
- Clone the repository:
git clone https://github.com/zerodha/kite-mcp-server cd kite-mcp-server - Configure environment variables: Create a
.envfile in the root directory with your credentials:
Alternatively, useKITE_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:8080just init-envto initialize the config. - Run the server:
# Build and run go build -o kite-mcp-server ./kite-mcp-server # Or run directly go run main.go