# solvegate-mcp [Health: Active]

**Category:** ☁️ Cloud Platforms  
**Repository:** https://github.com/SolveGate/solvegate-mcp  
**GitHub Stars:** 1  
**npm Downloads (last month):** 628  
**Views:** 4  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/solvegate-mcp

## Description
Inspect a page for Cloudflare Turnstile free, and clear Turnstile and WAF challenges.

## Tools
Capabilities this server exposes over MCP:

- **inspect_page** — Fetch a URL and report what its HTML says about Cloudflare Turnstile: whether a widget is present, its sitekey, whether it renders implicitly or via turnstile.render(), the widget's data-* configuration, whether the sitekey is one of Cloudflare's documented test keys, and whether the page is a full-page WAF challenge rather than a widget. Free, no API key required. Use this before solving when the sitekey is unknown. It CANNOT determine the widget's mode (managed / non-interactive / invisible) — that is stored in the Cloudflare account that owns the sitekey and is not in the page at all.
- **solve_turnstile** — Clear a Cloudflare challenge and return a token. `gate` is "turnstile" for an embedded widget (there is a data-sitekey in the page) or "waf" for a full-page Cloudflare interstitial. `sitekey` and `url` are both required; the url must be the page the challenge actually renders on, because a sitekey is bound to its configured hostnames. Tokens are single-use and expire in minutes — request one at the moment you submit. Failed solves are never billed. Requires SOLVEGATE_API_KEY.
- **get_solve** — Fetch a solve created earlier. Free — reading never re-bills. Use this when solve_turnstile timed out while still pending: the solve may have finished after the tool gave up, and the id is in that error message. A 404 means no such solve for this API key's workspace.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "solvegate-mcp": {
    "command": "npx",
    "args": ["-y","solvegate-mcp"],
    "env": {
      "SOLVEGATE_API_KEY": "",
      "SOLVEGATE_BASE_URL": "",
      "SOLVEGATE_SITE_URL": "",
      "SOLVEGATE_TIMEOUT_MS": "",
      "SOLVEGATE_MAX_WAIT_MS": ""
    }
  }
}
```

**Requires environment variables:** `SOLVEGATE_API_KEY`, `SOLVEGATE_BASE_URL`, `SOLVEGATE_SITE_URL`, `SOLVEGATE_TIMEOUT_MS`, `SOLVEGATE_MAX_WAIT_MS` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## What solvegate-mcp MCP server does

The solvegate-mcp MCP server gives an MCP-compatible agent tools for examining and handling Cloudflare Turnstile challenges. It connects to the SolveGate API for paid or sandbox solving, while page inspection can run without an account or API key.

The server is intended for properties that you own or are authorized to test. Suitable uses include end-to-end tests affected by a challenge, CI checks against staging, and synthetic monitoring of your own production systems. SolveGate denylisted targets remain blocked.

## How it works

The server uses a standard stdio transport and can be started with `npx solvegate-mcp`. An MCP client sends tool calls, and the server makes requests to the configured SolveGate and inspection endpoints.

Solving is asynchronous internally. `solve_turnstile` creates a solve and polls for its result instead of keeping one request open throughout the attempt. If the wait expires, the response includes a solve ID that can be passed to `get_solve` later. Failures are returned as MCP error results containing SolveGate error codes such as `balance_empty`, `unknown_sitekey`, `rate_limited`, or `forbidden_target`.

Tokens are short-lived and single-use. The returned `expiresAt` value is a Unix timestamp, so clients should request a token close to the time it will be submitted. Sandbox keys return sandbox-mode tokens that do not clear real challenges.

## Setup and configuration

Install or run the solvegate-mcp MCP server with:

```bash
npx solvegate-mcp
```

A client configuration can launch it with the `SOLVEGATE_API_KEY` environment variable. The key is read from the environment rather than accepted as a tool argument, keeping it out of model-visible calls and transcripts. Omit the key when only `inspect_page` is needed.

Configuration variables are:

- `SOLVEGATE_API_KEY`: Optional for inspection; use an `sk_test_` sandbox key or an `sk_live_` key for real gates.
- `SOLVEGATE_BASE_URL`: API base URL, defaulting to `https://api.solvegate.io`.
- `SOLVEGATE_SITE_URL`: Inspection service URL, defaulting to `https://solvegate.io`.
- `SOLVEGATE_TIMEOUT_MS`: Per-request timeout, defaulting to `30000`.
- `SOLVEGATE_MAX_WAIT_MS`: Maximum polling wait for a solve, defaulting to `60000`.

## Tools and capabilities

The solvegate-mcp MCP server provides three tools:

- `inspect_page` fetches a URL and reports whether Turnstile is present, along with its sitekey, rendering method, `data-*` configuration, and whether the response is a full-page WAF challenge. It also identifies cases where the sitekey is not present in the served HTML.
- `solve_turnstile` requests a token for a Turnstile widget or Turnstile WAF challenge. It requires an API key and waits for the asynchronous solve within the configured limit.
- `get_solve` retrieves a solve by ID without creating another billable solve.

## Limitations and notes

Inspection does not identify whether a widget is managed, non-interactive, or invisible. That mode is stored in the Cloudflare account associated with the sitekey, not in the page source. The documented Cloudflare dummy sitekeys are an exception and can reveal that a page uses a staging-style test configuration.

This server handles Turnstile, not reCAPTCHA or hCaptcha. A full-page WAF challenge may not expose a sitekey because it is associated with a zone rule rather than an embedded widget. Use only against authorized targets, and check the solve `mode` before using a returned token.

_Full upstream README: https://allmcps.com/mcp/solvegate-mcp/readme_

