This project implements a Model Context Protocol (MCP) server over Claude AI that allows real-time stock buying and selling via Zerodha Kite. It enables conversational trading automation using Claude and executes orders in real-time through the Zerodha API.
Built entirely with Node.js, this project utilizes:
- @modelcontextprotocol/typescript-sdk for MCP integration
- zerodha/kiteconnectjs for Zerodha API interaction
- Node.js
- Zerodha Kite Connect JS SDK
- ModelContextProtocol SDK
- Claude AI (via MCP)
- dotenv for environment variables
-
Clone the repository:
git clone https://github.com/gitaman69/MCP-Zerodha.git cd your-repo npm install
-
Create a .env file in the root directory using the template provided in .env.example KITE_API_KEY=your_kite_api_key_here KITE_ACCESS_TOKEN=your_access_token_here
-
Start the Server: node index.js