home / mcp / binance mcp server
Unofficial tools and server implementation for Binance's Model Context Protocol (MCP). Designed to support developers building crypto trading AI Agents.
Configuration
View docs{
"mcpServers": {
"analyticace-binance-mcp-server": {
"command": "binance-mcp-server",
"args": [
"--api-key",
"your_api_key",
"--api-secret",
"your_secret",
"--binance-testnet"
],
"env": {
"BINANCE_API_KEY": "your_api_key_here",
"BINANCE_TESTNET": "true",
"BINANCE_API_SECRET": "your_api_secret_here"
}
}
}
}You run a Binance MCP Server to let AI assistants perform trading, market data access, and account management on Binance through a standardized MCP interface. It acts as a bridge between AI clients and your Binance account, enabling you to check prices, view balances, and place trades securely through an automated workflow.
Set up your MCP client to connect to the Binance server you run locally or remotely. You will configure your MCP client to reference the server under the name you provide (for example, binance). Once connected, you can request real-time prices, balances, and trading actions such as market or limit orders. The server handles authentication with your Binance account using your API credentials and executes actions on your behalf, returning results to your AI agent.
Prerequisites: you need Python installed on your system to install the Binance MCP Server package.
python3 --version
```
```bash
pip install binance-mcp-serverPrepare your Binance API credentials and an optional testnet setting to safely develop and test.
# Required: Your Binance API credentials
export BINANCE_API_KEY="your_api_key_here"
export BINANCE_API_SECRET="your_api_secret_here"
# Optional: Use testnet for development and safe testing
export BINANCE_TESTNET="true"Start the Binance MCP Server using the standard runtime command shown in the practical setup. The server accepts your API key, secret, and an optional testnet flag as command-line arguments.
binance-mcp-server \
--api-key "your_api_key" \
--api-secret "your_api_secret" \
--binance-testnetAdd a configuration entry for the Binance MCP Server in your MCP client settings. The example below shows naming the server binance and pointing to the local server executable with your credentials embedded.
{
"mcpServers": {
"binance": {
"command": "binance-mcp-server",
"args": [
"--api-key", "your_api_key",
"--api-secret", "your_api_secret",
"--binance-testnet"
]
}
}
}Retrieve account balances for all assets.
Take a point-in-time snapshot of the account state.
Fetch trading fee rates (maker/taker).
List all tradable cryptocurrencies.
Obtain the current price for a given trading symbol.
Get 24-hour ticker change statistics.
Return the current order book with bids and asks.
Place buy or sell orders (market, limit, etc.).
List order history for a specific symbol.
Calculate profit and loss for futures trading.
Open futures position details.
Fetch deposit address for a cryptocurrency.
Retrieve deposit history for a cryptocurrency.
Retrieve withdrawal history for a cryptocurrency.
Show past liquidation events for futures.