Gate MCP

io.github.gateio-dev由 GitHub 帳號 gateio-dev 發布v1.0.0更新於 Nov 3, 2026

Public Gate market data MCP for spot, futures, margin, options, delivery, earn, and alpha.

已驗證Streamable HTTP可網頁執行網頁搜尋與抓取金融

概覽

AI 產生的概覽

Gate 的遠端 MCP 伺服器,讓助理取得唯讀加密貨幣行情,並可選擇透過 OAuth 進行 CEX 交易、DEX 錢包與兌換、幣種研究與新聞查詢。

可以做什麼
在免登入的公開端點查詢現貨、合約、槓桿、選擇權、交割、理財與 Alpha 行情,包括報價、訂單簿、K 線、資金費率與爆倉歷史。研究幣種、市場快照、技術指標、鏈上活動、平台指標與總體經濟資料,並檢索加密新聞、社群情緒、市場事件與預測市場。搜尋研究報告、論文與文件。在交易所端點透過 OAuth 後,可管理帳戶、持倉、訂單、錢包劃轉、入金出金、子帳戶、槓桿借貸、理財、P2P 與 TradFi。在 DEX 端點透過 OAuth 後,可查看鏈上錢包餘額、簽署訊息,並在 20 多條鏈上報價、兌換與廣播交易。
適用情境
當助理需要免帳戶取得 Gate 即時行情、幣種研究或加密新聞時使用;或當你希望它在你自己的 Gate 或 Google 登入授權下進行交易、管理餘額或操作鏈上錢包時使用。
執行需求
遠端 streamable HTTP 端點,直接使用 HTTP 用戶端時不需本機執行環境。公開行情、資訊、新聞與文件端點不需帳戶。交易所端點需要 Gate 帳戶與 OAuth2,並授予 trade、wallet 等 scope;DEX 端點需要 Google 或 Gate OAuth。部分用戶端設定需要 Node.js 18 以上版本搭配 mcporter 或 mcp-remote,Claude Desktop 則需要 Python 代理。
安裝前請注意
交易所端點可建立、取消與修改訂單,劃轉資金,入金出金,並管理子帳戶與 API 金鑰,授予的 scope 會帶來真實資金風險。DEX 端點可用錢包私鑰簽署訊息與交易並在鏈上廣播,兌換會不可逆地轉移資金。README 中為 DEX 端點展示了 x-api-key 標頭與 bearer token,任何此類憑證都應視為機密。行情與帳戶活動會傳送到 Gate 的伺服器。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Gate MCP,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。

交給代理程式安裝

把這段提示詞貼上到 Claude Code、Codex、Cursor 等代理程式,或 SourceWeft 對話中。代理程式會讀取該伺服器的安裝指南,先向你展示發布者、端點和登入方式,經你同意後再把它新增到你的客戶端。金鑰不會寫進任何命令。

閱讀 https://sourceweft.com/mcp/io.github.gateio-dev%2Fgate-mcp/install.md,並按其中說明把這個 MCP 伺服器接入我的客戶端。修改任何設定之前,先告訴我它的發布者、端點和登入方式,等我確認。不要把 API 金鑰寫進命令或我會提交的檔案;問我金鑰應從哪裡取得。

檢視代理程式所依據的安裝指南

其他 MCP 客戶端

把它新增到你客戶端的 mcpServers 設定中。

{
  "mcpServers": {
    "gate": {
      "type": "http",
      "url": "https://api.gatemcp.ai/mcp"
    }
  }
}

README

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 discovery, market snapshots, technical/platform metrics, on-chain and macro data
  • 📢 News - Crypto news, social insights, market events, prediction markets
  • 📚 Docs - Research reports, papers, and documentation search
  • 🔐 OAuth2 - Secure authorization for trading and private tools

MCP Endpoints

The service exposes the following MCP endpoints:

