zerodha-api

jagmeet1313/zerodha-api

3.2

If you are the rightful owner of zerodha-api 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.

This is a Model Context Protocol (MCP) server that provides integration with the Zerodha trading platform.

Tools
4
Resources
0
Prompts
0

Zerodha API MCP Server

This is a Model Context Protocol (MCP) server that provides integration with the Zerodha trading platform. It allows AI assistants to interact with Zerodha's APIs in a secure and controlled manner.

Features

  • Get holdings information
  • Get positions
  • Get margins
  • Place orders

Setup

  1. Clone this repository
  2. Install dependencies:
npm install
  1. Configure your Zerodha API credentials in .env:
ZERODHA_API_KEY=your_api_key_here
ZERODHA_API_SECRET=your_api_secret_here
  1. Build the project:
npm run build
  1. Start the server:
npm start

Tools

The server provides the following MCP tools:

  • zerodha/get_holdings: Get user holdings information
  • zerodha/get_positions: Get user positions
  • zerodha/get_margins: Get user margins
  • zerodha/place_order: Place a new order

Development

To run in development mode with automatic rebuilding:

npm run dev

License

ISC