Skip to main content
Glama

Zerodha Kite Connect MCP Server

by manucr619

Zerodha Kite Connect MCP サーバー

これは、Zerodha Kite Connect APIと連携するためのMCP(マルチクラウドプロバイダー)サーバーとして機能するCloudflare Workerです。Zerodhaの様々な取引機能へのRESTful APIインターフェースを提供します。

特徴

  • Zerodhaによる認証
  • ユーザープロフィール情報
  • マージンと資金
  • 保有資産とポジション
  • 注文の配置と管理
  • 機器の詳細

設定

前提条件

  • Zerodha Kite Connect API 資格情報 (API キーとシークレット)
  • Cloudflareアカウント

展開

  1. このリポジトリをクローンする
  2. 依存関係をインストールします:
    npm install
  3. 設定ファイルを作成します。
    cp wrangler.jsonc.example wrangler.jsonc
  4. wrangler.jsoncファイルで Zerodha API 資格情報を設定します。
    • ZERODHA_API_KEYZERODHA_API_SECRET値を更新する
    • 注: このファイルは、機密情報のコミットを防ぐためにgitignoredされています。
  5. Cloudflare で KV 名前空間を作成します。
    wrangler kv:namespace create ZERODHA_KV
  6. KV名前空間IDを使用してwrangler.jsoncファイルを更新する
  7. ワーカーをデプロイします。
    npm run deploy

APIエンドポイント

  • GET /api/login - Zerodhaログインページにリダイレクトします
  • POST /api/session - リクエストトークンをアクセストークンと交換する
  • GET /api/profile - ユーザープロファイルを取得する
  • GET /api/margins - ユーザーのマージンを取得する
  • GET /api/holdings - ユーザーの保有資産を取得する
  • GET /api/orders - ユーザーの注文を取得する
  • POST /api/orders - 新しい注文を出す
  • GET /api/positions - ユーザーの位置を取得する
  • GET /api/instruments?exchange=NSE - 特定の取引所の銘柄を取得する

認証フロー

  1. ユーザーを/api/loginにリダイレクトする
  2. ログインに成功すると、Zerodhaはrequest_tokenを使用して登録されたリダイレクトURLにリダイレクトします。
  3. アクセストークンを取得するには、 request_tokenを指定して/api/sessionに POST リクエストを送信します。
  4. アクセストークンは、後続のAPI呼び出しのためにKV名前空間に保存されます。

安全

  • APIキーとシークレットは、Cloudflare環境変数またはKV名前空間に安全に保存されます。
  • CORSヘッダーが適切に設定されている
  • アクセストークンは安全に管理されます

発達

ワーカーをローカルで実行するには:

npm run dev

ライセンス

マサチューセッツ工科大学

-
security - not tested
-
license - not tested
-
quality - not tested

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

Zerodha 取引機能に RESTful API インターフェイスを提供する Cloudflare Worker。これにより、ユーザーは認証、プロフィール情報へのアクセス、注文の管理、保有資産とポジションの表示を行うことができます。

  1. 特徴
    1. 設定
      1. 前提条件
      2. 展開
    2. APIエンドポイント
      1. 認証フロー
        1. 安全
          1. 発達
            1. ライセンス

              Related MCP Servers

              • -
                security
                A
                license
                -
                quality
                A lightweight MCP server that interacts with the Neon REST API, deployable on Cloudflare Workers for streamlined database management and integration.
                Last updated -
                5
                TypeScript
                MIT License
              • -
                security
                A
                license
                -
                quality
                Integrates Zerodha's trading platform with Claude AI using the Multi-Cloud Plugin framework, allowing users to interact with their Zerodha trading account directly through Claude for stock trading and mutual fund operations.
                Last updated -
                2
                Python
                MIT License
              • -
                security
                F
                license
                -
                quality
                A modern AI service proxy that enables interaction with multiple AI providers (Anthropic Claude, OpenAI) through a unified API, deployed globally using Cloudflare Workers.
                Last updated -
                13
                TypeScript
              • -
                security
                F
                license
                -
                quality
                A Model Context Protocol server that runs on Cloudflare Workers with OAuth login, allowing AI assistants like Claude to execute tools remotely through HTTP connections.
                Last updated -
                TypeScript

              View all related MCP servers

              MCP directory API

              We provide all the information about MCP servers via our MCP API.

              curl -X GET 'https://glama.ai/api/mcp/v1/servers/manucr619/zerodha-mcp'

              If you have feedback or need assistance with the MCP directory API, please join our Discord server