EndpointAuthTools
https://api.gatemcp.ai/mcpNonePublic market data (58 tools: spot, futures, margin, options, delivery, earn, alpha, activity, launch pool, square, flash swap)
https://api.gatemcp.ai/mcp/exchangeOAuth2CEX 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/dexGoogle / Gate OAuthDEX wallet & swap (33 tools: auth, wallet, chain config, transfer, swap, market data, token info, agentic, RPC across 20+ chains)
https://api.gatemcp.ai/mcp/infoNoneCoin info & analysis (32 tools: coins, snapshots, trends, on-chain, platform metrics, macro, market detail)
https://api.gatemcp.ai/mcp/open/infoNoneGate Info submission surface (exactly 7 tools: coin profile, market overview/snapshots, kline, order book, recent trades)
https://api.gatemcp.ai/mcp/newsNoneNews & research (18 tools: news/UGC/X/web, announcements, sentiment, events, prediction markets)
https://api.gatemcp.ai/mcp/docsNoneDocs research (3 tools: research search, coin research, papers)
  • 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)
  • ChatGPT / OpenAI Apps Gate Info listing → Use /mcp/open/info (7-tool allowlist; no auth)
  • News, announcements → Use /mcp/news (no auth)
  • Research docs & papers → Use /mcp/docs (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, /mcp/open/info, /mcp/news, and /mcp/docs do not require any authentication.

Using mcporter

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

bash
# 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)

ScopeUse
marketPublic market data (tickers, order books, K-line, etc.)
profileAccount info, orders, positions (read-only)
tradeCreate/cancel/amend orders
walletTransfers, deposits, withdrawals
accountUnified 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:

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):

