🎯 Overview
Binance MCP Server enables AI assistants like Claude, ChatGPT, and other MCP-compatible clients to interact directly with the Binance cryptocurrency exchange. Execute trades, manage portfolios, analyze markets, and automate strategies through natural language.
Why Binance MCP?
- Complete Coverage — 478+ tools spanning every Binance API endpoint
- 🔐 Secure by Design — API credentials never leave your machine
- ⚡ Production Ready — Built with official Binance SDKs and TypeScript
- 🔌 Universal Compatibility — Works with Claude Desktop, Cursor, ChatGPT, and any MCP client
- 📡 Dual Transport — STDIO for desktop apps, SSE for web applications
✨ Features
Trading & Markets
- Spot Trading — Orders, market data, account info
- Margin Trading — Cross & isolated margin
- Futures (USD-M & COIN-M) — Perpetual contracts
- Options — European-style options
- Portfolio Margin — Unified margin accounts
- Algo Trading — TWAP, VP algorithms
|
Earn & Invest
- Simple Earn — Flexible & locked products
- Staking — ETH & SOL staking
- Auto-Invest — DCA & recurring buys
- Dual Investment — Structured products
- Crypto Loans — Flexible rate loans
- VIP Loans — Institutional lending
|
Wallet & Transfers
- Wallet — Deposits, withdrawals, transfers
- Sub-Accounts — Multi-account management
- Convert — Instant asset conversion
- Pay — Binance Pay integration
- Gift Cards — Create & redeem
|
Additional Services
- Copy Trading — Lead trader features
- Mining — Pool mining operations
- NFT — NFT marketplace
- C2C/P2P — Peer-to-peer trading
- Fiat — Fiat on/off ramps
- Rebate — Referral program
|
🚀 Quick Start
Prerequisites
- Node.js ≥ 18.0.0
- Binance account with API credentials
- An MCP-compatible client (Claude Desktop, Cursor, etc.)
Installation
# Clone the repository
git clone https://github.com/nirholas/Binance-MCP.git
cd Binance-MCP
# Install dependencies
npm install
# Build the project
npm run build
Interactive Setup
Run the setup wizard to configure your environment:
npm run init
This will guide you through:
- Setting up your Binance API credentials
- Choosing your transport method (STDIO/SSE)
- Configuring your MCP client
⚙️ Configuration
Environment Variables
Create a .env file in the project root:
BINANCE_API_KEY=your_api_key_here
BINANCE_API_SECRET=your_api_secret_here
🔒 Security Note: Never commit your .env file. It's already in .gitignore.
Running the Server
STDIO Transport (Claude Desktop, Cursor)
npm run start
SSE Transport (ChatGPT, Web Apps)
npm run start:sse
Development Mode (Hot Reload)
npm run dev # STDIO
npm run dev:sse # SSE
🖥️ Client Configuration
Claude Desktop
Add to your claude_desktop_config.json:
{
"mcpServers": {
"binance": {
"command": "node",
"args": ["/absolute/path/to/Binance-MCP/build/index.js"],
"env": {
"BINANCE_API_KEY": "your_api_key",
"BINANCE_API_SECRET": "your_api_secret"
}
}
}
}
Cursor
Add to your Cursor MCP settings:
{
"binance": {
"command": "node",
"args": ["/absolute/path/to/Binance-MCP/build/index.js"],
"env": {
"BINANCE_API_KEY": "your_api_key",
"BINANCE_API_SECRET": "your_api_secret"
}
}
}
ChatGPT (via SSE)
- Start the SSE server:
npm run start:sse
- Connect to
http://localhost:3000/sse
📖 Usage Examples
Check Account Balance
"What's my current Binance account balance?"
Place a Market Order
"Buy 0.01 BTC at market price"
Get Market Data
"Show me the order book for BTCUSDT with 20 levels"
Set Up Auto-Invest
"Create a daily auto-invest plan to buy $100 of ETH"
Manage Futures Position
"Open a 5x long position on ETHUSDT futures with $1000"
📊 Module Coverage