Skip to main content
Glama
Binance Cryptocurrency MCP

Binance Cryptocurrency MCP

by snjyor

币安加密货币 MCP

铁匠徽章

用于访问币安加密货币市场数据的模型上下文协议服务。

概述

该 MCP 服务允许 AI 代理(例如 Claude、Cursor、Windsurf 等)执行币安 API 调用并获取加密货币市场的实时数据,包括价格、烛台图、订单簿等。

目的您可以直接向AI询问最新的加密货币价格、交易量、价格趋势等信息,而无需查看币安网站或使用其他工具。

可用信息

通过本MCP服务,您可以获得以下信息:

  • 当前价格信息 - 获取指定加密货币的实时价格

  • 订单簿数据 - 查看买卖订单深度

  • 烛台图数据 - 获取不同时间段的烛台数据

  • 24小时价格变动 - 查看24小时内的价格变动

  • 交易历史-查看近期交易记录

  • 价格统计 - 获取各个时间窗口的价格统计数据

Related MCP server: Binance Cryptocurrency MCP

可用工具

工具

描述

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

Available Tools

12 tools
get_24hr_tickerD

Inputs: symbol, symbols.

get_aggregate_tradesD

Inputs: symbol (required), fromId, startTime, endTime, +1 more.

get_avg_priceD

Inputs: symbol (required).

get_book_tickerD

Inputs: symbol, symbols.

get_historical_tradesD

Inputs: symbol (required), limit, fromId.

get_klinesD

Inputs: symbol (required), interval (required), startTime, endTime, +2 more.

get_order_bookD

Inputs: symbol (required), limit.

get_priceD

Inputs: symbol, symbols.

get_recent_tradesD

Inputs: symbol (required), limit.

get_rolling_window_tickerD

Inputs: symbol, symbols, windowSize, type.

get_trading_day_tickerD

Inputs: symbol, symbols, timeZone, type.

get_ui_klinesD

Inputs: symbol (required), interval (required), startTime, endTime, +2 more.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    D1.9/5.0

    Scored across 12 tools

    Disambiguation4/5

    Most tools have clearly distinct purposes focused on different market data aspects (e.g., ticker data, trades, order book, price, klines). However, some potential overlap exists between get_24hr_ticker, get_rolling_window_ticker, and get_trading_day_ticker, which could cause confusion about which specific ticker data is needed.

    Naming Consistency5/5

    All tools follow a consistent verb_noun pattern with 'get_' prefix followed by descriptive snake_case nouns. The naming is highly predictable and uniform throughout the entire tool set.

    Tool Count4/5

    12 tools is reasonable for a cryptocurrency exchange data server, providing comprehensive market data coverage. It's slightly on the higher side but well-justified for the domain, though some consolidation might be possible (e.g., multiple ticker tools).

    Completeness3/5

    The tool set covers extensive market data retrieval (tickers, trades, order book, price, klines) but lacks trading operations (create/cancel orders, account management) and other exchange functionalities. This creates a significant gap for agents needing to perform actual trading actions beyond data observation.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      C
      quality
      D
      maintenance
      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.
      1
      3
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables AI agents to access real-time Binance cryptocurrency market data including prices, order books, candlestick charts, trading history, and 24-hour statistics through natural language queries.
      Apache 2.0
    • A
      license
      Not graded
      quality
      D
      maintenance
      Provides real-time cryptocurrency market data from Binance API, including price queries, 24h statistics, K-line data, market trend analysis, and order book depth information for trading analysis.
      1
      MIT
    • A
      license
      D
      quality
      D
      maintenance
      Enables AI agents to access real-time Binance cryptocurrency market data including prices, order books, candlestick charts, trading history, and 24-hour statistics through natural language queries.
      12
      Apache 2.0