Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
gate avatar

Gate MCP

  • 33 repo stars
  • Updated April 16, 2026
  • gate/gate-mcp

A Gate MCP (Model Context Protocol) server that enables AI agents to interact with the Gate cryptocurrency exchange for market data, trading, and account management.

About

A Gate MCP (Model Context Protocol) server that enables AI agents to interact with the Gate cryptocurrency exchange for market data, trading, and account management. [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) [![MCP](https://img.shields.io/badge/MCP-Protocol-blue)](https://modelcontextprotocol.io) A Gate MCP (Model Context Protocol) server that enables AI agents to interact with the Gate cryptocurrency exchange for market data, trading, and account management.

  • [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
  • [![MCP](https://img.shields.io/badge/MCP-Protocol-blue)](https://modelcontextprotocol.io)
  • [English](README.md) | [中文](README_zh.md)
  • 💹 **Trading** - Create/cancel/amend spot, futures, options, delivery orders; price-triggered orders; trail orders
  • 💼 **Account & Wallet** - Balances, transfers, deposits, withdrawals, sub-accounts, unified account

Gate MCP by the numbers

  • Exposes 63 verified tools (MCP introspection)
  • Data as of Jul 20, 2026 (Skillselion catalog sync)
terminal
claude mcp add --transport http gate-mcp https://api.gatemcp.ai/mcp

Add your badge

Show developers this MCP server is listed on Skillselion. Paste this into your README.

Listed on Skillselion
repo stars33
TransportHTTP
AuthNone
Tools63
Last updatedApril 16, 2026
Repositorygate/gate-mcp

How do agents access Gate MCP Server capabilities without custom integration code?

A Gate MCP (Model Context Protocol) server that enables AI agents to interact with the Gate cryptocurrency exchange for market data, trading, and account management.

Who is it for?

Developers wiring Gate MCP Server into Cursor, Claude Desktop, or other MCP clients.

Skip if: Teams that need features outside the documented Gate MCP Server tool surface.

What you get

Configured MCP host can call Gate MCP Server tools with schemas from the server README.

  • Registered public Gate MCP remote
  • Agent-readable coverage across seven Gate market product lines
  • Faster market-informed specs and read-only prototypes

By the numbers

  • [object Object]
At a glance

Gate MCP capabilities & compatibility

Capabilities
[![license: mit](https://img.shields.io/badge/li · [![mcp](https://img.shields.io/badge/mcp protoco · [english](readme.md) | [中文](readme_zh.md) · 💹 **trading** create/cancel/amend spot, futur
Use cases
api development · orchestration
Runs
Runs locally
Pricing
Bring your own API key
From the docs

What Gate MCP says it does

https://api.gatemcp.ai/mcp
README.md

Tools 63

Public tool metadata - what this server can do for an agent.

cex_activity_list_activity_types

List activity types.

cex_alpha_list_alpha_currencies3 params

List Alpha currencies.

  • currencystringQuery by currency symbol
  • limitnumberMaximum number of records returned in a single list
  • pagenumberPage number
cex_alpha_list_alpha_tickers3 params

List Alpha tickers.

  • currencystringQuery by specified currency name
  • limitnumberMaximum number of records returned in a single list
  • pagenumberPage number
cex_alpha_list_alpha_tokens4 params

List Alpha tokens.

  • addressstringQuery by contract address
  • chainstringChain: solana, eth, bsc, base, world, sui, arbitrum, avalanche, polygon, linea, optimism, zksync, gatelayer
  • launch_platformstringLaunch platform: meteora_dbc, fourmeme, moonshot, pump, raydium_launchlab, letsbonk, gatefun, virtuals
  • pagenumberPage number
cex_dc_get_dc_contract2 params

Get delivery contract.

  • contractstringrequiredDelivery contract identifier (e.g. BTC_USDT)
  • settlestringSettlement currency for delivery (e.g. usdt, btc)
cex_dc_list_dc_candlesticks6 params

List delivery candlesticks.

  • contractstringrequiredDelivery contract identifier (e.g. BTC_USDT; may use mark_/index_ prefix for price type)
  • fromnumberStart timestamp in seconds
  • intervalstringTime interval for data points
  • limitnumberMaximum number of data points to return
  • settlestringSettlement currency for delivery (e.g. usdt, btc)
  • tonumberEnd timestamp in seconds
cex_dc_list_dc_contracts1 param

List delivery contracts.

  • settlestringSettlement currency for delivery (e.g. usdt, btc)
cex_dc_list_dc_insurance_ledger2 params

List delivery insurance ledger.

  • limitnumberMaximum number of records to return
  • settlestringSettlement currency for delivery (e.g. usdt, btc)
cex_dc_list_dc_order_book5 params

Get delivery order book.

  • contractstringrequiredDelivery contract identifier (e.g. BTC_USDT)
  • intervalstringOrder depth aggregation precision. 0 means no aggregation, defaults to 0 if not specified
  • limitnumberMaximum number of order depth levels to return
  • settlestringSettlement currency for delivery (e.g. usdt, btc)
  • with_idbooleanWhether to return order book update ID
cex_dc_list_dc_risk_limit_tiers4 params

List delivery risk limit tiers.

  • contractstringOptional delivery contract identifier; if set, risk tiers for that contract only
  • limitnumberMaximum number of records to return
  • offsetnumberList offset, starting from 0
  • settlestringSettlement currency for delivery (e.g. usdt, btc)
cex_dc_list_dc_tickers2 params

List delivery tickers.

  • contractstringOptional delivery contract identifier; if set, only that contract's ticker is returned
  • settlestringSettlement currency for delivery (e.g. usdt, btc)
cex_dc_list_dc_trades6 params

List delivery trades.

  • contractstringrequiredDelivery contract identifier (e.g. BTC_USDT)
  • fromnumberStart timestamp in seconds
  • last_idstringSpecify list starting point using the last record ID from previous request
  • limitnumberMaximum number of records to return
  • settlestringSettlement currency for delivery (e.g. usdt, btc)
  • tonumberEnd timestamp in seconds
cex_earn_list_dual_investment_plans7 params

List dual investment plans.

  • coinstringInvestment currency, e.g. BTC
  • pagenumberPage number
  • page_sizenumberItems per page
  • plan_idnumberFinancial project ID (int64)
  • quote_currencystringSettlement currency: default USDT, optional GUSD
  • sortstringSort: apy (APR desc), short-period (term asc), multiple (premium desc)
  • typestringput (low buy) or call (high sell)
cex_earn_list_earn_fixed_term_products4 params

List fixed-term Earn products.

  • assetstringCurrency name, e.g. USDT
  • limitnumberrequiredPage size
  • pagenumberrequiredPage number
  • typenumberProduct type: 1=normal, 2=vip
cex_earn_list_earn_fixed_term_products_by_asset2 params

List fixed-term Earn products by asset.

  • assetstringrequiredCurrency name, e.g. USDT, BTC
  • typestringProduct type: empty or 1=normal, 2=vip, 0=all
cex_earn_list_uni_currencies

List Simple Earn currencies.

cex_fx_get_fx_candlesticks7 params

Get futures candlestick/OHLCV data

  • contractstringrequiredFutures contract name
  • fromnumberStart timestamp in seconds. Defaults to to - 100 * interval if not specified
  • intervalstringTime interval. Note: 1w means natural week, 7d aligns with Unix epoch, 30d means natural month
  • limitnumberMaximum number of data points to return. Mutually exclusive with from/to parameters
  • settlestringSettlement currency
  • timezonestringTimezone: all/utc0/utc8, defaults to utc0
  • tonumberEnd timestamp in seconds, defaults to current time if not specified
cex_fx_get_fx_contract2 params

Get details of a single futures contract

  • contractstringrequiredFutures contract name
  • settlestringSettlement currency
cex_fx_get_fx_funding_rate5 params

Get funding rate history for a futures contract

  • contractstringrequiredFutures contract name
  • fromnumberStart timestamp in seconds
  • limitnumberMaximum number of records to return
  • settlestringSettlement currency
  • tonumberEnd timestamp in seconds
cex_fx_get_fx_order_book5 params

Get futures order book

  • contractstringrequiredFutures contract name
  • intervalstringOrder depth aggregation precision. 0 means no aggregation, defaults to 0 if not specified
  • limitnumberMaximum number of order depth levels to return
  • settlestringSettlement currency
  • with_idbooleanWhether to return order book update ID. ID increments by 1 on each change
cex_fx_get_fx_premium_index6 params

Get premium index (mark price minus index price) history for a contract

  • contractstringrequiredFutures contract name
  • fromnumberStart timestamp in seconds. Defaults to to - 100 * interval if not specified
  • intervalstringTime interval for data points
  • limitnumberMaximum number of data points to return. Mutually exclusive with from/to parameters
  • settlestringSettlement currency
  • tonumberEnd timestamp in seconds, defaults to current time if not specified
cex_fx_get_fx_risk_limit_table2 params

Get a specific risk limit tier table by table ID.

  • settlestringrequiredSettlement currency: usdt or btc
  • table_idstringrequiredRisk limit table ID
cex_fx_get_fx_tickers2 params

Get ticker information for futures contracts

  • contractstringFutures contract name. Only returns data for this contract if specified
  • settlestringSettlement currency
cex_fx_get_fx_trades7 params

Get recent public trades for a futures contract

  • contractstringrequiredFutures contract name
  • fromnumberStart timestamp in seconds. If not specified, returns records limited by to and limit
  • last_idstringSpecify list starting point using the last record ID from previous request
  • limitnumberMaximum number of records to return
  • offsetnumberList offset, starting from 0
  • settlestringSettlement currency
  • tonumberEnd timestamp in seconds, defaults to current time if not specified
cex_fx_get_index_constituents2 params

Get constituent assets and weights for a futures index

  • indexstringrequiredIndex name
  • settlestringSettlement currency
cex_fx_list_batch_fx_funding_rates2 params

Get current funding rates for multiple contracts in one request

  • contractsstringrequiredComma-separated list of contract names, e.g. BTC_USDT,ETH_USDT
  • settlestringSettlement currency
cex_fx_list_contract_stats5 params

Get contract statistics (open interest, long/short ratio, etc.)

  • contractstringrequiredFutures contract name
  • fromnumberStart timestamp in seconds
  • intervalstringTime interval for data points
  • limitnumberMaximum number of data points to return
  • settlestringSettlement currency
cex_fx_list_fx_contracts3 params

List all perpetual futures contracts

  • limitnumberMaximum number of records to return
  • offsetnumberList offset, starting from 0
  • settlestringSettlement currency
cex_fx_list_fx_insurance_ledger2 params

Get futures insurance fund history

  • limitnumberMaximum number of records to return
  • settlestringSettlement currency
cex_fx_list_fx_liq_orders5 params

Get personal futures liquidation history.

  • contractstringFutures contract name. Only returns data for this contract if specified
  • fromnumberStart timestamp in seconds
  • limitnumberMaximum number of records to return
  • settlestringSettlement currency
  • tonumberEnd timestamp in seconds
cex_launch_get_candy_drop_activity_list_v46 params

List CandyDrop activities with optional filters (public, no auth)

  • currencystringFilter by currency name
  • limitnumberMax rows to return, default 10, max 30
  • offsetnumberOffset for pagination, default 0
  • register_statusstringregistered | unregistered; omit for all
  • rule_namestringTask type filter: spot, futures, deposit, invite, trading_bot, simple_earn, first_deposit, alpha, flash_swap, tradfi, etf
  • statusstringongoing | upcoming | ended; omit for all
cex_launch_get_candy_drop_activity_rules_v42 params

Get CandyDrop activity rules including prize pools and tasks (public). Pass activity_id OR currency (at least one required by API)

  • activity_idnumberActivity ID; use with or instead of currency
  • currencystringProject/currency name; use with or instead of activity_id
cex_launch_get_hodler_airdrop_project_list5 params

List HODLer Airdrop campaigns with optional filters (public; logged-in users may see extra participation info)

  • joinnumberParticipation filter: 0=all (default), 1=joined only. Omit parameter to use API default (all)
  • keywordstringFuzzy match on currency or project name
  • pagenumberPage number, starting from 1
  • sizenumberItems per page, default 10
  • statusstringFilter: ACTIVE, UNDERWAY, PREHEAT, FINISH; omit for all
cex_launch_list_launch_pool_projects7 params

List launch pool projects with optional filters

  • limit_rulenumberLimit rule: 0=Normal pool, 1=Newbie pool
  • mortgage_coinstringStaking currency exact match
  • pagenumberPage number, starting from 1
  • page_sizenumberItems per page, default 10, max 30
  • search_coinstringReward currency & name fuzzy match
  • sort_typenumberSort type: 1=Max APR descending, 2=Max APR ascending
  • statusnumberProject status filter: 0=All, 1=In progress, 2=Warming up, 3=Ended, 4=In progress + Warming up
cex_margin_get_market_margin_tier1 param

Get margin leverage tiers for a currency pair

  • currency_pairstringrequiredCurrency pair, e.g. BTC_USDT
cex_margin_get_uni_currency_pair1 param

Get details of a specific unified margin currency pair

  • currency_pairstringrequiredCurrency pair, e.g. ADA_USDT
cex_margin_list_uni_currency_pairs

List all currency pairs supported for unified margin lending

cex_mcl_get_multi_collateral_current_rate2 params

Get current interest rates for specified currencies in multi-collateral loans (public)

  • currenciesstringrequiredCurrency names separated by commas, e.g. BTC,ETH,USDT. Maximum 100 items
  • vip_levelstringVIP level, defaults to 0 if not specified
cex_mcl_get_multi_collateral_fix_rate

Get available fixed interest rates for multi-collateral loans (public)

cex_mcl_get_multi_collateral_ltv

Get LTV (Loan-to-Value) ratios for multi-collateral loans (public)

cex_mcl_list_multi_collateral_currencies

List all supported currencies for multi-collateral loans (public)

cex_options_get_options_contract1 param

Get details of a single options contract

  • contractstringrequiredOptions contract name
cex_options_get_options_settlement3 params

Get a single options settlement record

  • atstringrequiredSettlement timestamp (Unix timestamp in seconds)
  • contractstringrequiredOptions contract name
  • underlyingstringrequiredUnderlying asset name, e.g. BTC_USDT
cex_options_list_options_candlesticks5 params

Get options candlestick data

  • contractstringrequiredOptions contract name
  • fromnumberStart timestamp in seconds
  • intervalstringTime interval between data points, e.g. 1m, 5m, 15m, 30m, 1h
  • limitnumberMaximum number of records to return
  • tonumberEnd timestamp in seconds
cex_options_list_options_contracts2 params

List all options contracts for an underlying

  • expirationnumberUnix timestamp of expiration date
  • underlyingstringrequiredUnderlying asset name, e.g. BTC_USDT
cex_options_list_options_expirations1 param

List option expiration dates for an underlying

  • underlyingstringrequiredUnderlying asset name, e.g. BTC_USDT
cex_options_list_options_order_book4 params

Get options order book

  • contractstringrequiredOptions contract name
  • intervalstringPrice precision for merged depth. 0 means no merging
  • limitnumberNumber of depth levels
  • with_idbooleanWhether to return depth update ID
cex_options_list_options_settlements5 params

List options settlement history for an underlying

  • fromnumberStart timestamp in seconds
  • limitnumberMaximum number of records to return
  • offsetnumberList offset, starting from 0
  • tonumberEnd timestamp in seconds
  • underlyingstringrequiredUnderlying asset name, e.g. BTC_USDT
cex_options_list_options_tickers1 param

Get options tickers for an underlying

  • underlyingstringrequiredUnderlying asset name, e.g. BTC_USDT
cex_options_list_options_trades6 params

List public options trades

  • contractstringOptions contract name
  • fromnumberStart timestamp in seconds
  • limitnumberMaximum number of records to return
  • offsetnumberList offset, starting from 0
  • tonumberEnd timestamp in seconds
  • typestringOption type: C for call, P for put
cex_options_list_options_underlying_candlesticks5 params

Get candlestick data for an options underlying index

  • fromnumberStart timestamp in seconds
  • intervalstringTime interval between data points, e.g. 1m, 5m, 15m, 30m, 1h
  • limitnumberMaximum number of records to return
  • tonumberEnd timestamp in seconds
  • underlyingstringrequiredUnderlying asset name, e.g. BTC_USDT
cex_options_list_options_underlying_tickers1 param

Get ticker data for all contracts under an underlying

  • underlyingstringrequiredUnderlying asset name, e.g. BTC_USDT
cex_options_list_options_underlyings

List all options underlying assets

cex_spot_get_currency1 param

Get details of a single currency

  • currencystringrequiredCurrency name
cex_spot_get_currency_pair1 param

Get details of a single currency pair

  • currency_pairstringrequiredCurrency pair name, e.g. BTC_USDT
cex_spot_get_spot_candlesticks5 params

Get candlestick/OHLCV data for a currency pair

  • currency_pairstringrequiredCurrency pair
  • fromnumberStart time of K-line in Unix timestamp (seconds). Defaults to to - 100 * interval if not specified
  • intervalstringTime interval of data points. Note: 30d represents natural month, not 30 days
  • limitnumberMaximum number of data points to return. Mutually exclusive with from/to parameters
  • tonumberEnd time of K-line in Unix timestamp (seconds). Defaults to current time if not specified
cex_spot_get_spot_order_book4 params

Get the order book for a currency pair

  • currency_pairstringrequiredCurrency pair
  • intervalstringOrder depth aggregation precision. 0 means no aggregation
  • limitnumberMaximum number of order depth levels to return, default 10, max 100
  • with_idbooleanWhether to return order book update ID
cex_spot_get_spot_tickers2 params

Get ticker information for one or all currency pairs

  • currency_pairstringCurrency pair name, e.g. BTC_USDT. Returns all pairs if not specified
  • timezonestringTimezone, e.g. Asia/Shanghai. Affects the time range of statistics
cex_spot_get_spot_trades7 params

Get recent trades for a currency pair

  • currency_pairstringrequiredCurrency pair
  • fromnumberStart timestamp in seconds
  • last_idstringUse the last record ID from previous list as starting point for next list
  • limitnumberMaximum number of records to return, default 100
  • pagenumberPage number
  • reversebooleanWhether to retrieve records less than last_id. Default returns records greater than last_id
  • tonumberEnd timestamp in seconds, defaults to current time if not specified
cex_spot_list_currencies

List all currencies supported

cex_spot_list_currency_pairs

List all available spot trading pairs

cex_square_list_live_replay4 params

List live stream replays from Gate Square

  • coinstringCurrency name filter (e.g. BTC, ETH)
  • limitnumberNumber of results, 1~10, default 3
  • sortstringSort order: hot=hottest (default), new=newest
  • tagstringBusiness type filter: Market Analysis, Hot Topics, Blockchain, Others
cex_square_list_square_ai_search6 params

Search Gate Square content using AI (posts, analysis, signals)

  • currencystringCurrency filter (exact currency code, e.g. BTC, ETH, SOL)
  • keywordstringSearch keyword (currency name or content keyword, e.g. BTC, ETH)
  • limitnumberNumber of results, 1~50, default 10
  • pagenumberPage number for pagination, starting from 1
  • sortnumberSort order: 0=hottest (default), 1=newest
  • time_rangenumberTime range: 0=all (default), 1=last day, 2=last week, 3=last month
README.md

Gate MCP Server

License: MIT MCP

English | 中文


A Gate MCP (Model Context Protocol) server that enables AI agents to interact with the Gate cryptocurrency exchange for market data, trading, and account management.

Features

  • 🔍 Public Market Data - Spot, futures, margin, options, delivery, earn, alpha tickers, order books, K-line, funding rate, liquidation history (no auth required)
  • 💹 Trading - Create/cancel/amend spot, futures, options, delivery orders; price-triggered orders; trail orders
  • 💼 Account & Wallet - Balances, transfers, deposits, withdrawals, sub-accounts, unified account
  • 📊 Margin & Earn - Margin loans, earn products, multi-currency flash swap
  • 🎯 Activity & Welfare - Activity center, coupons, launch pool, square, welfare
  • 🌍 TradFi, CrossEx, P2P - Traditional finance, cross-exchange, P2P trading
  • 🌐 DEX - On-chain wallet, swap (single-chain & cross-chain), token info, market data across 20+ chains
  • 📰 Info - Coin info, market snapshots, technical analysis, on-chain data, compliance checks
  • 📢 News - Real-time crypto news, exchange announcements, social sentiment
  • 🔐 OAuth2 - Secure authorization for trading and private tools

MCP Endpoints

The service exposes five MCP endpoints:

Endpoint Auth Tools
https://api.gatemcp.ai/mcp None Public market data (58 tools: spot, futures, margin, options, delivery, earn, alpha, activity, launch pool, square, flash swap)
https://api.gatemcp.ai/mcp/exchange OAuth2 CEX trading & account (400+ tools: spot/futures/options/delivery/margin trading, wallet, unified account, sub-accounts, earn, flash swap, rebate, TradFi, CrossEx, P2P, Alpha, activity center, coupon, launch pool, square, welfare)
https://api.gatemcp.ai/mcp/dex Google / Gate OAuth DEX wallet & swap (33 tools: auth, wallet, chain config, transfer, swap, market data, token info, agentic, RPC across 20+ chains)
https://api.gatemcp.ai/mcp/info None Coin info & analysis (10 tools: market snapshots, technical analysis, on-chain data, compliance)
https://api.gatemcp.ai/mcp/news None News & sentiment (3 tools: news search, exchange announcements, social sentiment)
  • Market data only → Use /mcp (no Gate account needed)
  • CEX trading, balances, transfers → Use /mcp/exchange (Gate OAuth2 required)
  • DEX wallet, swap, on-chain → Use /mcp/dex (Google / Gate OAuth required)
  • Coin info, technical analysis → Use /mcp/info (no auth)
  • News, announcements → Use /mcp/news (no auth)

Transport: Streamable HTTP (with SSE fallback).

Authorization (OAuth2)

/mcp/exchange requires Gate OAuth2; /mcp/dex requires Google or Gate OAuth. The endpoints /mcp, /mcp/info, and /mcp/news do not require any authentication.

Using mcporter

Prerequisites: Node.js >= 18, npm. See Quick Start - mcporter for full installation steps.

# Add Private MCP (trading, requires OAuth)
mcporter config add gate-mcp --url https://api.gatemcp.ai/mcp/exchange --auth oauth

# Authorize (opens browser to log in)
mcporter auth gate-mcp

Scopes (for /mcp/exchange)

Scope Use
market Public market data (tickers, order books, K-line, etc.)
profile Account info, orders, positions (read-only)
trade Create/cancel/amend orders
wallet Transfers, deposits, withdrawals
account Unified account, sub-accounts

Quick Start

Prerequisites

  • Gate account (required only for /mcp/exchange)
  • MCP-compatible client (Cursor, Claude CLI, Trae, OpenClaw, etc.)
  • Node.js >= 18 (for mcporter, Trae, Qoder, and other npm-based clients)
  • Python >= 3.9 (optional, for Claude Desktop proxy)

Cursor

Method 1: One-click Install (Recommended)

Just paste the following into the Cursor AI chat — the agent will auto-install all Gate MCP servers and Skills:

Help me auto install Gate Skills and MCPs: https://github.com/gate/gate-skills

See gate-skills for details.

Method 2: Manual Configuration

For full trading (OAuth on connect):

Edit ~/.cursor/mcp.json:

{
  "mcpServers": {
    "Gate": {
      "url": "https://api.gatemcp.ai/mcp/exchange",
      "transport": "streamable-http",
      "headers": {
        "Content-Type": "application/json",
        "Accept": "application/json, text/event-stream"
      }
    }
  }
}

For market data only (no auth):

{
  "mcpServers": {
    "Gate": {
      "url": "https://api.gatemcp.ai/mcp",
      "transport": "streamable-http",
      "headers": {
        "Content-Type": "application/json",
        "Accept": "application/json, text/event-stream"
      }
    }
  }
}

For DEX (on-chain wallet, swap):

{
  "mcpServers": {
    "Gate-Dex": {
      "url": "https://api.gatemcp.ai/mcp/dex",
      "headers": {
        "x-api-key": "MCP_AK_8W2N7Q",
        "Authorization": "Bearer ${GATE_MCP_TOKEN}"
      }
    }
  }
}

For Info & News (no auth):

{
  "mcpServers": {
    "Gate-Info": {
      "url": "https://api.gatemcp.ai/mcp/info"
    },
    "Gate-News": {
      "url": "https://api.gatemcp.ai/mcp/news"
    }
  }
}

See Cursor setup.

mcporter / OpenClaw

Method 1: One-click Install (Recommended)

Just paste the following into the OpenClaw AI chat — the agent will auto-install all Gate MCP servers and Skills:

Help me auto install Gate Skills and MCPs: https://github.com/gate/gate-skills

See gate-skills for details.

Method 2: Manual Configuration
Prerequisites (before installing mcporter)
  • Node.js >= 18 (mcporter requires npm)
  • npm (comes with Node.js) — verify with: node -v and npm -v
  • Gate account (for OAuth login when using /mcp/exchange)
Install mcporter
# Global install
npm install -g mcporter

# Verify installation
mcporter --version

Alternatively, run without installing: npx mcporter <command> (uses current Node.js/npm).

Add MCP and authorize
# Add Private MCP (trading, OAuth)
mcporter config add gate-mcp --url https://api.gatemcp.ai/mcp/exchange --auth oauth

# Authorize (opens browser to log in)
mcporter auth gate-mcp

# Add DEX MCP
mcporter config add gate-dex --url https://api.gatemcp.ai/mcp/dex

# Add Info MCP (no auth)
mcporter config add gate-info --url https://api.gatemcp.ai/mcp/info

# Add News MCP (no auth)
mcporter config add gate-news --url https://api.gatemcp.ai/mcp/news

See OpenClaw setup for detailed steps.

Claude CLI

Method 1: One-click Install (Recommended)

Just paste the following into Claude CLI — the agent will auto-install all Gate MCP servers and Skills:

Help me auto install Gate Skills and MCPs: https://github.com/gate/gate-skills

See gate-skills for details.

Method 2: Manual Configuration
brew install claude-code
# Full trading (OAuth)
claude mcp add --transport http Gate https://api.gatemcp.ai/mcp/exchange
# Restart Claude CLI after authorization is complete

# Info (no auth)
claude mcp add --transport http Gate-Info https://api.gatemcp.ai/mcp/info

# News (no auth)
claude mcp add --transport http Gate-News https://api.gatemcp.ai/mcp/news

claude mcp list

Trae

Edit Trae settings. Uses mcp-remote to proxy HTTP MCP (OAuth prompt on first connect for /mcp/exchange):

{
  "mcpServers": {
    "gate": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-remote@latest",
        "https://api.gatemcp.ai/mcp/exchange"
      ]
    },
    "gate-info": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-remote@latest",
        "https://api.gatemcp.ai/mcp/info"
      ]
    },
    "gate-news": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-remote@latest",
        "https://api.gatemcp.ai/mcp/news"
      ]
    }
  }
}

Qoder

Edit Qoder MCP settings (e.g. ~/.qoder/mcp.json or in Qoder settings):

{
  "mcpServers": {
    "gate": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-remote@latest",
        "https://api.gatemcp.ai/mcp/exchange"
      ]
    },
    "gate-info": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-remote@latest",
        "https://api.gatemcp.ai/mcp/info"
      ]
    },
    "gate-news": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-remote@latest",
        "https://api.gatemcp.ai/mcp/news"
      ]
    }
  }
}

