# Gate DEX MCP server

> Enables AI agents to interact with the Gate cryptocurrency exchange for market data, trading, account management, and on-chain DEX swaps.

- Repository: https://github.com/gate/gate-mcp
- Page: https://hostedmcp.org/servers/gate/gate-mcp
- Transport: remote
- Stars: 45
- License: MIT
- Latest version: 1.0.0

## Install

### Claude Code

```sh
claude mcp add --transport http gate-mcp https://api.gatemcp.ai/mcp/dex
```

### Cursor (`~/.cursor/mcp.json`)

```json
{
  "mcpServers": {
    "gate-mcp": {
      "url": "https://api.gatemcp.ai/mcp/dex"
    }
  }
}
```

### VS Code (`.vscode/mcp.json`)

```json
{
  "servers": {
    "gate-mcp": {
      "type": "http",
      "url": "https://api.gatemcp.ai/mcp/dex"
    }
  }
}
```

### VS Code CLI

```sh
code --add-mcp '{"name":"gate-mcp","type":"http","url":"https://api.gatemcp.ai/mcp/dex"}'
```

### Codex

```sh
codex mcp add gate-mcp --url https://api.gatemcp.ai/mcp/dex
```

### Codex config.toml (`~/.codex/config.toml`)

```toml
[mcp_servers.gate-mcp]
url = "https://api.gatemcp.ai/mcp/dex"
```

### Gemini CLI

```sh
gemini mcp add -s user --transport http gate-mcp https://api.gatemcp.ai/mcp/dex
```

### Gemini settings.json (`~/.gemini/settings.json`)

```json
{
  "mcpServers": {
    "gate-mcp": {
      "url": "https://api.gatemcp.ai/mcp/dex",
      "type": "http"
    }
  }
}
```

## Environment variables

| Name | Required | Secret | Description |
|---|---|---|---|
| `GATE_API_KEY` | no | no |  |
| `GATE_API_SECRET` | no | no |  |

## FAQ

### What can I do with the Gate MCP server?

You can access public market data, perform CEX trading (spot, futures, options), manage accounts and wallets, use DEX swaps across 20+ chains, and access crypto news and research.

### How do I authorize trading and private account tools?

Private trading and account tools require Gate OAuth2 authorization via the /mcp/exchange endpoint.

### Which chains are supported for DEX operations?

The DEX endpoint provides market data and swap capabilities across more than 20 different chains.
