Connector guide8-minute read21 MCP tools7 languages

How to Connect Binance to Gemini via MCP

Let your AI read live crypto market data from Binance: spot prices and 24 hour changes of every pair, order books, recent trades and price history, and for USD-M futures the mark price, funding rates, open interest and long/short ratio. Public data, no account or key needed. Read-only: it cannot trade or move funds.

HCBy HelpCode teamUpdated 8 min read Open-source on GitHub

No credit card · 7-day trial · Self-host alternative available

Binance

Binance

Let your AI read live crypto market data from Binance: spot prices and 24 hour changes of every pair, order books, recent trades and price history, and for USD-M futures the mark price, funding rates, open interest and long/short ratio. Public data, no account or key needed. Read-only: it cannot trade or move funds.

tools

21

Region

INTL

Category

Finance

Authentication

Public API

Install in one click on Cloud

7-day free trial · No credit card

  • 7-day free trial
    No credit card required
  • GDPR & SOC 2 ready
    EU data residency, audit logs
  • Open-source on GitHub
    Open source · AGPL-3.0
  • Works with ChatGPT, Claude, Gemini
    Any MCP-compatible client

Skip the install. Get this working in under 2 minutes.

Start a free trial on cloud.anythingmcp.com, add the Binance in one click, then point your AI client (Claude, ChatGPT, Copilot or Cursor) at the generated MCP endpoint. No Docker, no git clone, zero engineering experience required.

Start free trial

Summary

Let your AI read live crypto market data from Binance: spot prices and 24 hour changes of every pair, order books, recent trades and price history, and for USD-M futures the mark price, funding rates, open interest and long/short ratio. Public data, no account or key needed. Read-only: it cannot trade or move funds.

Try asking

Example prompts for Binance

Click any prompt to copy it. Paste into Claude, ChatGPT, Cursor, Gemini, Copilot or OpenClaw to run it against this connector.

Binance · live via MCP
Share
Opus 4.7

Claude is AI and can make mistakes. Please double-check responses.

💡 No install? Use cloud.anythingmcp.com directly. Sign in, click Connectors → Binance, install it with no key, mint an MCP API key and you're done. No Docker, no git clone, no local server.

Binance + Gemini

Let your AI read live crypto market data from Binance: spot prices and 24 hour changes of every pair, order books, recent trades and price history, and for USD-M futures the mark price, funding rates, open interest and long/short ratio. Public data, no account or key needed. Read-only: it cannot trade or move funds.

Prerequisites

See the full setup instructions baked into the connector (visible in the in-app store when you select the connector). The required environment variables for this connector are:

(none: public data, no API key)

Step 1 — Set up the connector

Public market data, no key: there is nothing to set up. The connector reads Binance's public market data from the Spot API and the USD-M futures API. No Binance account, API key or sign-in is needed.

  1. In the connector store, pick Binance and install it. There is nothing to paste and no Authorize with Provider step.
  2. Check it with binance_get_server_time: if Binance answers, it serves the region your server calls from. Then ask for a price: binance_get_price with BTCUSDT tells you what one bitcoin costs in Tether right now.

Where it works: Binance refuses requests from the United States and some other restricted regions with HTTP 451. AnythingMCP Cloud calls Binance from the EU, so it works there. A self-hosted server in a restricted region gets 451 on every tool. For spot data only, a self-hosted server may point the connector's base URL at Binance's market-data mirror https://data-api.binance.vision, which serves the same spot routes; the futures tools always call fapi.binance.com. Binance.US is a different exchange with its own prices and is not covered.

It cannot trade or move funds, by design: no tool places or cancels an order, buys, sells or converts, or transfers, deposits or withdraws anything, and none can be switched on, because the connector never signs a request and never sees a Binance account. It cannot see anyone's balances, orders, positions, trades or deposit addresses either. For your own account, use the Binance app or website.

Not financial advice: prices, volumes, funding rates and ratios are information. The AI does not tell you to buy, sell, hold, go long or go short. It shows the numbers with their time and source, and reminds you that crypto prices move fast and that leveraged futures can lose more than the margin.

What it reads: on spot, the price of one pair, several or all, 24 hour statistics and rolling windows from 1 minute to 7 days, the best bid and ask, order books, recent trades, candles and a pair's trading rules such as tick size and minimum order value. On USD-M futures, the last price, 24 hour statistics, candles, order books, the mark and index price with the current funding rate and the next funding time, past funding rates, open interest and its history, and the long/short account ratio. The futures list also includes perpetuals on stocks and commodities and quarterly delivery contracts.

