Binance MCP Server
Provides real-time market data for Binance USDⓈ-M Futures, including price, 24-hour ticker, order book, recent trades, and kline data via WebSocket.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Binance MCP ServerWhat's the current BTCUSDT price and recent trades?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Binance MCP Server — Railway / USDⓈ-M Futures Edition
MCP server for Binance USDⓈ-M Futures public market data.
Why this version is different
The original project used Binance Spot REST (api.binance.com) and legacy
WebSocket URLs. That is a poor fit for a Railway deployment that receives
HTTP 451 from Binance.
This version uses Binance's current USDⓈ-M Futures WebSocket architecture:
Market data:
wss://fstream.binance.com/marketHigh-frequency public depth:
wss://fstream.binance.com/public
The server maintains an in-memory live cache and exposes MCP tools over Streamable HTTP.
Related MCP server: MCP Binance
Important limitation
This build intentionally does not depend on Binance REST for live public data.
Therefore:
get_price,get_24hr_ticker,get_order_book,get_book_ticker,get_recent_trades, andget_aggregate_tradesare live WebSocket-backed.get_recent_tradesmeans trades received since the collector connected.The order book is a top-5/10/20 partial depth stream, not a full local order-book reconstruction.
get_historical_pricescurrently exposes the rolling 1-minute live kline cache, not arbitrary historical Binance candles.Historical REST-only tools return a clear error instead of silently failing.
Railway
Build:
docker build .Start:
python run_server.pyRailway should expose the MCP endpoint at:
https://YOUR-DOMAIN/mcpThe server reads Railway's PORT environment variable automatically.
Recommended Spark test
Ask Gemini Spark:
Using the Binance MCP, analyze BTCUSDT Futures right now. Call get_price, get_24hr_ticker, get_order_book(depth=10), get_recent_trades(limit=20), get_book_ticker, and subscribe_to_trade_stream. Report exactly which tools succeeded and show the returned market data.
The first call may take a few seconds while the WebSocket collectors connect.
Source architecture
Gemini Spark
|
v
Railway MCP /mcp
|
+--> Market WS
| wss://fstream.binance.com/market/stream
| ticker + aggTrade + bookTicker + kline_1m
|
+--> Public Depth WS
wss://fstream.binance.com/public/ws/<symbol>@depth20@100msThis server cannot be deployed
Maintenance
Related MCP Connectors
Binance Futures market intelligence: funding, OI, order book, klines, cross-exchange comparison.
Real-time crypto market data: candles, tickers, orderbooks across 13+ exchanges via MCP.
Public Gate market data MCP for spot, futures, margin, options, delivery, earn, and alpha.
Binance - 340 tools for market data, order books, and trading pairs
Related MCP Servers
- AlicenseCqualityDmaintenanceA 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.6185 npm20MIT
- -licenseNot gradedqualityDmaintenanceEnables users to fetch real-time cryptocurrency market data from Binance including OHLCV prices, mark prices, funding rates, and open interest for both spot and futures markets. Provides easy access to Binance trading data through a simple JSON-RPC interface.-
- AlicenseNot gradedqualityDmaintenanceProvides real-time cryptocurrency market data from Binance API, including price queries, 24h statistics, K-line data, market trend analysis, and order book depth information for trading analysis.8 npm1MIT
- FlicenseNot gradedqualityDmaintenanceProvides access to AsterDex perpetual futures market data including real-time order books, candlestick charts, funding rates, and price statistics for cryptocurrency trading pairs.-