Skip to main content
Glama

Binance Cryptocurrency MCP

by snjyor

币安加密货币 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 服务:

npx -y @snjyor/binance-mcp@latest

在 Cursor IDE 中:

  1. 前往Cursor Settings > MCP
  2. 点击+ Add New MCP Service
  3. 填写表格:
    • 名称: binance
    • 类型: command
    • 命令: npx -y @snjyor/binance-mcp@latest

项目安装

.cursor/mcp.json文件添加到您的项目:

{ "mcpServers": { "binance": { "command": "npx", "args": [ "-y", "@snjyor/binance-mcp@latest" ] } } }

用法

配置完成后,币安市场数据工具将自动提供给 Cursor AI 代理:

  1. 该工具将在 MCP 设置中的Available Tools下列出
  2. 代理将在相关时自动使用它
  3. 您可以明确要求代理使用这些工具

在其他 MCP 兼容环境中使用

{ "mcpServers": { "binance": { "command": "npx", "args": [ "-y", "@snjyor/binance-mcp@latest" ] } } }

使用示例

以下是一些使用示例:

查询比特币价格

Please tell me the current price of Bitcoin

查看以太坊 24 小时价格走势

How has Ethereum's price changed in the past 24 hours?

获取BNB的K线数据

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

调试服务器

要调试您的服务器,您可以使用MCP Inspector

首先搭建服务器

npm run build

在终端中运行以下命令:

# Start MCP Inspector and server npx @modelcontextprotocol/inspector node dist/index.js

执照

Apache 2.0

Install Server
A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

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.

MCP 服务提供对币安加密货币市场数据的实时访问,允许 AI 代理通过自然语言查询获取当前价格、订单簿、烛台图和交易统计数据。

  1. 概述
    1. 可用工具
      1. 在游标中使用
        1. 在其他 MCP 兼容环境中使用
          1. 使用示例
            1. 发展
              1. 调试服务器
                1. 执照

                  Related MCP Servers

                  • A
                    security
                    F
                    license
                    A
                    quality
                    A 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 -
                    9
                    Python
                  • -
                    security
                    A
                    license
                    -
                    quality
                    An MCP server for tracking and managing cryptocurrency portfolio allocations, enabling AI agents to query and optimize portfolio strategies in real time.
                    Last updated -
                    Python
                    MIT License
                  • -
                    security
                    A
                    license
                    -
                    quality
                    An MCP server that provides real-time cryptocurrency news sourced from NewsData for AI agents.
                    Last updated -
                    3
                    Python
                    MIT License
                  • -
                    security
                    -
                    license
                    -
                    quality
                    Provides 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 -
                    1
                    JavaScript
                    MIT License

                  View all related MCP servers

                  MCP directory API

                  We provide all the information about MCP servers via our MCP API.

                  curl -X GET 'https://glama.ai/api/mcp/v1/servers/snjyor/binance-mcp'

                  If you have feedback or need assistance with the MCP directory API, please join our Discord server