币安加密货币市场数据
STDIO实时访问币安加密货币市场数据
实时访问币安加密货币市场数据
Model Context Protocol service for accessing Binance cryptocurrency market data.
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:
Tool | Description |
---|---|
get_price | Get current price for specified cryptocurrency |
get_order_book | Get order book data |
get_recent_trades | Get list of recent trades |
get_historical_trades | Get historical trade data |
get_aggregate_trades | Get list of aggregate trades |
get_klines | Get K-line/candlestick data |
get_ui_klines | Get UI-optimized K-line data |
get_avg_price | Get current average price |
get_24hr_ticker | Get 24-hour price change statistics |
get_trading_day_ticker | Get trading day market information |
get_book_ticker | Get order book ticker |
get_rolling_window_ticker | Get rolling window price change statistics |
Global Installation
Use npx to run the MCP service:
npx -y @snjyor/binance-mcp@latest
In Cursor IDE:
Cursor Settings
> MCP
+ Add New MCP Service
binance
command
npx -y @snjyor/binance-mcp@latest
Project Installation
Add a .cursor/mcp.json
file to your project:
{ "mcpServers": { "binance": { "command": "npx", "args": [ "-y", "@snjyor/binance-mcp@latest" ] } } }
Usage
After configuration, the Binance market data tools will be automatically available to Cursor AI agents:
Available Tools
in the MCP settings{ "mcpServers": { "binance": { "command": "npx", "args": [ "-y", "@snjyor/binance-mcp@latest" ] } } }
Here are some usage examples:
Query Bitcoin Price
Please tell me the current price of Bitcoin
View Ethereum's 24-hour Price Movement
How has Ethereum's price changed in the past 24 hours?
Get BNB's K-line Data
Show me the daily K-line data for BNB over the last 5 days
# Install dependencies npm install # Build npm run build # Local testing npm run start
To debug your server, you can use MCP Inspector.
First build the server
npm run build
Run the following command in terminal:
# Start MCP Inspector and server
npx @modelcontextprotocol/inspector node dist/index.js