Enables AI agents to solve various captcha types and detect captchas on web pages via the Model Context Protocol.
Also known as capsolver-ai/capsolver-mcp
- Stars
- 4
- Tools
- 5
- Downloads, 30 days
- 581
- Latest version
- 0.1.3
- Last commit
- Oct 29, 2026
- License
- MIT
What is CapSolver MCP?
CapSolver enables AI agents to solve various captcha types and detect captchas on web pages via the Model Context Protocol. It exposes 5 tools, such as solve_captcha, detect_captchas, solve_on_page.
Summary generated from the project's README
About CapSolver MCP server
Automating the bypass of website security challenges is what this server enables for AI agents. It provides a way for developers to integrate captcha solving and detection directly into their agentic workflows using the Model Context Protocol. By connecting this server to clients like Claude Desktop, Claude Code, Cursor, Windsurf, or Cline, an agent can interact with various web protections.
Users can run the server locally using the stdio transport or host it remotely via SSE or streamable-http protocols. The setup requires a CapSolver API key provided through an environment variable or a command line argument. For advanced web interaction, installing the server with the browser extra and Playwright allows the agent to perform actions directly on live web pages.
The toolkit includes specific functions such as solve_captcha for token-based solving, detect_captchas for scanning URLs, and solve_on_page to automatically identify and autofill all challenges found on a site. It also includes administrative tools like get_balance to monitor account status and get_supported_captchas to view available handlers.
What you can do with it
- 1Identify website security challengesAsk the AI to scan a specific URL to see what kind of captchas are present on the page.
- 2Automate web form completionInstruct an agent to find and solve every captcha it encounters while navigating a website.
- 3Solve specific captcha typesProvide site parameters and a captcha type to receive a solution token.
- 4Monitor service usageHave the agent check how much credit remains in the CapSolver account.
Written from the project's README. Every use case is checked against a quote from it.
How to install CapSolver MCP
Formats verified 10 Nov 2026Add to CursorAdd to GooseInstall CapSolver MCP in Claude Code
$ claude mcp add --env 'CAPSOLVER_API_KEY=<YOUR_CAPSOLVER_API_KEY>' capsolver-mcp -- uvx capsolver-mcpInstall CapSolver MCP in Cursor
~/.cursor/mcp.json
{
"mcpServers": {
"capsolver-mcp": {
"command": "uvx",
"args": [
"capsolver-mcp"
],
"env": {
"CAPSOLVER_API_KEY": "<YOUR_CAPSOLVER_API_KEY>"
}
}
}
}Install CapSolver MCP in VS Code
.vscode/mcp.json
{
"servers": {
"capsolver-mcp": {
"type": "stdio",
"command": "uvx",
"args": [
"capsolver-mcp"
],
"env": {
"CAPSOLVER_API_KEY": "<YOUR_CAPSOLVER_API_KEY>"
}
}
}
}Install CapSolver MCP in VS Code CLI
$ code --add-mcp '{"name":"capsolver-mcp","type":"stdio","command":"uvx","args":["capsolver-mcp"],"env":{"CAPSOLVER_API_KEY":"<YOUR_CAPSOLVER_API_KEY>"}}'Install CapSolver MCP in Claude Desktop
claude_desktop_config.json
{
"mcpServers": {
"capsolver-mcp": {
"command": "uvx",
"args": [
"capsolver-mcp"
],
"env": {
"CAPSOLVER_API_KEY": "<YOUR_CAPSOLVER_API_KEY>"
}
}
}
}Install CapSolver MCP in Codex
$ codex mcp add capsolver-mcp --env 'CAPSOLVER_API_KEY=<YOUR_CAPSOLVER_API_KEY>' -- uvx capsolver-mcpInstall CapSolver MCP in Codex config.toml
~/.codex/config.toml
[mcp_servers.capsolver-mcp] command = "uvx" args = ["capsolver-mcp"] [mcp_servers.capsolver-mcp.env] CAPSOLVER_API_KEY = "<YOUR_CAPSOLVER_API_KEY>"
Install CapSolver MCP in Gemini CLI
$ gemini mcp add -s user -e 'CAPSOLVER_API_KEY=<YOUR_CAPSOLVER_API_KEY>' capsolver-mcp uvx -- capsolver-mcpInstall CapSolver MCP in Gemini settings.json
~/.gemini/settings.json
{
"mcpServers": {
"capsolver-mcp": {
"command": "uvx",
"args": [
"capsolver-mcp"
],
"env": {
"CAPSOLVER_API_KEY": "<YOUR_CAPSOLVER_API_KEY>"
}
}
}
}CapSolver MCP tools 5
Detected from the READMEsolve_captchadetect_captchassolve_on_pageget_balanceget_supported_captchas
| solve_captcha | — | |
| detect_captchas | — | |
| solve_on_page | — | |
| get_balance | — | |
| get_supported_captchas | — |
Configuration
CAPSOLVER_API_KEYRequiredSecretYour CapSolver API key
| Name | Description | |
|---|---|---|
| CAPSOLVER_API_KEY | Your CapSolver API key | RequiredSecret |
Automated checks
Ran Nov 12, 2026Full report →Passed our automated checks. That is not a security audit: read the code and give the server the narrowest access it needs. How checks work
- Source repository linked and reachablePass
- Open source license (OSI)Pass
- Commit or release in the last yearPass
- Package name not close to a popular packagePass
- Remote endpoint uses HTTPSNot checked
- Destructive tools are labelledPass
- No hidden instructions to the modelPass
- No critical advisory in the package or its dependenciesPass
README
View on GitHubcapsolver-mcp
MCP Server for CapSolver — expose captcha-solving capabilities to AI agents via the Model Context Protocol.
Published on PyPI as capsolver-mcp and listed in the official MCP Registry as io.github.capsolver-ai/capsolver-mcp.
See the capsolver-ai-hub repo for integration examples and the full documentation.
For detailed MCP client setup (Claude Desktop, Claude Code, Cursor, Windsurf, Cline, and more), see docs/mcp-integration.md.
Install
pip install capsolver-mcp
pip install capsolver-mcp[browser] # with Playwright support (for detect/solve_on_page)
All tools read the API key from the environment:
# bash / zsh
export CAPSOLVER_API_KEY="your-capsolver-api-key"
# PowerShell
$env:CAPSOLVER_API_KEY = "your-capsolver-api-key"
# cmd
set CAPSOLVER_API_KEY=your-capsolver-api-key
Usage
CLI
# stdio (default — for local MCP clients like Claude Desktop)
capsolver-mcp
# SSE (for remote / HTTP access)
capsolver-mcp --transport sse --host 0.0.0.0 --port 8000
# Streamable HTTP (MCP 2025-03-26 spec)
capsolver-mcp --transport streamable-http --host 0.0.0.0 --port 8000
CLI options
capsolver-mcp [OPTIONS]
--transport {stdio,sse,streamable-http}
Transport protocol (default: stdio)
--host HOST Bind host for SSE/HTTP transports (default: 127.0.0.1)
--port PORT Bind port for SSE/HTTP transports (default: 8000)
--api-key KEY API key (fallback: CAPSOLVER_API_KEY env)
--name NAME Server name (default: capsolver)
Programmatic
from capsolver_mcp.server import create_server
server = create_server(
api_key="your-key", # or set CAPSOLVER_API_KEY env var
server_name="capsolver", # name advertised to MCP clients
host="127.0.0.1", # bind host for SSE / HTTP transports
port=8000, # bind port for SSE / HTTP transports
)
server.run(transport="sse") # or "stdio" or "streamable-http"
Note:
hostandportare constructor parameters oncreate_server()(forwarded toFastMCP), matching the MCP Python SDK 1.x API.
Configure in Claude Desktop
Add to your claude_desktop_config.json:
{
"mcpServers": {
"capsolver": {
"command": "capsolver-mcp",
"env": {
"CAPSOLVER_API_KEY": "your-key"
}
}
}
}
To run without installing it globally, use "command": "uvx" with
"args": ["capsolver-mcp"] — this is what MCP clients generate from the
registry entry. See docs/mcp-integration.md for
per-client examples.
Available tools
| Tool | Browser? | Description |
|---|---|---|
solve_captcha |
No | Solve a captcha by type + site params (token mode) |
detect_captchas |
Yes | Scan a page URL and list present captcha types |
solve_on_page |
Yes | Detect + solve + autofill all captchas on a page |
get_balance |
No | Check account balance and packages |
get_supported_captchas |
No | List all supported captcha types and handlers |
Browser-based tools (detect_captchas, solve_on_page) require the browser extra:
pip install capsolver-mcp[browser]
playwright install chromium
Development
git clone https://github.com/capsolver-ai/capsolver-mcp.git
cd capsolver-mcp
uv sync --all-extras # or: pip install -r requirements-dev.txt
uv run pytest # run tests
uv run ruff check src tests # lint
License
MIT
CapSolver MCP questions
How do I add CapSolver MCP to Claude Code?
Run claude mcp add --env 'CAPSOLVER_API_KEY=<YOUR_CAPSOLVER_API_KEY>' capsolver-mcp -- uvx capsolver-mcp in your terminal. Add --scope user to make it available in every project.
How do I add CapSolver MCP to Cursor?
Open ~/.cursor/mcp.json and add the server under mcpServers, using the Cursor config shown in the install section above.
What tools does CapSolver MCP provide?
It exposes 5 tools, including solve_captcha, detect_captchas, solve_on_page, get_balance, get_supported_captchas.
How do I install the browser-based captcha tools?
You need to install the server with the browser extra and install the Playwright Chromium browser. Use pip install capsolver-mcp[browser] and playwright install chromium.
What tools are available in this MCP server?
The server provides tools to solve captchas by type, detect captchas on a page, solve and autofill captchas on a page, check account balance, and list supported captcha types.