Binance MCP Server

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.

Integrations

  • Provides real-time market data streaming from Binance, supporting both spot and futures markets. Offers access to trade data, price statistics, order book information, candlestick data, mark prices, funding rates, and open interest information through various endpoints and WebSocket streams.

Binance MCPサーバー

WebSocket をサポートする Binance 市場データ用の Model Context Protocol (MCP) サーバー実装。

特徴

  • WebSocket経由のリアルタイム市場データストリーミング
  • スポット市場と先物市場の両方をサポート
  • 指数バックオフによる自動再接続
  • 型安全なメッセージ処理
  • 包括的なエラー処理

インストール

npm install

使用法

サーバーの起動

npm start

WebSocket ストリームの種類

次のストリーム タイプがサポートされています。

  • trade :リアルタイムの取引データ
  • ticker : 24時間ローリングウィンドウ価格変動統計
  • bookTicker : 最良の売り/買い価格と数量
  • kline : ローソク足データ
  • markPrice : マーク価格と資金調達率(先物のみ)
  • fundingRate : 資金調達率データ(先物のみ)

Claude Desktopでの使用例

// Subscribe to trade and ticker streams for BTC/USDT await server.subscribe('BTCUSDT', 'spot', ['trade', 'ticker']); // Handle incoming data server.onStreamData('BTCUSDT', 'trade', (data) => { console.log('New trade:', data); });

発達

テストの実行

npm test

建物

npm run build

ライセンス

プライベート

You must be authenticated.

A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

WebSocket 経由でリアルタイムの Binance 市場データ (スポットおよび先物) をストリーミングするサーバー実装。これにより、アプリケーションはモデル コンテキスト プロトコルを通じて暗号通貨市場情報を受信および処理できるようになります。

  1. Features
    1. Installation
      1. Usage
        1. Starting the Server
        2. WebSocket Stream Types
        3. Example Usage in Claude Desktop
      2. Development
        1. Running Tests
        2. Building
      3. License
        ID: nr5tspngbh