MCP.so
Sign In

Zerodha MCP Integration

@aptro

Basic information

Category

Other

License

MIT

Transports

stdio

Author

aptro

About Zerodha MCP Integration

Mcp server to connect with zerodha's kite trade apis

Zerodha MCP Integration config

Add this server to your MCP-compatible client using the configuration below.

{
  "mcpServers": {
    "zerodha-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@smithery/cli",
        "install",
        "@aptro/zerodha-mcp",
        "--client",
        "claude"
      ]
    }
  }
}

Zerodha MCP Integration tools

Tool list not available yet

This listing does not currently have a tool list to display. This does not mean the server has no tools; check its documentation for supported capabilities.

Fetch the live tool list by running this server in a temporary sandbox using the button above.

Overview

What is Zerodha MCP Integration?

This server integrates Zerodha's trading platform with Claude AI using the Model Context Protocol (MCP), allowing you to interact with your Zerodha trading account directly through Claude. It is designed for Zerodha users who want to execute trades, check portfolio details, and manage mutual funds via natural language commands.

How to use Zerodha MCP Integration?

Install via Smithery with npx -y @smithery/cli install @aptro/zerodha-mcp --client claude or manually: create a Zerodha developer account, create an app with redirect URL http://127.0.0.1:5000/zerodha/auth/redirect, obtain API key and secret, set them in a .env file, install dependencies (kiteconnect, fastapi, uvicorn, python-dotenv, httpx), and run mcp install main.py. On first use, Claude will start a local server on port 5000 to handle authentication.

Key features of Zerodha MCP Integration

  • Check and initiate authentication with Zerodha
  • Retrieve portfolio holdings, positions, and margins
  • Place stock trading orders and get quotes
  • Fetch historical price data for symbols
  • View and manage mutual fund holdings and orders
  • Create, modify, and cancel mutual fund SIPs

Use cases of Zerodha MCP Integration

  • Ask Claude to check current margins and open positions
  • Place a market order for shares without leaving the chat
  • View mutual fund holdings and recent orders
  • Set up a new monthly SIP for a specific fund
  • Browse available mutual funds on Zerodha

Frequently asked questions

1

What authentication is required?

You need a Zerodha developer account, an API key and secret from a created app, and a one-time browser login. The access token is stored locally for future sessions.

2

How are credentials stored?

API credentials are stored only in a local `.env` file. Access tokens are saved in a `.tokens` file. No credentials are transmitted to Claude or any third parties.

3

What is the session duration?

The session remains active until the token expires, typically after 24 hours. When expired, Claude automatically reinitiates the login flow.

4

What dependencies are needed?

The server requires Python packages: `kiteconnect`, `fastapi`, `uvicorn`, `python-dotenv`, and `httpx`. It uses a local HTTP server on port 5000 for the authentication redirect.

5

Can I place live trades with this server?

Yes, you can place buy/sell orders, get real-time quotes, and manage mutual fund orders and SIPs. Be aware of the risks of live trading; the server does not add any safeguards beyond what Zerodha provides.

Comments

More Other MCP servers