- Home
- MCP servers
- Binance
Binance
- typescript
19
GitHub Stars
typescript
Language
6 months ago
First Indexed
2 months ago
Catalog Refreshed
Documentation & install
Readme and setup notes from the catalogue, plus a client-ready config you can copy for your MCP host.
Installation
Add the following to your MCP client configuration file.
Configuration
View docs{
"mcpServers": {
"ethancod1ng-binance-mcp-server": {
"command": "npx",
"args": [
"binance-mcp-server"
],
"env": {
"BINANCE_API_KEY": "your_api_key",
"BINANCE_TESTNET": "false",
"BINANCE_API_SECRET": "your_api_secret"
}
}
}
}You can run a Binance MCP Server to expose Binance exchange API functionality to MCP-enabled clients. This lets you fetch market data, manage accounts, and place or cancel trades through your own local MCP instance, enabling smooth integration with Claude Code and other MCP-enabled tools.
How to use
Connect to the Binance MCP Server from your MCP client by launching the MCP server as a local process and pointing your client to the appropriate command, environment, and startup options. You will be able to access market data endpoints, account information, and trading actions through the MCP interface. Use the provided tools to get current prices, order books, K-line data, and 24-hour statistics, or manage orders and balances as needed.
How to install
npm install -g binance-mcp-server
Prepare your environment by ensuring Node.js and npm are installed on your system. You can verify by running these commands.
node -v
npm -v
Create an MCP configuration that defines how to start the Binance MCP Server using npx and the required Binance API credentials. This example uses the testnet for development.
Additional sections
Configuration and startup details are provided below to help you connect your MCP client to Binance services securely and reliably.
Environment setup and API keys are needed to authenticate requests. The following example shows how to configure the MCP server using an MCP settings file.
{
"mcpServers": {
"binance": {
"command": "npx",
"args": ["binance-mcp-server"],
"env": {
"BINANCE_API_KEY": "your_api_key",
"BINANCE_API_SECRET": "your_api_secret",
"BINANCE_TESTNET": "false"
}
}
}
}
One-click setup with Claude Code is available to quickly add the Binance MCP server to your workflow. Use the following command to configure Claude Code to start the server with your API credentials.
claude mcp add binance --env BINANCE_API_KEY=YOUR_API_KEY --env BINANCE_API_SECRET=YOUR_API_SECRET --env BINANCE_TESTNET=false -- npx -y binance-mcp-server
Security
Safety recommendations for development and production. Always use the testnet for development to avoid real funds. When you switch to mainnet, be aware that live trading incurs real money and requires careful handling of keys and permissions.
Key points to remember:
- Set BINANCE_TESTNET=true for safe testing with virtual funds
- Set BINANCE_TESTNET=false or omit for mainnet trading with REAL money
- Mainnet trading will display warnings before executing orders
Available tools
get_price
Retrieve the current price for a trading pair.
get_orderbook
Fetch the full order book depth for a pair.
get_klines
Obtain K-line (candlestick) data for charting and analysis.
get_24hr_ticker
Get 24-hour price statistics for a pair.
get_account_info
Query account information and balances.
get_open_orders
List currently open orders.
get_order_history
Show historical orders.
place_order
Place a new order (supports both mainnet and testnet).
cancel_order
Cancel a specific order (supports both mainnet and testnet).
cancel_all_orders
Cancel all open orders (supports both mainnet and testnet).