Zerodha MCP Server logo

Zerodha MCP Server

Community
sukeesh

MCP Server for Zerodha written in Golang

Publishersukeesh
Repositoryzerodha-mcp-go
LanguageGo
Forks
3
Stars
11
Available tools
0
Transport typestdio
Categories
Links
  • Connect tools to AI workflows

    Zerodha MCP Server exposes MCP capabilities that can be used by compatible AI clients and agents.

  • 0 available tools

    Browse the callable actions below, including names and descriptions when provided by the server.

  • Ready-to-copy setup

    Use the installation snippets to configure this server in your preferred MCP client.

  • Open source signals

    11 stars and 3 forks from the linked repository.

Zerodha MCP Server

Go

Overview

Zerodha MCP Server provides an implementation of the Claude MCP (Model Completion Protocol) interface for Zerodha trading data. This allows Claude AI to access your Zerodha trading account information directly.

Prerequisites

Installation

Option 1: Using Go Install

bash
go install github.com/sukeesh/zerodha-mcp@latest

Option 2: Build from Source

bash
git clone https://github.com/sukeesh/zerodha-mcp.git
cd zerodha-mcp
go install

The binary will be installed to your GOBIN directory, which should be in your PATH.

Usage with an MCP Client

GPT 4o mini

https://github.com/user-attachments/assets/849c4aca-0ca2-4aed-a9be-3df135f8a5c5

Claude Sonnet 3.7

Configuration

  1. Get your ZERODHA_API_KEY and ZERODHA_API_SECRET from the Kite Connect developer portal

  2. Set up a redirect URL in the Kite developer portal:

    http://127.0.0.1:5888/auth
  3. Configure Claude Desktop:

    • Open Claude Desktop → Settings → Developer → Edit Config
    • Add the following to your claude_desktop_config.json:
json
{
  "mcpServers": {
    "zerodha": {
      "command": "<path-to-zerodha-mcp-binary>",
      "env": {
       "ZERODHA_API_KEY": "<api_key>",
       "ZERODHA_API_SECRET": "<api_secret>"
      }
    }
  }
}
  1. Restart Claude Desktop. When prompted, authenticate with your Zerodha Kite credentials.

Debugging

The logs for MCP Server are available at ~/Library/Logs/Claude

Known Bugs

When the Claude desktop is shutdown, the underlying MCP Server is not getting killed.

bash
kill -9 $(lsof -t -i:5888)

Available Tools

CategoryToolStatusDescription
Account Informationget_user_profile✅Get basic user profile information
get_user_margins✅Get all user margins
get_user_segment_margins✅Get segment-wise user margins
Portfolio & Positionsget_kite_holdings✅Get current holdings in Zerodha Kite account
get_positions✅Get current day and net positions
get_order_margins✅Get margin requirements for specific orders
Market Dataget_ltp✅Get Last Traded Price for specific instruments
get_quote✅Get detailed quotes for specific instruments
get_ohlc✅Get Open, High, Low, Close quotes
Instrumentsget_instruments✅Get list of all available instruments on Zerodha
get_instruments_by_exchange✅Get instruments filtered by exchange
get_auction_instruments✅Get instruments available for auction sessions
Mutual Fundsget_mf_instruments✅Get list of all available mutual fund instruments
get_mf_holdings✅Get list of mutual fund holdings
get_mf_holdings_info✅Get detailed information about mutual fund holdings
get_mf_orders✅Get list of all mutual fund orders
get_mf_order_info✅Get detailed information about specific mutual fund orders
get_mf_sip_info✅Get information about mutual fund SIPs
get_mf_allotted_isins✅Get allotted mutual fund ISINs

Usage

After setup, you can interact with your Zerodha account data directly through Claude. For example:

  • "Show me my current portfolio holdings"
  • "What's my current margin availability?"
  • "Give me the latest price for RELIANCE"
  • "Show me my open positions with P&L"

Limitations

  • Only read operations are supported; trading is not yet available
  • Authentication token expires daily and requires re-login

Installation

