Gate for AI 是 Gate 推出的專為 AI Agent 設計的統一能力接口系統。此系統基於統一架構與接口標準,完整整合中心化交易(CEX)、鏈上交易(DEX)、錢包簽名系統、即時資訊以及鏈上數據能力,讓 AI 能直接調用交易所核心功能並參與真實市場互動。
Gate for AI 已支援各大主流 AI Agent 生態。本教學將分別展示如何在各主流 Agent 平台接入 Gate for AI。
第一步:點擊進入 Gate for AI 主頁(https://www.gate.com/zh/gate-for-ai-mcp-skills)

第二步:主流 AI Agent 接入
- OpenClaw
- Cursor
- Claude.ai
- Claude CLI
- Codex App
- Codex CLI
第三步:輸入指令調用 Gate for AI 服務
常見測試指令範例:
- 查詢某幣種即時價格
- 查詢漲跌幅排行榜
- 獲取鏈上活躍地址數量
- 分析某代幣流動性結構
- 輸出市場情緒概覽
1. OpenClaw 接入教學
步驟 1:進入 OpenClaw → Skills,搜尋「mcporter」並啟用。

步驟 2:本地安裝 mcporter
於終端機執行以下命令:
npm i -g mcporter # or npx mcporter --version
步驟 3:配置 Gate MCP
於終端機執行以下命令:
mcporter config add gate https://api.gatemcp.ai/mcp --scope home
步驟 4:驗證連線
於終端機執行以下命令:
mcporter config get gate mcporter list gate --schema
若成功返回工具列表,則表示連線成功。
步驟 5:於 OpenClaw AI 聊天中使用 MCP
例如:
- 查詢 BTC/USDT 價格
- 查詢 Gate 是否存在套利機會

2. Cursor 接入教學
步驟 1:進入 Cursor Settings → Tools & MCP → Add Custom MCP

步驟 2:編輯 mcp.json
{ "mcpServers": { "Gate": { "url": "https://api.gatemcp.ai/mcp", "transport": "streamable-http", "headers": { "Accept": "application/json, text/event-stream" } } } }

步驟 3:於 Cursor AI 聊天中使用 MCP
例如:
- 查詢 BTC/USDT 價格
- 查詢 Gate 是否存在套利機會

3. Claude.ai 接入教學
步驟 1:新增自定義連接器
進入 Settings → Connectors → Add custom connector
步驟 2:配置自定義連接器
填寫以下資訊:
- name: gate
- url: https://api.gatemcp.ai/mcp

步驟 3:於 Claude.ai 聊天中使用 MCP
例如:
- 查詢 BTC/USDT 價格
- 查詢 Gate 是否存在套利機會

4. Claude CLI 接入教學
步驟 1:安裝 ClaudeCode
參考文件:https://code.claude.com/docs/en/overview
於終端機執行以下命令:
brew install claude-code
步驟 2:配置 Gate MCP
於終端機執行以下命令:
claude mcp add --transport http Gate https://api.gatemcp.ai/mcp

步驟 3:驗證配置
於終端機執行:
claude mcp list

步驟 4:於 Claude CLI AI 聊天中使用 MCP
例如:
- 查詢 BTC/USDT 價格
- 查詢 Gate 是否存在套利機會
5. Codex App 接入教學
步驟 1:進入 Settings

步驟 2:MCP Servers → Add server

步驟 3:配置自定義 MCP 並儲存
- Name: gate
- URL: https://api.gatemcp.ai/mcp

步驟 4:於 Codex App AI 聊天中使用 MCP
例如:
- 查詢 BTC/USDT 價格
- 查詢 Gate 是否存在套利機會

6. Codex CLI 接入教學
步驟 1:配置 Gate MCP
於終端機執行:
codex mcp add gate --url <a href="https://ai-mcp-gateway.fulltrust.link/cexapi/claude/mcp" rel="nofollow noopener noreferrer" target="_blank">https://api.gatemcp.ai/mcp</a>

步驟 2:驗證
於終端機執行:
codex mcp list

步驟 3:於 Codex CLI AI 聊天中使用 MCP
例如:
- 查詢 BTC/USDT 價格
- 查詢 Gate 是否存在套利機會

