captchaai-mcp
v1.1.0Official MCP server for CaptchaAI — expose token-mode and optional Playwright browser CAPTCHA solving to AI agents.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
get_threads Get Threads
Get CaptchaAI thread usage: total threads, active working_threads, and free_threads.
get_balance Get Balance
Get the CaptchaAI account balance as returned by the API.
get_supported_captchas Get Supported Captchas
List all supported token-mode CAPTCHA types with required/optional arguments and capabilities. Works without an API key.
solve_captcha Solve Captcha
Solve a CAPTCHA in token mode (no browser) and return the solved token or payload. Blocks until solved (typically 10-80s). Call get_supported_captchas() first to check which arguments are required for the chosen captcha_type. When `user_agent` is returned (Enterprise, Cloudflare Challenge, CaptchaFox), reuse it when submitting the token.
| Parameter | Type | Description |
|---|---|---|
captcha_type * | string | CAPTCHA challenge type (e.g. "recaptcha_v2", "recaptcha_v3", "turnstile"). |
website_url * | string | Full URL of the page containing the CAPTCHA. |
action | Action name (required for recaptcha_v3; optional `sa=` for Enterprise v2). | |
api_server | Optional Lemin API server URL. | |
captcha_id | Lemin captcha identifier (required for lemin). | |
challenge | GeeTest `challenge` parameter (required for geetest). | |
cookies | Optional cookies forwarded to the solver ("KEY1:Val1;KEY2:Val2;"). | |
div_id | Lemin target container element ID (required for lemin). | |
enterprise | boolean | Enable Enterprise mode (recaptcha_v2 or recaptcha_v3). |
gt | GeeTest public `gt` parameter (required for geetest). | |
invisible | boolean | Enable invisible mode (recaptcha_v2 only). |
min_score | Minimum score threshold (0.0-1.0) for recaptcha_v3. | |
proxy | Proxy string in "user:pass@host:port" format (required for cloudflare_challenge and captchafox). | |
proxytype | Proxy protocol when proxy is set ("HTTP" or "HTTPS"). | |
user_agent | Optional User-Agent string forwarded to the solver. | |
version | Optional Friendly Captcha version string. | |
website_key | Site key (data-sitekey) for reCAPTCHA, Turnstile, CaptchaFox, or Friendly Captcha. |
get_captchas_params Get Captchas Params
Open a URL in Playwright Chromium and extract CaptchaParams for every detected CAPTCHA. Requires optional browser dependencies: `pip install "captchaai-mcp[browser]"` and `playwright install chromium`.
| Parameter | Type | Description |
|---|---|---|
url * | string | Full http:// or https:// URL of the page to inspect. |
headless | boolean | Run Chromium in headless mode (default True). |
proxy | Optional proxy string in "user:pass@host:port" format. | |
proxytype | Proxy protocol when proxy is set ("HTTP" or "HTTPS"). | |
wait_timeout | number | Milliseconds to wait after domcontentloaded for CAPTCHA widgets to render (0-60000). |
solve_url Solve Url
Open a URL in Playwright Chromium, detect all supported CAPTCHAs, solve them, and optionally inject tokens. Requires optional browser dependencies: `pip install "captchaai-mcp[browser]"` and `playwright install chromium`.
| Parameter | Type | Description |
|---|---|---|
url * | string | Full http:// or https:// URL of the page to solve. |
autofill | boolean | When True (default), inject solved tokens/cookies into the page; when False, solve without injecting. |
close_delay | number | Seconds to keep the browser open after solving before closing (0-30). |
default_v3_action | string | Fallback action name for reCAPTCHA v3 widgets when none is detected on the page. |
headless | boolean | Run Chromium in headless mode (default True). |
proxy | Optional proxy string in "user:pass@host:port" format. | |
proxytype | Proxy protocol when proxy is set ("HTTP" or "HTTPS"). | |
throw_on_error | boolean | When True, fail immediately on the first solve error; when False, return per-CAPTCHA error fields. |
wait_timeout | number | Milliseconds to wait after domcontentloaded for CAPTCHA widgets to render (0-60000). |