Gate MCP

A Gate MCP (Model Context Protocol) server that enables AI agents to interact with the Gate cryptocurrency exchange for real-time market data.

Gate MCP

Introduction to Gate MCP Capabilities

In February 2025, Gate MCP will be launched, providing developers with tools for spot and derivatives markets based on centralized exchanges, offering real and reliable market data.

MCP Overview

Open-source standard protocol by Anthropic, connecting AI with external services

MCP Core Concept

Functions callable by AI to perform queries, API calls, and more

Spot Market Data

Query spot tickers, order books, trades, and K-line data

Futures Market Data

Access futures contracts, funding rates, premium index, and liquidation history

Real-time Prices

Get live cryptocurrency prices across 1,700+ trading pairs

Technical Analysis

Retrieve K-line/candlestick data for multiple timeframes

Spot market tools

ToolsDescriptionParametersReturn result explanation
list_currenciesGet all supported currencies with detailsList of currencies with name, precision, deposit/withdrawal status
get_currencyGet single currency information
  • currency (string, required): Currency name, e.g., BTC, ETH
Currency details including precision, chain info, deposit/withdrawal limits
list_currency_pairsGet all supported trading pairsList of trading pairs with trading rules and precision
get_currency_pairGet single trading pair details
  • currency_pair (string, required): Trading pair name, e.g., BTC_USDT
Trading pair details including min order size, price precision
get_spot_tickersGet spot market ticker data (price, volume, change)
  • currency_pair (string, optional): Trading pair name. Returns all pairs if not specified
  • timezone (string, optional): Timezone for statistics, e.g., Asia/Shanghai
Ticker data including last price, 24h high/low, volume, change percentage
get_spot_order_bookGet order book depth for a trading pair
  • currency_pair (string, required): Trading pair name
  • interval (string, optional): Price precision merge level, 0 for no merge
  • limit (number, optional): Number of levels to return, default 10, max 100
  • with_id (boolean, optional): Whether to return depth update ID
Bid and ask levels with price and quantity
get_spot_tradesGet recent trade history
  • currency_pair (string, required): Trading pair name
  • limit (number, optional): Number of records, default 100
  • last_id (string, optional): Pagination cursor
  • reverse (boolean, optional): Reverse order
  • from (number, optional): Start timestamp (seconds)
  • to (number, optional): End timestamp (seconds)
  • page (number, optional): Page number
Trade records with price, amount, timestamp, side
get_spot_candlesticksGet K-line/candlestick data
  • currency_pair (string, required): Trading pair name
  • interval (string, optional): K-line period: 1m, 5m, 15m, 30m, 1h, 4h, 8h, 1d, 7d, 30d
  • limit (number, optional): Number of data points (mutually exclusive with from/to)
  • from (number, optional): Start timestamp (seconds)
  • to (number, optional): End timestamp (seconds)
OHLCV data (Open, High, Low, Close, Volume)

Futures market tools

ToolsDescriptionParametersReturn result explanation
list_futures_contractsGet all perpetual futures
  • settle (string, optional): Settlement currency, usdt or btc
  • limit (number, optional): Maximum number to return
  • offset (number, optional): Offset for pagination
Contract list with specifications and margin requirements
get_futures_contractGet single contract details
  • contract (string, required): Contract identifier, e.g., BTC_USDT
  • settle (string, optional): Settlement currency, default usdt
Contract details including leverage, maintenance margin rate
get_futures_tickersGet futures market ticker data
  • settle (string, optional): Settlement currency, default usdt
  • contract (string, optional): Contract identifier. Returns all if not specified
Ticker data including last price, mark price, open interest
get_futures_order_bookGet futures order book depth
  • contract (string, required): Contract identifier
  • settle (string, optional): Settlement currency, default usdt
  • interval (string, optional): Price precision merge level
  • limit (number, optional): Number of levels
  • with_id (boolean, optional): Whether to return depth update ID
Bid and ask levels with price and quantity
get_futures_tradesGet futures trade history
  • contract (string, required): Contract identifier
  • settle (string, optional): Settlement currency, default usdt
  • limit (number, optional): Number of records
  • offset (number, optional): Offset for pagination
  • last_id (string, optional): Pagination cursor
  • from (number, optional): Start timestamp (seconds)
  • to (number, optional): End timestamp (seconds)
Trade records with price, size, timestamp
get_futures_candlesticksGet futures K-line data
  • contract (string, required): Contract identifier
  • settle (string, optional): Settlement currency, default usdt
  • interval (string, optional): K-line period
  • limit (number, optional): Number of data points
  • from (number, optional): Start timestamp (seconds)
  • to (number, optional): End timestamp (seconds)
  • timezone (string, optional): Timezone: all, utc0, utc8
OHLCV data for futures
get_futures_funding_rateGet funding rate history
  • contract (string, required): Contract identifier
  • settle (string, optional): Settlement currency, default usdt
  • limit (number, optional): Number of records
  • from (number, optional): Start timestamp
  • to (number, optional): End timestamp
Funding rate history with timestamps
get_futures_premium_indexGet premium index K-line
  • contract (string, required): Contract identifier
  • settle (string, optional): Settlement currency, default usdt
  • interval (string, optional): Data point interval
  • limit (number, optional): Number of data points
  • from (number, optional): Start timestamp (seconds)
  • to (number, optional): End timestamp (seconds)
Premium index K-line data
list_futures_liq_ordersGet liquidation order history
  • settle (string, optional): Settlement currency, default usdt
  • contract (string, optional): Contract identifier. Returns all if not specified
  • limit (number, optional): Number of records
  • from (number, optional): Start timestamp
  • to (number, optional): End timestamp
Liquidation order records

Product Integration

The use of MCP mainly falls into two scenarios: Claude Desktop (desktop client) and Claude AI (web platform).

Use in Claude Desktop

Add Claude Connectors

Web version of claude.ai

Go to Settings -> Connectors, and directly add the official Gate MCP integration (the steps for adding are similar to the screenshots above).

Application Example

Once enabled, you can interact with Gate market data through natural language:

Check BTC price

What is the current price of BTC/USDT?

U
AI

The current price of BTC/USDT is $83,742.9, with a 24-hour increase of +1.17%.

Get market depth

View the order book for ETH/USDT.

U
AI

[Display the top 10 bid and ask prices and quantities]

Analyze K-line data

Get the daily candlestick data for BTC for the last 7 days.

U
AI

[Return K-line data and provide trend analysis]

OpenAI has integrated MCP support into the ChatGPT web interface.

Privacy and Security

  • This service only queries publicly available market data
  • No personal information is collected
  • All API calls are transmitted via HTTPS encryption
  • For more details, see Gate Privacy Policy

Support and Feedback

  • API Documentation: Gate API Docs
  • Issue Reporting: Please contact Gate support
  • Business Inquiries: Contact Gate official channels

FAQ

Trade Crypto Anywhere Anytime
qrCode
Scan to download Gate App
Community
English
  • 简体中文
  • English
  • Tiếng Việt
  • 繁體中文
  • Español
  • Русский
  • Français (Afrique)
  • Português (Portugal)
  • Bahasa Indonesia
  • 日本語
  • بالعربية
  • Українська
  • Português (Brasil)