Overview
What is Binance MCP Server?
Binance MCP Server is a Model Context Protocol (MCP) server that provides real-time Binance market data via WebSocket streaming. It supports both spot and futures markets, with automatic reconnection and comprehensive error handling, intended for use with MCP clients like Claude Desktop.
How to use Binance MCP Server?
Install with npm install, start the server with npm start, then connect an MCP client. Subscribe to streams using the subscribe method (e.g., await server.subscribe('BTCUSDT', 'spot', ['trade', 'ticker'])) and handle incoming data via the onStreamData callback.
Key features of Binance MCP Server
- 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
Use cases of Binance MCP Server
- Monitor real-time trade data for any symbol
- Track 24‑hour rolling price change statistics
- Display best bid/ask price and quantity
- Stream candlestick (kline) data for charting
- Retrieve mark price and funding rate for futures
FAQ from Binance MCP Server
What stream types are supported?
Supported stream types: trade, ticker, bookTicker, kline, markPrice (futures only), and fundingRate (futures only).
Does it support both spot and futures markets?
Yes, the server supports both spot and futures market data. Some streams like markPrice and fundingRate are futures-only.
How does automatic reconnection work?
The server automatically reconnects with exponential backoff in case of WebSocket disconnection, ensuring continuous data flow.
How do I subscribe to a stream and get live data?
Use server.subscribe(symbol, market, streams) to subscribe, and attach a callback with server.onStreamData(symbol, streamType, handler) to receive incoming data.
Is Binance MCP Server for trading orders?
No, it only provides market data streaming. It does not support placing or managing orders.