cancel_all_orders
Cancels every open order for one trading pair, on mainnet or testnet
Read Binance market data and your own account, and place or cancel orders — with a testnet switch so you can rehearse first.
LABSCO SUMMARY
Because the same tools run against the testnet or the live exchange depending on one variable, a strategy or an assistant's behaviour can be exercised end to end — orders placed, checked, cancelled — before any of it touches real money. Two things worth setting up deliberately: cancel_all_orders clears every open order on the symbol with no confirmation step, and the Binance API key's own permissions are the real safety boundary, so a read-only key is the right choice for anything that should only be looking.
A Binance exchange server covering market data, account state and order placement. One environment variable decides whether it talks to the testnet or to the live exchange with real funds.
A Binance account with API credentials: BINANCE_API_KEY and BINANCE_API_SECRET. BINANCE_TESTNET="true" points everything at the testnet — set to "false", orders are real. It runs as npx binance-mcp-server, or from a global npm install. What the key is permitted to do at Binance bounds the tools: a read-only key leaves market data and account reads working and orders failing. Documentation is available in English, Chinese and Japanese.
One command plus a key — npm install -g binance-mcp-server, then supply credentials
USE CASES
Read the current price, the 24-hour statistics, and the order book depth for the pair.
Point it at the testnet, place the order, look at what is open, and cancel it — the same calls you would use live.
Read the account balances alongside the orders still working.
Pull the order history for the symbol and compare it against the candles from the same period.
Cancel everything working on that symbol in one call, then confirm nothing is left open.
Counted once with only startup setup. Other versions, modes or optional credentials may expose a different list.
cancel_all_ordersCancels every open order for one trading pair, on mainnet or testnet
cancel_orderCancels one order by ID, on mainnet or testnet
get_24hr_tickerReturns 24-hour price change statistics for a trading pair
get_account_infoReturns account information and balances
get_klinesReturns historical candlestick data for a trading pair at a given interval
get_open_ordersReturns the currently open orders, optionally for one trading pair
get_order_historyReturns past orders for a trading pair, up to a requested limit
get_orderbookReturns order book depth for a trading pair, up to the requested limit
get_priceReturns the current price for one trading pair
place_orderPlaces an order on either mainnet or testnet; mainnet orders use real funds
BEFORE YOU INSTALL
10 tools when we connected. BINANCE_TESTNET="true" runs the three trading tools against virtual funds; "false" or unset trades real money. A Chinese design document calls trading testnet-only, but the shipped package supports mainnet.
All 4 documented clients run the server on your machine.
CONTEXT COST
Rated by the size of the 10 tool definitions that ride along on every turn, not by how many there are
INSTALLATION
npm install -g binance-mcp-server{
"mcpServers": {
"binance": {
"command": "npx",
"args": [
"binance-mcp-server"
],
"env": {
"BINANCE_API_KEY": "<YOUR_BINANCE_API_KEY>",
"BINANCE_API_SECRET": "<YOUR_BINANCE_API_SECRET>",
"BINANCE_TESTNET": "false"
}
}
}
}claude mcp add binance --env BINANCE_API_KEY=<YOUR_BINANCE_API_KEY> --env BINANCE_API_SECRET=<YOUR_BINANCE_API_SECRET> --env BINANCE_TESTNET=false -- npx -y binance-mcp-server