Capmonster Mcp Patchright Captcha Solver

io.github.CapMonsterCloud由 GitHub 账号 CapMonsterCloud 发布v1.1.3更新于 Oct 24, 2026

Browser automation MCP for solving captchas with CapMonster Cloud via Patchright.

发布方自己的服务:captcha.cc Human Verification

概览

AI 生成的概览

隐身浏览器自动化 MCP 服务器,提供 66 个工具,用于页面导航、内容提取以及会话、Cookie 和配置文件管理。

可以做什么
通过 MCP 提供完整的浏览器自动化能力:启动隐身 Chromium、导航、点击、填写表单、截图、导出 PDF 和录制视频。它提供便于大模型控制页面的无障碍快照、网络请求跟踪与拦截、iframe 操作,以及细粒度的 Cookie、localStorage 和 sessionStorage 管理。还支持复用会话 Cookie 的已认证 API 请求、持久化 Chrome 配置文件、附加到已运行的 Chrome,以及虚拟 WebAuthn 通行密钥。
适用场景
当助手需要驱动真实浏览器完成任务时使用,例如填写表单、抓取渲染后的页面、截图或生成 PDF,或测试网页流程。也适用于需要持久登录、会话导入导出或网络拦截的工作流。
运行要求
作为 npm 包(capmonster-mcp-patchright)通过 stdio 在本地运行,也支持 SSE 或 Streamable HTTP。需要 Node.js,并通过 patchright 安装匹配的 Chromium 构建。仅限桌面端,无网页可执行版本。HTTP 模式需要通过查询参数或 X-Browser-Owner 请求头提供 owner 标识。未声明 API 密钥或环境变量。
安装前请注意
它可以写入、发送和删除数据:Cookie、localStorage、sessionStorage、文件以及网络路由都可能被修改或清除。browser_run_code_unsafe 和 browser_evaluate 可执行任意页面代码,world: "main" 选项会在页面真实上下文中运行代码。虚拟通行密钥会创建带私钥的 WebAuthn 凭据。持久化配置文件和会话导入导出会把登录状态保存在磁盘上。它旨在规避反机器人检测,可能违反网站条款。

安装

在 SourceWeft 中

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

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

其他 MCP 客户端

参照 仓库 中的启动说明。

README

[CapMonster Cloud]

capmonster-mcp-patchright: Stealth Browser MCP Server for AI Agents

Building an AI agent that has to work on anti-bot protected sites? Pair this stealth browser with the CapMonster Cloud MCP server, a cost-effective capsolver alternative and 2captcha alternative: reCAPTCHA v3 starts at $0.90 per 1,000 solves, which is up to 38% cheaper than 2Captcha and 10% cheaper than Capsolver. See the pairing example and the comparison below.

[License: MIT] [MCP Protocol] [npm]

Stealth browser MCP server for AI agents — 66 tools, Patchright-powered, reduced CDP automation signals.

Built for automation on sites protected by Cloudflare, Akamai, Kasada and DataDome. When the page shows a CAPTCHA, pair it with the CapMonster Cloud MCP server: this server drives the browser, CapMonster Cloud solves the CAPTCHA. Use the 66 browser_* tools for AI-agent web scraping and browser automation with Claude, GPT and other MCP clients, powered by Patchright, a patched Playwright with reduced automation signals. Learn more

👉 Get your CapMonster Cloud API Key


Fork of mcp-patchright that adds a per-call world: "main" option to browser_evaluate / browser_run_code_unsafe, so page-defined window globals are visible and callable. Defaults to Patchright's isolated stealth world (matching upstream); opt into main only when a page's own script needs to see or be called by your evaluated code. Everything else matches upstream mcp-patchright.

Why Patchright, not Playwright?

PlaywrightPatchright
Runtime.enable✅ sends (detectable)❌ removed
Console.enable✅ sends❌ removed
--enable-automation flag✅ present❌ removed
navigator.webdrivertruefalse / undefined
Anti-bot evasion❌✅

See the full comparison for details.

Quick start

bash
npm i -g capmonster-mcp-patchrightcapmonster-mcp-patchright --port 9321 --host 127.0.0.1

With Claude / GPT / agents

json
{  "mcpServers": {    "patchright": {      "command": "npx",      "args": ["capmonster-mcp-patchright", "--port", "9321", "--host", "127.0.0.1"]    }  }}

🔗 Pair with CapMonster Cloud MCP for captcha solving

This server drives the browser; the CapMonster Cloud MCP server solves the CAPTCHA and the agent injects the token back into the page. Add both servers to your MCP client config:

