Fetches Bitcoin price data from Binance, allowing access to current ticker data, order book information, recent trades, historical price data, and real-time price updates.
Provides Bitcoin market data including current prices, 24-hour changes, trading volumes, order book information, and historical price trends across different time intervals.
Binance Bitcoin MCP Tool
This project provides a Model Context Protocol (MCP) tool for fetching Bitcoin price data from Binance. It allows large language models to access real-time and historical Bitcoin market data through a standardized interface.
Features
Get current Bitcoin ticker data (price, 24h change, volume, etc.)
Get best bid and ask prices from the order book
Fetch recent trades
Get historical price data with customizable intervals
Stream real-time Bitcoin price updates for short durations
Installation
Usage
To use this tool with an MCP-compatible LLM client:
Then connect your MCP-compatible LLM client to interact with the Binance data.
Available Tools
get_bitcoin_ticker - Get current Bitcoin ticker data
Parameters:
symbol
(optional, default: "BTCUSDT") - Trading pair symbol
get_bitcoin_order_book - Get current best bid and ask prices
Parameters:
symbol
(optional, default: "BTCUSDT") - Trading pair symbol
get_bitcoin_recent_trades - Get recent trades
Parameters:
symbol
(optional, default: "BTCUSDT") - Trading pair symbollimit
(optional, default: 10) - Number of trades to fetch
get_bitcoin_price_history - Get historical kline/candlestick data
Parameters:
symbol
(optional, default: "BTCUSDT") - Trading pair symbolinterval
(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 - Get real-time price updates
Parameters:
symbol
(optional, default: "btcusdt") - Trading pair symbol in lowercaseduration
(optional, default: 5, max: 30) - Duration in seconds to collect real-time data
Example Prompts for LLMs
Once connected to an MCP-compatible LLM, you can use prompts like:
"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."
Development
To make changes to the project:
Modify the source code in the
src
directoryRun
pnpm build
to compile the TypeScript codeTest your changes with
pnpm start
Disclaimer
This tool is provided for educational and informational purposes only. It is not financial advice.
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
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.
Related Resources
Related MCP Servers
- -securityAlicense-qualityA Model Context Protocol server that exposes Binance cryptocurrency exchange data to LLMs, allowing agents to access real-time prices, order books, and historical market data without requiring API keys.Last updated -15MIT License
- 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 -99
- AsecurityAlicenseAqualityMCP service that provides real-time access to Binance cryptocurrency market data, allowing AI agents to fetch current prices, order books, candlestick charts, and trading statistics through natural language queries.Last updated -123330Apache 2.0
- -securityFlicense-qualityAn MCP server that provides access to cryptocurrency market data from the Nobitex API, enabling users to fetch specific cryptocurrency pair statistics and global market data.Last updated -23