Gate One-Click Installer (Claude Code: MCP + Skills)
General Rules
⚠️ STOP — You MUST read and strictly follow the shared runtime rules before proceeding.
Do NOT select or call any tool until all rules are read. These rules have the highest priority.
→ Read gate-runtime-rules.md
- Only call MCP tools explicitly listed in this skill. Tools not documented here must NOT be called, even if they
exist in the MCP server.
MCP Dependencies
Required MCP Servers
| MCP Server |
Status |
| Gate (main) |
✅ Required |
| Gate-Dex |
✅ Required |
| Gate-Info |
✅ Required |
| Gate-News |
✅ Required |
Authentication
Installation Check
- Required: Gate (main), Gate-Dex, Gate-Info, Gate-News
- Install: Run installer skill for your IDE
- Cursor:
gate-mcp-cursor-installer
- Codex:
gate-mcp-codex-installer
- Claude:
gate-mcp-claude-installer
- OpenClaw:
gate-mcp-openclaw-installer
CEX MCP modes (read before configuring)
Aligned with gate-mcp documentation:
| Mode |
What it is |
Auth |
Typical use |
| Local CEX |
stdio npx -y gate-mcp (npm package gate-mcp) |
Optional GATE_API_KEY / GATE_API_SECRET (public-only works without keys; set GATE_READONLY=true for read-only) |
Full local tool surface; tool names use abbreviations (fx, dc, …) — see gate-mcp gate-local-mcp-tools doc |
| Remote CEX — Public |
https://api.gatemcp.ai/mcp |
None |
Public market data only (~58 tools, cex_* names) |
| Remote CEX — Exchange |
https://api.gatemcp.ai/mcp/exchange |
Gate OAuth2 (browser login) |
Private trading & account (~400+ tools); does not duplicate the full public market-data set — use Public remote or Local for market queries as needed |
Non-CEX (same host): Dex (/mcp/dex, Google/Gate OAuth + fixed x-api-key), Info (/mcp/info), News (/mcp/news).
Resources
| Type |
Name |
Endpoint / Config |
| MCP |
Gate (Local CEX, main) |
stdio npx -y gate-mcp, env GATE_API_KEY / GATE_API_SECRET — gate-mcp |
| MCP |
gate-cex-pub (cex-public) |
https://api.gatemcp.ai/mcp, HTTP, type+url only (no headers), no auth |
| MCP |
gate-cex-ex (cex-exchange) |
https://api.gatemcp.ai/mcp/exchange, HTTP, type+url only; Gate OAuth2 on first use |
| MCP |
Gate-Dex (dex) |
https://api.gatemcp.ai/mcp/dex, fixed x-api-key + Authorization: Bearer ${GATE_MCP_TOKEN} |
| MCP |
Gate-Info (info) |
https://api.gatemcp.ai/mcp/info |
| MCP |
Gate-News (news) |
https://api.gatemcp.ai/mcp/news |
| Skills |
gate-skills |
https://github.com/gate/gate-skills (installs all under skills/) |
Behavior Rules
- Default: When the user does not specify which MCPs to install, install all MCPs (
main, cex-public, cex-exchange, dex, info, news) + all gate-skills.
- Selectable MCPs: Users can choose to install only specific MCPs; follow the user's selection (
--mcp can be repeated).
- Skills: Unless
--no-skills is passed, always install all skills from the gate-skills repository's skills/ directory.
Installation Steps
1. Confirm User Selection (MCPs)
- If the user does not specify which MCPs → install all:
main, cex-public, cex-exchange, dex, info, news.
- If the user specifies "only install xxx" → install only the specified MCPs.
2. Write Claude Code MCP Config
- User-level config:
~/.claude.json (Windows: %USERPROFILE%\.claude.json). If using directory format, use the corresponding config under ~/.claude/.
- If it already exists, merge into the existing
mcpServers; do not overwrite other MCPs.
- Config details:
- Gate (main): stdio,
command: npx, args: ["-y", "gate-mcp"], optional env for API keys
- gate-cex-pub:
type: http, url only (remote CEX public; no extra headers)
- gate-cex-ex:
type: http, url for /mcp/exchange only; OAuth2 is completed in the client when prompted
- Gate-Dex: http,
url + headers["x-api-key"] = MCP_AK_8W2N7Q + Authorization = Bearer ${GATE_MCP_TOKEN}
- Gate-Info / Gate-News: http,
url
3. Install gate-skills (all)
- Pull all subdirectories under skills/ from https://github.com/gate/gate-skills and copy them to
~/.claude/skills/ (or the corresponding directory for the current environment).
- Add
--no-skills when using the script to install MCP only without skills.
4. Post-Installation Prompt
- Inform the user of the installed MCP list and "all gate-skills have been installed" (unless
--no-skills was used).
- Prompt to reopen Claude Code or start a new session to load the MCPs.
- Local API Key: If Gate (main) is used for trading via API keys, direct the user to https://www.gate.com/myaccount/profile/api-key/manage and set
GATE_API_KEY / GATE_API_SECRET in the Gate entry env.
- Remote Exchange OAuth2: If gate-cex-ex was installed, the user completes Gate OAuth2 in the browser when the client prompts (scopes:
market, profile, trade, wallet, account).
- Gate-Dex Authorization: If Gate-Dex was installed and a query returns an authorization required message, prompt the user to first open https://web3.gate.com/ to create or bind a wallet, then complete OAuth via the link the assistant provides.
Script
Use the scripts/install.sh in this skill directory for one-click installation.
- Usage:
./scripts/install.sh [--mcp main|cex-public|cex-exchange|dex|info|news] ... [--no-skills]
Installs all MCPs when no --mcp is passed; pass multiple --mcp to install only specified ones; --no-skills installs MCP only.
- The DEX x-api-key is fixed as
MCP_AK_8W2N7Q and written to the config.
After downloading this skill from GitHub, run from the repository root:
bash skills/gate-mcp-claude-installer/scripts/install.sh
Or (MCP only):
bash skills/gate-mcp-claude-installer/scripts/install.sh --no-skills
1---2name: gate-mcp-claude-installer3description: One-click installer for Gate MCP and all Gate Skills in Claude Code (Claude CLI). Installs Local CEX (stdio), Remote CEX public/exchange, Dex/Info/News (selectable), and all gate-skills. Default installs all MCPs + all skills.4---56# Gate One-Click Installer (Claude Code: MCP + Skills)78## General Rules910⚠️ STOP — You MUST read and strictly follow the shared runtime rules before proceeding.11Do NOT select or call any tool until all rules are read. These rules have the highest priority.12→ Read [gate-runtime-rules.md](https://github.com/gate/gate-skills/blob/master/skills/gate-runtime-rules.md)13- **Only call MCP tools explicitly listed in this skill.** Tools not documented here must NOT be called, even if they14 exist in the MCP server.151617---1819## MCP Dependencies2021### Required MCP Servers22| MCP Server | Status |23|------------|--------|24| Gate (main) | ✅ Required |25| Gate-Dex | ✅ Required |26| Gate-Info | ✅ Required |27| Gate-News | ✅ Required |2829### Authentication30- API Key Required: No3132### Installation Check33- Required: Gate (main), Gate-Dex, Gate-Info, Gate-News34- Install: Run installer skill for your IDE35 - Cursor: `gate-mcp-cursor-installer`36 - Codex: `gate-mcp-codex-installer`37 - Claude: `gate-mcp-claude-installer`38 - OpenClaw: `gate-mcp-openclaw-installer`3940## CEX MCP modes (read before configuring)4142Aligned with [gate-mcp](https://github.com/gate/gate-mcp) documentation:4344| Mode | What it is | Auth | Typical use |45|------|------------|------|----------------|46| **Local CEX** | stdio `npx -y gate-mcp` (npm package **gate-mcp**) | Optional `GATE_API_KEY` / `GATE_API_SECRET` (public-only works without keys; set `GATE_READONLY=true` for read-only) | Full local tool surface; tool names use abbreviations (`fx`, `dc`, …) — see gate-mcp **gate-local-mcp-tools** doc |47| **Remote CEX — Public** | `https://api.gatemcp.ai/mcp` | **None** | Public market data only (~58 tools, `cex_*` names) |48| **Remote CEX — Exchange** | `https://api.gatemcp.ai/mcp/exchange` | **Gate OAuth2** (browser login) | Private trading & account (~400+ tools); **does not** duplicate the full public market-data set — use **Public** remote or Local for market queries as needed |4950**Non-CEX** (same host): **Dex** (`/mcp/dex`, Google/Gate OAuth + fixed x-api-key), **Info** (`/mcp/info`), **News** (`/mcp/news`).5152## Resources5354| Type | Name | Endpoint / Config |55|------|------|-------------------|56| MCP | **Gate** (Local CEX, `main`) | stdio `npx -y gate-mcp`, env `GATE_API_KEY` / `GATE_API_SECRET` — [gate-mcp](https://github.com/gate/gate-mcp) |57| MCP | **gate-cex-pub** (`cex-public`) | `https://api.gatemcp.ai/mcp`, HTTP, `type`+`url` only (no headers), no auth |58| MCP | **gate-cex-ex** (`cex-exchange`) | `https://api.gatemcp.ai/mcp/exchange`, HTTP, `type`+`url` only; Gate OAuth2 on first use |59| MCP | **Gate-Dex** (`dex`) | `https://api.gatemcp.ai/mcp/dex`, fixed `x-api-key` + `Authorization: Bearer ${GATE_MCP_TOKEN}` |60| MCP | **Gate-Info** (`info`) | `https://api.gatemcp.ai/mcp/info` |61| MCP | **Gate-News** (`news`) | `https://api.gatemcp.ai/mcp/news` |62| Skills | gate-skills | https://github.com/gate/gate-skills (installs all under `skills/`) |6364## Behavior Rules65661. **Default**: When the user does not specify which MCPs to install, install **all MCPs** (`main`, `cex-public`, `cex-exchange`, `dex`, `info`, `news`) + **all gate-skills**.672. **Selectable MCPs**: Users can choose to install only specific MCPs; follow the user's selection (`--mcp` can be repeated).683. **Skills**: Unless `--no-skills` is passed, always install **all** skills from the gate-skills repository's **skills/** directory.6970## Installation Steps7172### 1. Confirm User Selection (MCPs)7374- If the user does not specify which MCPs → install all: `main`, `cex-public`, `cex-exchange`, `dex`, `info`, `news`.75- If the user specifies "only install xxx" → install only the specified MCPs.7677### 2. Write Claude Code MCP Config7879- User-level config: `~/.claude.json` (Windows: `%USERPROFILE%\.claude.json`). If using directory format, use the corresponding config under `~/.claude/`.80- If it already exists, **merge** into the existing `mcpServers`; do not overwrite other MCPs.81- Config details:82 - **Gate (main)**: stdio, `command: npx`, `args: ["-y", "gate-mcp"]`, optional `env` for API keys83 - **gate-cex-pub**: `type: http`, `url` only (remote CEX public; no extra headers)84 - **gate-cex-ex**: `type: http`, `url` for `/mcp/exchange` only; OAuth2 is completed in the client when prompted85 - **Gate-Dex**: http, `url` + `headers["x-api-key"]` = `MCP_AK_8W2N7Q` + `Authorization` = `Bearer ${GATE_MCP_TOKEN}`86 - **Gate-Info / Gate-News**: http, `url`8788### 3. Install gate-skills (all)8990- Pull all subdirectories under **skills/** from https://github.com/gate/gate-skills and copy them to `~/.claude/skills/` (or the corresponding directory for the current environment).91- Add `--no-skills` when using the script to install MCP only without skills.9293### 4. Post-Installation Prompt9495- Inform the user of the installed MCP list and "all gate-skills have been installed" (unless `--no-skills` was used).96- Prompt to reopen Claude Code or start a new session to load the MCPs.97- **Local API Key**: If **Gate (main)** is used for trading via API keys, direct the user to https://www.gate.com/myaccount/profile/api-key/manage and set `GATE_API_KEY` / `GATE_API_SECRET` in the Gate entry `env`.98- **Remote Exchange OAuth2**: If **gate-cex-ex** was installed, the user completes **Gate OAuth2** in the browser when the client prompts (scopes: `market`, `profile`, `trade`, `wallet`, `account`).99- **Gate-Dex Authorization**: If Gate-Dex was installed and a query returns an authorization required message, prompt the user to first open https://web3.gate.com/ to create or bind a wallet, then complete OAuth via the link the assistant provides.100101## Script102103Use the **scripts/install.sh** in this skill directory for one-click installation.104105- Usage: 106 `./scripts/install.sh [--mcp main|cex-public|cex-exchange|dex|info|news] ... [--no-skills]` 107 Installs all MCPs when no `--mcp` is passed; pass multiple `--mcp` to install only specified ones; `--no-skills` installs MCP only.108- The DEX x-api-key is fixed as `MCP_AK_8W2N7Q` and written to the config.109110After downloading this skill from GitHub, run from the repository root: 111`bash skills/gate-mcp-claude-installer/scripts/install.sh` 112Or (MCP only): 113`bash skills/gate-mcp-claude-installer/scripts/install.sh --no-skills`