json
{  "mcpServers": {    "patchright": {      "command": "npx",      "args": ["capmonster-mcp-patchright", "--port", "9321", "--host", "127.0.0.1"]    },    "capmonster": {      "command": "uvx",      "args": ["capmonster-mcp"],      "env": {        "CM_API_KEY": "your_api_key_here"      }    }  }}

Get your key from the CapMonster Cloud Dashboard.

Captcha solving MCP servers compared

ParameterCapMonster Cloud MCPCapSolver MCP2Captcha mcp-captcha-solver
Captcha types available through MCPreCAPTCHA v2 / v2 Enterprise / v3, Cloudflare Turnstile and Challenge, FunCaptcha, GeeTest v3 / v4, AWS WAF, DataDome, Imperva, TSPD, Binance, Prosopo, Yidun, TenDI, Hunt, Altcha, Basilisk, image tasksreCAPTCHA v2, reCAPTCHA v3, Cloudflare TurnstilereCAPTCHA v2
reCAPTCHA v3 price per 1,000 solves (from)$0.90$1.00$1.45

Disclaimer: CapSolver and 2Captcha are trademarks of their respective owners. CapMonster Cloud is not affiliated with these entities. MCP coverage of other services is based on their publicly available documentation and repositories as of 27.10.2026 and may change. Pricing comparisons are based on publicly available data and internal benchmarking conducted on 27.09.2026.

Features

  • 66 MCP tools — full browser automation surface
  • world: "main" opt-in — browser_evaluate / browser_run_code_unsafe can run in the page's real world to see/call page-defined globals (default stays isolated/stealth)
  • browser_find — search the current aria snapshot for text/regex, cheaper than a full browser_snapshot
  • browser_save_blob — save a Blob/data URL produced by page code to disk
  • 3 transports — stdio, SSE, Streamable HTTP (/mcp)
  • Persistent profiles — real Chrome profile, reuse across sessions
  • Multi-page — tab management (new, list, switch, close)
  • Owner-scoped HTTP sessions — isolate tabs per caller with owner query/header
  • CDP attach — control an already-running Chrome
  • Network tracking + interception — request list/detail, offline toggle, block/mock routes
  • Session import/export — browser_storage_save / browser_storage_load (cookies + localStorage)
  • Granular storage — per-key cookie / localStorage / sessionStorage CRUD (browser_cookie_*, browser_localstorage_*, browser_sessionstorage_*)
  • Authenticated API requests — browser_api_request reuses session cookies (hybrid scraping)
  • Text/HTML extraction — browser_get_visible_text / _html (token-light)
  • Iframe-aware — pass frameSelector to any element tool (click/fill/type/hover/press/wait_for/select/drag) to act inside an iframe
  • PDF export — browser_save_pdf via CDP (works in headed/stealth mode)
  • Video recording — browser_start with recordVideo, browser_video_save; .webm flushed on browser_close
  • Element highlight — browser_highlight / browser_hide_highlight overlays for screenshots & recordings
  • Stealth profiles — proxy / geolocation / locale / timezone / colorScheme
  • Console capture — real-time console message stream
  • Fingerprint check — browser_fingerprint_check diagnostics
  • Virtual passkeys — create, import, list, and delete WebAuthn credentials with private keys redacted by default

Tools

Full comparison HTML in /docs/tool-comparison.html.

  • browser_start
  • browser_status
  • browser_navigate
  • browser_new_page
  • browser_pages
  • browser_switch_page
  • browser_close_page
  • browser_snapshot
  • browser_find
  • browser_take_screenshot
  • browser_click
  • browser_fill
  • browser_type
  • browser_hover
  • browser_press_key
  • browser_wait_for
  • browser_evaluate
  • browser_fingerprint_check
  • browser_navigate_back
  • browser_select_option
  • browser_handle_dialog
  • browser_file_upload
  • browser_network_requests
  • browser_network_request
  • browser_console_messages
  • browser_resize
  • browser_drag
  • browser_fill_form
  • browser_run_code_unsafe
  • browser_add_init_script
  • browser_network_state_set
  • browser_api_request
  • browser_get_visible_text
  • browser_get_visible_html
  • browser_iframe_click
  • browser_iframe_fill
  • browser_route_block
  • browser_route_mock
  • browser_route_clear
  • browser_storage_save
  • browser_storage_load
  • browser_cookie_list
  • browser_cookie_get
  • browser_cookie_set
  • browser_cookie_delete
  • browser_cookie_clear
  • browser_localstorage_list
  • browser_localstorage_get
  • browser_localstorage_set
  • browser_localstorage_delete
  • browser_localstorage_clear
  • browser_sessionstorage_list
  • browser_sessionstorage_get
  • browser_sessionstorage_set
  • browser_sessionstorage_delete
  • browser_sessionstorage_clear
  • browser_passkey_install
  • browser_passkey_create
  • browser_passkey_list
  • browser_passkey_delete
  • browser_video_save
  • browser_highlight
  • browser_hide_highlight
  • browser_save_blob
  • browser_save_pdf
  • browser_close

