Skip to main content
Glama
zebpay

Zebpay MCP Server

Official
by zebpay

Zebpay MCP Server

AI Trading Made Simple

Produktionsreifer TypeScript-MCP (Model Context Protocol)-Server für Zebpay-Spot- und Futures-APIs, der ausschließlich stdio-Transport verwendet. Das Model Context Protocol (MCP) ist ein Standardweg für KI-Assistenten, um sicher auf Tools und Datenquellen zuzugreifen. Es ist für MCP-Clients wie Cursor, Claude Desktop und MCP Inspector konzipiert, die über lokale Prozessausführung verbunden werden. Der Server bietet sowohl Marktdaten- als auch Handels-Workflows mit strenger Validierung, sicherer Fehlerbehandlung und entwicklerfreundlicher Beobachtbarkeit.

Was dieser Server bietet

  • Öffentliche Marktdaten-Tools (Spot + Futures)

  • Private Handels-/Kontotools (erfordert API-Anmeldedaten)

  • MCP-Ressourcen und Prompts für Agent-Workflows

  • Anfragevalidierung über Zod

  • Strukturierte Fehlerbehandlung und optionale Dateiprotokollierung

Related MCP server: Cashfree MCP Server

Funktionen

  • Nur-Stdio-MCP-Server für sichere lokale Integration mit MCP-Clients

  • Abdeckung der Spot- und Futures-APIs für öffentliche und authentifizierte Vorgänge

  • HMAC-basierter authentifizierter Anfragefluss für private Endpunkte

  • Eingabevalidierung und normalisierte MCP-Fehlerantworten

  • Wiederholungs- und Timeout-Steuerung für ausgehende Anfragen

  • Optionale strukturierte Dateiprotokollierung für Debugging und Prüfbarkeit

Unterstützte Tools

Spot (Öffentlich + Privat)

  • Marktdaten: Ticker, Orderbuch, Trades, Klines, Börseninformationen, Währungen

  • Handel: Markt-/Limit-Orders platzieren, Orders stornieren, nach Symbol stornieren, alle stornieren

  • Konto: Guthaben, offene Orders, Orderhistorie, Tradehistorie, Börsengebühr

  • Beispiel-Toolnamen:

    • zebpay_public_getTicker

    • zebpay_public_getOrderBook

    • zebpay_spot_placeMarketOrder

    • zebpay_spot_placeLimitOrder

    • zebpay_spot_getBalance

Futures (Öffentlich + Privat)

  • Marktdaten: Gesundheitsstatus, Märkte, Marktinformationen, Orderbuch, 24h-Ticker, aggregierte Trades

  • Handel/Konto: Wallet-Guthaben, Order platzieren, Margin hinzufügen/reduzieren, offene Orders, Positionen

  • Verlauf: Orderhistorie, verknüpfte Orders, Tradehistorie, Transaktionshistorie

  • Beispiel-Toolnamen:

    • zebpay_futures_public_getMarkets

    • zebpay_futures_public_getOrderBook

    • zebpay_futures_placeOrder

    • zebpay_futures_getWalletBalance

    • zebpay_futures_getPositions

Technologie-Stack

  • Node.js (ESM)

  • TypeScript

  • @modelcontextprotocol/sdk

  • undici

  • zod

Projektstruktur

src/
├── index.ts                  # Stdio MCP server entrypoint
├── mcp/                      # Tools, resources, prompts, MCP errors/logging
├── private/                  # Authenticated Zebpay clients
├── public/                   # Public market-data clients
├── security/                 # Credentials + signing helpers
├── http/                     # Shared outbound HTTP client to Zebpay APIs
├── validation/               # Schemas and validation helpers
├── utils/                    # Caching, metrics, formatting, file logging
└── types/                    # Shared response types

Voraussetzungen

  • Node.js 20+

  • npm 9+

  • Zebpay-API-Anmeldedaten (für private Tools)

  • Erstellen Sie Ihren API-Schlüssel/Geheimnis über das offizielle ZebPay-API-Portal: https://api.zebpay.com/

Erstellen eines ZebPay-API-Schlüssels

  1. Öffnen Sie das ZebPay-API-Portal: https://api.zebpay.com/

  2. Melden Sie sich bei Ihrem ZebPay-Konto an.

  3. Gehen Sie zu API Trading und klicken Sie auf Create New API Key.

  4. Geben Sie Schlüsseldetails ein:

    • Schlüsselname (z. B. zebpay-mcp-local)

    • erforderliche Berechtigungen (nur Lesen für Markt-/Kontoprüfungen, Handelsberechtigungen nur bei Bedarf)

    • optionale IP-Whitelist (für bessere Sicherheit empfohlen)

  5. Schließen Sie die OTP-Verifizierung ab.

  6. Kopieren und speichern Sie:

    • API-Schlüssel

    • Geheimschlüssel (wird nur einmal angezeigt)

Fügen Sie sie dann zu Ihrer lokalen .env-Datei hinzu:

ZEBPAY_API_KEY=your_api_key
ZEBPAY_API_SECRET=your_api_secret

Sicherheitshinweise:

  • Committen Sie API-Schlüssel/Geheimnisse niemals in Git.

  • Bevorzugen Sie API-Berechtigungen mit geringsten Rechten.

  • Rotieren Sie Schlüssel sofort, wenn sie offengelegt wurden.

Einrichtung

