# SolveGate MCP server

> Inspect pages for Cloudflare Turnstile and clear Turnstile or WAF challenges to obtain authentication tokens.

- Repository: https://github.com/SolveGate/solvegate-mcp
- Page: https://hostedmcp.org/servers/solvegate/solvegate-mcp
- Transport: stdio
- Stars: 1
- License: MIT
- Latest version: 0.1.1

## Install

### Claude Code

```sh
claude mcp add --env 'SOLVEGATE_API_KEY=<YOUR_SOLVEGATE_API_KEY>' solvegate-mcp -- npx -y solvegate-mcp
```

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

```json
{
  "mcpServers": {
    "solvegate-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "solvegate-mcp"
      ],
      "env": {
        "SOLVEGATE_API_KEY": "<YOUR_SOLVEGATE_API_KEY>"
      }
    }
  }
}
```

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

```json
{
  "servers": {
    "solvegate-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "solvegate-mcp"
      ],
      "env": {
        "SOLVEGATE_API_KEY": "<YOUR_SOLVEGATE_API_KEY>"
      }
    }
  }
}
```

### VS Code CLI

```sh
code --add-mcp '{"name":"solvegate-mcp","type":"stdio","command":"npx","args":["-y","solvegate-mcp"],"env":{"SOLVEGATE_API_KEY":"<YOUR_SOLVEGATE_API_KEY>"}}'
```

### Claude Desktop (`claude_desktop_config.json`)

```json
{
  "mcpServers": {
    "solvegate-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "solvegate-mcp"
      ],
      "env": {
        "SOLVEGATE_API_KEY": "<YOUR_SOLVEGATE_API_KEY>"
      }
    }
  }
}
```

### Codex

```sh
codex mcp add solvegate-mcp --env 'SOLVEGATE_API_KEY=<YOUR_SOLVEGATE_API_KEY>' -- npx -y solvegate-mcp
```

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

```toml
[mcp_servers.solvegate-mcp]
command = "npx"
args = ["-y", "solvegate-mcp"]

[mcp_servers.solvegate-mcp.env]
SOLVEGATE_API_KEY = "<YOUR_SOLVEGATE_API_KEY>"
```

### Gemini CLI

```sh
gemini mcp add -s user -e 'SOLVEGATE_API_KEY=<YOUR_SOLVEGATE_API_KEY>' solvegate-mcp npx -- -y solvegate-mcp
```

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

```json
{
  "mcpServers": {
    "solvegate-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "solvegate-mcp"
      ],
      "env": {
        "SOLVEGATE_API_KEY": "<YOUR_SOLVEGATE_API_KEY>"
      }
    }
  }
}
```

## Environment variables

| Name | Required | Secret | Description |
|---|---|---|---|
| `SOLVEGATE_API_KEY` | no | yes | API key for solving. Optional — the inspect_page tool works without one, so the server is useful before you have an account. A free sk_test_ sandbox key needs no card. |
| `SOLVEGATE_BASE_URL` | no | no | API base URL. Defaults to https://api.solvegate.io. |
| `SOLVEGATE_MAX_WAIT_MS` | no | no | How long solve_turnstile waits for a pending solve, in milliseconds. Defaults to 60000. |
| `SOLVEGATE_SITE_URL` | no | no | Where inspect_page runs. Defaults to https://solvegate.io. |
| `SOLVEGATE_TIMEOUT_MS` | no | no | Per-request timeout in milliseconds. Defaults to 30000. |

## FAQ

### Does the server require an API key to work?

No, the inspect_page tool works without an account, allowing you to see what the server does before signing up.

### Can this server solve reCAPTCHA or hCaptcha?

No, the server is specifically designed for Cloudflare Turnstile and does not support reCAPTCHA or hCaptcha.

### What happens if a solve attempt times out?

Because solving is asynchronous, a timeout will leave you with a solve ID that you can retrieve using the get_solve tool.

### How can I tell if I am using a sandbox key?

An sk_test_ key will return a mode of 'sandbox', which indicates the token will not clear a real gate.
