CaptchaAI MCP Server
OfficialProvides tools for solving Cloudflare CAPTCHAs through CaptchaAI's token-mode API. Supports the turnstile type and the cloudflare_challenge type (which requires a proxy and proxy type and returns a user_agent along with the solution), returning task IDs, solutions, and user agents that can be submitted to pass Cloudflare's challenge protection.
Click on "Deploy 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., "@CaptchaAI MCP Server Check my CaptchaAI balance and how many threads are free"
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.
CaptchaAI MCP Server
Official Model Context Protocol (MCP) server for CaptchaAI, built with FastMCP and backed by the official captchaai Python SDK.
Exposes token-mode (pure API, no browser required) tools so AI assistants and automation agents can inspect account capacity, check supported CAPTCHA types, and solve challenges.
Website: https://captchaai.com/
API Documentation: https://docs.captchaai.com/
MCP Client Integration Guide: docs/mcp-integration.md (Claude Code, OpenAI Codex, Cursor, Claude Desktop, VS Code, Windsurf, Antigravity)
Repository: https://github.com/CaptchaAI/captchaai-mcp
Tools
Tool | Description | API Key Needed |
| List the 8 token-mode CAPTCHA types with required/optional arguments and proxy/UA notes | No |
| Get account thread usage ( | Yes |
| Get account balance string ( | Yes |
| Solve a CAPTCHA in token mode and return | Yes |
Related MCP server: captchaflow
Supported captcha_type Values
recaptcha_v2(supportsinvisible=Trueandenterprise=True)recaptcha_v3(requiresaction; supportsenterprise=Trueandmin_score)turnstilecloudflare_challenge(requiresproxy+proxytype("HTTP"or"HTTPS"); returnsuser_agent)geetest(requiresgt+challenge; returns{challenge, validate, seccode})captchafox(requiresproxy+proxytype("HTTP"or"HTTPS"); returnsuser_agent)friendly_captchalemin(requirescaptcha_id+div_id; returns{answer, challenge_uuid})
Installation
Install directly from PyPI with pip or run via uvx:
pip install captchaai-mcpOr run from a local clone:
git clone https://github.com/CaptchaAI/captchaai-mcp.git
cd captchaai-mcp
uv syncSet your API key:
export CAPTCHAAI_API_KEY="YOUR_32_CHAR_API_KEY"Running
# STDIO (default — for Claude Desktop, Cursor, Windsurf, etc.)
uvx captchaai-mcp
# or from source:
uv run captchaai-mcp
# Streamable HTTP (serves at http://127.0.0.1:8000/mcp)
uvx captchaai-mcp --transport streamable-http --host 127.0.0.1 --port 8000PreferCAPTCHAAI_API_KEY in the environment over --api-key on multi-user hosts so the key is not visible in process listings. When using --transport streamable-http, bind to loopback or place it behind an authenticating TLS reverse proxy.
MCP Client Configuration
See the full MCP Client Integration Guide for step-by-step setup with Claude Code, OpenAI Codex CLI, Cursor, Claude Desktop, VS Code, Windsurf, and Antigravity.
Using uvx (recommended):
{
"mcpServers": {
"captchaai": {
"command": "uvx",
"args": ["captchaai-mcp"],
"env": {
"CAPTCHAAI_API_KEY": "YOUR_32_CHAR_API_KEY"
}
}
}
}Or from a local checkout:
{
"mcpServers": {
"captchaai": {
"command": "uv",
"args": [
"run",
"--directory",
"/path/to/captchaai-mcp",
"captchaai-mcp"
],
"env": {
"CAPTCHAAI_API_KEY": "YOUR_32_CHAR_API_KEY"
}
}
}
}Development & Tests
# Run MCP server tests
uv run pytest -q
# Inspect the MCP server manifest
uv run fastmcp inspect src/captchaai_mcp/server.py:create_serverLicense
MIT — see LICENSE.
Available Tools
4 toolsget_balanceGet BalanceARead-only
Get the CaptchaAI account balance as returned by the API.
Inputs: no named parameters. Returns: object
get_supported_captchasGet Supported CaptchasARead-onlyIdempotent
List all supported token-mode CAPTCHA types with required/optional arguments and capabilities.
Works without an API key.
Inputs: no named parameters. Returns: object
get_threadsGet ThreadsARead-only
Get CaptchaAI thread usage: total threads, active working_threads, and free_threads.
Inputs: no named parameters. Returns: object
solve_captchaSolve CaptchaA
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.
Inputs: website_url (required), captcha_type (required), gt, proxy, +13 more. Returns: object
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 4 tools
Each tool targets a distinct concern: two account-metric reads (threads vs. balance), one capability-discovery call, and one solve action. The descriptions make clear what each returns (working_threads/free_threads vs. monetary balance), and solve_captcha is unmistakably the only action tool. No two tools can plausibly be swapped.
All four names follow a strict verb_noun snake_case pattern: get_threads, get_balance, get_supported_captchas, solve_captcha. The get_* reads and the solve_* action are predictable, and a new tool would obviously be named by the same convention.
Four tools is a tight, purposeful surface for a narrow service (discover types, solve, check capacity, check balance). It is at the low end of the comfortable 3-15 range, and a small amount of padding (e.g., a combined account-status or error-lookup tool) would round it out, but nothing here feels redundant.
The core lifecycle is covered: get_supported_captchas to discover required args, then solve_captcha, with get_threads/get_balance for capacity and billing. Minor gaps exist around failure handling — no way to poll/retrieve a timed-out or asynchronous solve, and no reporting of failed solves — but the primary workflow has no dead ends.
Maintenance
Related MCP Connectors
Solve reCAPTCHA v2/v3, hCaptcha, Cloudflare Turnstile and image captchas. Platform-hosted, no creden
Solve reCAPTCHA image grids, text captchas, GeeTest and FunCAPTCHA for AI agents. Free tier.
Cloudflare Solver: Scraping API designed to bypass Cloudflare protection.
Universal captcha solving with the industry-standard createTask / getTaskResult protocol, 19 task
Related MCP Servers
AlicenseAqualityDmaintenanceEnables AI assistants to generate DataDome and Incapsula clearance tokens without a headless browser, for development and prototyping.6MIT- FlicenseNot gradedqualityBmaintenanceEnables solving captchas through the createTask/getTaskResult protocol, supporting 19 task types with real browser rendering and anti-bot handling.-
- AlicenseAqualityCmaintenanceEnables AI agents to solve reCAPTCHA v2/v3/Enterprise, Cloudflare Turnstile, DataDome and image captchas during browser or HTTP automation, returning the token, cookie or text the page needs. Failed solves are never billed, and a configurable per-process spend cap limits autonomous spending.469 npmMIT
- AlicenseAqualityBmaintenanceSolve hCaptcha, Enterprise included, from Claude, Cursor or any MCP client: returns a valid hCaptcha token through one API.6557 npm319MIT