Binance MCP Server
Provides tools to interact with the Binance Spot REST API, including price queries, candlestick data, order book, account balances, trading (place/cancel orders), and withdrawal (disabled by default). Designed for AI agents to manage Binance spot trading operations.
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 MCP Serverwhat's the current price of BTCUSDT?"
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
Servidor MCP (Model Context Protocol) que le da a Claude (u otro cliente MCP) acceso a la REST API de Binance Spot: consultar precios, velas, balances, y operar — con los retiros desactivados por defecto por seguridad.
An MCP server that gives Claude (or any MCP client) access to the Binance Spot REST API: prices, candlesticks, balances, and trading — with withdrawals disabled by default for safety.
🇪🇸 Español
¿Qué es esto?
Un servidor MCP en Python que expone la API de Binance Spot como herramientas (tools) que un modelo como Claude puede invocar en lenguaje natural. Le preguntas "¿a cuánto está el BTC?" o "compra 0.01 ETH" y el modelo llama a la herramienta correspondiente.
Seguridad primero 🔒
Mover dinero con un LLM es delicado, así que el servidor está diseñado a la defensiva:
Retiros desactivados a nivel de código.
withdrawno hace nada salvo que pongasENABLE_WITHDRAWALS=truey la API key tenga permiso de retiro. La recomendación es no dárselo.Testnet por defecto (
BINANCE_TESTNET=true): prueba contra el entorno de pruebas de Binance antes de tocar fondos reales.Firma HMAC SHA256 en cada request privado, igual que exige Binance.
Recomendado: crear la API key sin permiso de retiro y con IP whitelist.
Herramientas disponibles
Herramienta | Tipo | Descripción |
| pública | Precio actual de un símbolo ( |
| pública | Estadísticas 24h: volumen, cambio %, máx/mín |
| pública | Velas / candlesticks ( |
| pública | Libro de órdenes (bids/asks) |
| firmada | Balances y permisos de tu cuenta spot |
| firmada | Órdenes abiertas |
| firmada | Tu historial de trades |
| firmada | Crea orden |
| firmada | Cancela una orden por |
| firmada | Cancela todas las órdenes de un símbolo |
| firmada | Retiro (desactivado por defecto) |
Instalación
Requiere uv (gestor de paquetes de Python).
git clone https://github.com/Lubodi-Code/binance-mcp.git
cd binance-mcp
uv syncConfiguración
Copia .env.example a .env y rellena tus claves de Binance:
cp .env.example .envBINANCE_API_KEY=tu_api_key
BINANCE_API_SECRET=tu_secret
BINANCE_TESTNET=true # empieza siempre en testnet
ENABLE_WITHDRAWALS=false # no lo cambies salvo que sepas lo que hacesPara el testnet de spot, genera tus claves en https://testnet.binance.vision
Conectarlo a Claude Desktop
Añade esto a tu claude_desktop_config.json:
{
"mcpServers": {
"binance": {
"command": "uv",
"args": ["--directory", "/ruta/absoluta/a/binance-mcp", "run", "server.py"],
"env": {
"BINANCE_API_KEY": "tu_api_key",
"BINANCE_API_SECRET": "tu_secret",
"BINANCE_TESTNET": "true"
}
}
}
}Reinicia Claude Desktop y pídele, por ejemplo: "¿a cuánto está el BTC y cómo se movió en las últimas 24h?"
Related MCP server: Binance MCP Server
🇬🇧 English
What is this?
A Python MCP server that exposes the Binance Spot API as tools an LLM like Claude can call from natural language. Ask "what's the BTC price?" or "buy 0.01 ETH" and the model invokes the right tool.
Safety first 🔒
Moving money with an LLM is risky, so the server is defensive by design:
Withdrawals disabled in code.
withdrawis a no-op unless you setENABLE_WITHDRAWALS=trueand the API key has withdraw permission. The recommendation is not to grant it.Testnet by default (
BINANCE_TESTNET=true): test against Binance's sandbox before touching real funds.HMAC SHA256 signing on every private request, as Binance requires.
Recommended: create the API key without withdraw permission and with an IP whitelist.
Available tools
Tool | Type | Description |
| public | Current price of a symbol ( |
| public | 24h stats: volume, % change, high/low |
| public | Candlesticks ( |
| public | Order book (bids/asks) |
| signed | Spot account balances & permissions |
| signed | Open orders |
| signed | Your trade history |
| signed | Create a |
| signed | Cancel an order by |
| signed | Cancel all orders for a symbol |
| signed | Withdraw (disabled by default) |
Install
Requires uv.
git clone https://github.com/Lubodi-Code/binance-mcp.git
cd binance-mcp
uv sync
cp .env.example .env # then fill in your keysRun
uv run server.pyThen wire it into Claude Desktop's claude_desktop_config.json (see the Spanish section above for the exact config block).
⚠️ Disclaimer
Este proyecto es educativo. Operar con criptomonedas conlleva riesgo financiero. El autor no se hace responsable de pérdidas. Úsalo bajo tu propia responsabilidad y empieza siempre en testnet.
This project is for educational purposes. Crypto trading carries financial risk. The author is not liable for any losses. Use at your own risk and always start on testnet.
Stack
Python 3.10+ · MCP SDK (FastMCP) · httpx · uv
License
MIT — see LICENSE.
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.
Latest Blog Posts
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/Lubodi-Code/binance-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server