
Ethan Collins
Pattern Recognition Specialist

solve_captcha, detect_captchas, solve_on_page, get_balance, and get_supported_captchas.capsolver-core before capsolver-mcp, then configure an MCP client to launch the capsolver-mcp command with the API key in its environment.The safest answer to how to use capsolver mcp server is to treat CAPTCHA handling as a narrow infrastructure tool, not as a new source of authority for the agent. CapSolver provides the official capsolver-mcp service, which wraps capsolver-core and lets compatible AI clients discover documented CAPTCHA tools. The agent can then recover from reCAPTCHA v2, reCAPTCHA v3 including Enterprise, or Cloudflare Turnstile interruptions inside an authorized browser workflow. Your application still owns scope, credentials, retry limits, and the final business assertion. This guide shows the real installation and JSON configuration, explains every tool and output boundary, and defines stop conditions for lawful, reasonable, responsible use. It does not authorize access to private, restricted, sensitive, or unauthorized data.
Before deciding how to use capsolver mcp server, separate the product layers. The CapSolver for AI Agents overview describes the recovery-layer architecture. capsolver-core performs detection and solving, capsolver-agent adapts those methods into agent-callable schemas, and capsolver-mcp publishes the same capability over MCP.
The core SDK API documents create_capsolver, detect, get_captcha_info, solve, and solve_on_page. The agent tool adapter documents get_all_tools and create_executor. The MCP service guide is the source of truth for installation, transports, configuration, and the five MCP tools.
Use the CapSolver MCP server for Claude Desktop, Cursor, Cline, VS Code clients, or another compatible host. Use capsolver-agent when you are writing the function-calling loop yourself. Use capsolver-core when Playwright or a service owns the full control flow and no model needs tool schemas. This distinction prevents duplicated adapters and makes how to use capsolver mcp server easier to maintain.
The official sequence installs the core engine first and the MCP wrapper second:
pip install git+https://github.com/capsolver-ai/capsolver-core.git
pip install git+https://github.com/capsolver-ai/capsolver-mcp.git
For browser detection and solve_on_page, install the browser extra and Chromium:
pip install "capsolver-mcp[browser] @ git+https://github.com/capsolver-ai/capsolver-mcp.git"
playwright install chromium
These commands are the verified input for how to use capsolver mcp server. A successful output is an executable capsolver-mcp command. Stop if installation resolves to an unofficial package name, if the command is missing, or if Chromium is unavailable for a browser-mode deployment.
The official stdio configuration is compact and works across many local MCP clients:
{
"mcpServers": {
"capsolver": {
"command": "capsolver-mcp",
"env": {
"CAPSOLVER_API_KEY": "YOUR_API_KEY"
}
}
}
}
Keep the real key in a secret manager or the client environment rather than source control. The input is the command and environment. The output is a connected server whose tool list can be inspected. The stop condition is a failed launch, an unexpected executable path, or an incomplete registry. The MCP tool specification explains why clients should discover and validate tool schemas before calls.
After reloading the client, confirm all five names: solve_captcha, detect_captchas, solve_on_page, get_balance, and get_supported_captchas. The article on fixing CAPTCHA errors in an MCP server provides a useful diagnostic path, while MCP agent checkpoint recovery explains why recovery must remain bounded.
Redeem Your CapSolver Bonus Code
Boost your automation budget instantly!
Use bonus code CAP26 when topping up your CapSolver account to get an extra 5% bonus on every recharge — with no limits.
Redeem it now in your CapSolver Dashboard
For token mode, the agent supplies a supported CAPTCHA type, the authorized page URL, and the public site key; solve_captcha returns a solution through the MCP tool result. For browser mode, detect_captchas lists detected types and solve_on_page performs documented detection, solving, and fill-back. get_balance reports balance information, and get_supported_captchas reports the current registry.
Do not infer success from a non-error tool response. The application must verify that the expected route, form state, or test assertion changed in the same browser session. Stop how to use capsolver mcp server after one autonomous attempt, a changed hostname, a second checkpoint, expired authorization, an unsupported CAPTCHA type, or an ambiguous page state.
The MCP CAPTCHA setup walkthrough helps connect configuration to real tool discovery. For reCAPTCHA-specific MCP behavior, the Cursor reCAPTCHA v2 example shows how a narrow client integration differs from a general server deployment.
A production implementation of how to use capsolver mcp server should allow only approved hosts and declared actions. Keep cookies and credentials outside model messages. Log request identifiers, tool names, terminal states, and redacted error codes rather than raw tokens. The OWASP logging guidance supports privacy-aware event design, and the NIST AI Risk Management Framework supports accountable controls.
Test missing keys, missing browser dependencies, incomplete tool discovery, unsupported types, unchanged page state, and repeat challenges. Each negative case should return a terminal review state rather than another autonomous call.
The practical method for how to use capsolver mcp server is straightforward: install capsolver-core and capsolver-mcp, configure the official command, verify all five tools, and place a strict authorization gate in front of every call. Treat application success as the outcome and tool completion as evidence. Teams operating permitted AI-agent workflows can evaluate CapSolver as the CAPTCHA infrastructure layer.
No. Current AI-agent documentation limits this layer to reCAPTCHA v2, reCAPTCHA v3 including Enterprise, and Cloudflare Turnstile. Check get_supported_captchas at runtime.
Use the official capsolver-mcp executable, or launch the installed module with the environment's Python when the executable is not on the client's PATH.
Browser detection and solve_on_page require the browser extra and Chromium. Token mode does not require a browser when the page parameters are already known.
Stop on scope change, unsupported type, missing browser context, repeated challenge, expired authorization, or an unchanged application state after one attempt.
TL;DR - An ai agent captcha timeout error needs separate budgets for page readiness, tool transport, CAPTCHA work, and application confirmation. - Late results must be discarded when the page URL, browser context, challenge, or authorized action has changed. - One bounded retry may be reasonable for a transient transport failure, but repeated checkpoints should open a review path. - The final pass condition is the original application state, never the absence of a thrown exception. Introduction

An mcp recaptcha solver is most useful when a permitted AI-agent task already knows what reCAPTCHA it encountered and needs a structured recovery call. CapSolver exposes the official `solve_captcha` tool through `capsolver-mcp`, while `detect_captchas` and `solve_on_page` support browser-driven recovery. The integration should preserve the page URL, reCAPTCHA version, site key, browser session, and authorized action as one checkpoint. It should also stop rather than guess whe