Claude Desktop

Claude Desktop requires a local stdio proxy.

  1. Download the Python proxy file
  2. Edit ~/Library/Application Support/Claude/claude_desktop_config.json:
{
  "mcpServers": {
    "Gate": {
      "command": "python3",
      "args": ["/path/to/gate-mcp-proxy.py"]
    }
  }
}

See Claude Desktop setup for detailed instructions.

Alternative: gate-local-mcp (local stdio with API keys)

For local development without OAuth, use gate-local-mcp (npm: gate-mcp) — a stdio MCP server that uses GATE_API_KEY / GATE_API_SECRET (optional for public market data only). Configure it as a command-based MCP server (e.g. "command": "npx", "args": ["-y", "gate-mcp"]). By default it registers 384 tools across 22 modules (spot, futures, delivery, margin, wallet, account, options, earn, flash_swap, unified, sub_account, multi_collateral_loan, p2p, tradfi, crossex, alpha, rebate, activity, coupon, launch, square, welfare). Reduce the set with GATE_MODULES or --modules=spot,futures, or enable read-only mode with GATE_READONLY=true / --readonly.

Important: Wire-level tool names use abbreviations (futuresfx, deliverydc, sub_accountsa, etc.); they differ from the remote api.gatemcp.ai naming. Always use the names returned by tools/list.

