Zerodha Trading MCP

MIT License
1

Integrations

  • Enables interaction with the Zerodha trading platform, providing tools for executing trades, viewing portfolio holdings, checking open positions, placing buy/sell orders, and accessing user profile information.

Zerodha トレーディング MCP

AIモデルがZerodha取引プラットフォームと連携できるようにするモデルコンテキストプロトコル(MCP)サーバー。このプロジェクトは、標準化されたインターフェースを通じて、Zerodha上で取引の実行、ポートフォリオの閲覧、ポジション管理を行うためのツールセットを提供します。

特徴

  • 🔐 Zerodha API による安全な認証
  • 📊 ポートフォリオ保有状況を見る
  • 📈 空きポジションを確認する
  • 💹 売買注文を出す
  • 👤 ユーザープロフィール情報にアクセスする

前提条件

  • Node.js (v14以上)
  • Zerodha取引口座
  • ZerodhaからのAPI認証情報

インストール

  1. リポジトリをクローンします。
git clone https://github.com/shubhamprajapati7748/zerodha-trade-mcp.git cd zerodha-trade-mcp
  1. 依存関係をインストールします:
npm install
  1. Zerodha の資格情報を使用して、ルート ディレクトリに.envファイルを作成します。
KITE_API_KEY=your_api_key KITE_SECRET_KEY=your_secret_key REQUEST_TOKEN=your_request_token ACCESS_TOKEN=your_access_token

クロードデスクトップMCP構成

Claude DesktopでこのMCPサーバーを使用するには、MCPサーバーの詳細を設定する必要があります。設定方法は次のとおりです。

  1. プロジェクトルートにあるclaude_desktop_config.jsonを開きます。
  2. 次の構成を追加します。
{ "mcpServers": { "tradeStocks": { "command": "/opt/homebrew/bin/bun", "args": [ "/path/to/your/index.ts" ], "env": { "KITE_API_KEY": "your_api_key", "KITE_SECRET_KEY": "your_secret_key", "REQUEST_TOKEN": "your_request_token", "ACCESS_TOKEN": "your_access_token" } } } }

必ず次の点に注意してください:

  • index.tsファイルへのパスを更新します
  • 環境変数を実際のZerodhaの資格情報に置き換えます

使用法

MCP サーバーは次のツールを提供します。

プロフィールを取得

get-profile

Zerodha からユーザーのプロフィール情報を取得します。

株式を購入する

buy-stock {stock: string, quantity: number}

指定された在庫と数量の購入注文を出します。

株式を売る

sell-stock {stock: string, quantity: number}

指定された株式と数量の売り注文を出します。

ポートフォリオを表示

show-portfolio

ユーザーの完全なポートフォリオ保有状況を表示します。

ポジションを表示

show-positions

ユーザーのオープンポジションを表示します。

発達

このプロジェクトは以下を使用して構築されます:

  • タイプスクリプト
  • カイトコネクトAPI
  • モデルコンテキストプロトコル(MCP)SDK
  • スキーマ検証のためのZod

貢献

貢献を歓迎します!お気軽にプルリクエストを送信してください。

ライセンス

このプロジェクトは MIT ライセンスに基づいてライセンスされています - 詳細については LICENSE ファイルを参照してください。

免責事項

このプロジェクトは教育目的のみに使用されます。金融市場での取引には大きなリスクが伴います。必ずご自身で調査を行い、責任ある取引を行ってください。

-
security - not tested
A
license - permissive license
-
quality - not tested

AI モデルが Zerodha 取引プラットフォームと対話できるようにするモデル コンテキスト プロトコル サーバー。これにより、ユーザーは標準化されたインターフェースを通じて取引を実行し、ポートフォリオの保有状況を表示し、ポジションを管理できます。

  1. 特徴
    1. 前提条件
      1. インストール
        1. クロードデスクトップMCP構成
          1. 使用法
            1. プロフィールを取得
            2. 株式を購入する
            3. 株式を売る
            4. ポートフォリオを表示
            5. ポジションを表示
          2. 発達
            1. 貢献
              1. ライセンス
                1. 免責事項

                  Related MCP Servers

                  • A
                    security
                    A
                    license
                    A
                    quality
                    A Model Context Protocol server implementation that enables AI assistants to interact with the Paradex perpetual futures trading platform, allowing for retrieving market data, managing trading accounts, placing orders, and monitoring positions.
                    Last updated -
                    28
                    4
                    Python
                    MIT License
                    • Linux
                    • Apple
                  • A
                    security
                    F
                    license
                    A
                    quality
                    A Model Context Protocol server that enables AI assistants to interact with the Deriv trading API, providing access to active trading symbols and account balance information.
                    Last updated -
                    2
                    Python
                    • Apple
                  • -
                    security
                    F
                    license
                    -
                    quality
                    A Model Context Protocol server that enables AI assistants to access Flow blockchain data and perform operations such as checking balances, resolving domains, executing scripts, and submitting transactions.
                    Last updated -
                    JavaScript
                    • Linux
                    • Apple
                  • -
                    security
                    A
                    license
                    -
                    quality
                    A production-ready Model Context Protocol server implementation that connects AI assistants to the TON blockchain, allowing them to query wallet balances, transaction details, smart contracts, and other blockchain data.
                    Last updated -
                    TypeScript
                    MIT License

                  View all related MCP servers

                  ID: 256r0s5zde