# Gate Exchange MCP server

> Enables AI agents to perform cryptocurrency trading, manage wallets, access market data, and interact with DEX protocols via Gate.io.

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

## Install

### Claude Code

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

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

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

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

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

### VS Code CLI

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

### Codex

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

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

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

### Gemini CLI

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

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

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

## Environment variables

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

## FAQ

### Do I need an account to access market data?

No, public market data and simulations can be accessed via the /mcp endpoint without a Gate account.

### How do I perform private trading and account management?

You must use the /mcp/exchange endpoint, which requires Gate OAuth2 authorization.

### Can this server interact with on-chain wallets and swaps?

Yes, the /mcp/dex endpoint provides tools for on-chain wallets, swaps across 20+ chains, and token information.

### What authentication methods are supported?

The server uses OAuth2 for exchange and DEX endpoints, while other endpoints like news and research are public and require no authentication.