Full tool list: gate-local-mcp-tools.md.

LobeHub (desktop)

On the LobeHub MCP marketplace this server appears as identifier gate-gate-mcp. The npm package name is gate-mcp — run npx -y gate-mcp, not gate-gate-mcp.

Per LobeHub custom MCP, stdio servers work on the desktop app only; inject environment variables for Gate API authentication. Use Import JSON when adding a custom skill.

Public endpoints only:

{
  "mcpServers": {
    "gate-mcp": {
      "command": "npx",
      "args": ["-y", "gate-mcp"],
      "type": "stdio"
    }
  }
}

With API key authentication:

{
  "mcpServers": {
    "gate-mcp": {
      "command": "npx",
      "args": ["-y", "gate-mcp"],
      "type": "stdio",
      "env": {
        "GATE_API_KEY": "your-api-key",
        "GATE_API_SECRET": "your-api-secret"
      }
    }
  }
}

You can add GATE_MODULES, GATE_READONLY, or GATE_BASE_URL inside env as needed. Click Test connection before saving.

Other Clients

Client Guide
Claude.ai setup
Codex App setup
Codex CLI setup
OpenClaw setup
Trae See Trae config above
Qoder See Qoder config above

Basic Usage

Query Price

What's the current price of BTC/USDT?

Get Order Book

