
Khadija Santos
AI Agent & MCP Engineer
Published Sep 18, 2026
Updated Sep 18, 2026 · min read

We tested CapSolver MCP 0.2.0 with Gemini CLI. The client reported Connected in the trusted test directory.
Point the client at the Python environment's executable to avoid PATH problems.
Start with tool discovery before enabling a paid solve in an approved workflow.
A connected MCP service does not prove that an account can solve a challenge or that a browser form has completed.
Folder trust and tool approval are separate controls; keep tool confirmations enabled.
Gemini CLI CAPTCHA solver setup starts with a tool connection. If your terminal agent helps maintain browser tests or another permitted web workflow, the solver belongs at the specific CAPTCHA checkpoint. It should not replace ordinary page navigation, application validation, or your decision about which operations the agent may perform.
CapSolver exposes a local MCP service that Gemini CLI can discover. This guide connects the two using their documented interfaces, explains how to check the connection, and shows where a solving tool fits afterward. The runnable setup targets macOS and Linux. It does not require a target website to establish the connection, and it does not assume that Gemini CLI already controls a browser.
A CAPTCHA solver gives Gemini CLI a callable capability for a challenge that the surrounding workflow has already identified and is permitted to handle. Gemini CLI loads the server configuration and presents available tools. The MCP process supplies the tool definitions and performs the requested operation.
For a QA team testing its own application, the browser test may reach a CAPTCHA widget after entering test data. A solver can handle the supported challenge at that point, while the test still owns the form inputs and the assertion that the application accepted the submission. Installing an MCP service alone does not build those browser steps.
Google documents the client connection in its MCP server configuration guide. CapSolver documents the corresponding core and browser tools in the 0.2.0 release. The two interfaces meet at a local stdio process, so a separate client adapter is unnecessary for initial discovery.
Use a supported Node.js runtime, Python 3.10 or later, an isolated project directory and the official client and server packages. The connection check below used Node.js 22.23.3, Python 3.12.14, Gemini CLI 0.71.1 and capsolver-mcp 0.2.0.
The official Gemini CLI installation instructions explain the client prerequisites. Use Python 3.10 or newer and a Node.js version supported by the pinned Gemini package. A separate environment lets you test the connection without replacing an existing agent setup.
There are two different credentials to understand. Gemini's model authentication allows the CLI to generate responses. A CapSolver API key authorizes account operations such as a paid solve. Neither credential substitutes for the other. The connection check below does not submit a CAPTCHA or request a model response; later solving and conversational use require their respective account setup.
Install the official packages in the directory where you will test the connection. From a new working directory, create a Python environment and install the pinned packages:
python3 -m venv py
py/bin/python -m pip install "capsolver-mcp==0.2.0"
npm init -y
npm install --save-dev @google/gemini-cli@0.71.1
The Python installation provides the MCP executable and its dependencies. Compare versions when reproducing a connection check.
The base MCP package is sufficient for this connection. Browser-oriented tools have additional dependencies. You do not need those tools to establish the initial connection. The official registry installation walkthrough explains the published package and installation routes.
Configure Gemini CLI to launch the Python interpreter inside the environment you created. Merge this entry into your existing user settings at ~/.gemini/settings.json; preserve unrelated settings and servers. Replace the executable path with the full path to your project's py/bin/python.
{
"mcpServers": {
"capsolver": {
"command": "/absolute/path/to/project/py/bin/python",
"args": [
"-m",
"capsolver_mcp"
],
"includeTools": [
"list_task_types",
"get_task_schema"
],
"trust": false,
"timeout": 60000
}
}
}
The absolute interpreter path identifies the environment containing the MCP package. Catalog discovery needs no account credentials. Supply CAPSOLVER_API_KEY to the core process when enabling a provider operation.
This starter configuration exposes the task catalog and schema lookup. The client timeout is in milliseconds.
Gemini CLI may disable MCP servers when the current folder is untrusted. Follow Google's trusted-folder workflow for a project you own and have reviewed. Trust the intended project scope rather than changing unrelated folders.
The server's trust: false setting serves a different purpose: it retains tool-call confirmation behavior. A trusted working directory does not mean every future tool call should be approved automatically. Keep that distinction when moving from connection diagnostics to a real application workflow.
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
Verify the configured service with Gemini CLI's MCP listing command from the project directory:
npx --no-install gemini mcp list
In our Gemini CLI test, the client showed the capsolver server using stdio with a Connected status. The displayed command included the interpreter path and -m capsolver_mcp. Your absolute path will differ. A Disabled result points to a configuration or trust decision; a failed connection calls for checking the executable and process startup.
Once Gemini model authentication is configured, ask it to call list_task_types and inspect a returned type with get_task_schema. Check the tool response before expanding the allowlist.
The verification boundary is precise: the local Gemini CLI connection was exercised against the real MCP process. No model-driven conversation, paid challenge, or browser form completion is claimed by that check. Those are separate acceptance tests for the workflow you choose to build.
Put the solving operation between a confirmed CAPTCHA detection and the next application-level verification. For an owner-controlled browser test, the intended order is: reach the test form, identify the supported challenge, request the appropriate operation, apply the documented result, and check the application's response.
When an authorized application already has the inputs for a supported task, inspect get_task_schema first. Provider operations require a key and an explicit change to the example allowlist. Keep the returned task ID for subsequent status checks.
For page operations, run these commands from the project directory on macOS or Linux. They use the same py environment as the core server.
py/bin/python -m pip install "capsolver-mcp[browser]==0.2.0"
py/bin/python -m playwright install chromium
test -x "$PWD/py/bin/capsolver-browser-mcp" &&
echo "$PWD/py/bin/capsolver-browser-mcp"
Add a sibling entry named capsolver-browser under mcpServers. Set its command to the absolute path printed above, then restart the client. Open an owned page with browser_open, inspect it with the returned session and page IDs, and release it with browser_close. An existing Chromium session requires an explicit supported CDP connection.
For a first rollout, choose one approved test workflow and write down its completion signal. A form test might require an expected confirmation state after submitting known test data. A returned token is evidence about the solver operation; the confirmation state is evidence about the application. Keep both in your test results without logging credentials or full tokens.
Troubleshoot the failed stage before starting another challenge. Repeating a paid solve is unnecessary when the actual problem is a Python path or a disabled MCP service.
If the process cannot start, confirm that the configured interpreter exists and contains the package.
If Gemini lists the service as disabled, check folder trust and whether the server was explicitly disabled.
If the service connects but a tool is missing, compare the allowlist and any exclusions with the exact advertised name.
If an account operation fails, check the key and account requirements without treating discovery as authentication proof.
If a result arrives but the form does not complete, inspect result handling and application validation before changing the MCP transport.
Make one change at a time and repeat the lowest-cost check that can confirm it. After an upgrade, rediscover the tool names and schemas before reusing an older prompt. A small setup record containing package versions, the server name, and tool scope is usually more useful than a large log of unredacted requests.
Move to real solving after the local connection and intended browser handoff are clear. Start with the narrowest tool scope for the approved task, then verify the application's final state independently. CapSolver can provide the CAPTCHA operation while Gemini CLI helps coordinate the surrounding work.
Use your CapSolver dashboard to prepare the account for that separate solving test. Keep the connection check as a quick diagnostic after client or package changes.
Q: Does Gemini CLI solve CAPTCHAs on its own after this configuration?
No. The configuration connects an external MCP tool provider. The surrounding workflow still needs valid inputs, an approved operation, and an application-result check.
Q: Do I need a CapSolver API key to see Connected?
The tested local connection succeeded without an account operation. A paid solve needs a valid key and applicable account requirements; Connected does not validate either.
Q: Why is my MCP server disabled in an unfamiliar folder?
Gemini CLI's folder-trust policy can suppress MCP servers in an untrusted directory. Review the folder and follow the client trust flow for the intended scope.
Q: Why does the configuration expose only two tools?
The example allows list_task_types and get_task_schema. Add other tools after reviewing their inputs and deciding which operations belong in this workflow.
Q: Does a page-solving tool reuse my existing browser tab?
A managed session opens separately by default. Keep the session and page IDs across calls. An existing Chromium session requires an explicit supported CDP connection.
Q: What should I test after the MCP connection works?
Test one authorized end-to-end workflow with valid credentials and an observable application outcome. Record solver status separately from the page's final result.

Khadija Santos
AI Agent & MCP Engineer
Develops and maintains CapSolver’s MCP tooling, from implementation and package releases to AI agent integrations.
ABOUT THE AUTHOR
Learn how to install CapSolver MCP, configure your AI client, discover CAPTCHA task types, verify your connection, and add an optional browser service.

Learn how AI procurement assistants handle CAPTCHAs during supplier research, compare public product evidence, and prepare shortlists for buyer review.
