home / mcp / binance mcp server

Binance MCP Server

bach-binance-mcp - 由 MCP工厂自动创建

Installation
Add the following to your MCP client configuration file.

Configuration

View docs
{
  "mcpServers": {
    "bach-ai-tools-bach-binance-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@snjyor/binance-mcp@latest"
      ],
      "env": {
        "YOUR_ENV_PLACEHOLDER": "YOUR_VALUE"
      }
    }
  }
}

This Binance MCP server lets you access real-time cryptocurrency market data programmatically. You can query current prices, order books, candlestick data, and 24-hour changes directly from your AI workflows, without switching to external websites.

How to use

Install and run the MCP server, then connect your MCP client to the provided command configuration. Once active, the Binance data tools appear in your MCP client’s Available Tools list and are used automatically when you ask for price data, order books, or candlestick charts.

Practical usage patterns include asking for the current price of a cryptocurrency, requesting recent trades, pulling K-line data for a specific interval, or obtaining 24-hour price changes. You can also explicitly request specific tools by name if your client supports tool-aware prompts.

How to install

Prerequisites: you need Node.js and npm installed on your machine.

Global MCP server (STDIO) example you can run directly with a package manager:

npx -y @snjyor/binance-mcp@latest

Cursor integration (example) create a project-level MCP configuration to run the same server locally.

# In your project, create a Cursor MCP config file
{
  "mcpServers": {
    "binance": {
      "command": "npx",
      "args": [
        "-y",
        "bach-binance-mcp"
      ]
    }
  }
}

Additional configuration and notes

If you prefer to run the server from a project-local setup, you can also configure a project JSON snippet to launch the same MCP server.

{
  "mcpServers": {
    "binance": {
      "command": "npx",
      "args": [
        "-y",
        "bach-binance-mcp"
      ]
    }
  }
}

Development and debugging

To develop or test locally, install dependencies, build, and run the server. Use the built-in MCP Inspector to debug your setup if needed.

# Install dependencies
npm install

# Build the project
npm run build

# Start the server locally for testing
npm run start

Security and maintenance notes

Keep dependencies up to date. Run regular checks for security advisories in your MCP environment and use environment-specific configuration to manage access to sensitive data.

Available tools

get_price

Fetches the current price for a specified cryptocurrency.

get_order_book

Retrieves the current order book data showing buy and sell depth.

get_recent_trades

Returns a list of recent trades for the selected market.

get_historical_trades

Provides historical trades data for analysis.

get_aggregate_trades

Gets aggregated trades data.

get_klines

Retrieves K-line (candlestick) data for specified intervals.

get_ui_klines

Fetches UI-optimized K-line data for display.

get_avg_price

Gets the current average price for a market.

get_24hr_ticker

Provides 24-hour price change statistics.

get_trading_day_ticker

Gives trading day market information.

get_book_ticker

Retrieves a simplified view of the order book ticker.

get_rolling_window_ticker

Fetches rolling window price change statistics.