Show me the order book for ETH/USDT

K-line Data

Get the daily K-line data for BTC over the last 7 days


Available Tools

All tools use the cex_ prefix. Tools are split between Public MCP (no auth) and Private MCP (OAuth2).

Public MCP (/mcp — no auth, 58 tools)

Business Tools Description
Spot 8 cex_spot_list_currencies, cex_spot_get_currency, cex_spot_list_currency_pairs, cex_spot_get_currency_pair, cex_spot_get_spot_tickers, cex_spot_get_spot_order_book, cex_spot_get_spot_trades, cex_spot_get_spot_candlesticks
Futures 14 Contracts, order book, trades, candlesticks, tickers, funding rate, premium index, liquidation, contract stats, insurance ledger, index constituents, batch funding rates, risk limit tiers
Margin 3 cex_margin_list_uni_currency_pairs, cex_margin_get_uni_currency_pair, cex_margin_get_market_margin_tier
Options 12 Underlyings, expirations, contracts, settlements, order book, tickers, candlesticks, trades
Delivery 8 Contracts, order book, trades, candlesticks, tickers, insurance ledger, risk limit tiers
Earn 5 cex_earn_list_dual_investment_plans, cex_earn_list_structured_products, cex_earn_list_uni_currencies, cex_earn_list_earn_fixed_term_products, cex_earn_list_earn_fixed_term_products_by_asset
Alpha 3 cex_alpha_list_alpha_currencies, cex_alpha_list_alpha_tickers, cex_alpha_list_alpha_tokens
Activity 1 cex_activity_list_activity_types
Launch 1 cex_launch_list_launch_pool_projects
Square 2 cex_square_list_square_ai_search, cex_square_list_live_replay
Flash Swap 1 cex_fc_list_fc_currency_pairs

