Captcha solving for
MCP agents
An agent that meets a challenge has nothing in its toolset that can answer it, so it stalls or hallucinates its way around. Give it a solver as a tool and the block becomes one more call.
# Claude Code
claude mcp add captchano -e CAPTCHANO_API_KEY=cn-YOUR_API_KEY -- npx -y captchano-mcp
# Claude Desktop / Cursor / VS Code (mcpServers config)
{
"mcpServers": {
"captchano": {
"command": "npx",
"args": ["-y", "captchano-mcp"],
"env": {
"CAPTCHANO_API_KEY": "cn-YOUR_API_KEY",
"CAPTCHANO_MAX_SPEND_USD": "1"
}
}
}
}
# Tools: solve_captcha · get_task · get_balance · list_captcha_types
# Source (MIT): https://github.com/DishantSinghDev2/captchano-mcpWhy agents need this specifically
A scraper that hits a challenge fails loudly and you fix it. An agent fails quietly: it reasons about the blocked page, invents a plausible next step, and reports progress it never made. The failure is worse because it is silent. A typed solver tool turns an ambiguous dead end into a deterministic result the agent can branch on.
What the tool returns
- A token or cookie — depending on the challenge type. Session-graded systems return a cookie plus the header set used to earn it.
- The user agent used, so the agent can replay it on submission.
- The cost of the solve, so an agent operating under a budget can account for it rather than spending blind.
Keeping the loop bounded
Give the agent a solve budget per run. Every response reports its cost, so a supervisor can cut the loop when spend passes a threshold rather than discovering it on the invoice. At $0.00598 per solve a typical agent run costs a few cents or less, but an unbounded retry loop is still an unbounded retry loop.
Keep the tool call blocking
The examples call ?wait=60, so the tool returns a finished token in a single step. That matters more for agents than for scripts: a tool that returns "still solving" forces the model to reason about polling, which it does badly. If you need a longer ceiling, raise wait up to 120 seconds. Request shapes for every challenge type are in the API reference.
How the solve fits into MCP
captchano-mcp is our open-source MCP server: it exposes solving as tools any MCP client can call, so the agent clears a captcha with one tool call and gets a token back.
- 01Add the server
Claude Code: claude mcp add captchano -e CAPTCHANO_API_KEY=cn-… -- npx -y captchano-mcp. Other clients use the same npx command in their MCP config.
- 02Set a budget
Optionally set CAPTCHANO_MAX_SPEND_USD so the server refuses further solves once the session has spent that much.
- 03Let the model call it
When the agent sees a challenge, it calls solve_captcha with the type, sitekey and URL; list_captcha_types tells it which fields each type needs.
- 04Use the token
The agent passes the token to its browser tool to inject and submit. Long solves return a task id to check with get_task.
Getting the token into the page
The client receives the token as the tool result and hands it to whichever browser tool fills the page.
Where integrations usually go wrong
Keep the API key in the server's environment, never in the tool arguments, so the model never sees it.
Keep wait=60 so the tool returns a finished token instead of asking the model to poll.
MCP captcha FAQ
Is there an official CaptchaNo MCP package?
Yes. captchano-mcp is our open-source (MIT) server on npm and in the official MCP Registry. Run it with npx -y captchano-mcp and your key in CAPTCHANO_API_KEY; the key stays on your machine and is never a tool argument.
Which MCP clients does it work with?
Any client that supports MCP tools over stdio or HTTP, since the server only exposes a standard tool.
How does the agent find the sitekey?
Through its browser tool: it reads the data-sitekey attribute or the challenge page URL and passes it to the solve tool.
Can I limit what the agent spends?
Yes. Every result includes the cost, so the server can keep a running total and refuse further solves past a budget.
Guides that help
Ready to build?
Start with a free 7-day trial of the Hobby plan, then pay per successful solve or keep the plan as your traffic grows. Cancel before the trial ends and you pay nothing.