zerodha-mcp

zerodha-mcp

14

This project is a Python-based trading assistant that utilizes a Zerodha MCP server to manage trading accounts. It offers a natural language interface and integrates with Zerodha's API to provide a comprehensive trading toolset. The project is built using the Model Context Protocol for standardized communication.

Zerodha MCP Server & Client

A Python-based trading assistant that connects to a Zerodha MCP server to manage trading accounts.

Features

  • Manage Zerodha trading account, orders, and positions
  • Use natural language interface for trading operations
  • Integrates with Model Context Protocol for standardized communication
  • Interacts with Zerodha's trading platform using its API

Tools

  • Place, modify, and cancel orders
  • Get order details, history, and trades
  • Retrieve margins, holdings, positions, and user profile

Prerequisites

  • Python
  • Zerodha trading account with API access
  • API keys for Zerodha, OpenAI, and optionally for Google ADK

Installation

  1. Clone the repository
  2. Create and activate a virtual environment
  3. Install dependencies
  4. Configure environment variables

Server Usage

Ensure the environment is set with Zerodha API credentials and start the server to interact with the trading platform.

Client Usage

The project provides three client implementations with interactive trading interfaces using Agno framework, Gradio web interface, or Google ADK.