Skip to main content
Glama

Zerodha Kite Connect MCP Server

by manucr619

Zerodha Kite 连接 MCP 服务器

这是一个 Cloudflare Worker,用作 MCP(多云提供商)服务器,用于与 Zerodha Kite Connect API 交互。它为各种 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. 访问令牌将存储在 KV 命名空间中,以供后续 API 调用

安全

  • 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.

Cloudflare Worker 为 Zerodha 交易功能提供 RESTful API 接口,使用户能够进行身份验证、访问个人资料信息、管理订单以及查看持股和头寸。

  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