Access Binance Market Data and Execute Trades
Connect to Binance to fetch cryptocurrency market data and execute trades. Supports order management, account info, and testnet for safe development.
Why it matters
Integrate with the Binance cryptocurrency exchange to programmatically access real-time market data and execute trading operations. This asset enables automated trading strategies and data analysis.
Outcomes
What it gets done
Retrieve current prices, order books, and historical K-line data.
Manage account information, including balances and open orders.
Place, cancel, and manage buy and sell orders on Binance.
Utilize testnet for safe development and testing of trading logic.
Install
Add it to your toolbox
Capabilities
Tools your agent gets
Overview
What this is, in full
What it does
MCP server for cryptocurrency trading and obtaining market data through the Binance exchange API.
Installation
NPM Global
npm install -g binance-mcp-server
Configuration
MCP Configuration
{
"mcpServers": {
"binance": {
"command": "npx",
"args": ["binance-mcp-server"],
"env": {
"BINANCE_API_KEY": "your_api_key",
"BINANCE_API_SECRET": "your_api_secret",
"BINANCE_TESTNET": "false"
}
}
}
}
Available Tools
| Tool | Description |
|---|---|
get_price |
Get the current price of a trading pair |
get_orderbook |
Get order book depth data |
get_klines |
Get K-line/candlestick data |
get_24hr_ticker |
Get 24-hour price statistics |
get_account_info |
Get account information and balances |
get_open_orders |
Get current open orders |
get_order_history |
Get order history |
place_order |
Place a new order (supports mainnet and testnet) |
cancel_order |
Cancel a specific order (supports mainnet and testnet) |
cancel_all_orders |
Cancel all open orders (supports mainnet and testnet) |
Features
- Access to market data (prices, order books, K-lines, 24-hour statistics)
- Account information and balance verification
- Trading functionality (place, cancel, and manage orders)
- Testnet support for safe testing with virtual funds
- Multi-language documentation (English, Chinese, Japanese)
- Compatibility with Claude, Cursor, and Trae AI tools
Environment Variables
Required
BINANCE_API_KEY- Your Binance API keyBINANCE_API_SECRET- Your Binance API secret
Optional
BINANCE_TESTNET- Set to 'true' for testnet (virtual funds) or 'false' for mainnet (real money)
Usage Examples
Get the current price of Bitcoin
Show me the order book for ETHUSDT
Check my account balance
Place a limit buy order for 0.001 BTC at $50,000
Notes
Set BINANCE_TESTNET=true for safe testing with virtual funds. Mainnet trading uses real money and displays warnings before order execution. API keys can be obtained from Binance Testnet (for development) or Binance mainnet (requires KYC verification).
Trust
How it checks out
Reviews
What people say after installing
Discussion
Questions & comments · 0
Sign In Sign in to leave a comment.