Skip to main content
Glama
solvehub-mcp

solvehub-mcp

solvehub-mcp

MCP server for the SolveHub CAPTCHA and anti-bot solver API. Gives Claude, Cursor, VS Code and any other MCP client eight tools to solve a challenge and get the token, cookie or OCR text back - Turnstile, Interstitial, DataDome, Akamai, PerimeterX, Imperva, AWS WAF, Alibaba CAPTCHA 2.0, Arkose FunCaptcha and image OCR through a single REST endpoint.

Zero dependencies, one npx command, Node 18 or newer.

Tools

Tool

What it does

solve_captcha

Create a task and wait for it, returning the solution (token, cookies or text).

create_task

Create a task and return its id immediately, for work you finish later.

get_task

Status of one task, plus its solution once done.

wait_for_task

Poll an existing task until it is done, failed or cancelled.

cancel_task

Cancel a queued or running task; the reserved amount is refunded.

list_tasks

Recent tasks, newest first.

get_balance

Available and reserved balance in USD.

get_prices

Live per-task price for every challenge type.

Related MCP server: 2Captcha MCP

Install

Get an API key from the SolveHub console; new accounts get a $0.10 trial credit after Telegram verification.

Claude Desktop

Edit claude_desktop_config.json and restart the app:

{
  "mcpServers": {
    "solvehub": {
      "command": "npx",
      "args": ["-y", "github:seencxy/solvehub-mcp"],
      "env": { "SOLVEHUB_API_KEY": "sh_live_xxx" }
    }
  }
}

Cursor, VS Code, Cline, Windsurf

Most clients read the same JSON in mcp.json (VS Code and Cursor use the servers key):

{
  "servers": {
    "solvehub": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "github:seencxy/solvehub-mcp"],
      "env": { "SOLVEHUB_API_KEY": "sh_live_xxx" }
    }
  }
}

From a clone

git clone https://github.com/seencxy/solvehub-mcp
cd solvehub-mcp
SOLVEHUB_API_KEY=sh_live_xxx node index.mjs

Docker

A public image is built from this repo on every push to main, so no local Node install is needed:

docker run -i --rm -e SOLVEHUB_API_KEY=sh_live_xxx ghcr.io/seencxy/solvehub-mcp:latest

Claude Desktop (or any stdio client) can launch the same image:

{
  "mcpServers": {
    "solvehub": {
      "command": "docker",
      "args": ["run", "-i", "--rm", "-e", "SOLVEHUB_API_KEY=sh_live_xxx", "ghcr.io/seencxy/solvehub-mcp:latest"]
    }
  }
}

What it looks like in use

Solve the Cloudflare Turnstile on https://example.com/login. The site key is 0x4AAAAAAA... and I am allowed to test this site.

The model calls solve_captcha with type: turnstile and the challenge fields, then answers with the token and its expiry. Anything that needs a proxy (DataDome, Imperva, Akamai, PerimeterX) takes a proxy argument as well, for example http://user:pass@host:port.

Environment variables

Variable

Default

Meaning

SOLVEHUB_API_KEY

-

Console API key. Required for every tool except get_prices.

SOLVEHUB_BASE_URL

https://api.tiam.codes

Override for a self-hosted or staging endpoint.

SOLVEHUB_TIMEOUT_MS

30000

Per-request socket timeout.

Billing behaviour you should know

  • The price is frozen when the task is created, charged only when it completes, and refunded if the task fails or is cancelled. A failed challenge costs nothing.

  • The server sends an Idempotency-Key on every create, and retries 429/5xx and network errors with exponential backoff, so a retry cannot bill the same task twice.

  • get_balance and get_prices are there so an agent can check the cost before spending anything.

  • uncertain is not a failure: the challenge could not be judged yet and can still resolve, so wait_for_task keeps polling instead of giving up.

Supported challenge types

Type

Typical fields

turnstile

websiteURL, websiteKey, optional action / cdata

