Skip to content

MCP server to establish connection between Claude AI and zerodha application to buy, sell, and visualise in stock market portfolio.

Notifications You must be signed in to change notification settings

serverf21/zerodha-mcp-claude

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Zerodha-Claude AI Integration

A Model Context Protocol (MCP) server that enables Claude AI to interact with your Zerodha trading account. This integration allows Claude to execute trades and analyze your portfolio through natural language commands.

Screen.Recording.2025-06-06.at.10.00.46.AM.1.mp4

Features

  • 🚀 Execute market orders (buy/sell stocks)
  • 📊 View portfolio holdings and analysis
  • 🔐 Secure API integration with Zerodha
  • 🤖 Natural language trading commands through Claude AI

Prerequisites

  • Bun runtime
  • Zerodha Kite account with:
    • API Key
    • API Secret
    • Access Token

Setup

  1. Install dependencies:
bun install
  1. Configure environment variables in Claude Desktop config:
{
  "mcpServers": {
    "trade": {
      "command": "/path/to/bun",
      "args": ["index.ts"],
      "env": {
        "ZERODHA_API_KEY": "your_api_key",
        "ZERODHA_API_SECRET": "your_api_secret",
        "ZERODHA_ACCESS_TOKEN": "your_access_token"
      }
    }
  }
}
  1. Run the server:
bun run index.ts

Available Commands in Claude

  • Buy stocks: Execute buy orders
    Buy 10 shares of RELIANCE
    
  • Sell stocks: Execute sell orders
    Sell 5 shares of TCS
    
  • View portfolio: Check your holdings
    Show my portfolio
    

Security Note

  • Keep your API credentials secure
  • Never share your access tokens
  • Monitor your trades regularly

Tech Stack

  • TypeScript
  • Bun Runtime
  • Model Context Protocol (MCP)
  • Zerodha Kite API
  • Claude AI Integration

About

MCP server to establish connection between Claude AI and zerodha application to buy, sell, and visualise in stock market portfolio.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published