AZ

aptro/zerodha-mcp

Developer tools

Эта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал

46 stars 15 forks Качество 56 Тренд 0MIT

aptro/zerodha-mcp - кандидат на сервер MCP, импортированный из https://github.com/aptro/zerodha-mcp.

Обзор

aptro/zerodha-mcp - кандидат на сервер MCP, импортированный из https://github.com/aptro/zerodha-mcp.

Обзор (машинный перевод)

Этот проект интегрирует торговую платформу Zerodha с Claude AI с использованием фреймворка Multi-Cloud Plugin (MCP), позволяя вам взаимодействовать с вашим торговым счетом Zerodha непосредственно через Claude.

Инструкции по установке

###Установка через Smithery

Установить zerodha-mcp для Claude Desktop автоматически через Smithery:

###1 Создайте аккаунт разработчика Zerodha

  1. Перейдите в Kite Connect и зарегистрируйтесь для учетной записи разработчика 2 Войдите в свою учетную запись у разработчиков. змей. торговля

###2 Создание нового приложения

  1. Перейдите в раздел «Приложения» на панели инструментов Kite Developer 2.Нажмите «Создать новое приложение»
  2. Заполните необходимые детали: Название приложения: Выберите описательное имя (например, «Интеграция Клода Зеродхи») Категория приложения: Выберите «Личный» или соответствующую категорию Перенаправление URL: Set to http://127.0.0.1:5000/zerodha/auth/redirect Описание: Кратко опишите цель вашего приложения
  3. отправьте форму для создания вашего приложения

###3 Получите API-удостоверения

После создания приложения вы получите: API-ключ (также называемый потребительским ключом) API Secret (также известный как Consumer Secret)

Эти учетные данные будут отображаться на странице данных вашего приложения.

###4 Настройка переменных среды

Эта страница переведена автоматически. Технические детали смотрите в оригинале.

README

Показан фрагмент оригинального README. Открыть оригинал.

Zerodha MCP Integration

This project integrates Zerodha’s trading platform with Claude AI using the Multi-Cloud Plugin (MCP) framework, allowing you to interact with your Zerodha trading account directly through Claude.

Setup Instructions

Installing via Smithery

To install zerodha-mcp for Claude Desktop automatically via Smithery:

npx -y @smithery/cli install @aptro/zerodha-mcp --client claude

1. Create a Zerodha Developer Account

  1. Go to Kite Connect and sign up for a developer account
  2. Log in to your account at developers.kite.trade

2. Create a New App

  1. Navigate to the “Apps” section in your Kite Developer dashboard
  2. Click on “Create a new app”
  3. Fill in the required details:
    • App Name: Choose a descriptive name (e.g., “Claude Zerodha Integration”)
    • App Category: Select “Personal” or appropriate category
    • Redirect URL: Set to http://127.0.0.1:5000/zerodha/auth/redirect
    • Description: Briefly describe your application’s purpose
  4. Submit the form to create your app

3. Get API Credentials

After creating your app, you’ll receive:

  • API Key (also called Consumer Key)
  • API Secret (also called Consumer Secret)

These credentials will be displayed on your app’s details page.

4. Configure Environment Variables

  1. Create a .env file in the root directory of this project
  2. Add your API credentials to the file:
KITE_API_KEY=your_api_key_here
KITE_API_SECRET=your_api_secret_here

Replace your_api_key_here and your_api_secret_here with the actual credentials from step 3.

5. Install Dependencies

Make sure you have all required dependencies installed:

uv pip install kiteconnect fastapi uvicorn python-dotenv httpx

6. Install MCP config on your Claude desktop app

Install the MCP config on your Claude desktop app:

mcp install main.py

This command registers the Zerodha plugin with Claude, making all trading functionality available to the AI.

Usage

After setup, you can interact with your Zerodha account via Claude using the following features:

Authentication

Can you please check if I'm logged into my Zerodha account and authenticate if needed?

Stocks and General Trading

  • Check account margins: What are my current margins on Zerodha?
  • View portfolio holdings: Show me my current holdings on Zerodha
  • Check current positions: What positions do I currently have open on Zerodha?
  • Get quotes for symbols: What's the current price of RELIANCE and INFY on NSE?
  • Place an order: Place a buy order for 10 shares of INFY at market price on NSE
  • Get historical data: Can you show me the historical price data for SBIN for the last 30 days?

Mutual Funds

Открыть полный README на GitHub

Установка

npx -y @smithery/cli install @aptro/zerodha-mcp --client claude
Новичок в MCP? Начните с руководства на mcpskill.org →