Development

Owner-scoped HTTP sessions

HTTP mode requires a stable owner on the MCP URL (?owner=<id>) or with the X-Browser-Owner header. Page listing, switching, navigation, and closing are restricted to that owner's tabs. Delete /owners?owner=<id> to close all tabs owned by one caller without stopping the browser or clearing the profile.

bash
npm installnpm run buildnode dist/index.js

Release

Install the matching Chromium build once, then prepare a release from the exact dependency versions in package-lock.json, run the full verification suite, and inspect the package without publishing it:

bash
npx patchright install chromiumnpm run release:checknpm publish

By default, browser_start launches Chromium via patchright as headed real Chrome with a persistent profile at:

text
~/.maestro/stealth-playwright-mcp/profiles/default

You can override it with the userDataDir tool argument or STEALTH_PLAYWRIGHT_USER_DATA_DIR.

To attach to an already-running Chrome instead of launching one, start Chrome with remote debugging and pass cdpEndpoint to browser_start:

bash
google-chrome --remote-debugging-port=9222 --user-data-dir=$HOME/.maestro/stealth-playwright-mcp/profiles/cdp
json
{ "cdpEndpoint": "http://127.0.0.1:9222" }

browser_snapshot returns Playwright's AI aria snapshot. Use [ref=eN] values from that snapshot with browser_click, browser_fill, browser_type, browser_hover, browser_press, and browser_wait_for by passing { "ref": "eN" }. CSS selectors remain supported via { "selector": "..." }.

MCP config example:

json
{  "mcpServers": {    "patchright": {      "command": "node",      "args": ["/path/to/capmonster-mcp-patchright/dist/index.js"]    }  }}

Direction

Shipped:

  • ✅ persistent user data dirs
  • ✅ CDP attach to real Chrome
  • ✅ proxy / timezone / locale / geolocation profiles
  • ✅ accessibility snapshots for LLM-friendly page control
  • ✅ fingerprint diagnostics
  • ✅ network interception (block / mock)
  • ✅ session import/export (storageState)
  • ✅ PDF export
  • ✅ authenticated API requests (reuse browser cookies)
  • ✅ lightweight text/HTML extraction
  • ✅ iframe actions
  • ✅ world: "main" opt-in for browser_evaluate / browser_run_code_unsafe
  • ✅ aria-snapshot search (browser_find)
  • ✅ save Blob/data URL output to disk (browser_save_blob)

Next:

  • rebrowser-playwright backend
  • codegen sessions
  • coordinate-based (vision) clicks
  • tracing / video recording

❓ FAQ

What is capmonster-mcp-patchright? A stealth browser MCP server for AI agents with 66 tools, built on Patchright, a patched Playwright with reduced CDP automation signals.

Does it solve CAPTCHAs? No. This server drives the browser. Pair it with the CapMonster Cloud MCP server to solve reCAPTCHA, Cloudflare Turnstile, DataDome and other captchas.

Is CapMonster Cloud a capsolver alternative or a 2captcha alternative for AI agents? For the captcha solving part, yes. The CapMonster Cloud MCP server covers more captcha types than the CapSolver MCP server (reCAPTCHA v2, v3 and Turnstile) and the 2Captcha mcp-captcha-solver project (reCAPTCHA v2), and reCAPTCHA v3 starts at $0.90 per 1,000 solves. See the comparison above and its disclaimer.

How is it different from Playwright? Patchright removes the Runtime.enable and Console.enable calls and the --enable-automation flag, and navigator.webdriver is not true. See the comparison table above.

Can it control an already-running Chrome? Yes. Start Chrome with remote debugging and pass cdpEndpoint to browser_start.

⚖️ Responsible use

Use this server only on websites you own or have permission to automate, and in line with the terms of service of those websites and applicable law. Patchright reduces common automation signals; acceptance of automated traffic by any site is not guaranteed.

📚 Related

📄 License

MIT

[CapMonster Cloud MCP - Featured on DevHunt]

来源:README.md,提交 9949035

工具

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

版本历史

1
  1. v1.1.3最新Sep 18, 2026

评分

已满足适用检查项的 50%

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

  • 近 30 天内可连通25 分

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

  • 已声明认证方式10 分

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

  • 已列出工具15 分

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

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

其他 Captcha 集成