interstitial

websiteURL, proxy; returns the clearance cookie and user agent

datadome

websiteURL, proxy, optional cookies

akamai

websiteURL, proxy; returns _abck and bm_sz

perimeterx

websiteURL, appId, proxy, cookies

imperva

websiteURL, proxy, mode reese84 or UT.mvc

aws_waf

challenge script URL, optional captcha script, proxy

alibaba

scene id, identity prefix, verification payload

funcaptcha

websiteURL, websiteKey, optional subdomain

image

body with the base64 image; returns the recognised text

Exact field names per type are in the API reference.

Development

npm test

The tests run the JSON-RPC dispatcher, the tool schemas and the polling state machine against a mocked HTTP layer, so they need no API key and no network.

Use it on systems you own or have written permission to test. That is what the API is for, and the terms say the same thing.

MIT licensed.

Available Tools

8 tools
cancel_taskA

Cancel a queued or running task. The reserved amount is refunded.

Inputs: task_id (required).

create_taskA

Create a SolveHub task and return its id without waiting. Use get_task or wait_for_task afterwards. Billing happens only when the task completes, and the price is frozen at creation.

Inputs: task (required), type (required), proxy, idempotency_key.

get_balanceA

Current account balance in USD: available and reserved (held by unfinished tasks).

Inputs: no named parameters.

get_pricesA

Live price catalogue: per-task cost for every supported challenge type. Public, does not need a task.

Inputs: no named parameters.

get_taskA

Read one task: status (queued, processing, uncertain, done, failed, cancelled) and, once done, its solution. uncertain means the challenge could not be judged yet and can still resolve; poll again.

Inputs: task_id (required).

list_tasksA

List the most recent tasks, newest first, with status and type.

Inputs: limit.

solve_captchaA

Create a SolveHub task and wait until it finishes, then return the token, cookie or recognised text. Use this for a site you own or are authorized to test. Typical Turnstile fields: websiteURL and websiteKey; DataDome/Imperva/Akamai need a proxy.

Inputs: task (required), type (required), proxy, idempotency_key, +1 more.

wait_for_taskA

Poll one existing task until it is done, failed or cancelled, or until timeout_seconds pass. Returns the task in either case, with timedOut true when the budget ran out.

Inputs: task_id (required), timeout_seconds.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.9/5.0

    Scored across 8 tools

    Disambiguation4/5

    Most tools are clearly distinct: create_task (fire-and-forget), get_task (single read), wait_for_task (polling), and cancel_task map to distinct lifecycle operations. The main overlap is solve_captcha, which is a create+wait convenience wrapper over create_task/wait_for_task, and get_task vs wait_for_task both return task state; the descriptions do differentiate them, but an agent could plausibly pick the wrong one.

    Naming Consistency5/5

    All eight tools follow a clean verb_noun pattern (solve_captcha, create_task, get_task, wait_for_task, cancel_task, list_tasks, get_balance, get_prices). Verb choice is also semantically meaningful (list_ for collections, get_ for single reads), with no mixing of case or style.

    Tool Count5/5

    Eight tools is well-scoped for a CAPTCHA-solving task API: one wrapper, four lifecycle operations, one listing, and two account/pricing lookups. Nothing obviously redundant or missing at the count level.

    Completeness4/5

    The task lifecycle is fully covered (create, read, wait, cancel, list) plus pricing and balance, so agents won't hit dead ends in the core flow. Minor gaps exist around task history/pagination (list_tasks only returns 'most recent') and no explicit task-type or status-introspection helper, but these are workable.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      MCP server that exposes the full 2Captcha API surface to Claude Code, enabling solving of 31 captcha types, management tools, and webhook integration for asynchronous solves.
      5
      MIT
    • F
      license
      Not graded
      quality
      C
      maintenance
      Enables solving CAPTCHAs in MCP workflows with authorization, bounded attempts, and structured result validation.
      -