TypingMind
{
  "mcpServers": {
    "zerodha-mcp-go": {
      "command": "zerodha-mcp",
      "args": [],
      "env": {
        "ZERODHA_API_KEY": "<ZERODHA_API_KEY>",
        "ZERODHA_API_SECRET": "<ZERODHA_API_SECRET>"
      }
    }
  }
}

Use Zerodha MCP Server MCP with multiple AI models

TypingMind connects MCP tools at the workspace level, so once Zerodha MCP Server is connected, you can use it with different AI models in TypingMind instead of setting it up separately for each model. This MCP runs locally through the TypingMind MCP connector on your device.

Setup guide to use the local connector

Use this when the MCP server needs access to local files, apps, or private resources on your computer.

1

Open the MCP settings

In TypingMind, go to Settings, Advanced Settings, then Model Context Protocol and choose Setup Connector.

  1. Open TypingMind in your browser.
  2. Click the Settings icon.
  3. Go to Advanced Settings.
  4. Open the Model Context Protocol section.
  5. Click Setup Connector and choose This Device.
TypingMind MCP connector setup screen with This Device selected
2

Run the connector command

Choose This Device, copy the command from TypingMind, and run it in Terminal. Keep the process running while you use MCP.

  1. Copy the setup command shown by TypingMind.
  2. Open Terminal on macOS or Windows Terminal on Windows.
  3. Paste and run the command.
  4. Approve the package install if Terminal asks you to proceed.
  5. Keep the Terminal window running while using MCP tools.
3

Add Zerodha MCP Server as a server

When the connector status is Ready, click Edit Servers and paste the MCP server configuration.

  1. Wait until the connector status shows Ready.
  2. Click Edit Servers.
  3. Paste the Zerodha MCP Server MCP server configuration.
  4. Save the server list.
  5. Refresh if you want to confirm the connector is still ready.
TypingMind MCP settings showing active server and Edit Servers button
{
  "mcpServers": {
    "zerodha-mcp-go": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

Use it across models

Save the server list, open Plugins, enable the Zerodha MCP Server MCP tools, then select any supported AI model in TypingMind and use the tools in chat or assign them to an AI agent.

  1. Open the Plugins page in TypingMind.
  2. Enable the Zerodha MCP Server MCP tools.
  3. Start a chat and choose the AI model you want to use.
  4. Use the MCP tools in chat or assign them to an AI agent.
  5. Switch to another AI model whenever needed without reconnecting MCP.
TypingMind chat using enabled MCP tools with a selected AI model
Can you use Zerodha MCP Server to help me with this task?
Zerodha MCP Server
Sure. I read it.
Here is what I found using Zerodha MCP Server.

Frequently asked questions

What is the Zerodha MCP Server MCP server used for?

Zerodha MCP Server is an MCP server that lets compatible AI clients connect to external tools and context. In TypingMind, you can add this MCP server once and make its tools available in your AI workspace.

Can I use Zerodha MCP Server MCP with multiple AI models in TypingMind?

Yes. TypingMind connects MCP tools at the workspace level, so you can use Zerodha MCP Server with different AI models such as Claude, ChatGPT, Gemini, or other models you have configured in TypingMind without setting up the MCP server separately for each model.

Why use Zerodha MCP Server MCP with TypingMind?

TypingMind is one of the best frontends for LLM chat because it brings multiple AI models, prompts, plugins, AI agents, API keys, and MCP tools into one workspace. With Zerodha MCP Server connected, you can use its MCP tools across your preferred models while keeping your chat workflow organized in TypingMind.

How do I connect Zerodha MCP Server MCP to TypingMind?

Zerodha MCP Server runs through the TypingMind local MCP connector. This is best when the MCP server needs access to local files, desktop apps, command-line tools, or private resources on your computer.

What tools does Zerodha MCP Server MCP provide in TypingMind?

Zerodha MCP Server exposes MCP capabilities that can be enabled from the TypingMind Plugins page and used in chat or assigned to AI agents.

Do I need to share my API keys with TypingMind to use Zerodha MCP Server MCP?

No. TypingMind is local-first and lets you keep your model providers, API keys, prompts, and MCP configuration under your control. If Zerodha MCP Server requires authentication, add the required headers, OAuth settings, or local configuration for that MCP server when you create the connection.

Related MCP Servers

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