Capsolver Mcp

io.github.capsolver-ai由 GitHub 账号 capsolver-ai 发布v0.1.3更新于 Oct 24, 2026

MCP Server for CapSolver - captcha-solving capabilities for AI agents

已验证STDIO仅桌面浏览器自动化安全与监控

概览

AI 生成的概览

一个本地 MCP 服务器,借助 CapSolver API 密钥为 AI 助手提供验证码识别与求解工具,包括页面检测和自动填充。

可以做什么
按类型和站点参数以令牌模式求解验证码,并列出支持的验证码类型与处理器。扫描页面网址,检测页面上存在哪些验证码类型。使用 Playwright 浏览器在页面上检测、求解并自动填充验证码。查询 CapSolver 账户余额和套餐。
适用场景
当助手在自动化浏览或表单流程中需要处理验证码时使用;也适合查询 CapSolver 支持哪些验证码类型以及账户余额。
运行要求
需要本地 Python 运行环境;该包发布在 PyPI 上,可用 uvx 运行。需要 CapSolver 账户,并通过 CAPSOLVER_API_KEY 环境变量提供 API 密钥。浏览器相关工具需要安装 browser 附加组件和 Playwright Chromium。需要访问 CapSolver 的网络连接。
安装前请注意
需要 CAPSOLVER_API_KEY 密钥,该密钥会发送给 CapSolver。求解验证码会消耗付费的 CapSolver 额度,建议先查看余额。页面工具会打开网页并自动填充表单,会改变页面状态。求解验证码可能违反相关网站的服务条款。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Capsolver Mcp,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

capsolver-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

bash
pip install capsolver-mcppip install capsolver-mcp[browser]   # with Playwright support (for detect/solve_on_page)

All tools read the API key from the environment:

bash
# bash / zshexport CAPSOLVER_API_KEY="your-capsolver-api-key"
# PowerShell$env:CAPSOLVER_API_KEY = "your-capsolver-api-key"
# cmdset CAPSOLVER_API_KEY=your-capsolver-api-key

Usage

CLI

bash
# 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

python
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: host and port are constructor parameters on create_server() (forwarded to FastMCP), matching the MCP Python SDK 1.x API.

Configure in Claude Desktop

Add to your claude_desktop_config.json:

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

ToolBrowser?Description
solve_captchaNoSolve a captcha by type + site params (token mode)
detect_captchasYesScan a page URL and list present captcha types
solve_on_pageYesDetect + solve + autofill all captchas on a page
get_balanceNoCheck account balance and packages
get_supported_captchasNoList all supported captcha types and handlers

Browser-based tools (detect_captchas, solve_on_page) require the browser extra:

bash
pip install capsolver-mcp[browser]playwright install chromium

Development

bash
git clone https://github.com/capsolver-ai/capsolver-mcp.gitcd capsolver-mcpuv sync --all-extras          # or: pip install -r requirements-dev.txtuv run pytest                 # run testsuv run ruff check src tests   # lint

License

MIT

来源:README.md,提交 40a16f1

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

2
  1. v0.1.3最新Sep 18, 2026
  2. v0.1.2Sep 17, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分