
aptro/zerodha-mcp
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
aptro/zerodha-mcp は [https://github.com/aptro/zerodha-mcp.] からインポートされた MCP サーバーの候補です
概要
aptro/zerodha-mcp は [https://github.com/aptro/zerodha-mcp.] からインポートされた MCP サーバーの候補です
概要(AI 翻訳)
このプロジェクトは、マルチクラウドプラグイン(MCP)フレームワークを使用して、Zerodhaの取引プラットフォームとClaude AIを統合し、Claudeを通じて直接Zerodha取引アカウントとやり取りすることができます。
セットアップ手順
##Smitheryでインストールする
スミサリーを介して自動的にクロードデスクトップ用のゼロダムクプをインストールするには:
##1. Zerodha開発者アカウントの作成
1。 Kite Connectにアクセスし、開発者アカウントにサインアップ 2. 開発者にアカウントにログインします。 カイト。 トレード
##2. 新しいアプリを作成する
1。 Kite Developerダッシュボードの「アプリ」セクションに移動 2. 「新規アプリを作成する」をクリック 3. 必須の細部で満たして下さい:
- アプリケーション名: 記述名を選択してください(例: “Claude Zerodha Integration”)
- アプリカテゴリ:「個人」または適切なカテゴリを選択します。
- リダイレクトURL:[
http://127.0.0.1:5000/zerodha/auth/redirectに設定 - 説明:アプリケーションの目的を簡潔に記述します 4。 フォームを送信して、アプリを作成する
##3. API認証情報の取得
アプリを作成したら、次のようになります。
- APIキー(Consumer Keyとも呼ばれる)
- APIシークレット(消費者シークレットとも呼ばれる)
これらの資格情報は、アプリの詳細情報ページに表示されます。
##4. 環境変数の設定
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。
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
- Go to Kite Connect and sign up for a developer account
- Log in to your account at developers.kite.trade
2. Create a New App
- Navigate to the “Apps” section in your Kite Developer dashboard
- Click on “Create a new app”
- 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
- 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
- Create a
.envfile in the root directory of this project - 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
インストール
npx -y @smithery/cli install @aptro/zerodha-mcp --client claude