Binance Bitcoin Market Data MCP server

Provides real-time and historical Bitcoin market data from Binance including ticker data, order books, trades, price charts, and live price streams for financial analysis and market research.
Back to servers
Setup instructions
Provider
MilesCool
Release date
Apr 09, 2025
Language
TypeScript
Stats
1 star

This MCP server provides a standardized interface for large language models to access real-time and historical Bitcoin market data from Binance. It enables querying current prices, order book data, recent trades, historical data, and even short-duration real-time price streams.

Installation

To install the Binance Bitcoin MCP server:

# Clone the repository
git clone https://github.com/yourusername/binance-mcp.git
cd binance-mcp

# Install dependencies
pnpm install

# Build the project
pnpm build

Starting the Server

To start the MCP server:

# Start the MCP server
pnpm start

Once running, you can connect your MCP-compatible LLM client to interact with the Binance data.

Available Tools

The server provides several tools for accessing different types of Bitcoin market data:

Get Bitcoin Ticker

Retrieves current Bitcoin ticker data including price, 24h change, volume, and more.

Parameters:

  • symbol (optional, default: "BTCUSDT") - Trading pair symbol

Get Bitcoin Order Book

Fetches the current best bid and ask prices from the order book.

Parameters:

  • symbol (optional, default: "BTCUSDT") - Trading pair symbol

Get Bitcoin Recent Trades

Returns a list of recent Bitcoin trades.

Parameters:

  • symbol (optional, default: "BTCUSDT") - Trading pair symbol
  • limit (optional, default: 10) - Number of trades to fetch

Get Bitcoin Price History

Retrieves historical kline/candlestick data for Bitcoin.

Parameters:

  • symbol (optional, default: "BTCUSDT") - Trading pair symbol
  • interval (optional, default: "1h") - Kline interval (1m, 3m, 5m, 15m, 30m, 1h, 2h, 4h, 6h, 8h, 12h, 1d, 3d, 1w, 1M)
  • limit (optional, default: 24) - Number of candles to fetch

Get Realtime Bitcoin Price

Streams real-time Bitcoin price updates for a short duration.

Parameters:

  • symbol (optional, default: "btcusdt") - Trading pair symbol in lowercase
  • duration (optional, default: 5, max: 30) - Duration in seconds to collect real-time data

Example Prompts

When using an MCP-compatible LLM, you can interact with the server using prompts such as:

  • "What is the current Bitcoin price and 24-hour change?"
  • "Show me the current spread between bid and ask prices for Bitcoin."
  • "Analyze the last 10 Bitcoin trades and identify any patterns."
  • "Get Bitcoin price history for the last 24 hours and explain the trend."
  • "Watch real-time Bitcoin trades for 5 seconds and tell me if there's more buying or selling pressure."

How to install this MCP server

For Claude Code

To add this MCP server to Claude Code, run this command in your terminal:

claude mcp add-json "binance-bitcoin-mcp" '{"command":"pnpm","args":["start"]}'

See the official Claude Code MCP documentation for more details.

For Cursor

There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json file so that it is available in all of your projects.

If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json file.

Adding an MCP server to Cursor globally

To add a global MCP server go to Cursor Settings > Tools & Integrations and click "New MCP Server".

When you click that button the ~/.cursor/mcp.json file will be opened and you can add your server like this:

{
    "mcpServers": {
        "binance-bitcoin-mcp": {
            "command": "pnpm",
            "args": [
                "start"
            ]
        }
    }
}

Adding an MCP server to a project

To add an MCP server to a project you can create a new .cursor/mcp.json file or add it to the existing one. This will look exactly the same as the global MCP server example above.

How to use the MCP server

Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.

The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.

You can also explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.

For Claude Desktop

To add this MCP server to Claude Desktop:

1. Find your configuration file:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
  • Linux: ~/.config/Claude/claude_desktop_config.json

2. Add this to your configuration file:

{
    "mcpServers": {
        "binance-bitcoin-mcp": {
            "command": "pnpm",
            "args": [
                "start"
            ]
        }
    }
}

3. Restart Claude Desktop for the changes to take effect

Want to 10x your AI skills?

Get a free account and learn to code + market your apps using AI (with or without vibes!).

Nah, maybe later