Binance MCP Server

qeinfinity
MIT
Published: 2024-12-18
Last update: 6 months ago
# 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

```bash
npm install
```

## Usage

### Starting the Server

```bash
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

```typescript
// 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

```bash
npm test
```

### Building

```bash
npm run build
```

## License

Private

Related

EVM MCP Server
EVM MCP Server
  • mcpdotdirect
  • MIT
  • 256
Beyond MCP Server
Beyond MCP Server
  • Beyond-Network-AI
  • MIT
  • 11
Community
agentek-eth
agentek-eth
  • AGPL 3.0
Name Description

Get current open interest for a futures trading pair

Subscribe to real-time market data updates

Get historical candlestick data

Get comprehensive market data for a trading pair

Get current funding rate for a futures trading pair

Test individual futures endpoints
Joseph Parker 20 Dec 2021 - 05:47AM

I am getting message from customers that when they place order always get error message .

Reply
Alexis Clarke 22 Dec 2021 - 02:32PM

Please be sure to check your Spam mailbox to see if your email filters have identified the email from Dell as spam.

Reply
Donald Palmer 24 Dec 2021 - 05:20PM

If you have further questions, please contact Customer Support from the “Action Menu” on your Online Order Support.

Reply
Alexis Clarke 26 min ago

Your Online Order Support provides you with the most current status of your order. To help manage your order refer to the “Action Menu” to initiate return, contact Customer Support and more.

Reply
Donald Palmer 8 sec ago

Other shipping methods are available at checkout if you want your purchase delivered faster.

Reply
Please Enter a Message

Security

95%

Code quantity

97%

Total downloads

4,305

80%

User reviews

121

89%