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 Server

A Model Context Protocol (MCP) server implementation for Binance market data with WebSocket support.

Features

  • Real-time market data streaming via WebSocket
  • Support for both spot and futures markets
  • Automatic reconnection with exponential backoff
  • Type-safe message handling
  • Comprehensive error handling

Installation

npm install

Usage

Starting the Server

npm start

WebSocket Stream Types

The following stream types are supported:

  • trade: Real-time trade data
  • ticker: 24-hour rolling window price change statistics
  • bookTicker: Best bid/ask price and quantity
  • kline: Candlestick data
  • markPrice: Mark price and funding rate (futures only)
  • fundingRate: Funding rate data (futures only)

Example Usage in 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); });

Development

Running Tests

npm test

Building

npm run build

License

Private

You must be authenticated.

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

A server implementation that streams real-time Binance market data (spot and futures) via WebSockets, enabling applications to receive and process cryptocurrency market information through the Model Context Protocol.

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