Binance MCP Server

Binance MCP Server

By MCP-Mirror GitHub

Mirror of

binance mcp-server
Overview

what is Binance MCP Server?

Binance MCP Server is a Model Context Protocol (MCP) server implementation designed to provide real-time market data for Binance, utilizing WebSocket technology for efficient data streaming.

how to use Binance MCP Server?

To use the Binance MCP Server, install the necessary packages using npm, start the server, and subscribe to the desired market data streams.

key features of Binance MCP Server?

  • Real-time market data streaming via WebSocket
  • Support for both spot and futures markets
  • Automatic reconnection with exponential backoff
  • Type-safe message handling
  • Comprehensive error handling

use cases of Binance MCP Server?

  1. Streaming real-time trade data for cryptocurrency trading applications.
  2. Monitoring price changes and market statistics for investment analysis.
  3. Integrating with trading bots to automate trading strategies based on live data.

FAQ from Binance MCP Server?

  • What types of market data can I access?

You can access trade data, ticker statistics, order book data, candlestick data, and funding rates for futures.

  • Is there support for both spot and futures markets?

Yes! The server supports real-time data for both spot and futures markets.

  • How do I handle incoming data?

You can subscribe to specific streams and handle incoming data using event listeners.

Content

Binance MCP Server

A Model Context Protocol (MCP) server implementation for Binance market data with WebSocket support.

Features

  • Real-time market data streaming via WebSocket
  • Support for both spot and futures markets
  • Automatic reconnection with exponential backoff
  • Type-safe message handling
  • Comprehensive error handling

Installation

npm install

Usage

Starting the Server

npm start

WebSocket Stream Types

The following stream types are supported:

  • trade: Real-time trade data
  • ticker: 24-hour rolling window price change statistics
  • bookTicker: Best bid/ask price and quantity
  • kline: Candlestick data
  • markPrice: Mark price and funding rate (futures only)
  • fundingRate: Funding rate data (futures only)

Example Usage in Claude Desktop

// Subscribe to trade and ticker streams for BTC/USDT
await server.subscribe('BTCUSDT', 'spot', ['trade', 'ticker']);

// Handle incoming data
server.onStreamData('BTCUSDT', 'trade', (data) => {
  console.log('New trade:', data);
});

Development

Running Tests

npm test

Building

npm run build

License

Private

No tools information available.

Mirror of

image-generation mcp-server
View Details

Secure MCP server for analyzing Excel files with oletools

oletools mcp-server
View Details

Mirror of

bigquery mcp-server
View Details

MCPHubs is a website that showcases projects related to Anthropic's Model Context Protocol (MCP)

mcp mcp-server
View Details
Dealx
Dealx by DealExpress

-

dealx mcp-server
View Details

Google Analytics MCP server for accessing analytics data through tools and resources

google-analytics mcp-server
View Details

A Python-based MCP server that lets Claude run boto3 code to query and manage AWS resources. Execute powerful AWS operations directly through Claude with proper sandboxing and containerization. No need for complex setups - just pass your AWS credentials and start interacting with all AWS services.

aws mcp-server
View Details