Valuing holdings you name: tell the AI what you hold, for example 0.5 BTC and 3 ETH. It multiplies each amount by the spot price in a quote asset you use (BTCEUR, ETHEUR or the USDT pairs) and adds them up, stating the time of the prices. USDT and USDC are dollar stablecoins, close to but not exactly 1 USD.

Symbols: Binance writes a pair as one word in capitals, base asset first: BTCUSDT (bitcoin priced in Tether), ETHBTC, BNBEUR. There is no dash and no slash. Many pairs do not exist (there is BTCEUR but no SOLCHF), and an unknown one answers 400 with code -1121. Spot and futures are separate markets with their own prices: BTCUSDT on futures is the perpetual contract, not the spot pair.

Numbers and times: prices come as text so no digit is lost. Times are Unix milliseconds in UTC, and the AI converts them to your time zone. Funding rates are fractions per funding interval (0.0001 is 0.01 %), and a positive rate means longs pay shorts. The long/short ratio counts accounts, not position size. Open interest history and the long/short ratio only go back 30 days.

Limits: Binance limits each IP address by request weight: 6,000 a minute on spot and 2,400 on futures, plus 1,000 requests per 5 minutes for the futures statistics and 500 for funding history. A Cloud server shares one IP among its users, so the AI asks for several symbols in one call and keeps results small. After a 429 it stops and waits; continuing gets the IP banned with HTTP 418 for 2 minutes up to 3 days.

Common errors: 400 with code -1121 is an unknown symbol, -1100 or -1102 a malformed or missing parameter. 451 means Binance does not serve the server's region. 403 means Binance's firewall blocked the request, usually a rate limit. 429 and 418 mean wait.

The connector does not cover anything that needs a Binance account or a signed request (balances, orders, trades, positions, leverage, transfers, deposits, withdrawals, Earn, Convert, margin), COIN-M futures, options, WebSocket streams or Binance.US.

Step 2 — Install the adapter

curl -fsSL https://raw.githubusercontent.com/HelpCode-ai/anythingmcp/main/docker-compose.quickstart.yml -o docker-compose.yml
printf 'JWT_SECRET=%s\nENCRYPTION_KEY=%s\n' "$(openssl rand -hex 32)" "$(openssl rand -hex 32)" > .env
docker compose up -d

Step 3 — Add the connector in Gemini

