Skip to main content
Glama

Binance MCP Server

by qeinfinity

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

Deploy Server
A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

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.

通过 WebSockets 传输实时币安市场数据(现货和期货)的服务器实现,使应用程序能够通过模型上下文协议接收和处理加密货币市场信息。

  1. 特征
    1. 安装
      1. 用法
        1. 启动服务器
        2. WebSocket 流类型
        3. Claude Desktop 中的示例用法
      2. 发展
        1. 运行测试
        2. 建筑
      3. 执照

        Related MCP Servers

        • -
          security
          F
          license
          -
          quality
          This server provides a robust interface for Binance spot trading operations, including secure management of API credentials, execution and management of spot orders, and monitoring of account balances and open orders.
          Last updated -
          2
          13
        • -
          security
          A
          license
          -
          quality
          A 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 -
          12
          MIT License
        • A
          security
          A
          license
          A
          quality
          A server that provides tools for retrieving real-time price information for various assets including precious metals and cryptocurrencies, allowing language models to access and display current asset price data.
          Last updated -
          1
          315
          2
          MIT License
          • Apple
          • Linux
        • -
          security
          A
          license
          -
          quality
          A server that provides real-time cryptocurrency data through the Model Context Protocol, allowing access to detailed exchange information and current cryptocurrency rates from the CoinCap API.
          Last updated -
          1
          1
          MIT License

        View all related MCP servers

        MCP directory API

        We provide all the information about MCP servers via our MCP API.

        curl -X GET 'https://glama.ai/api/mcp/v1/servers/qeinfinity/binance-mcp-server'

        If you have feedback or need assistance with the MCP directory API, please join our Discord server