captchaai-mcp

v1.1.0
captchaai-mcp Checked 4 days ago Published 12 days ago

Official 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.

ParameterTypeDescription
captcha_type *stringCAPTCHA challenge type (e.g. "recaptcha_v2", "recaptcha_v3", "turnstile").
website_url *stringFull URL of the page containing the CAPTCHA.
actionAction name (required for recaptcha_v3; optional `sa=` for Enterprise v2).
api_serverOptional Lemin API server URL.
captcha_idLemin captcha identifier (required for lemin).
challengeGeeTest `challenge` parameter (required for geetest).
cookiesOptional cookies forwarded to the solver ("KEY1:Val1;KEY2:Val2;").
div_idLemin target container element ID (required for lemin).
enterprisebooleanEnable Enterprise mode (recaptcha_v2 or recaptcha_v3).
gtGeeTest public `gt` parameter (required for geetest).
invisiblebooleanEnable invisible mode (recaptcha_v2 only).
min_scoreMinimum score threshold (0.0-1.0) for recaptcha_v3.
proxyProxy string in "user:pass@host:port" format (required for cloudflare_challenge and captchafox).
proxytypeProxy protocol when proxy is set ("HTTP" or "HTTPS").
user_agentOptional User-Agent string forwarded to the solver.
versionOptional Friendly Captcha version string.
website_keySite 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`.

ParameterTypeDescription
url *stringFull http:// or https:// URL of the page to inspect.
headlessbooleanRun Chromium in headless mode (default True).
proxyOptional proxy string in "user:pass@host:port" format.
proxytypeProxy protocol when proxy is set ("HTTP" or "HTTPS").
wait_timeoutnumberMilliseconds 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`.

ParameterTypeDescription
url *stringFull http:// or https:// URL of the page to solve.
autofillbooleanWhen True (default), inject solved tokens/cookies into the page; when False, solve without injecting.
close_delaynumberSeconds to keep the browser open after solving before closing (0-30).
default_v3_actionstringFallback action name for reCAPTCHA v3 widgets when none is detected on the page.
headlessbooleanRun Chromium in headless mode (default True).
proxyOptional proxy string in "user:pass@host:port" format.
proxytypeProxy protocol when proxy is set ("HTTP" or "HTTPS").
throw_on_errorbooleanWhen True, fail immediately on the first solve error; when False, return per-CAPTCHA error fields.
wait_timeoutnumberMilliseconds to wait after domcontentloaded for CAPTCHA widgets to render (0-60000).