MCP Connector

Access Binance Market Data and Execute Trades

MCP server for Binance - market data, account balances, and order placement/cancellation on mainnet or testnet.

Works with binance

Maintainer of this project? Claim this page to edit the listing.


91
Spark score
out of 100
Updated 5 months ago
Version 1.0.0
Models
universal

Add to Favorites

Why it matters

Integrate with the Binance cryptocurrency exchange to programmatically access real-time market data and execute trading operations. This asset enables automated trading strategies and data analysis.

Outcomes

What it gets done

01

Retrieve current prices, order books, and historical K-line data.

02

Manage account information, including balances and open orders.

03

Place, cancel, and manage buy and sell orders on Binance.

04

Utilize testnet for safe development and testing of trading logic.

Install

Add it to your toolbox

Run in your project directory:

curl -fsSL https://spark.entire.vc/get/vb-binance | bash

Capabilities

Tools your agent gets

get_price

Get the current price of a trading pair

get_orderbook

Get order book depth data

get_klines

Get K-line/candlestick data

get_24hr_ticker

Get 24-hour price statistics

get_account_info

Get account information and balances

get_open_orders

Get current open orders

get_order_history

Get order history

place_order

Place a new order (supports mainnet and testnet)

+2 tools

Overview

Binance MCP Server

An MCP server exposing Binance market data, account information, and order placement/cancellation tools, working against both testnet and mainnet. Use when an assistant needs to check Binance prices, balances, or orders, or execute trades - start on testnet before mainnet with real funds.

What it does

Binance MCP Server gives an MCP-compatible assistant (Claude, Cursor, Trae, and others) direct access to the Binance exchange API. It covers three areas: market data (get_price, get_orderbook, get_klines for candlestick data, get_24hr_ticker), account information (get_account_info, get_open_orders, get_order_history), and trading (place_order, cancel_order, cancel_all_orders), with trading tools working against both Binance's live mainnet and its testnet.

When to use - and when NOT to

Use this connector when an assistant needs to check crypto prices, order books, or account balances, or to place and manage orders on Binance conversationally - for example, "get the current price of Bitcoin," "show me the order book for ETHUSDT," or "place a limit buy order for 0.001 BTC at $50,000." Because trading tools execute real orders on mainnet when BINANCE_TESTNET is false or omitted, this is not something to wire up casually - the project's own security guidance is to set BINANCE_TESTNET=true for safe testing with virtual funds, and mainnet trading displays warnings before executing orders precisely because it uses real money.

Capabilities

Market-data tools require no authentication scope beyond the API key and cover current price, order book depth, candlestick/K-line data, and 24-hour statistics for any trading pair. Account tools return balances, open orders, and order history. Trading tools place and cancel individual or all open orders, and all trading tools work identically against testnet or mainnet depending on configuration - the same code path, different risk profile.

How to install

npm install -g binance-mcp-server

or via Claude Code's one-click setup: claude mcp add binance --env BINANCE_API_KEY=... --env BINANCE_API_SECRET=... --env BINANCE_TESTNET=false -- npx -y binance-mcp-server. Configure BINANCE_API_KEY, BINANCE_API_SECRET, and BINANCE_TESTNET either in the MCP settings JSON or a .env file. Testnet keys come from testnet.binance.vision with no real verification required and use virtual funds; mainnet keys require a KYC-verified Binance account and API Management permissions, and use real money.

Who it's for

Developers and traders who want an AI assistant to check Binance market data and account state, or execute trades, directly in conversation - starting safely against the testnet before ever pointing the same tools at a mainnet account with real funds. It supports multiple MCP-compatible clients out of the box - Claude, Cursor, and Trae are all called out explicitly - so the same server configuration can back whichever assistant a developer already uses, and the project ships a standard TypeScript build/dev/lint workflow (npm run build, npm run dev, npm run lint) for anyone extending it.

Source README

Binance MCP Server

npm

Multi-language Documentation

A Model Context Protocol (MCP) server that provides Claude Code with Binance exchange API functionality.

Quick Start

📹 Video Tutorial

Watch our comprehensive MCP usage tutorial to get started quickly:

Installation

npm install -g binance-mcp-server

Configuration

This MCP server can be used with various AI tools that support MCP:

Claude
Cursor
Trae

MCP Configuration

Add the following configuration to your MCP settings file:

{
  "mcpServers": {
    "binance": {
      "command": "npx",
      "args": ["binance-mcp-server"],
      "env": {
        "BINANCE_API_KEY": "your_api_key",
        "BINANCE_API_SECRET": "your_api_secret",
        "BINANCE_TESTNET": "false"
      }
    }
  }
}

Note: Set BINANCE_TESTNET to "true" if you want to use the Binance testnet for development and testing.

One-Click Setup with Claude Code
claude mcp add binance --env BINANCE_API_KEY=YOUR_API_KEY --env BINANCE_API_SECRET=YOUR_API_SECRET --env BINANCE_TESTNET=false -- npx -y binance-mcp-server

Environment Setup

Getting API Keys

For Testnet (Recommended for Development):

  1. Visit Binance Testnet
  2. Create a testnet account (no real verification required)
  3. Go to API Management in your testnet account
  4. Create a new API key with trading permissions
  5. Note: Testnet uses virtual funds - completely safe for testing

For Mainnet (Production):

  1. Create a verified account on Binance
  2. Complete KYC verification
  3. Go to API Management in your account settings
  4. Create a new API key with required permissions
  5. ⚠️ Warning: Mainnet uses real money - be very careful!
Configuration

Create .env file:

BINANCE_API_KEY=your_api_key_here
BINANCE_API_SECRET=your_api_secret_here
BINANCE_TESTNET=true  # Set to false for mainnet (REAL money)

Available Tools

Market Data

  • get_price - Get current price for trading pair
  • get_orderbook - Get order book depth data
  • get_klines - Get K-line/candlestick data
  • get_24hr_ticker - Get 24-hour price statistics

Account

  • get_account_info - Get account information and balances
  • get_open_orders - Get current open orders
  • get_order_history - Get historical orders

Trading (Mainnet & Testnet)

  • place_order - Place a new order (supports both mainnet and testnet)
  • cancel_order - Cancel specific order (supports both mainnet and testnet)
  • cancel_all_orders - Cancel all open orders (supports both mainnet and testnet)

Usage Examples

Ask Claude to:

  • "Get the current price of Bitcoin"
  • "Show me the order book for ETHUSDT"
  • "Check my account balance"
  • "Place a limit buy order for 0.001 BTC at $50,000"

Security

⚠️ Important:

  • Set BINANCE_TESTNET=true for safe testing with virtual funds
  • Set BINANCE_TESTNET=false or omit for mainnet trading with REAL money
  • Mainnet trading will display warnings before executing orders

Development

npm run build    # Compile TypeScript
npm run dev      # Development mode
npm run lint     # Run linting

FAQ

Common questions

Discussion

Questions & comments · 0

Sign In Sign in to leave a comment.