A Model Context Protocol (MCP) server implementation that integrates with 2Captcha to provide robust CAPTCHA solving capabilities for AI agents.
- Balance Check: Monitor your 2Captcha account balance.
- Image Captcha: Solve traditional image-based CAPTCHAs (file, base64, or HTML).
- reCAPTCHA v2: Solve reCAPTCHA v2 and Enterprise versions.
- hCaptcha: Solve hCaptcha widgets.
- Cloudflare Turnstile: Solve Cloudflare's invisible challenge.
- Arkose Labs (FunCaptcha): Solve FunCaptcha/Arkose challenges.
- GeeTest: Solve GeeTest v3 challenges.
You can run the server directly using npx:
env TWOCAPTCHA_API_KEY=YOUR_API_KEY_HERE npx -y 2captcha-mcpNote for Windows users: If you encounter issues with environment variables, try:
cmd /c "set TWOCAPTCHA_API_KEY=YOUR_API_KEY_HERE && npx -y 2captcha-mcp"
TWOCAPTCHA_API_KEY(Required): Your 2Captcha API key. You can find this in your 2Captcha Dashboard.
Add the following to your claude_desktop_config.json:
{
"mcpServers": {
"2captcha-mcp": {
"command": "npx",
"args": ["-y", "2captcha-mcp"],
"env": {
"TWOCAPTCHA_API_KEY": "YOUR_API_KEY_HERE"
}
}
}
}Check your current 2Captcha account balance.
Prompt Example:
"How much balance do I have left on 2Captcha?"
Solve an image-based CAPTCHA. Supports local file paths, base64 strings, or HTML snippets containing <img> tags.
Arguments:
body: The image source (path, base64, or HTML).numeric: 0=default, 1=only digits, 2=only letters, 3=either, 4=both (optional).min_len/max_len: Length constraints (optional).
Prompt Example:
Solve reCAPTCHA v2 or Enterprise.
Arguments:
pageurl: The URL of the page where the captcha is located.googlekey: The sitekey (data-sitekey).enterprise: Set totruefor enterprise version.invisible: Set totruefor invisible version.
Solve hCaptcha widgets.
Arguments:
pageurl: The URL of the page.sitekey: The hCaptcha sitekey.
Solve Cloudflare Turnstile challenges.
Arguments:
pageurl: The URL of the page.sitekey: The Turnstile sitekey.
Solve Arkose Labs/FunCaptcha challenges.
Arguments:
pageurl: The URL of the page.publickey: The Arkose public key.
Solve GeeTest v3 challenges.
Arguments:
pageurl: The URL of the page.gt: The GeeTestgtvalue.challenge: The GeeTestchallengevalue.