gate-mcp-openclaw-installer

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Gate MCP

Gate MCP

Complete Gate.com MCP server installer for OpenClaw.
面向OpenClaw的完整Gate.com MCP服务器安装工具。

Quick Start

快速开始

bash
undefined
bash
undefined

Install all Gate MCP servers (default)

安装所有Gate MCP服务器(默认)

./scripts/install.sh
./scripts/install.sh

Selective installation

选择性安装

./scripts/install.sh --select
undefined
./scripts/install.sh --select
undefined

MCP Servers

MCP服务器列表

ServerEndpointAuthDescription
gate
npx -y gate-mcp
API Key + SecretSpot/Futures/Options trading
gate-dex
https://api.gatemcp.ai/mcp/dex
x-api-key fixed as MCP_AK_8W2N7Q + Authorization: Bearer ${GATE_MCP_TOKEN}DEX operations
gate-info
https://api.gatemcp.ai/mcp/info
NoneMarket data
gate-news
https://api.gatemcp.ai/mcp/news
NoneNews feed
服务器端点认证描述
gate
npx -y gate-mcp
API Key + Secret现货/期货/期权交易
gate-dex
https://api.gatemcp.ai/mcp/dex
x-api-key固定为MCP_AK_8W2N7Q + Authorization: Bearer ${GATE_MCP_TOKEN}DEX操作
gate-info
https://api.gatemcp.ai/mcp/info
市场数据
gate-news
https://api.gatemcp.ai/mcp/news
新闻信息流

Installation Modes

安装模式

1. Install All (Default)

1. 全部安装(默认)

bash
./scripts/install.sh
Installs all 4 servers. Prompts for API credentials when needed.
bash
./scripts/install.sh
安装全部4个服务器,需要时会提示输入API凭证。

2. Selective Install

2. 选择性安装

bash
./scripts/install.sh --select
bash
./scripts/install.sh --select

or

./scripts/install.sh -s
Interactive menu to choose specific server.
./scripts/install.sh -s
通过交互式菜单选择特定服务器安装。

Common Commands

常用命令

bash
undefined
bash
undefined

Market data (no auth)

市场数据(无需认证)

mcporter call gate-info.list_tickers currency_pair=BTC_USDT mcporter call gate-news.list_news
mcporter call gate-info.list_tickers currency_pair=BTC_USDT mcporter call gate-news.list_news

Trading (requires auth)

交易(需要认证)

mcporter call gate.list_spot_accounts mcporter call gate.list_tickers currency_pair=ETH_USDT
mcporter call gate.list_spot_accounts mcporter call gate.list_tickers currency_pair=ETH_USDT

Wallet (requires auth)

钱包(需要认证)

mcporter call gate-dex.list_balances
undefined
mcporter call gate-dex.list_balances
undefined

API Configuration

API配置

Getting API Keys

获取API密钥

  1. Visit https://www.gate.com/myaccount/profile/api-key/manage
  2. Create API key with permissions:
    • Read - Market data, account info
    • Trade - Spot/Margin/Futures trading
    • Withdraw - Wallet operations
  1. 访问 https://www.gate.com/myaccount/profile/api-key/manage
  2. 创建具备以下权限的API密钥:
    • 读取 - 市场数据、账户信息
    • 交易 - 现货/杠杆/期货交易
    • 提现 - 钱包操作

Gate-Dex authorization

Gate-Dex授权

When a gate-dex query (e.g. list_balances, transfer, swap) returns "need authorization": (1) Open https://web3.gate.com/ to create or bind a wallet if needed; (2) The assistant will return a clickable Google authorization link—click it to complete OAuth. The installer uses a fixed x-api-key.
gate-dex查询(例如余额查询、转账、兑换)返回“需要授权”时:(1)如果需要,打开https://web3.gate.com/创建或绑定钱包;(2)助手会返回一个可点击的Google授权链接——点击完成OAuth即可。安装工具使用固定的x-api-key。

Storing Credentials

凭证存储

The installer securely stores credentials in mcporter config.
安装工具会将凭证安全存储在mcporter配置中。

Troubleshooting

问题排查

mcporter not found
bash
npm install -g mcporter
Connection failed
  • Verify API keys are correct
  • Check network connectivity
  • Ensure mcporter daemon is running:
    mcporter daemon status
找不到mcporter
bash
npm install -g mcporter
连接失败
  • 确认API密钥正确
  • 检查网络连接
  • 确保mcporter守护进程正在运行:
    mcporter daemon status

References

参考资料