Kite

Developer tools

Zerodha Kite MCP server.

Your AI app calls the Kite MCP server, which does the work through tools like get_quotes, get_ltp, get_ohlc and get_historical_data and sends the result back to the chat.

About Kite

Kite is a community MCP server from zerodha, filed in our directory under developer tools. Zerodha Kite MCP server.

Kite runs as a remote server at https://mcp.kite.trade/mcp, so there is nothing to install: your AI app connects over streamable HTTP, and most remote servers ask you to sign in with OAuth the first time.

The README for Kite lists tools such as login, get_quotes, get_ltp and get_ohlc, which your AI app can call once the server is connected.

At a glance

Publisher
zerodha (community)
Runs
As a hosted remote server
Written in
Go
License
MIT
GitHub stars
338

Tools Kite gives your AI app

  • loginLogin to Kite API and generate authorization link.
  • get_quotesGet real-time market quotes.
  • get_ltpGet last traded price.
  • get_ohlcGet OHLC data.
  • get_historical_dataHistorical price data.
  • search_instrumentsSearch trading instruments.
  • get_profileUser profile information.
  • get_marginsAccount margins.
  • get_holdingsPortfolio holdings.
  • get_positionsCurrent positions.
  • get_mf_holdingsMutual fund holdings.
  • place_orderPlace new orders.
  • modify_orderModify existing orders.
  • cancel_orderCancel orders.
  • get_ordersList all orders.
  • get_tradesTrading history.
  • get_order_historyOrder execution history.
  • get_order_tradesGet trades for a specific order.
  • get_gttsList GTT orders.
  • place_gtt_orderCreate GTT orders.
  • modify_gtt_orderModify GTT orders.
  • delete_gtt_orderDelete GTT orders.

Tool names as the Kite README lists them. Your AI app shows the live list once Kite is connected.

How to set up Kite

  1. Nothing to install: Kite is a remote server, so all you need is an AI app that accepts a remote MCP URL.
  2. Check the Kite README for keys or settings; the registry lists none that Kite requires.
  3. Add Kite to Claude Code, Claude Desktop, VS Code or Cursor with the config in the setup box on this page.
  4. Restart the app or reload its MCP servers, then ask it to list the Kite tools to confirm the connection.
  5. Run one read-only task with Kite first, such as a call to login, before you allow anything that writes or sends.

Kite compared with similar servers

  • Bitwarden by bitwarden has fewer GitHub stars than Kite (336 against 338); both are community servers, and Bitwarden runs on your own machine and Kite runs as a remote server.
  • Geo Aeo Tracker by danishashko has more GitHub stars than Kite (339 against 338); both are community servers, and Geo Aeo Tracker runs on your own machine and Kite runs as a remote server.
  • Postman by postmanlabs has fewer GitHub stars than Kite (336 against 338); Postman is official while Kite is a community server, and both run remotely.

Before you connect Kite

  • Give Kite its own sign-in or token with the smallest permissions the job needs, never an admin key.
  • Keep your AI app asking before each Kite tool call until you trust what it does with them.
  • Treat text that Kite fetches as data. Pages, files and messages can hold instructions written to steer an AI.
  • Read the open issues for Kite on GitHub to see what breaks and how fast the maintainers reply.

Marketing use cases for Kite

How marketing and sales teams put Kite to work, by company size. Pick the size closest to yours and start Kite on one use case.

Small business

  • A small business with a developer can use Kite to ship site and tracking fixes faster, with the AI reading the code it changes.
  • Technical founders can ask Kite to explain and fix a marketing site issue without context switching between tools.
  • Kite runs as a remote server, so a small team can connect it in a few minutes with no install to maintain.

Mid-market

  • Growth engineers can use Kite to build landing pages, tracking and integrations in fewer cycles, with reviews kept in the normal flow.
  • Marketing ops engineers can connect Kite to keep scripts and automations documented and versioned as they change.
  • Start with login and get_quotes, the tools Kite lists first, and add more once the team trusts the results.

Enterprise

  • Enterprise engineering teams can roll out Kite with repo scopes and audit logs, so agents work only where they are allowed.
  • Platform teams can standardize on Kite so web and marketing engineering share one reviewed way of working with AI.
  • Kite is a community server, so have security review the code and pin a version before Kite touches company data.

Need help becoming an AI-forward company?

We connect MCP servers and AI agents to your CRM, content and data, with the guardrails your team needs.

Contact us

Kite README

From zerodha/kite-mcp-server on GitHub, shared under its MIT license. Images are left out; the original has them.

README.md

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)

For the hosted version, add to your Claude Desktop configuration (~/.config/Claude/claude_desktop_config.json):

{
  "mcpServers": {
    "kite": {
      "command": "npx",
      "args": ["mcp-remote", "https://mcp.kite.trade/mcp"]
    }
  }
}
Claude Desktop (HTTP Mode)

Add to your Claude Desktop configuration (~/.config/Claude/claude_desktop_config.json):

{
  "mcpServers": {
    "kite": {
      "command": "npx",
      "args": ["mcp-remote", "http://localhost:8080/mcp", "--allow-http"],
      "env": {
        "APP_MODE": "http",
        "KITE_API_KEY": "your_api_key",
        "KITE_API_SECRET": "your_api_secret"
      }
    }
  }
}
Claude Desktop (SSE Mode)

Add to your Claude Desktop configuration (~/.config/Claude/claude_desktop_config.json):