Private MCP (/mcp/exchange — OAuth2, 400+ tools)

Note: The private endpoint does not include public market data tools. Use /mcp for market data queries.

Business Scope Key Tools
Spot profile / trade Accounts, orders, trades, batch orders, price-triggered orders, countdown cancel, cross liquidate
Futures profile / trade Accounts, positions, orders, trades, dual positions, trail orders, price-triggered, BBO orders
Margin profile / trade Margin accounts, loans, auto-repay, uni loans
Options profile / trade Account, positions, orders, MMP settings
Delivery profile / trade Accounts, positions, orders, price-triggered orders
Wallet wallet Total balance, transfers, deposits, withdrawals, deposit address, SA balances, small balance convert
Unified account Unified accounts, mode, loans, risk units, borrowable, collateral, leverage config
Sub-account account Create/list/lock/unlock SA, API keys
Account account Account detail, main keys, rate limit, debit fee, STP groups
Rebate profile Agency/partner/broker commission history, user info
Flash Swap profile / trade cex_fc_list_fc_currency_pairs, cex_fc_list_fc_orders, cex_fc_create_fc_order_v1, multi-currency flash swap
Earn profile / trade Dual/structured/uni products, orders, ETH2 swap, lend records
Alpha profile / trade Alpha accounts, orders, quote/place
TradFi profile / trade Categories, symbols, MT5 account, assets, orders, positions
CrossEx profile / trade Rule symbols, account, positions, orders, transfers, convert
P2P profile / trade User info, ads, chats, transactions, confirm payment/receipt
Activity profile Activity types, recommended activities, user participation
Coupon profile User coupons, coupon details
Launch Pool profile / trade LaunchPool projects, pledge/redeem, reward records
Square market AI search, live replay
Welfare profile Beginner eligibility, task list and rewards

