Binance MCP Server

by qeinfinity

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

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.

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
        2. WebSocket Stream Types
        3. Example Usage in Claude Desktop
      2. Development
        1. Running Tests
        2. Building
      3. License

        Related MCP Servers

        • A
          security
          A
          license
          A
          quality
          A Model Context Protocol server that provides read-only access to Bybit's cryptocurrency exchange API, allowing users to query real-time cryptocurrency data using natural language.
          Last updated -
          9
          5
          TypeScript
          MIT License
        • A
          security
          F
          license
          A
          quality
          A Model Context Protocol server that provides access to CoinMarketCap's cryptocurrency data, enabling AI applications to retrieve cryptocurrency listings, quotes, and detailed information.
          Last updated -
          3
          10
          Python
          • Linux
          • Apple
        • A
          security
          A
          license
          A
          quality
          A Model Context Protocol (MCP) server that provides comprehensive cryptocurrency analysis using the CoinCap API. This server offers real-time price data, market analysis, and historical trends through an easy-to-use interface. Updated to use Coin Cap API v3
          Last updated -
          3
          37
          TypeScript
          MIT License
          • Apple
        • -
          security
          A
          license
          -
          quality
          A Model Context Protocol server that exposes Binance cryptocurrency exchange data to LLMs, allowing agents to access real-time prices, order books, and historical market data without requiring API keys.
          Last updated -
          4
          Python
          MIT License

        View all related MCP servers

        ID: nr5tspngbh