Skip to main content
Glama

Binance MCP Server

by ethancod1ng

Binance MCP Server

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:

MCP Usage Tutorial

Installation

npm install -g binance-mcp-server

Configuration

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

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
-
security - not tested
F
license - not found
-
quality - not tested

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.

A Model Context Protocol server that provides Claude Code with seamless access to Binance exchange API functionality for market data retrieval, account management, and trading operations.

  1. Quick Start
    1. 📹 Video Tutorial
    2. Installation
    3. Configuration
    4. Environment Setup
  2. Available Tools
    1. Market Data
    2. Account
    3. Trading (Mainnet & Testnet)
  3. Usage Examples
    1. Security
      1. Development

        Related MCP Servers

        • -
          security
          F
          license
          -
          quality
          A Model Context Protocol server that allows Claude to make API requests on your behalf, providing tools for testing various APIs including HTTP requests and OpenAI integrations without sharing your API keys in the chat.
          Last updated -
          Python
          • Linux
          • Apple
        • A
          security
          A
          license
          A
          quality
          An implementation of Claude Code as a Model Context Protocol server that enables using Claude's software engineering capabilities (code generation, editing, reviewing, and file operations) through the standardized MCP interface.
          Last updated -
          8
          168
          JavaScript
          MIT License
        • -
          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
          Python
          MIT License
        • -
          security
          F
          license
          -
          quality
          Model Context Protocol server that enables Claude to retrieve and analyze code from GitHub repositories through the uithub API.
          Last updated -
          1
          15
          JavaScript

        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/ethancod1ng/binance-mcp-server'

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