J0SAL/zeroda-mcp
3.1
If you are the rightful owner of zeroda-mcp and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to dayong@mcphub.com.
A demo server that integrates with Zerodha's Kite Connect API to provide trading and utility tools via the Model Context Protocol (MCP).
Tools
1
Resources
0
Prompts
0
Zeroda MCP
A demo server that exposes trading and utility tools via the Model Context Protocol (MCP), integrating with Zerodha's Kite Connect API.
Features
- Addition tool for simple math (for testing the mcp)
- Get Zerodha user profile
- Place buy/sell stock orders (real orders, use with caution!)
Project Structure
.env
.gitignore
index.ts
package.json
trade.ts
tsconfig.json
Setup
-
Clone the repository
-
Install dependencies
npm install -
Configure environment variables
Create a
.envfile in the project root with the following variables:KITE_API_KEY=your_kite_api_key KITE_API_SECRET=your_kite_api_secret KITE_REQUEST_TOKEN=your_request_token KITE_ACCESS_TOKEN=your_access_tokenSee for how these are used.
-
Run the server
npx tsx index.tsor
npx ts-node index.ts
Main Files
- : MCP server setup and tool registration.
- : Zerodha Kite Connect integration and trading logic.
Notes
- The buy/sell endpoints are set up to place real orders. Uncomment the relevant lines in to enable actual trading.
- Make sure your
.envis correct and your API credentials are