Provides real-time access to Binance cryptocurrency market data, including current prices, order books, candlestick charts, trading history, 24-hour price changes, and various ticker statistics for cryptocurrencies.
Binance Cryptocurrency MCP
Model Context Protocol service for accessing Binance cryptocurrency market data.
📄 License
This project is licensed under the Apache License 2.0 - see the LICENSE file for details.
🔄 Fork Notice
This is a fork of the original binance-mcp project by snjyor.
Major enhancements in this fork:
✅ Added SOCKS5 proxy support
✅ Enhanced proxy configuration options
✅ Improved documentation with copy-paste examples
✅ Better MCP configuration compatibility
🤝 Contributing
This fork maintains the same Apache 2.0 license as the original project. All contributions are welcome!
Overview
This MCP service allows AI agents (such as Claude, Cursor, Windsurf, etc.) to execute Binance API calls and obtain real-time data from the cryptocurrency market, including prices, candlestick charts, order books, and more.
Purpose You can directly ask AI about the latest cryptocurrency prices, trading volume, price trends, and other information, without having to check the Binance website or use other tools.
Available Information
Through this MCP service, you can obtain the following information:
Current price information - Get real-time prices for specified cryptocurrencies
Order book data - View buy and sell order depth
Candlestick chart data - Obtain candlestick data for different time periods
24-hour price changes - View price changes within 24 hours
Trading history - View recent trading records
Price statistics - Get price statistics for various time windows
Available Tools
Tool | Description |
| Get current price for specified cryptocurrency |
| Get order book data |
| Get list of recent trades |
| Get historical trade data |
| Get list of aggregate trades |
| Get K-line/candlestick data |
| Get UI-optimized K-line data |
| Get current average price |
| Get 24-hour price change statistics |
| Get trading day market information |
| Get order book ticker |
| Get rolling window price change statistics |
Using in Cursor
Global Installation
Use npx to run the MCP service directly from GitHub:
In Cursor IDE:
Go to
Cursor Settings>MCPClick
+ Add New MCP ServiceFill in the form:
Name:
binanceType:
commandCommand:
npx -y git+https://github.com/jianchundev/binance-mcp.git
If the above doesn't work on Windows, use:
Command:
npx -y https://github.com/jianchundev/binance-mcp.git
Project Installation
Add a .cursor/mcp.json file to your project:
Windows Alternative:
Alternative MCP Configuration
Some MCP clients use a different configuration format:
Configuration Options
key: Unique identifier for the MCP servicecommand: Command to run the serviceargs: Arguments passed to the commandapprovalPolicy:"always"- Auto-approve all tool calls"prompt"- Ask for approval before each tool call"never"- Never auto-approve
env: Environment variables (for proxy configuration)
Usage
After configuration, the Binance market data tools will be automatically available to Cursor AI agents:
The tool will be listed under
Available Toolsin the MCP settingsAgents will automatically use it when relevant
You can explicitly ask agents to use these tools
Using in Other MCP-Compatible Environments
Standard MCP Configuration
Alternative Configuration Format
With Proxy Configuration
🚀 Quick Start with SOCKS5 Proxy (Copy & Paste)
For users who need proxy support, use this ready-to-use configuration:
Common SOCKS5 Proxy Ports:
1080- Default SOCKS5 port7890- Common alternative (Clash, V2Ray)1081- Alternative port10808- Some proxy tools
To use a different port, simply change the port number:
📦 Installation from GitHub
This package is distributed directly from GitHub for simplicity and to avoid npm publishing overhead:
Benefits of GitHub distribution:
🚀 No npm account required
🔄 Always get the latest version
📝 Full source code transparency
⚡ Faster updates and fixes
🔧 Troubleshooting
Windows npx Issues
If you encounter 'binance-mcp' is not recognized error on Windows:
Try alternative URL format:
npx -y https://github.com/jianchundev/binance-mcp.gitUse local installation:
git clone https://github.com/jianchundev/binance-mcp.git cd binance-mcp npm install npm run buildUpdate MCP configuration to use local path:
{ "mcpServers": { "binance": { "command": "node", "args": ["C:\\path\\to\\binance-mcp\\dist\\index.js"] } } }
Proxy Connection Issues
Verify your SOCKS5 proxy is running on the specified port
Check firewall settings
Try different proxy ports (7890, 1081, 10808)
Proxy Configuration
This MCP service supports both SOCKS5 and HTTP/HTTPS proxies to help users access Binance API from restricted networks.
SOCKS5 Proxy (Recommended)
Set environment variable:
HTTP/HTTPS Proxy
Set environment variable:
MCP Configuration with Proxy
For detailed proxy configuration instructions, see PROXY_CONFIG.md.
Usage Examples
Here are some usage examples:
Query Bitcoin Price
View Ethereum's 24-hour Price Movement
Get BNB's K-line Data
Development
Debugging Server
To debug your server, you can use MCP Inspector.
First build the server
Run the following command in terminal: