Provides tools for fetching Binance trading data including OHLCV data for spot and futures markets, mark prices, funding rates, and open interest information.
MCP Binance (TypeScript)
A minimal Model Context Protocol (MCP) server exposing tools to fetch Binance data. Tools:
get_ohlcv
(spot/futures)get_mark_price
get_funding_rate
(futures)get_open_interest
(futures, simple endpoint)
Quick start (VPS)
HTTP JSON-RPC endpoint
POST
http://<host>:<port>/rpc
Headers:
Content-Type: application/json
,Authorization: Bearer <AUTH_TOKEN>
(if set)Body:
{"jsonrpc":"2.0","id":1,"method":"tools/list"}
{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"get_ohlcv","arguments":{...}}}
Register in ChatGPT (custom connector)
Add a new MCP connector and point it to your HTTP endpoint (or run with TRANSPORT=stdio for local/desktop hosts).
The model will call
tools/list
to discover the schema, thentools/call
with arguments.
Security
Set
AUTH_TOKEN
in.env
and configure your reverse proxy (Nginx) with TLS.Keep any exchange API keys read-only and in environment variables.
Systemd unit (example)
See deploy/mcp-binance.service
Nginx reverse proxy (example)
See deploy/nginx.conf
This server cannot be installed
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.
Enables 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.