For full tool parameters, see Gate API Docs or gate-exchange-mcp.

DEX — Authentication

Tool Description
dex_auth_google_login_start Start Google OAuth login flow, returns verification URL
dex_auth_google_login_poll Poll login status, returns mcp_token on success
dex_auth_login_google_wallet Login with Google OAuth authorization code
dex_auth_gate_login_start Start Gate OAuth login flow, returns verification URL
dex_auth_gate_login_poll Poll Gate OAuth login status, returns mcp_token on success
dex_auth_login_gate_wallet Login directly with Gate OAuth authorization code
dex_auth_logout Revoke current session

DEX — Wallet

Tool Description
dex_wallet_get_addresses Get wallet addresses for each chain (EVM, Solana)
dex_wallet_get_token_list Token balances with prices and pagination
dex_wallet_get_total_asset Total portfolio value and 24h change
dex_wallet_sign_message Sign a message with wallet private key (EVM / Solana)
dex_wallet_sign_transaction Sign a raw transaction with wallet private key

DEX — Chain & Transactions

Tool Description
dex_chain_config Chain configuration (chain ID, capabilities)
dex_tx_gas Estimate gas price and gas limit
dex_tx_transfer_preview Preview transfer details before signing
dex_tx_approve_preview Token approval preview: build ERC20/SPL approve transaction
dex_tx_get_sol_unsigned Build unsigned Solana SOL transfer with latest blockhash
dex_tx_send_raw_transaction Broadcast signed transaction on-chain
dex_tx_quote Swap quote with route, price impact and gas estimation
dex_tx_swap One-click swap: quote → build → sign → submit
dex_tx_swap_detail Query swap order status by order ID
dex_tx_list / dex_tx_detail / dex_tx_history_list Transaction & swap / bridge history