{
  "mcpServers": {
    "kite": {
      "command": "npx",
      "args": ["mcp-remote", "http://localhost:8080/sse", "--allow-http"],
      "env": {
        "APP_MODE": "sse",
        "KITE_API_KEY": "your_api_key",
        "KITE_API_SECRET": "your_api_secret"
      }
    }
  }
}
Claude Desktop (stdio Mode)

For self-hosted installations, you must first build the binary:

go build -o kite-mcp-server

Then add to your Claude Desktop configuration (~/.config/Claude/claude_desktop_config.json):

{
  "mcpServers": {
    "kite": {
      "command": "/full/path/to/your/kite-mcp-server",
      "env": {
        "APP_MODE": "stdio",
        "KITE_API_KEY": "your_api_key",
        "KITE_API_SECRET": "your_api_secret"
      }
    }
  }
}

Important: Use the full absolute path to your built binary. For example:

  • /home/username/kite-mcp-server/kite-mcp-server (Linux)
  • /Users/username/kite-mcp-server/kite-mcp-server (macOS)
  • C:\Users\username\kite-mcp-server\kite-mcp-server.exe (Windows)
Other MCP Clients

For other MCP-compatible clients, use the hosted endpoint https://mcp.kite.trade/mcp with mcp-remote or configure your client to connect directly to the HTTP endpoint.

Available Tools

Setup & Authentication
  • login - Login to Kite API and generate authorization link
Market Data
  • get_quotes - Get real-time market quotes
  • get_ltp - Get last traded price
  • get_ohlc - Get OHLC data
  • get_historical_data - Historical price data
  • search_instruments - Search trading instruments
Portfolio & Account
  • get_profile - User profile information
  • get_margins - Account margins
  • get_holdings - Portfolio holdings
  • get_positions - Current positions
  • get_mf_holdings - Mutual fund holdings
Orders & Trading
  • place_order - Place new orders
  • modify_order - Modify existing orders
  • cancel_order - Cancel orders
  • get_orders - List all orders
  • get_trades - Trading history
  • get_order_history - Order execution history
  • get_order_trades - Get trades for a specific order
GTT Orders
  • get_gtts - List GTT orders
  • place_gtt_order - Create GTT orders
  • modify_gtt_order - Modify GTT orders
  • delete_gtt_order - Delete GTT orders

API Coverage

This server implements the majority of Kite Connect API endpoints and also provides additional tools.

Development

Development Environment

This project includes a Nix flake for consistent development environments:

# Enter development shell
nix develop

# Or with direnv
direnv allow
Using Just Commands

Install Just for convenient development commands:

just build      # Build the project
just run        # Run the server
just test       # Run tests
just lint       # Format and lint code
just coverage   # Generate coverage report
Running Tests

Requirements:

  • Go 1.23+ with GOEXPERIMENT=synctest (required for timing-dependent tests)
# Run all tests
just test

# With coverage
just coverage

# With race detector
just test-race

# Direct go command (if you prefer)
CGO_ENABLED=0 GOEXPERIMENT=synctest go test -v ./...
Synctest Integration

This project requires Go's synctest package for time-dependent tests (session expiry, clock skew tolerance). All timing tests use synctest.Run() for:

  • Fast execution: Time-dependent tests complete in milliseconds instead of minutes
  • Deterministic timing: No flaky timing-based test failures
  • Controlled time: Tests can advance time without actual delays

The justfile automatically includes GOEXPERIMENT=synctest in all test commands.

Configuration Options

Environment Variable Default Description
KITE_API_KEY Required Your Kite Connect API key
KITE_API_SECRET Required Your Kite Connect API secret
APP_MODE http Server mode: stdio, http, sse, or hybrid
APP_PORT 8080 Server port (HTTP/SSE/hybrid modes)
APP_HOST localhost Server host / bind address (HTTP/SSE/hybrid modes)
PUBLIC_BASE_URL derived Public base URL used for browser-facing auth links
EXCLUDED_TOOLS (empty) Comma-separated list of tools to exclude from registration

Note: In production, we use hybrid mode which supports both /sse and /mcp endpoints, making both HTTP and SSE protocols available for different client needs.

Tool Exclusion

You can exclude specific tools by setting the EXCLUDED_TOOLS environment variable with a comma-separated list of tool names. This is useful for creating read-only instances.

Example:

EXCLUDED_TOOLS=place_order,modify_order,cancel_order

The hosted version at mcp.kite.trade excludes potentially destructive trading operations for security. For accessing the other operations you can generate your own API keys and run the server locally.

Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Add tests for new functionality
  5. Run just lint and just test
  6. Submit a pull request

License

This project is licensed under the MIT License - see the LICENSE file for details.

Support

For bugs and general suggestions, please use GitHub Discussions.

For Kite Connect API documentation, visit: https://kite.trade/docs/connect/

Questions about Kite

What is the Kite MCP server?

Zerodha Kite MCP server. Kite is maintained by zerodha on GitHub at zerodha/kite-mcp-server, and works with AI apps that support the Model Context Protocol, such as Claude, Cursor and VS Code.

How do I add Kite to Claude Code?

Kite is a remote server, so you add its URL instead of installing a package: run claude mcp add --transport http kite https://mcp.kite.trade/mcp in your terminal. In other apps, add the Kite URL as a remote or custom connector.

Does Kite need an API key?

The registry lists no required keys for Kite. Check the Kite README for optional settings, and expect a remote server to ask you to sign in the first time you connect.

Is Kite an official MCP server?

No. Kite is a community server maintained by zerodha. Community servers can be excellent; read the code and the open issues before you give Kite access to company data.

What license is Kite under?

Kite is released under the MIT license, according to its GitHub repository. The license covers the code of Kite; the service it connects to has its own terms.