2Captcha MCP
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@2Captcha MCPsolve reCAPTCHA v2 on https://example.com with sitekey 6Le-wxoSAAAAAGwV_T8xwC"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
2Captcha MCP
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.
Quick start
pip install twocaptcha-mcp
# or for development:
pip install -e ".[dev]"Create a .env next to the project root:
2Captcha_API_KEY=your_2captcha_key_hereVerify it works:
python -m twocaptcha_mcp # starts the stdio server (Ctrl+C to stop)Register the server with Claude Code:
claude mcp add 2captcha -e 2Captcha_API_KEY=your_2captcha_key_here -- python -m twocaptcha_mcpAfter a claude restart, prompt the model with:
"Use twocaptcha_balance to check my account."
Related MCP server: @toolpipe/mcp-server
Configuration
All settings are environment-driven. Aliases in priority order:
Setting | Aliases | Default | Range |
API key (required) |
| — | — |
Server |
|
|
|
Default timeout |
|
| 1..600 |
reCAPTCHA timeout |
|
| 1..1200 |
Polling interval |
|
| 1..120 |
Soft id |
|
| — |
Log level |
|
| DEBUG/INFO/WARNING/ERROR/CRITICAL |
Default pingback URL |
| unset | https URL |
Tools
Captcha solvers (31)
Tool | SDK method | Required arguments |
|
|
|
|
|
|
|
| file (xor), |
|
| file (xor) |
|
| file (xor) |
|
| file (xor) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
⚑ — 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|1
Management (5)
twocaptcha_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 withsend_raw)twocaptcha_send_raw— escape hatch for SDK methods this server does not yet expose
Pingback CRUD (3)
twocaptcha_register_pingback— whitelist a callback URLtwocaptcha_list_pingbacks— list whitelisted addressestwocaptcha_delete_pingback— delete one oraddr="all"
Development
pytest --cov=twocaptcha_mcp --cov-branch --cov-fail-under=92 -v
ruff check . && ruff format --check .
mypy --strict twocaptcha_mcpRun live tests against the real 2Captcha API (consumes credits):
pytest -m live --run-live # balance + solve_normal + concurrent_balance
pytest -m e2e --run-e2e # full MCP protocol roundtrip via mcp.client.sessionArchitecture
twocaptcha_mcp/
├── __main__.py # stdio entrypoint
├── server.py # build_server + dispatch_tool_call
├── config.py # pydantic-settings (.env)
├── logger.py # stderr-only logger (stdout is reserved for stdio MCP)
├── client/
│ ├── solver.py # SolverClient — async wrapper over AsyncTwoCaptcha
│ ├── pingback.py # httpx wrapper for legacy res.php
│ ├── rate_limiter.py # async sliding-window per-method rate limiter
│ └── errors.py # internal CaptchaError hierarchy
├── schemas/ # Pydantic request/response models per captcha family
├── tools/ # @captcha_tool handlers per captcha family + composite
└── webhook_receiver/ # Starlette app + SQLite store (twocaptcha-mcp-webhook)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.
Webhook receiver (optional, since 0.3.0)
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.
Composite tool:
twocaptcha_solve_and_wait_pingbacksends the captcha and waits on the local storeRead tools:
twocaptcha_pingback_events_list/get/clearDeployment: docs/DEPLOY-WEBHOOK.md
Troubleshooting: TROUBLESHOOTING.md
Contributing
See CONTRIBUTING.md for the dev loop, code conventions, and the SemVer policy for the MCP tool surface.
Security
See SECURITY.md. Vulnerabilities are reported privately via GitHub Security Advisory.
License
MIT — see LICENSE.
Registry verification — mcp-name: io.github.aruxojuyu665/twocaptcha-mcp
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityBmaintenanceMCP server that bridges ChatGPT Plus/Pro to Claude Code, enabling chat, deep research, and image generation via your own account.Last updated42MIT
- Flicense-qualityDmaintenanceMCP server providing 35 developer utility APIs (JSON formatting, code review, password generation, etc.) for AI agents like Claude.Last updated3
- AlicenseCqualityDmaintenanceAn MCP server that gives Claude Code real browser control for web automation, testing, and screenshots.Last updated3296154MIT
- Alicense-qualityDmaintenanceMCP server that enables Claude Code to interact with Google's Gemini API for code analysis, chat, and summarization tasks.Last updated87MIT
Related MCP Connectors
Hosted Amazon Seller and Vendor MCP server for Claude, ChatGPT, Cursor, Codex, Gemini, Copilot.
Hosted Amazon Seller Central and Amazon Ads MCP server for Claude, ChatGPT, Cursor, and agents.
Augments MCP Server - A comprehensive framework documentation provider for Claude Code
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/aruxojuyu665/2Captcha-MCP'
If you have feedback or need assistance with the MCP directory API, please join our Discord server