DEX — Market Data & Token Info

Tool Description
dex_market_get_kline K-line (candlestick) data: 1m, 5m, 1h, 4h, 1d
dex_market_get_tx_stats Trading volume and trader statistics (5m / 1h / 4h / 24h)
dex_market_get_pair_liquidity Liquidity pool add / remove events
dex_token_list_swap_tokens Available tokens for swap on a given chain
dex_token_list_cross_chain_bridge_tokens Bridgeable tokens for cross-chain transfers
dex_token_get_coin_info Token info: price, market cap, supply, holder distribution
dex_token_ranking 24h top gainers / top losers
dex_token_get_coins_range_by_created_at Discover new tokens by creation time range
dex_token_get_risk_info Security audit: honeypot, buy/sell tax, blacklist, permissions

DEX — Agentic & RPC

Tool Description
dex_agentic_report Report agentic wallet addresses to wallet service
dex_rpc_call Execute JSON-RPC call to blockchain node

For full DEX tool parameters, see gate-dex-mcp. For the Agentic Wallet subset (auth, wallet, market data, resources), see gate-agentic-wallet-mcp.

Info — Coin & Market

Tool Description
info_coin_get_coin_info Get coin info by name, symbol, or contract address
info_marketsnapshot_get_market_snapshot Market overview: price, K-line summary, market cap, FDV, fear & greed

