Full 2Captcha API (43 tools) for Claude Code: 31 captcha solvers + management + webhook.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
π‘ Paste into ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
MCP server exposing the full 2Captcha API surface β 31 captcha types, 5 management tools, 3 pingback CRUD tools, 3 webhook event-store tools, and 1 composite solve-and-wait tool (43 tools total) β to Claude Code via stdio.
Built on the official 2captcha-python SDK (AsyncTwoCaptcha), so retry/polling/parsing are handled upstream and every captcha type the SDK supports is available the moment the SDK adds it.
Create a .env next to the project root:
Verify it works:
Register the server with Claude Code:
After a claude restart, prompt the model with:
"Use twocaptcha_balance to check my account."
All settings are environment-driven. Aliases in priority order:
| Setting | Aliases | Default | Range |
|---|---|---|---|
| API key (required) | 2Captcha_API_KEY, TWOCAPTCHA_API_KEY, 2CAPTCHA_API_KEY, API_KEY_2CAPTCHA | β | β |
| Server | TWOCAPTCHA_SERVER | 2captcha.com | 2captcha.com, rucaptcha.com |
| Default timeout | TWOCAPTCHA_DEFAULT_TIMEOUT | 120 s | 1..600 |
| reCAPTCHA timeout | TWOCAPTCHA_RECAPTCHA_TIMEOUT | 600 s | 1..1200 |
| Polling interval | TWOCAPTCHA_POLLING_INTERVAL | 10 s | 1..120 |
| Soft id | TWOCAPTCHA_SOFT_ID | 4580 | β |
| Log level | TWOCAPTCHA_LOG_LEVEL | INFO | DEBUG/INFO/WARNING/ERROR/CRITICAL |
| Default pingback URL | TWOCAPTCHA_DEFAULT_CALLBACK | unset | https URL |
| Tool | SDK method | Required arguments |
|---|---|---|
twocaptcha_solve_normal | normal | file_path xor file_base64 |
twocaptcha_solve_text | text | text |
twocaptcha_solve_audio | audio | file (xor), audio_lang |
twocaptcha_solve_grid | grid | file (xor) |
twocaptcha_solve_canvas | canvas | file (xor) |
twocaptcha_solve_coordinates | coordinates | file (xor) |
twocaptcha_solve_rotate | rotate | files: list |
twocaptcha_solve_vkimage | vkimage | files, steps |
twocaptcha_solve_recaptcha | recaptcha | sitekey, url, version, enterprise |
twocaptcha_solve_hcaptcha | hcaptcha | sitekey, url |
twocaptcha_solve_turnstile | turnstile | sitekey, url (+ data/pagedata for CF Challenge) |
twocaptcha_solve_funcaptcha | funcaptcha | sitekey, url |
twocaptcha_solve_geetest | geetest | gt, challenge, url |
twocaptcha_solve_geetest_v4 | geetest_v4 | captcha_id, url |
twocaptcha_solve_capy | capy | sitekey, url |
twocaptcha_solve_keycaptcha | keycaptcha | s_s_c_user_id, s_s_c_session_id, two signs, url |
twocaptcha_solve_lemin | lemin | captcha_id, div_id, url |
twocaptcha_solve_mtcaptcha | mtcaptcha | sitekey, url |
twocaptcha_solve_friendly_captcha | friendly_captcha | sitekey, url |
twocaptcha_solve_cutcaptcha | cutcaptcha | misery_key, apikey, url |
twocaptcha_solve_amazon_waf | amazon_waf | sitekey, iv, context, url |
twocaptcha_solve_tencent | tencent | app_id, url |
twocaptcha_solve_atb_captcha | atb_captcha | app_id, api_server, url |
twocaptcha_solve_datadome β | datadome | proxy, user_agent, captcha_url, pageurl |
twocaptcha_solve_captchafox β | captchafox | proxy, user_agent, sitekey, pageurl |
twocaptcha_solve_vkcaptcha β | vkcaptcha | proxy, user_agent, redirect_uri |
twocaptcha_solve_prosopo | prosopo | sitekey, pageurl |
twocaptcha_solve_temu | temu | body, part1..3 |
twocaptcha_solve_altcha | altcha | pageurl |
twocaptcha_solve_cybersiara | cybersiara | master_url_id, pageurl, cyber_user_agent |
twocaptcha_solve_yandex_smart | yandex_smart | sitekey, url |
β β proxy and user_agent are required by the SDK signature.
All solver tools accept the same set of optional kwargs (mixin SolverKwargs):
proxy: {type, uri} (HTTP/HTTPS/SOCKS4/SOCKS5)pingback: HttpUrl β per-call pingback URL (must be pre-registered)soft_id: intcookies: struser_agent: strlang: strheader_acao: 0|1twocaptcha_balance β current balance in USDtwocaptcha_report_good / twocaptcha_report_bad β report a captcha id within 15 minutestwocaptcha_get_result β poll a captcha id manually (paired with send_raw)twocaptcha_send_raw β escape hatch for SDK methods this server does not yet exposetwocaptcha_register_pingback β whitelist a callback URLtwocaptcha_list_pingbacks β list whitelisted addressestwocaptcha_delete_pingback β delete one or addr="all"Run live tests against the real 2Captcha API (consumes credits):
Tool handlers depend only on the SolverClient / PingbackClient abstractions β the SDK is never imported from a handler. Adding a new captcha type is a 3-step process: schema β tool handler β snapshot test count bump.
For long-running solves (recaptcha v3 up to 600 s), the polling-mode SDK call
holds the MCP request slot for the entire duration. Run the optional
twocaptcha-mcp-webhook server to flip into pingback mode β 2Captcha POSTs the
result to your URL, the receiver writes it to SQLite, and the MCP tools read
asynchronously without blocking.
twocaptcha_solve_and_wait_pingback
sends the captcha and waits on the local storetwocaptcha_pingback_events_list/get/clearSee CONTRIBUTING.md for the dev loop, code conventions, and the SemVer policy for the MCP tool surface.
See SECURITY.md. Vulnerabilities are reported privately via GitHub Security Advisory.
MIT β see LICENSE.
Registry verification β mcp-name: io.github.aruxojuyu665/twocaptcha-mcp
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/2captcha-mcp)<a href="https://allmcps.com/mcp/2captcha-mcp"><img src="https://allmcps.com/api/badge/2captcha-mcp?style=directory" alt="2Captcha MCP on AllMCPs" /></a>