json
{  "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):

json
{  "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):

json
{  "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
bash
# Global installnpm install -g mcporter
# Verify installationmcporter --version

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

Add MCP and authorize
bash
# 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 MCPmcporter 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
bash
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):

json
{  "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):

json
{  "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:
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 (futures→fx, delivery→dc, sub_account→sa, 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:

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

With API key authentication:

json
{  "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

ClientGuide
Claude.aisetup
Codex Appsetup
Codex CLIsetup
OpenClawsetup
TraeSee Trae config above
QoderSee 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)

BusinessToolsDescription
Spot8cex_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
Futures14Contracts, order book, trades, candlesticks, tickers, funding rate, premium index, liquidation, contract stats, insurance ledger, index constituents, batch funding rates, risk limit tiers
Margin3cex_margin_list_uni_currency_pairs, cex_margin_get_uni_currency_pair, cex_margin_get_market_margin_tier
Options12Underlyings, expirations, contracts, settlements, order book, tickers, candlesticks, trades
Delivery8Contracts, order book, trades, candlesticks, tickers, insurance ledger, risk limit tiers
Earn5cex_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
Alpha3cex_alpha_list_alpha_currencies, cex_alpha_list_alpha_tickers, cex_alpha_list_alpha_tokens
Activity1cex_activity_list_activity_types
Launch1cex_launch_list_launch_pool_projects
Square2cex_square_list_square_ai_search, cex_square_list_live_replay
Flash Swap1cex_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.

BusinessScopeKey Tools
Spotprofile / tradeAccounts, orders, trades, batch orders, price-triggered orders, countdown cancel, cross liquidate
Futuresprofile / tradeAccounts, positions, orders, trades, dual positions, trail orders, price-triggered, BBO orders
Marginprofile / tradeMargin accounts, loans, auto-repay, uni loans
Optionsprofile / tradeAccount, positions, orders, MMP settings
Deliveryprofile / tradeAccounts, positions, orders, price-triggered orders
WalletwalletTotal balance, transfers, deposits, withdrawals, deposit address, SA balances, small balance convert
UnifiedaccountUnified accounts, mode, loans, risk units, borrowable, collateral, leverage config
Sub-accountaccountCreate/list/lock/unlock SA, API keys
AccountaccountAccount detail, main keys, rate limit, debit fee, STP groups
RebateprofileAgency/partner/broker commission history, user info
Flash Swapprofile / tradecex_fc_list_fc_currency_pairs, cex_fc_list_fc_orders, cex_fc_create_fc_order_v1, multi-currency flash swap
Earnprofile / tradeDual/structured/uni products, orders, ETH2 swap, lend records
Alphaprofile / tradeAlpha accounts, orders, quote/place
TradFiprofile / tradeCategories, symbols, MT5 account, assets, orders, positions
CrossExprofile / tradeRule symbols, account, positions, orders, transfers, convert
P2Pprofile / tradeUser info, ads, chats, transactions, confirm payment/receipt
ActivityprofileActivity types, recommended activities, user participation
CouponprofileUser coupons, coupon details
Launch Poolprofile / tradeLaunchPool projects, pledge/redeem, reward records
SquaremarketAI search, live replay
WelfareprofileBeginner eligibility, task list and rewards

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

DEX — Authentication

ToolDescription
dex_auth_google_login_startStart Google OAuth login flow, returns verification URL
dex_auth_google_login_pollPoll login status, returns mcp_token on success
dex_auth_login_google_walletLogin with Google OAuth authorization code
dex_auth_gate_login_startStart Gate OAuth login flow, returns verification URL
dex_auth_gate_login_pollPoll Gate OAuth login status, returns mcp_token on success
dex_auth_login_gate_walletLogin directly with Gate OAuth authorization code
dex_auth_logoutRevoke current session

DEX — Wallet

ToolDescription
dex_wallet_get_addressesGet wallet addresses for each chain (EVM, Solana)
dex_wallet_get_token_listToken balances with prices and pagination
dex_wallet_get_total_assetTotal portfolio value and 24h change
dex_wallet_sign_messageSign a message with wallet private key (EVM / Solana)
dex_wallet_sign_transactionSign a raw transaction with wallet private key

DEX — Chain & Transactions

ToolDescription
dex_chain_configChain configuration (chain ID, capabilities)
dex_tx_gasEstimate gas price and gas limit
dex_tx_transfer_previewPreview transfer details before signing
dex_tx_approve_previewToken approval preview: build ERC20/SPL approve transaction
dex_tx_get_sol_unsignedBuild unsigned Solana SOL transfer with latest blockhash
dex_tx_send_raw_transactionBroadcast signed transaction on-chain
dex_tx_quoteSwap quote with route, price impact and gas estimation
dex_tx_swapOne-click swap: quote → build → sign → submit
dex_tx_swap_detailQuery swap order status by order ID
dex_tx_list / dex_tx_detail / dex_tx_history_listTransaction & swap / bridge history

DEX — Market Data & Token Info

ToolDescription
dex_market_get_klineK-line (candlestick) data: 1m, 5m, 1h, 4h, 1d
dex_market_get_tx_statsTrading volume and trader statistics (5m / 1h / 4h / 24h)
dex_market_get_pair_liquidityLiquidity pool add / remove events
dex_token_list_swap_tokensAvailable tokens for swap on a given chain
dex_token_list_cross_chain_bridge_tokensBridgeable tokens for cross-chain transfers
dex_token_get_coin_infoToken info: price, market cap, supply, holder distribution
dex_token_ranking24h top gainers / top losers
dex_token_get_coins_range_by_created_atDiscover new tokens by creation time range
dex_token_get_risk_infoSecurity audit: honeypot, buy/sell tax, blacklist, permissions

DEX — Agentic & RPC

ToolDescription
dex_agentic_reportReport agentic wallet addresses to wallet service
dex_rpc_callExecute 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 (/mcp/info — 32 tools, no auth)

Public, read-only market research. Categories (full parameter tables: gate-info-mcp):

CategoryTools
Coininfo_coin_get_coin_info, info_coin_search_coins, info_coin_get_coin_rankings
Market snapshotinfo_marketsnapshot_get_market_snapshot, info_marketsnapshot_batch_market_snapshot, info_marketsnapshot_get_market_overview, info_marketsnapshot_get_institutional_metrics
Market trendinfo_markettrend_get_kline, info_markettrend_get_indicator_history, info_markettrend_get_technical_analysis
On-chaininfo_onchain_get_address_info, info_onchain_get_address_transactions, info_onchain_get_transaction, info_onchain_get_token_onchain
Complianceinfo_compliance_check_token_security
Platform metricsinfo_platformmetrics_get_platform_info, info_platformmetrics_search_platforms, info_platformmetrics_get_defi_overview, info_platformmetrics_get_stablecoin_info, info_platformmetrics_get_bridge_metrics, info_platformmetrics_get_yield_pools, info_platformmetrics_get_platform_history, info_platformmetrics_get_exchange_reserves, info_platformmetrics_get_liquidation_heatmap, info_platformmetrics_get_cex_orderbook_depth, info_platformmetrics_get_chain_activity
Macroinfo_macro_get_macro_indicator, info_macro_get_economic_calendar, info_macro_get_macro_summary
Market detailinfo_marketdetail_get_orderbook, info_marketdetail_get_recent_trades, info_marketdetail_get_kline

Open Info (/mcp/open/info — 7 tools, no auth)

ChatGPT / OpenAI Apps submission allowlist only. Full parameter tables: gate-open-info-mcp.

CategoryTools
Coininfo_coin_get_coin_info
Market snapshotinfo_marketsnapshot_get_market_overview, info_marketsnapshot_get_market_snapshot, info_marketsnapshot_batch_market_snapshot
Market detailinfo_marketdetail_get_kline, info_marketdetail_get_orderbook, info_marketdetail_get_recent_trades

News (/mcp/news — 18 tools, no auth)

Public, read-only news and social research. Categories (full parameter tables: gate-news-mcp):

CategoryTools
News feednews_feed_search_news, news_feed_web_search, news_feed_search_x, news_feed_search_ugc, news_feed_get_exchange_announcements, news_feed_get_social_sentiment, news_feed_get_mention_burst, news_feed_get_hot_topics
Eventsnews_events_get_latest_events, news_events_get_event_detail, news_events_explain_market_move, news_events_get_market_move_report, news_events_list_market_move_reports
Predictionnews_prediction_get_volume_delta_ranking, news_prediction_get_fastest_rising_ranking, news_prediction_get_market_orderbook, news_prediction_search_events, news_prediction_get_event_signal

MCP Resources

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

Resource URIDescription
gate://spot/currency_pairsAll spot trading pairs
gate://spot/currenciesAll supported currencies
gate://futures/contracts/usdtUSDT-settled futures contracts
gate://futures/contracts/btcBTC-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, /mcp/open/info, /mcp/news, and /mcp/docs 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

來源:README.md,提交 801c4e3

工具

83

cex_alpha_list_alpha_currencies

List Alpha currencies.

輸入參數pagelimitcurrency

cex_alpha_list_alpha_tickers

List Alpha tickers.

輸入參數pagelimitcurrency

cex_alpha_list_alpha_tokens

List Alpha tokens.

輸入參數pagechainaddresslaunch_platform

cex_cfd_query_categories

List all TradFi instrument categories

無需輸入參數。

cex_cfd_query_symbol_kline

Get kline/OHLCV data for a TradFi symbol

輸入參數limitsymbol必填end_timebegin_timekline_type必填

cex_cfd_query_symbol_ticker

Get latest ticker for a TradFi symbol

輸入參數symbol必填

cex_cfd_query_symbols

List all available TradFi trading symbols

無需輸入參數。

cex_dc_get_dc_contract

Get delivery contract.

輸入參數settle必填contract必填

cex_dc_list_dc_candlesticks

List delivery candlesticks.

輸入參數tofromlimitsettle必填contract必填interval

cex_dc_list_dc_contracts

List delivery contracts.

輸入參數settle必填

cex_dc_list_dc_insurance_ledger

List delivery insurance ledger.

輸入參數limitsettle必填

cex_dc_list_dc_order_book

Get delivery order book.

輸入參數limitsettle必填with_idcontract必填interval

cex_dc_list_dc_risk_limit_tiers

List delivery risk limit tiers.

輸入參數limitoffsetsettle必填contract

cex_dc_list_dc_tickers

List delivery tickers.

輸入參數settle必填contract

cex_dc_list_dc_trades

List delivery trades.

輸入參數tofromlimitsettle必填last_idcontract必填

cex_earn_get_dual_stock_project_recommend

Get recommendations for stock dual investment products

輸入參數coinmodetypehistory_pids

cex_earn_get_uni_currency

Get Simple Earn currency details.

輸入參數currency必填

cex_earn_list_dual_investment_plans

List dual investment plans.

輸入參數coinpagesorttypeplan_idpage_sizequote_currency

cex_earn_list_dual_stock_investment_plans

List stock dual investment products

輸入參數coinpagesorttypeplan_idpage_sizequote_currency

cex_earn_list_earn_fixed_term_products

List fixed-term Earn products.

輸入參數page必填typeassetlimit必填statusshow_status

cex_earn_list_earn_fixed_term_products_by_asset

List fixed-term Earn products by asset.

輸入參數typeasset必填

cex_earn_list_uni_currencies

List Simple Earn currencies.

無需輸入參數。

cex_fc_list_fc_currency_pairs

List all supported flash swap currency pairs

輸入參數pagelimitcurrency

cex_fx_get_fx_candlesticks

Get futures candlestick/OHLCV data

輸入參數tofromlimitsettle必填contract必填intervaltimezone

cex_fx_get_fx_contract

Get details of a single futures contract

輸入參數settle必填contract必填

cex_fx_get_fx_funding_rate

Get funding rate history for a futures contract

輸入參數tofromlimitsettle必填contract必填

cex_fx_get_fx_order_book

Get futures order book

輸入參數limitsettle必填with_idcontract必填interval

cex_fx_get_fx_premium_index

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

輸入參數tofromlimitsettle必填contract必填interval

cex_fx_get_fx_risk_limit_table

Get a specific risk limit tier table by table ID.

輸入參數settle必填table_id必填

cex_fx_get_fx_tickers

Get ticker information for futures contracts

輸入參數settle必填contract

cex_fx_get_fx_trades

Get recent public trades for a futures contract

輸入參數tofromlimitoffsetsettle必填last_idcontract必填

cex_fx_get_index_constituents

Get constituent assets and weights for a futures index

輸入參數index必填settle必填

cex_fx_list_batch_fx_funding_rates

Get current funding rates for multiple contracts in one request

輸入參數settle必填contracts必填

cex_fx_list_contract_stats

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

輸入參數fromlimitsettle必填contract必填interval

cex_fx_list_fx_adl_risk_states

List market-level ADL risk states List the current ADL risk states of all futures markets for the specified settlement currency

輸入參數settle必填

cex_fx_list_fx_contracts

List all perpetual futures contracts

輸入參數limitoffsetsettle必填

cex_fx_list_fx_contracts_all

Query all contract information (including delisted)

輸入參數limitoffsetsettle必填

cex_fx_list_fx_insurance_ledger

Get futures insurance fund history

輸入參數limitsettle必填

cex_fx_list_fx_liq_orders

Get personal futures liquidation history.

輸入參數tofromlimitsettle必填contract

cex_fx_list_fx_risk_limit_tiers

Get risk limit tiers for a futures contract

輸入參數limitoffsetsettle必填contract

cex_fx_list_fx_rpi_order_book

Query futures RPI order book Bids will be sorted by price from high to low, while asks sorted reversely

輸入參數limitsettle必填with_idcontract必填interval

cex_margin_get_market_margin_tier

Get margin leverage tiers for a currency pair

輸入參數currency_pair必填

cex_margin_get_uni_currency_pair

Get details of a specific unified margin currency pair

輸入參數currency_pair必填

cex_margin_list_uni_currency_pairs

List all currency pairs supported for unified margin lending

無需輸入參數。

cex_mcl_get_multi_collateral_current_rate

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

輸入參數vip_levelcurrencies必填

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_contract

Get details of a single options contract

輸入參數contract必填

cex_options_get_options_settlement

Get a single options settlement record

輸入參數at必填contract必填underlying必填

cex_options_list_options_candlesticks

Get options candlestick data

輸入參數tofromlimitcontract必填interval

cex_options_list_options_contracts

List all options contracts for an underlying

輸入參數expirationunderlying必填

cex_options_list_options_expirations

List option expiration dates for an underlying

輸入參數underlying必填

cex_options_list_options_order_book

Get options order book

輸入參數limitwith_idcontract必填interval

cex_options_list_options_settlements

List options settlement history for an underlying

輸入參數tofromlimitoffsetunderlying必填

cex_options_list_options_tickers

Get options tickers for an underlying

輸入參數underlying必填

cex_options_list_options_trades

List public options trades

輸入參數tofromtypelimitoffsetcontract

cex_options_list_options_underlying_candlesticks

Get candlestick data for an options underlying index

輸入參數tofromlimitintervalunderlying必填

cex_options_list_options_underlying_tickers

Get ticker data for all contracts under an underlying

輸入參數underlying必填

cex_options_list_options_underlyings

List all options underlying assets

無需輸入參數。

cex_spot_get_currency

Get details of a single currency

輸入參數currency必填

cex_spot_get_currency_pair

Get details of a single currency pair

輸入參數currency_pair必填

cex_spot_get_spot_candlesticks

Get candlestick/OHLCV data for a currency pair

輸入參數tofromlimitintervalcurrency_pair必填

cex_spot_get_spot_insurance_history

Get spot insurance fund history for a currency

輸入參數to必填from必填pagelimitbusiness必填currency必填

cex_spot_get_spot_order_book

Get the order book for a currency pair

輸入參數limitwith_idintervalcurrency_pair必填

cex_spot_get_spot_tickers

Get ticker information for one or all currency pairs

輸入參數timezonecurrency_pair

cex_spot_get_spot_trades

Get recent trades for a currency pair

輸入參數tofrompagelimitlast_idreversecurrency_pair必填

cex_spot_list_currencies

List all currencies supported

無需輸入參數。

cex_spot_list_currency_pairs

List all available spot trading pairs

無需輸入參數。

cex_spot_list_spot_rpi_order_book

Get the RPI order book Get the RPI order book, with bids sorted by descending price and asks by ascending price.

輸入參數limitwith_idintervalcurrency_pair必填

cex_square_list_live_replay

List live stream replays from Gate Square

輸入參數tagcoinsortlimit

cex_stock_query_stock_exchanges

Query supported exchanges Query stock spot supported exchanges and whether stock transfers are supported. Rate limit: 5 qps.

無需輸入參數。

cex_stock_query_stock_fee_rate

Query fee rates for Japanese and Korean stocks Query fee rates for Japanese and Korean stocks. Rate limit: 5 qps.

無需輸入參數。

cex_stock_query_stock_order_book

Query market order book Rate limit: 5 qps.

輸入參數symbol必填

cex_stock_query_stock_symbol_detail

Query symbol details Rate limit: 5 qps.

輸入參數pagesymbolsexchangepage_size

cex_stock_query_stock_symbols

Query symbol list Rate limit: 5 qps.

輸入參數pagesymbolsexchangepage_sizewith_desc_i18n

cex_unified_calculate_portfolio_margin

Calculate portfolio margin for hypothetical positions (read-only simulation).

輸入參數body必填

cex_unified_get_history_loan_rate

Get historical loan rates for a currency.

輸入參數pagetierlimitcurrency必填

cex_unified_list_currency_discount_tiers

List currency discount tiers for unified account collateral

無需輸入參數。

cex_unified_list_loan_margin_tiers

List loan margin tiers for unified account

無需輸入參數。

cex_unified_list_unified_currencies

List currencies supported in unified account.

輸入參數currency

cex_wallet_list_currency_chains

List chains supported for a currency

輸入參數currency必填

版本歷史

1
  1. v1.0.0最新Sep 16, 2026

評分

已滿足適用檢查項的 100%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通必需25 分
  • 已宣告認證方式必需10 分
  • 已列出工具必需15 分
  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分