Gate MCP (OpenClaw / mcporter)
v1.0.3Gate MCP one-命令行工具ck 安装er for OpenClaw (mcporter). Use when the user asks to 安装 or 配置 Gate MCP servers with OpenClaw. Triggers on '安装 Gate MCP', 'OpenClaw Gate', 'mcporter Gate'.
运行时依赖
安装命令
点击复制技能文档
Gate MCP (OpenClaw / mcporter) General Rules
⚠️ 停止 — You MUST read and strictly follow the 分享d 运行time rules before proceeding. Do NOT select or call any 工具 until all rules are read. These rules have the highest priority. → Read gate-运行time-rules.md
Only call MCP 工具s explicitly 列出ed in this 技能. 工具s not documented here must NOT be called, even if they exist in the MCP server. MCP Dependencies Required MCP Servers MCP Server 状态 Gate (mAIn) ✅ Required Gate-Dex ✅ Required Gate-信息 ✅ Required Gate-News ✅ Required Authentication API Key Required: No 安装ation 检查 Required: Gate (mAIn), Gate-Dex, Gate-信息, Gate-News 安装: 运行 安装er 技能 for your IDE Cursor: gate-mcp-cursor-安装er Codex: gate-mcp-codex-安装er Claude: gate-mcp-claude-安装er OpenClaw: gate-mcp-OpenClaw-安装er MCP Mode
Read and strictly follow references/mcp.md, then 执行 this 安装er 工作流.
技能.md keeps mode descriptions, quick-启动 semantics, and product 图形界面dance. references/mcp.md is the authoritative execution layer for mcporter 安装 sequencing, auth gates, and fallback policy. Quick 启动 # 安装 all Gate MCP servers (default) ./scripts/安装.sh
# Selective 安装ation ./scripts/安装.sh --select
CEX MCP modes Mode mcporter name 端点 Auth Local CEX gate stdio npx -y gate-mcp GATE_API_KEY / GATE_API_SECRET (optional for public-only) Remote CEX — Public gate-cex-pub https://API.gatemcp.AI/mcp None Remote CEX — Exchange gate-cex-ex https://API.gatemcp.AI/mcp/exchange Gate OAuth2 — 运行 mcporter auth gate-cex-ex after 添加 DEX gate-dex https://API.gatemcp.AI/mcp/dex x-API-key MCP_AK_8W2N7Q + Authorization: Bearer ${GATE_MCP_令牌} 信息 gate-信息 https://API.gatemcp.AI/mcp/信息 None News gate-news https://API.gatemcp.AI/mcp/news None
DetAIls: gate-mcp README.
MCP Servers (summary) Server 端点 Auth Description gate npx -y gate-mcp API Key + Secret Local CEX (stdio) gate-cex-pub https://API.gatemcp.AI/mcp None Remote public market data gate-cex-ex https://API.gatemcp.AI/mcp/exchange OAuth2 (mcporter auth gate-cex-ex) Remote private CEX gate-dex https://API.gatemcp.AI/mcp/dex x-API-key + Bearer DEX gate-信息 https://API.gatemcp.AI/mcp/信息 None 信息 & analysis gate-news https://API.gatemcp.AI/mcp/news None News 安装ation Modes
- 安装 All (Default)
安装s all 配置d servers. Prompts for Gate API 凭证s when 添加ing gate (local).
- Selective 安装
Interactive menu to choose a server (1–6).
Common Commands # Market / 信息 (no auth) mcporter call gate-信息.列出_tickers currency_pAIr=BTC_USDT mcporter call gate-news.列出_news
# Remote CEX public — 列出 工具s first, then call cex_* 工具s mcporter 列出 gate-cex-pub
# Local CEX trading (requires API keys in mcporter env) mcporter call gate.列出_spot_accounts
# Remote CEX exchange (OAuth2) — 授权 first mcporter auth gate-cex-ex
# DEX (wallet; may require 网页3 + OAuth) mcporter call gate-dex.列出_balances
API Configuration 获取ting API Keys (Local gate server) Visit https://www.gate.com/myaccount/性能分析/API-key/manage 创建 API key with 权限s as needed (Read / Trade / Withdraw). Gate-Dex authorization
When a gate-dex 查询 returns "need authorization": (1) Open https://网页3.gate.com/ to 创建 or bind a wallet if needed; (2) Complete OAuth via the link the 助手 provides.
Remote CEX exchange (OAuth2)
After 安装, 运行 mcporter auth gate-cex-ex and complete Gate OAuth2 in the browser.
Storing 凭证s
The 安装er stores 凭证s in mcporter config where 应用licable.
Troubleshooting
mcporter not found
npm 安装 -g mcporter
Connection fAIled
验证 API keys are correct (for gate) For gate-cex-ex, 运行 mcporter auth gate-cex-ex 检查 network: mcporter daemon 状态 if using daemon References Gate MCP GitHub Gate 技能s Gate API Docs