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 分