Gate MCP Skill
Use this skill to run Gate public market data workflows through uxc + MCP.
Reuse the uxc skill for shared MCP execution, output parsing, and generic auth guidance.
Prerequisites
- -
uxc is installed and available in PATH. - Network access to
https://api.gatemcp.ai/mcp.
Scope
This skill covers the official Gate MCP surface for:
- - public spot market discovery
- public spot tickers, trades, order books, and candlesticks
- public futures contracts, tickers, trades, order books, funding, and premium data
This skill does not cover:
- - private account or trading workflows
- Gate REST v4 signed APIs
- wallet, funding, or portfolio actions
Endpoint
Use Gate's official MCP endpoint:
Core Workflow
- 1. Use the fixed link command by default:
-
command -v gate-mcp-cli
- If missing, create it:
uxc link gate-mcp-cli https://api.gatemcp.ai/mcp
-
gate-mcp-cli -h
- 2. Inspect tool and argument help before execution:
-
gate-mcp-cli cex_spot_get_spot_tickers -h
-
gate-mcp-cli cex_spot_get_spot_order_book -h
-
gate-mcp-cli cex_fx_get_fx_tickers -h
-
gate-mcp-cli cex_fx_get_fx_order_book -h
- 3. Prefer narrow spot or futures reads with explicit instrument identifiers:
-
gate-mcp-cli cex_spot_get_spot_tickers currency_pair=BTC_USDT
-
gate-mcp-cli cex_spot_get_spot_order_book currency_pair=BTC_USDT limit=20
-
gate-mcp-cli cex_fx_get_fx_tickers contract=BTC_USDT
- INLINECODE16
Operations
Spot
- - INLINECODE17
- INLINECODE18
- INLINECODE19
- INLINECODE20
- INLINECODE21
- INLINECODE22
- INLINECODE23
- INLINECODE24
Futures
- - INLINECODE25
- INLINECODE26
- INLINECODE27
- INLINECODE28
- INLINECODE29
- INLINECODE30
- INLINECODE31
- INLINECODE32
- INLINECODE33
Guardrails
- - Keep automation on the JSON output envelope; do not use
--text. - Parse stable fields first:
ok, kind, protocol, data, error. - Treat this v1 skill as read-only.
- Prefer
currency_pair values like BTC_USDT for spot and contract values like BTC_USDT for futures unless help output indicates a different contract name. - INLINECODE44 is equivalent to
uxc https://api.gatemcp.ai/mcp <operation> ....
References
- - Usage patterns: INLINECODE46
- Official Gate for AI / MCP docs: https://www.gate.com/gate-mcp-skills
- Gate MCP setup article: https://www.gate.com/ru/help/gateforai/gateforaibasics/50102/gate-for-ai-one-click-integration-with-major-ai-agents-no-api-keys-required-zero-barriers
Gate MCP 技能
使用此技能通过 uxc + MCP 运行 Gate 公开市场数据工作流。
复用 uxc 技能以进行共享的 MCP 执行、输出解析和通用认证指导。
前置条件
- - uxc 已安装并可在 PATH 中使用。
- 可访问 https://api.gatemcp.ai/mcp 网络。
范围
此技能涵盖官方 Gate MCP 接口,用于:
- - 公开现货市场发现
- 公开现货行情、交易、订单簿和K线数据
- 公开期货合约、行情、交易、订单簿、资金费和溢价数据
此技能不涵盖:
- - 私有账户或交易工作流
- Gate REST v4 签名API
- 钱包、资金或投资组合操作
端点
使用 Gate 官方 MCP 端点:
- - https://api.gatemcp.ai/mcp
核心工作流
- 1. 默认使用固定链接命令:
- command -v gate-mcp-cli
- 如果缺失,则创建:
uxc link gate-mcp-cli https://api.gatemcp.ai/mcp
- gate-mcp-cli -h
- 2. 执行前检查工具和参数帮助:
- gate-mcp-cli cex
spotget
spottickers -h
- gate-mcp-cli cex
spotget
spotorder_book -h
- gate-mcp-cli cex
fxget
fxtickers -h
- gate-mcp-cli cex
fxget
fxorder_book -h
- 3. 优先使用带有明确交易品种标识的窄范围现货或期货读取:
- gate-mcp-cli cex
spotget
spottickers currency
pair=BTCUSDT
- gate-mcp-cli cex
spotget
spotorder
book currencypair=BTC_USDT limit=20
- gate-mcp-cli cex
fxget
fxtickers contract=BTC_USDT
- gate-mcp-cli cex
fxget
fxfunding
rate contract=BTCUSDT
操作
现货
- - cexspotlistcurrencies
- cexspotlistcurrencypairs
- cexspotgetcurrency
- cexspotgetcurrencypair
- cexspotgetspottickers
- cexspotgetspotorderbook
- cexspotgetspottrades
- cexspotgetspot_candlesticks
期货
- - cexfxlistfxcontracts
- cexfxgetfxcontract
- cexfxgetfxtickers
- cexfxgetfxorderbook
- cexfxgetfxtrades
- cexfxgetfxcandlesticks
- cexfxgetfxfundingrate
- cexfxgetfxpremiumindex
- cexfxlistfxliqorders
安全护栏
- - 保持自动化操作在 JSON 输出格式上;不要使用 --text。
- 优先解析稳定字段:ok、kind、protocol、data、error。
- 将此 v1 技能视为只读。
- 现货优先使用 currencypair 值如 BTCUSDT,期货优先使用 contract 值如 BTC_USDT,除非帮助输出指示不同的合约名称。
- gate-mcp-cli <操作> ... 等同于 uxc https://api.gatemcp.ai/mcp <操作> ...。
参考
- - 使用模式:references/usage-patterns.md
- Gate 官方 AI / MCP 文档:https://www.gate.com/gate-mcp-skills
- Gate MCP 设置文章:https://www.gate.com/ru/help/gateforai/gateforaibasics/50102/gate-for-ai-one-click-integration-with-major-ai-agents-no-api-keys-required-zero-barriers