MCP server for Binance exchange data
## Binance MCP Server: Crypto Exchange The **Binance MCP Server** integrates Binance's cryptocurrency exchange into Google Antigravity, enabling developers to trade crypto, manage wallets, and access market data through AI-assisted trading workflows. ### Why Binance MCP? - **Largest Exchange**: Highest liquidity and trading volume - **Global Coverage**: 500+ trading pairs - **Advanced Trading**: Spot, margin, futures, and options - **Real-Time Data**: WebSocket streaming for market data - **Enterprise Security**: Industry-leading security measures ### Key Features #### 1. Trading Operations ```javascript // Place spot order const order = await binance.createOrder({ symbol: "BTCUSDT", side: "BUY", type: "LIMIT", quantity: 0.01, price: 40000, timeInForce: "GTC" }); // Place market order const marketOrder = await binance.createOrder({ symbol: "ETHUSDT", side: "SELL", type: "MARKET", quantity: 0.5 }); // Get open orders const openOrders = await binance.getOpenOrders({ symbol: "BTCUSDT" }); // Cancel order await binance.cancelOrder({ symbol: "BTCUSDT", orderId: order.orderId }); ``` #### 2. Account and Market Data ```javascript // Get account balance const account = await binance.getAccount(); const btcBalance = account.balances.find(b => b.asset === "BTC"); console.log("BTC:", btcBalance.free); // Get ticker price const ticker = await binance.getTicker({ symbol: "BTCUSDT" }); console.log("Price:", ticker.price); // Get klines (candlesticks) const klines = await binance.getKlines({ symbol: "BTCUSDT", interval: "1h", limit: 100 }); // Stream real-time trades binance.streamTrades("BTCUSDT", (trade) => { console.log("Trade:", trade.price, trade.quantity); }); ``` ### Configuration ```json { "mcpServers": { "binance": { "command": "npx", "args": ["-y", "@anthropic/mcp-binance"], "env": { "BINANCE_API_KEY": "your-api-key", "BINANCE_SECRET_KEY": "your-secret-key" } } } } ``` ### Use Cases **Crypto Trading Bots**: Build automated trading strategies. **Portfolio Management**: Track and rebalance crypto portfolios. **Market Analysis**: Analyze crypto market data and trends. The Binance MCP Server brings crypto trading to your development workflow.
{
"mcpServers": {
"binance": {
"mcpServers": {
"binance": {
"args": [
"-y",
"binance-mcp-server"
],
"command": "npx"
}
}
}
}
}