币安加密货币 MCP
用于访问币安加密货币市场数据的模型上下文协议服务。
概述
该 MCP 服务允许 AI 代理(例如 Claude、Cursor、Windsurf 等)执行币安 API 调用并获取加密货币市场的实时数据,包括价格、烛台图、订单簿等。
目的您可以直接向AI询问最新的加密货币价格、交易量、价格趋势等信息,而无需查看币安网站或使用其他工具。
可用信息
通过本MCP服务,您可以获得以下信息:
- 当前价格信息 - 获取指定加密货币的实时价格
- 订单簿数据 - 查看买卖订单深度
- 烛台图数据 - 获取不同时间段的烛台数据
- 24小时价格变动 - 查看24小时内的价格变动
- 交易历史-查看近期交易记录
- 价格统计 - 获取各个时间窗口的价格统计数据
可用工具
工具 | 描述 |
---|---|
get_price | 获取指定加密货币的当前价格 |
get_order_book | 获取订单簿数据 |
get_recent_trades | 获取最近交易列表 |
get_historical_trades | 获取历史交易数据 |
get_aggregate_trades | 获取聚合交易列表 |
get_klines | 获取K线/K线数据 |
get_ui_klines | 获取UI优化的K线数据 |
get_avg_price | 获取当前平均价格 |
get_24hr_ticker | 获取24小时价格变化统计数据 |
get_trading_day_ticker | 获取交易日市场信息 |
get_book_ticker | 获取订单簿代码 |
get_rolling_window_ticker | 获取滚动窗口价格变化统计数据 |
在游标中使用
全局安装
使用 npx 运行 MCP 服务:
在 Cursor IDE 中:
- 前往
Cursor Settings
>MCP
- 点击
+ Add New MCP Service
- 填写表格:
- 名称:
binance
- 类型:
command
- 命令:
npx -y @snjyor/binance-mcp@latest
- 名称:
项目安装
将.cursor/mcp.json
文件添加到您的项目:
用法
配置完成后,币安市场数据工具将自动提供给 Cursor AI 代理:
- 该工具将在 MCP 设置中的
Available Tools
下列出 - 代理将在相关时自动使用它
- 您可以明确要求代理使用这些工具
在其他 MCP 兼容环境中使用
使用示例
以下是一些使用示例:
查询比特币价格
查看以太坊 24 小时价格走势
获取BNB的K线数据
发展
调试服务器
要调试您的服务器,您可以使用MCP Inspector 。
首先搭建服务器
在终端中运行以下命令:
执照
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
Tools
MCP 服务提供对币安加密货币市场数据的实时访问,允许 AI 代理通过自然语言查询获取当前价格、订单簿、烛台图和交易统计数据。
Related MCP Servers
- AsecurityFlicenseAqualityA Model Control Protocol (MCP) server that provides cryptocurrency trading interfaces for Binance exchange, enabling functions like real-time price fetching, account balance queries, order placement/cancellation, and automated arbitrage strategies.Last updated -9Python
- -securityAlicense-qualityAn MCP server for tracking and managing cryptocurrency portfolio allocations, enabling AI agents to query and optimize portfolio strategies in real time.Last updated -PythonMIT License
- -securityAlicense-qualityAn MCP server that provides real-time cryptocurrency news sourced from NewsData for AI agents.Last updated -3PythonMIT License
- -security-license-qualityProvides an MCP server that allows large language models to access real-time and historical Bitcoin market data from Binance, including current prices, order book data, recent trades, and price history through a standardized interface.Last updated -1JavaScriptMIT License