gate-mcp-openclaw-installer
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseGate MCP
Gate MCP
Complete Gate.com MCP server installer for OpenClaw.
面向OpenClaw的完整Gate.com MCP服务器安装工具。
Quick Start
快速开始
bash
undefinedbash
undefinedInstall all Gate MCP servers (default)
安装所有Gate MCP服务器(默认)
./scripts/install.sh
./scripts/install.sh
Selective installation
选择性安装
./scripts/install.sh --select
undefined./scripts/install.sh --select
undefinedMCP Servers
MCP服务器列表
| Server | Endpoint | Auth | Description |
|---|---|---|---|
| | API Key + Secret | Spot/Futures/Options trading |
| | x-api-key fixed as MCP_AK_8W2N7Q + Authorization: Bearer ${GATE_MCP_TOKEN} | DEX operations |
| | None | Market data |
| | None | News feed |
| 服务器 | 端点 | 认证 | 描述 |
|---|---|---|---|
| | API Key + Secret | 现货/期货/期权交易 |
| | x-api-key固定为MCP_AK_8W2N7Q + Authorization: Bearer ${GATE_MCP_TOKEN} | DEX操作 |
| | 无 | 市场数据 |
| | 无 | 新闻信息流 |
Installation Modes
安装模式
1. Install All (Default)
1. 全部安装(默认)
bash
./scripts/install.shInstalls all 4 servers. Prompts for API credentials when needed.
bash
./scripts/install.sh安装全部4个服务器,需要时会提示输入API凭证。
2. Selective Install
2. 选择性安装
bash
./scripts/install.sh --selectbash
./scripts/install.sh --selector
或
./scripts/install.sh -s
Interactive menu to choose specific server../scripts/install.sh -s
通过交互式菜单选择特定服务器安装。Common Commands
常用命令
bash
undefinedbash
undefinedMarket 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
undefinedmcporter call gate-dex.list_balances
undefinedAPI Configuration
API配置
Getting API Keys
获取API密钥
- Visit https://www.gate.com/myaccount/profile/api-key/manage
- Create API key with permissions:
- Read - Market data, account info
- Trade - Spot/Margin/Futures trading
- Withdraw - Wallet operations
- 访问 https://www.gate.com/myaccount/profile/api-key/manage
- 创建具备以下权限的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 mcporterConnection 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