Binance MCP
Provides a security-first MCP interface to Binance, enabling public market-data requests across Spot, USDⓈ-M Futures, COIN-M Futures, Options, and Portfolio Margin, as well as GET-only signed account access and optional order management when explicitly enabled.
Click on "Install 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 MCPWhat's the current Bitcoin price?"
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
A security-first Model Context Protocol server for Binance.
It provides one compact surface instead of mirroring hundreds of Binance endpoints as individual MCP tools:
binance_public_request— GET any public Spot, USDⓈ-M Futures, COIN-M Futures, Options, or Portfolio Margin REST path.binance_account_request— signed GET-only account access using credentials stored on the server.binance_order_request— standard create/cancel Spot, Futures, and Options order operations, disabled unless the deployment explicitly enables trading.binance_auth_status— redacted capability status. It never returns secrets.
The generic public request tool keeps pace with Binance adding new market-data endpoints without forcing a new MCP schema for every endpoint.
Security model
There are two independent authentication boundaries:
MCP client → Binance MCP uses the owner-approved OAuth model from the NsTut MCP stack: authorization code flow, PKCE S256, dynamic client registration, short-lived access tokens, rotating refresh tokens, persisted hashed grants, strict redirect validation, and fail-closed MCP access.
Binance MCP → Binance uses a Binance API key plus HMAC secret, Ed25519 private key, or RSA private key. Credentials stay server-side and are never returned by tools.
Binance Login OAuth2 is not used for ordinary self-hosting because Binance currently limits that program to approved ecosystem partners. If Binance broadens access later, it can be added as another credential provider without changing the MCP OAuth boundary.
Safe defaults
MCP refuses protected requests when OAuth is not configured.
Account access is GET-only.
Trading is disabled unless
BINANCE_TRADING_ENABLED=trueis set by the deployment owner.Withdrawals are intentionally unsupported.
Full URLs are rejected. Requests are pinned to known Binance API hosts.
recvWindowdefaults to 5000 ms and may not exceed 60000 ms.Non-ASCII request parameters are percent-encoded before signing, matching current Binance signed-endpoint requirements.
Secret/key files are excluded by
.gitignoreand.dockerignore.
For account keys, prefer a dedicated Binance API key with only the permissions you need and IP restrictions where practical. Binance recommends Ed25519 keys for performance and security.
Related MCP server: binance-mcp
Supported API hosts
Product | Base URL |
Spot and SAPI |
|
USDⓈ-M Futures |
|
COIN-M Futures |
|
Options |
|
Portfolio Margin |
|
Portfolio Margin reads use product = portfolio_margin. Its UM, CM, and margin order families use different paths, so they are deliberately not collapsed into the standard binance_order_request tool.
Example public call:
product = spot
path = /api/v3/ticker/price
params = {"symbol":"BTCUSDT"}Example account call:
product = spot
path = /api/v3/account
params = {"omitZeroBalances":true}Configuration
Copy .env.example and provide the MCP OAuth values. For Binance account access, configure BINANCE_API_KEY and one signer:
BINANCE_API_SECRETfor HMAC, orBINANCE_PRIVATE_KEY_PATHfor Ed25519/RSA PEM, optionally withBINANCE_PRIVATE_KEY_PASSPHRASE.
Do not paste Binance credentials into a chat conversation or commit them to Git.
Local run
python -m venv .venv
. .venv/bin/activate
pip install -e '.[test]'
pytest
uvicorn main:app --host 127.0.0.1 --port 8080The MCP endpoint is /mcp/; health is /health.
Docker
docker build -t binance-mcp .
docker run --rm -p 8080:8080 --env-file .env binance-mcpMount /app/data persistently so OAuth grants survive container replacement. If using an asymmetric Binance key, mount the private key read-only and point BINANCE_PRIVATE_KEY_PATH at it.
CI/CD
This public repository intentionally contains no GitHub Actions workflows and no production deployment configuration. NsTut's CI/CD lives in the private UpperMoon0/NsTut-CICD repository so deployment credentials, runner policy, and infrastructure topology stay outside the public source tree.
Scope
The public reader intentionally exposes REST GET endpoints rather than WebSocket streams. Account User Data Streams can be added later as bounded MCP resources if a concrete use case needs event streaming.
This project is not affiliated with or endorsed by Binance.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.
No tool schema history has been recorded yet.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
Governed MCP gateway: one endpoint for your tools, with credential custody and audit log.
Real-time crypto market data: candles, tickers, orderbooks across 13+ exchanges via MCP.
Binance - 340 tools for market data, order books, and trading pairs
Trade 16 crypto exchanges + MetaTrader 5 from your AI assistant via one MCP connection.
Related MCP Servers
- AlicenseAqualityCmaintenanceMCP server for Binance USDT-M Futures trading — exposes tools for market data, account state, order management, and position/margin control.236Apache 2.0
- AlicenseAqualityBmaintenanceMCP server for Binance market data, account insights, and Convert workflows.1024MIT
- FlicenseNot gradedqualityDmaintenanceProvides cryptocurrency market data, account management, and trading on Binance USDT-M perpetual contracts via MCP, with a local audit system for transaction recording.-
- FlicenseNot gradedqualityDmaintenanceHosted MCP server that provides agent-ready access to Binance APIs, with tools mapped 1:1 to real endpoints, no auth required, supporting crypto trading and market data operations via natural language.-
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/UpperMoon0/Binance-MCP'
If you have feedback or need assistance with the MCP directory API, please join our Discord server