Your server URL: in AnythingMCP, open MCP Servers → the server this connector is on, and copy its URL (https://cloud.anythingmcp.com/mcp/…). Use it wherever this guide shows YOUR_SERVER_ID.

Gemini CLI reads MCP servers from ~/.gemini/settings.json (on Windows %USERPROFILE%\.gemini\settings.json). Add:

{
  "mcpServers": {
    "anythingmcp": {
      "httpUrl": "https://cloud.anythingmcp.com/mcp/YOUR_SERVER_ID",
      "headers": { "X-API-Key": "YOUR_MCP_API_KEY" }
    }
  }
}
  1. Create an MCP API key in AnythingMCP under MCP Servers → your server → API keys, and paste it in place of YOUR_MCP_API_KEY.
  2. Save the file and restart gemini.
  3. Run /mcp inside Gemini CLI (or gemini mcp list in your shell): anythingmcp should show as connected.
  4. Start prompting: Gemini CLI can now call the Binance tools.

Available tools

ToolWhat it does
binance_get_server_timeRead Binance's current server time as Unix milliseconds (weight 1)
binance_list_symbolsList the spot trading pairs that are trading on Binance right now (symbol names only, about 1,400, e.g
binance_get_symbol_infoRead the trading rules of one Binance spot pair: status, base and quote asset, precisions, order types and filters such as tick size…
binance_get_priceRead the latest spot price of one Binance pair, several pairs (symbols) or, with neither, every pair
binance_get_24h_tickerRead 24 hour statistics of Binance spot pairs: last price, change and change in percent, open, high, low, weighted average price, volume in…
binance_get_rolling_tickerRead price change statistics of Binance spot pairs over a window other than 24 hours, from 1 minute to 7 days: open, high, low, last price…
binance_get_book_tickerRead the best bid and best ask (price and quantity) of one Binance spot pair, several (symbols) or all
binance_get_avg_priceRead the current average price of a Binance spot pair over the last few minutes (mins), the reference Binance uses for some order filters
binance_get_order_bookRead the order book of a Binance spot pair: the best bids and asks as [price, quantity] pairs, best first. limit sets the levels per side…
binance_get_recent_tradesRead the most recent public trades of a Binance spot pair: price, quantity in the base asset, value in the quote asset, time (Unix…
binance_get_klinesRead price history of a Binance spot pair as candles (klines), oldest first: open time, open, high, low, close, volume in the base asset…
binance_futures_list_symbolsList the USD-M futures contracts trading on Binance right now (symbol names only), grouped into crypto perpetuals, perpetuals on stocks…
binance_futures_get_priceRead the latest traded price of one Binance USD-M futures contract, or of all with no symbol
binance_futures_get_24h_tickerRead 24 hour statistics of Binance USD-M futures contracts: last price, change in percent, open, high, low, weighted average price, volume…
binance_futures_get_klinesRead price history of a Binance USD-M futures contract as candles (klines), oldest first: open time, open, high, low, close, volume, quote…
binance_futures_get_mark_priceRead the mark price, index price and current funding rate of Binance USD-M perpetual contracts, with the time of the next funding (Unix…
binance_futures_get_funding_rate_historyRead past funding rates of a Binance USD-M perpetual contract, oldest first: funding time (Unix milliseconds), fundingRate as a fraction…
binance_futures_get_open_interestRead the current open interest of a Binance USD-M futures contract: the number of open contracts in the base asset (BTC for BTCUSDT) and…
binance_futures_get_open_interest_historyRead the open interest history of a Binance USD-M futures contract per period: sumOpenInterest in the base asset, sumOpenInterestValue in…
binance_futures_get_long_short_ratioRead the long/short account ratio of a Binance USD-M futures contract per period: the share of all accounts with a net long position…
binance_futures_get_order_bookRead the order book of a Binance USD-M futures contract: the best bids and asks as [price, quantity] pairs, best first

Example prompts

  • "What do Bitcoin, Ether and Solana cost in USDT right now, and how did they move in the last 24 hours?"
  • "I hold 0.5 BTC and 3 ETH. What are they worth in euros right now?"
  • "What is the funding rate on the BTCUSDT perpetual right now, and how has it changed over the last week?"
  • "Which futures contracts have the most extreme funding rates at the moment?"
  • "Show me open interest and the long/short ratio for ETHUSDT over the last 7 days, day by day."

FAQ

Where does Gemini CLI look for MCP servers? In ~/.gemini/settings.json for your user, or in .gemini/settings.json inside a project. gemini mcp list shows each server and whether it connects.

Next steps

Was this guide helpful?

Your Binance agent is one click away.

Install the connector, paste the key, prompt Gemini. Free for 7 days, no credit card.

Related guides

Connectors

Binance to MCP: Live Crypto Prices, Funding Rates and Open Interest in any AI Agent

Let your AI read live crypto market data from Binance: spot prices and 24 hour changes of every pair, order books, recent trades and price history, and for USD-M futures the mark price, funding rates, open interest and long/short ratio. Public data, no account or key needed. Read-only: it cannot trade or move funds.

Connectors

How to Connect Binance to ChatGPT via MCP

Let your AI read live crypto market data from Binance: spot prices and 24 hour changes of every pair, order books, recent trades and price history, and for USD-M futures the mark price, funding rates, open interest and long/short ratio. Public data, no account or key needed. Read-only: it cannot trade or move funds.

Connectors

How to Connect Binance to Claude via MCP

Let your AI read live crypto market data from Binance: spot prices and 24 hour changes of every pair, order books, recent trades and price history, and for USD-M futures the mark price, funding rates, open interest and long/short ratio. Public data, no account or key needed. Read-only: it cannot trade or move funds.

Connectors

How to Connect Binance to Cursor via MCP

Let your AI read live crypto market data from Binance: spot prices and 24 hour changes of every pair, order books, recent trades and price history, and for USD-M futures the mark price, funding rates, open interest and long/short ratio. Public data, no account or key needed. Read-only: it cannot trade or move funds.

Connectors

How to Connect Binance to Meta Muse via MCP

Let your AI read live crypto market data from Binance: spot prices and 24 hour changes of every pair, order books, recent trades and price history, and for USD-M futures the mark price, funding rates, open interest and long/short ratio. Public data, no account or key needed. Read-only: it cannot trade or move funds.

Connectors

How to Connect Avito to Gemini via MCP

Let your AI work with your Avito business account: list your ads and change their prices, read views, contacts and calls statistics, check autoload uploads and their errors, the feed format and your wallet, and read Avito Messenger chats. Sending messages and changing autoload settings are optional and off by default.