Info — Market Trend & Technical Analysis

Tool Description
info_markettrend_get_kline OHLCV K-line data with optional indicators
info_markettrend_get_indicator_history Historical indicator series (RSI, MACD, MA, EMA)
info_markettrend_get_technical_analysis Multi-timeframe technical signals

Info — On-chain Data

Tool Description
info_onchain_get_address_info On-chain address: labels, risk level, token balances
info_onchain_get_address_transactions Address transaction history
info_onchain_get_transaction Full transaction details by tx hash
info_onchain_get_token_onchain Token on-chain data: holders, activity, smart money

Info — Compliance

Tool Description
info_compliance_check_token_security Token security check: risk tier, taxes, open source, holders

For full Info tool parameters, see gate-info-mcp.

News — Search & Announcements

Tool Description
news_feed_search_news Search news by keyword, coin, time range, platform type
news_feed_get_exchange_announcements Exchange announcements: listings, delistings, maintenance
news_feed_get_social_sentiment Post detail: author, content, interactions, sentiment

For full News tool parameters, see gate-news-mcp.

MCP Resources

The /mcp and /mcp/exchange endpoints also expose MCP Resources for static reference data:

Resource URI Description
gate://spot/currency_pairs All spot trading pairs
gate://spot/currencies All supported currencies
gate://futures/contracts/usdt USDT-settled futures contracts
gate://futures/contracts/btc BTC-settled futures contracts
gate://futures/contracts/{settle} Futures contracts by settlement currency

FAQ

Q: Do I need a Gate account?

A: Only for CEX trading and DEX wallet. /mcp, /mcp/info, and /mcp/news are fully public — no account needed. /mcp/exchange (CEX trading, balances, transfers) requires Gate OAuth2. /mcp/dex (on-chain wallet, swap) requires Google or Gate OAuth.

Q: Does it support trading?

A: Yes. Connect to https://api.gatemcp.ai/mcp/exchange with OAuth2. The server supports spot and futures trading, account management, wallet transfers, and sub-accounts. Each tool requires the appropriate scope (e.g. trade, wallet).

Q: How often is the data updated?

A: Data is queried in real-time from Gate's API.


Privacy & Security

  • OAuth2 authorization via Gate account (no API keys stored in config)
  • All API calls use HTTPS
  • See Gate Privacy Policy

Support & Feedback

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

Contributing

See CONTRIBUTING.md.

License

MIT © gate.com

Recommended MCP Servers

How it compares

Public multi-product Gate market-data MCP, not an OAuth exchange or DEX execution connector.

FAQ

What does Gate MCP Server do?

A Gate MCP (Model Context Protocol) server that enables AI agents to interact with the Gate cryptocurrency exchange for market data, trading, and account management.

When should I use Gate MCP Server?

A Gate MCP (Model Context Protocol) server that enables AI agents to interact with the Gate cryptocurrency exchange for market data, trading, and account management.

Is Gate MCP Server safe to install?

Review the Security Audits panel on this page before installing in production.

Developer Toolsintegrations

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.