CloakBrowser MCP
io.github.swimmwatch由 GitHub 账号 swimmwatch 发布v1.15.1更新于 Oct 24, 2026
Playwright MCP-compatible browser automation bridge for CloakBrowser Chromium.
概览
兼容 Playwright MCP 的浏览器自动化服务器,驱动 CloakBrowser Chromium,让助手浏览、操作并测试网页。
- 可以做什么
- 通过原样保留的上游 Playwright MCP 工具集浏览和操作网页(导航、点击、输入、页面快照)
- 用自然语言完成网页调研、日常自动化和测试,并在真实浏览器中查看结果
- 用两个本地桥接工具查看 CloakBrowser 二进制信息以及桥接与上游版本元数据
- 支持持久化浏览器配置、校验过的上下文选项、加载 Chrome 扩展、GeoIP 匹配代理和拟人化输入
- 生成 TypeScript、Python、Java 或 C# 代码片段,并把产物写入输出目录
- 适用场景
- 当你需要标准 Playwright MCP 浏览器自动化、但希望底层使用 CloakBrowser Chromium 时适用,例如代理下的区域化测试、持久登录配置、依赖扩展的流程,或对交互敏感的自动化与测试。
- 运行要求
- 以 stdio(或 Streamable HTTP)在本地运行。npm 包需要 Node.js 22.x 系列中的 22.13+ 或 24+,也可使用面向 linux/amd64 与 linux/arm64 的 Docker 镜像。配置通过 PLAYWRIGHT_MCP_* 与 CLOAK_PLAYWRIGHT_MCP_* 环境变量完成;可选的 HTTP Bearer 令牌为 CLOAK_PLAYWRIGHT_MCP_HTTP_AUTH_TOKEN。浏览网页需要网络访问。
安装
在 SourceWeft 中
- 打开 控制台中的 CloakBrowser MCP,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
cloakbrowser-mcp
[CI] [codecov] [Actionlint] [CodeQL] [Dependency Review] [OpenSSF Scorecard] [Zizmor] [Release] [GitHub Release] [MCP Registry] [cloakbrowser-mcp MCP server] [LobeHub MCP] [Awesome MCP Servers] [npm] [npm downloads] [Docker Hub pulls] [Docker image] [Node.js 22.13+ or 24+] [TypeScript strict] [Cross-platform] [Available on CodeGuilds] [MCP Server] [MCP transports] [Docker] [License: MIT] [MCP Toplist]
cloakbrowser-mcp is a drop-in Playwright MCP-compatible browser automation server with unchanged upstream tools, CloakBrowser Chromium, and production-ready npm, Docker, and Streamable HTTP packaging. It runs upstream @playwright/mcp as the canonical tool surface and points that runtime at CloakBrowser.
30-second demo
Run npx -y cloakbrowser-mcp@latest, connect Claude Desktop or Codex CLI, ask for web research, daily automation, or testing in plain English, and inspect the real browser result.
Documentation: swimmwatch.github.io/cloakbrowser-mcp · Comparison · Recipes
Use it when you need:
- Playwright MCP browser automation backed by CloakBrowser;
- unchanged upstream browser tools plus two local introspection tools;
- npm or Docker installation over stdio or Streamable HTTP;
- opt-in, session-scoped managed CDP access for
CDP-capable clients through
chromium.connectOverCDP(); - persistent browser profiles, validated context options, and Chrome extension loading;
- GeoIP-aware proxy matching for regional QA;
- humanized mouse, keyboard, and scroll behavior for interaction-sensitive flows.
Cross-platform checks cover npm on Linux x64/arm64, macOS arm64/x64, and Windows x64 across the Node.js versions listed in Testing. Docker images are built and smoke-tested for linux/amd64 and linux/arm64.
See @playwright/mcp vs cloakbrowser-mcp when deciding whether plain upstream Playwright MCP or CloakBrowser MCP fits a deployment better. The Recipes pages show task-focused setup paths for persistent login profiles, Chrome extensions, reverse proxies, regional QA, client connections, and CI smoke tests.
Install With npm
Requires Node.js 22.13+ in the 22.x line, or Node.js 24+. Run diagnostics before wiring a client:
For Streamable HTTP instead of stdio:
See the generated CLI Reference for all flags.
Install With Docker
For Streamable HTTP:
The Docker image writes artifacts to /data and is published for linux/amd64 and linux/arm64. It defaults to CLOAK_PLAYWRIGHT_MCP_NO_SANDBOX=true for compatibility with containerized runtimes where Chromium sandboxing is often unavailable. If your host and container runtime support Chromium sandboxing, set CLOAK_PLAYWRIGHT_MCP_NO_SANDBOX=false; for untrusted pages, keep container network access and mounted host directories tightly scoped. The same tags are also available from ghcr.io/swimmwatch/cloakbrowser-mcp. See Docker for persistent profiles, extension mounts, HTTPS, and smoke-test examples, or use the reverse proxy recipe for a focused Streamable HTTP deployment.
Add To MCP Clients
Codex CLI
Claude Code
GitHub Copilot In VS Code
Claude Desktop, Cursor, Cline, Windsurf, Warp, And Other mcpServers Clients
Add this server entry to the client's MCP JSON config:
Docker-backed stdio
Already-running Streamable HTTP server
Prompt For A Code Assistant
Paste this into Codex, Claude Code, Copilot, Cursor, Cline, Windsurf, or a similar coding assistant that can edit MCP config:
More examples are in Getting Started, with dedicated recipes for Claude Desktop and Codex CLI.
Configuration
Use upstream PLAYWRIGHT_MCP_* variables for browser, artifacts, timeouts, network, and tool capability settings. Cloak-specific bridge toggles use CLOAK_PLAYWRIGHT_MCP_*. Select a Pro Preview browser build before startup with --release-channel preview or CLOAK_PLAYWRIGHT_MCP_RELEASE_CHANNEL=preview; the default is stable.
The common variable table now lives in Configuration. That page also covers persistent profiles, validated context options, Chrome extensions, Streamable HTTP metadata, and HTTPS/auth options. See GeoIP Proxy Matching for regional proxy behavior, Humanized Input Behavior for interaction realism, and Recipes for task-focused configurations.
Version Compatibility
See Version Compatibility for the maintained compatibility table.
Tools
The upstream Playwright MCP tool list is authoritative. This project does not reimplement or re-document upstream browser schemas in source code.
Local tools:
cloakbrowser_binary_inforeturns CloakBrowser package, platform, cache, and resolved binary data.cloakbrowser_bridge_inforeturns bridge metadata, upstream package/version, and local tool names.
Development
Documentation starts at docs/getting-started.md. Contributor material is grouped under docs/contributor-guide.md.
See test reporting for local Allure reports and combined CI matrix reports linked from pull requests.
来源:README.md,提交 2f3086f
工具
0版本历史
5- v1.15.1最新Oct 18, 2026
- v1.15.0Oct 18, 2026
- v1.14.1Sep 27, 2026
- v1.14.0Sep 25, 2026
- v1.13.0Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分