git clone <your-repo-url>
cd zebpay-mcp-server
npm install
cp env.example .env

Aktualisieren Sie .env (alle Werte werden aus der Umgebung gelesen; es gibt keine Fallback-Standardwerte im Code):

ZEBPAY_API_KEY=your_api_key    # Use the API key from the step above
ZEBPAY_API_SECRET=your_api_secret    # Use the Secret key from the step above
ZEBPAY_SPOT_BASE_URL=https://sapi.zebpay.com/api/v2
ZEBPAY_FUTURES_BASE_URL=https://futuresbe.zebpay.com/api/v1
ZEBPAY_MARKET_BASE_URL=https://www.zebapi.com/api/v1/market
MCP_TRANSPORTS=stdio
LOG_LEVEL=info
HTTP_TIMEOUT_MS=15000
HTTP_RETRY_COUNT=2

Erstellen und Ausführen

npm run build
npm start

Optionale Protokollierung in Datei:

npm run start:log

MCP-Client-Konfiguration (Stdio)

Beispiel-MCP-Client-Konfiguration:

{
  "mcpServers": {
    "zebpay": {
      "command": "node",
      "args": [
          "/absolute/path/to/zebpay-mcp-server/dist/index.js"
        ],
      "env": {
        "ZEBPAY_API_KEY": "YOUR_API_KEY_HERE",
        "ZEBPAY_API_SECRET": "YOUR_API_SECRET_HERE",
        "LOG_LEVEL": "info"
      }
    }
  }
}

Siehe auch: mcp-config.json.example.

Umgebungsvariablen

Variable

Erforderlich

Beschreibung

Beispielwert

ZEBPAY_API_KEY

Ja

Zebpay-API-Schlüssel (erforderlich für private Tools)

YOUR_API_KEY_HERE

ZEBPAY_API_SECRET

Ja

Zebpay-API-Geheimnis (erforderlich für private Tools)

YOUR_API_SECRET_HERE

MCP_TRANSPORTS

Ja

Muss stdio sein

stdio

ZEBPAY_SPOT_BASE_URL

Ja

Spot-API-Basis-URL

https://www.zebapi.com/api/v2

ZEBPAY_FUTURES_BASE_URL

Ja

Futures-API-Basis-URL

https://futures-api.zebpay.com/api/v1

ZEBPAY_MARKET_BASE_URL

Ja

Markt-API-Basis-URL

https://www.zebapi.com/api/v1/market

LOG_LEVEL

Ja

debug, info, warn, error

info

LOG_FILE

Nein

Dateipfad für Protokolle

logs/mcp-server.log

HTTP_TIMEOUT_MS

Ja

Timeout für ausgehende Anfragen (ms)

15000

HTTP_RETRY_COUNT

Ja

Wiederholungsanzahl für ausgehende Anfragen

2

Entwicklerbefehle

npm run build
npm test
npm run test:watch
npm run logs
npm run logs:watch
npm run logs:errors
npm run logs:stats
npm run logs:clear

Protokollierung

  • Tools und Beispiele protokollieren: scripts/README.md

  • Vollständige Protokollierungsdokumentation: docs/LOGGING.md

  • Protokolle aus Git heraushalten (logs/ wird ignoriert)

Probleme

Einen Fehler gefunden oder ein Feature anfragen?

  • Erstellen Sie ein Issue über den GitHub-Tab Issues für dieses Repository.

  • Sie können auch direkte Links verwenden, nachdem Sie <your-org> und <your-repo> ersetzt haben:

    • Fehlerbericht: https://github.com/<your-org>/<your-repo>/issues/new?template=bug_report.md

    • Feature-Anfrage: https://github.com/<your-org>/<your-repo>/issues/new?template=feature_request.md

  • Fügen Sie diese Details für eine schnellere Bearbeitung hinzu:

    • Verwendeter MCP-Client (Cursor/Claude Desktop/andere)

    • Node.js-Version und Betriebssystem

    • Minimale Reproduktionsschritte

    • Relevante Protokolle (Geheimnisse schwärzen)

Lizenz

MIT

F
license - not found
Not graded
quality - not tested
D
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    Not graded
    quality
    D
    maintenance
    A Model Context Protocol server that enables AI models to interact with the Zerodha trading platform, allowing users to execute trades, view portfolio holdings, and manage positions through a standardized interface.
    3
    MIT
  • F
    license
    Not graded
    quality
    B
    maintenance
    Enables AI tools and agents to integrate with Cashfree's payment services (Payment Gateway, Payouts, and SecureID) using the Model Context Protocol, allowing transactions and account management through natural language.
    57
    13
  • A
    license
    Not graded
    quality
    C
    maintenance
    Connects AI assistants to OKX cryptocurrency exchange for trading, market data, account management, and more via the Model Context Protocol.
    30
    MIT
  • A
    license
    Not graded
    quality
    C
    maintenance
    Enables AI assistants to securely interact with Fireblocks services through the Model Context Protocol, supporting transaction management, vault and exchange account queries, network connections, and workspace user management.
    80
    10
    MIT

View all related MCP servers

Related MCP Connectors

  • No-KYC managed MCP for AI agents: sandboxed TypeScript trading SDK, isolated sub-accounts, futures.

  • Connect your Necton account to AI via Brazil's Open Finance: balances, statements, cards, investment

  • A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…

View all MCP Connectors

Latest Blog Posts

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/zebpay/zebpay-mcp-server'

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