A comprehensive Model Context Protocol (MCP) server for the Binance.com global exchange API.
This MCP server provides 156+ tools covering the full Binance.com API including:
- Spot Trading - Market data, orders, account info
- Wallet - Deposits, withdrawals, transfers
- Staking - ETH & SOL staking operations
- Simple Earn - Flexible/locked products
- Convert - Asset conversion
- Mining - Pool mining operations
- Algo Trading - TWAP, VP algorithms
- VIP Loan - Institutional lending
- NFT - NFT transactions
- Pay - Binance Pay
- Copy Trading - Lead trader features
- Dual Investment - Structured products
- C2C/P2P - Peer-to-peer trading
- Fiat - Fiat deposit/withdrawal
- Rebate - Referral rebates
cd binance-mcp-server
npm installCreate a .env file or set environment variables:
BINANCE_API_KEY=your_api_key
BINANCE_API_SECRET=your_api_secretnpm run start
# or
npx ts-node src/index.tsnpm run start:sse
# or
npx ts-node src/index.ts --ssebinance-mcp-server/
βββ src/
β βββ index.ts # Entry point
β βββ binance.ts # Module registration
β βββ config/
β β βββ binanceClient.ts # API client with signing
β β βββ client.ts # HTTP client
β βββ server/
β β βββ base.ts # Base server setup
β β βββ stdio.ts # STDIO transport
β β βββ sse.ts # SSE transport
β βββ modules/ # All API modules
β β βββ spot/
β β β βββ general-api/
β β β βββ market-api/
β β β βββ trade-api/
β β β βββ account-api/
β β β βββ userdatastream-api/
β β βββ wallet/
β β βββ staking/
β β βββ simple-earn/
β β βββ convert/
β β βββ mining/
β β βββ algo/
β β βββ vip-loan/
β β βββ nft/
β β βββ pay/
β β βββ copy-trading/
β β βββ dual-investment/
β β βββ c2c/
β β βββ fiat/
β β βββ rebate/
β βββ utils/
β βββ logger.ts
βββ tools/ # Legacy tools (preserved)
βββ package.json
βββ tsconfig.json
| Module | Tools | Completeness |
|---|---|---|
| Wallet | 40 | 70% |
| Spot | 32 | 60% |
| Staking | 22 | 80% |
| Mining | 13 | 90% |
| Algo | 11 | 50% |
| VIP Loan | 9 | 70% |
| Convert | 9 | 80% |
| Dual Investment | 5 | 50% |
| Simple Earn | 4 | 30% |
| NFT | 4 | 60% |
| Fiat | 2 | 50% |
| Copy Trading | 2 | 20% |
| Rebate | 1 | 30% |
| Pay | 1 | 10% |
| C2C | 1 | 10% |
Total: ~156 tools
See API_COVERAGE_SUMMARY.md for detailed gap analysis.
Major missing features:
- Margin Trading (Cross & Isolated)
- Futures Trading (USD-M & COIN-M)
- Options Trading
- Portfolio Margin
- Auto-Invest
- Crypto Loans
- Sub-Account Management
- Gift Card
Add to claude_desktop_config.json:
{
"mcpServers": {
"binance": {
"command": "npx",
"args": ["ts-node", "/path/to/binance-mcp-server/src/index.ts"],
"env": {
"BINANCE_API_KEY": "your_key",
"BINANCE_API_SECRET": "your_secret"
}
}
}
}Tool: binance_account_info
Tool: binance_spot_new_order
Parameters:
- symbol: "BTCUSDT"
- side: "BUY"
- type: "LIMIT"
- quantity: 0.001
- price: 50000
- timeInForce: "GTC"
Tool: binance_order_book
Parameters:
- symbol: "BTCUSDT"
- limit: 100
npm run buildnpx tsc --noEmit- Create file in appropriate module folder
- Export registration function
- Import in module's
index.ts - Register in
src/binance.ts
MIT