CloakBrowser MCP
This server provides Playwright-compatible browser automation backed by CloakBrowser Chromium, plus local CloakBrowser introspection tools.
Navigate to URLs, go back in history, manage tabs, resize/close the browser, and wait for text or time.
Interact with pages by clicking, typing, pressing keys, filling forms, selecting dropdown options, hovering, dragging/dropping, uploading files, and handling dialogs.
Inspect pages with accessibility snapshots, screenshots, console messages, and detailed network request logs.
Evaluate JavaScript in the page or on elements and run arbitrary Playwright code snippets via an unsafe execution tool.
Retrieve CloakBrowser binary/platform/cache information and bridge runtime metadata.
Allows GitHub Copilot in VS Code to control a CloakBrowser browser for web automation, including form filling, network request inspection, and JavaScript evaluation.
Integrates Warp terminal with browser automation capabilities via MCP, enabling AI-powered web interaction within the terminal environment.
cloakbrowser-mcp
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.
Related MCP server: browser-devtools-mcp
Install With npm
npx -y cloakbrowser-mcp@latestRequires Node.js 22.13+ in the 22.x line, or Node.js 24+. Run diagnostics before wiring a client:
npx -y cloakbrowser-mcp@latest doctorFor Streamable HTTP instead of stdio:
npx -y cloakbrowser-mcp@latest --transport streamable-http --http-port 3000See the generated CLI Reference for all flags.
Install With Docker
docker run --rm -i \
-v "$PWD/artifacts:/data" \
swimmwatch/cloakbrowser-mcp:latestFor Streamable HTTP:
docker run --rm -p 127.0.0.1:3000:3000 \
-v "$PWD/artifacts:/data" \
swimmwatch/cloakbrowser-mcp:latest \
--transport streamable-http --http-host 0.0.0.0 --http-port 3000The 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
codex mcp add cloakbrowser -- npx -y cloakbrowser-mcp@latestClaude Code
claude mcp add --transport stdio cloakbrowser -- npx -y cloakbrowser-mcp@latestGitHub Copilot In VS Code
{
"servers": {
"cloakbrowser": {
"type": "stdio",
"command": "npx",
"args": ["-y", "cloakbrowser-mcp@latest"]
}
}
}Claude Desktop, Cursor, Cline, Windsurf, Warp, And Other mcpServers Clients
Add this server entry to the client's MCP JSON config:
{
"mcpServers": {
"cloakbrowser": {
"command": "npx",
"args": ["-y", "cloakbrowser-mcp@latest"]
}
}
}Docker-backed stdio
{
"mcpServers": {
"cloakbrowser": {
"command": "docker",
"args": [
"run",
"--rm",
"-i",
"-v",
"/tmp/cloakbrowser-artifacts:/data",
"swimmwatch/cloakbrowser-mcp:latest"
]
}
}
}Already-running Streamable HTTP server
npx -y cloakbrowser-mcp@latest --transport streamable-http --http-port 3000
codex mcp add cloakbrowser --url http://127.0.0.1:3000/mcp
claude mcp add --transport http cloakbrowser http://127.0.0.1:3000/mcpPrompt For A Code Assistant
Paste this into Codex, Claude Code, Copilot, Cursor, Cline, Windsurf, or a similar coding assistant that can edit MCP config:
Install the CloakBrowser MCP server for this workspace. Name it "cloakbrowser".
Prefer stdio with command "npx" and args ["-y", "cloakbrowser-mcp@latest"].
If this client uses VS Code mcp.json, add it under "servers" with type "stdio".
If this client uses Claude/Cursor/Cline/Windsurf/Warp-style config, add it under
"mcpServers" with the same command and args. Do not add secrets.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
cloakbrowser-mcp | @playwright/mcp | CloakBrowser | Node.js | Platform |
|
|
| `^22.13.0 | |
|
|
| `^22.13.0 | |
|
|
| `^22.13.0 | |
|
|
| `^22.13.0 | |
|
|
| `^22.13.0 | |
|
|
| `^22.13.0 | |
|
|
| `^22.13.0 | |
|
|
| `^22.13.0 | |
|
|
| `^22.13.0 | |
|
|
| `^22.13.0 | |
|
|
|
| npm on Linux x64/arm64, macOS arm64/x64, Windows x64; Docker |
|
|
|
| npm on Linux x64/arm64, macOS arm64/x64, Windows x64; Docker |
|
|
|
| npm on Linux x64/arm64, macOS arm64/x64, Windows x64; Docker |
|
|
|
| npm on Linux x64/arm64, macOS arm64/x64, Windows x64; Docker |
|
|
|
| npm on Linux x64/arm64, macOS arm64/x64, Windows x64; Docker |
|
|
|
| Docker |
|
|
|
| Docker |
|
|
|
| Docker |
|
|
|
| Docker |
|
|
|
| Docker |
|
|
|
| Docker |
|
|
|
| Docker |
|
|
|
| Docker |
|
|
|
| Docker |
|
|
|
| Docker |
|
|
|
| Docker |
|
|
|
| Docker |
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
npm install
npm run build
npm test
npm run docker:build
npm run docker:smoke
npm run server:validate
npm run bridge:compare -- cloakbrowser-mcp:dev --report bridge-parity-report.jsonDocumentation 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.
Available Tools
25 toolsbrowser_clickBDestructive
Perform click on a web page
Inputs: target (required), button, element, modifiers, +1 more.
browser_closeBDestructive
Close the page
Inputs: no named parameters.
browser_console_messagesBRead-only
Returns all console messages
Inputs: level (required), all, filename.
browser_dragADestructive
Perform drag and drop between two elements
Inputs: endTarget (required), startTarget (required), endElement, startElement.
browser_dropADestructive
Drop files or MIME-typed data onto an element, as if dragged from outside the page. At least one of "paths" or "data" must be provided.
Inputs: target (required), data, paths, element.
browser_evaluateBDestructive
Evaluate JavaScript expression on page or element
Inputs: function (required), target, element, filename.
browser_file_uploadBDestructive
Upload one or multiple files
Inputs: paths.
browser_fill_formBDestructive
Fill multiple form fields
Inputs: fields (required).
browser_handle_dialogCDestructive
Handle a dialog
Inputs: accept (required), promptText.
browser_hoverADestructive
Hover over element on page
Inputs: target (required), element.
browser_network_requestARead-only
Returns full details (headers and body) of a single network request, or a single part if part is set. Use the number from browser_network_requests.
Inputs: index (required), part, filename.
browser_network_requestsARead-only
Returns a numbered list of network requests since loading the page. Use browser_network_request with the number to get full details.
Inputs: static (required), filter, filename.
browser_press_keyBDestructive
Press a key on the keyboard
Inputs: key (required).
browser_resizeBDestructive
Resize the browser window
Inputs: width (required), height (required).
browser_run_code_unsafeADestructive
Run a Playwright code snippet. Unsafe: executes arbitrary JavaScript in the Playwright server process and is RCE-equivalent.
Inputs: code, filename.
browser_select_optionBDestructive
Select an option in a dropdown
Inputs: target (required), values (required), element.
browser_snapshotBRead-only
Capture accessibility snapshot of the current page, this is better than screenshot
Inputs: boxes, depth, target, filename.
browser_tabsADestructive
List, create, close, or select a browser tab.
Inputs: action (required), url, index.
browser_take_screenshotARead-only
Take a screenshot of the current page. You can't perform actions based on the screenshot, use browser_snapshot for actions.
Inputs: type (required), target, element, filename, +1 more.
browser_typeBDestructive
Type text into editable element
Inputs: text (required), target (required), slowly, submit, +1 more.
browser_wait_forARead-only
Wait for text to appear or disappear or a specified time to pass
Inputs: text, time, textGone.
cloakbrowser_binary_infoCloakBrowser binary infoARead-onlyIdempotent
Return CloakBrowser package, cache, platform, and resolved browser binary information.
Inputs: no named parameters.
cloakbrowser_bridge_infoCloakBrowser bridge infoARead-onlyIdempotent
Return runtime metadata for the CloakBrowser bridge over upstream Playwright MCP.
Inputs: no named parameters.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 25 tools
Several tools have closely related purposes, such as browser_drag vs browser_drop, browser_close vs browser_tabs, and browser_fill_form vs browser_type. The descriptions mostly clarify the differences, but an agent could still easily select the wrong one in edge cases.
The browser_ prefix is consistent, but the naming patterns vary between bare verbs (browser_click), verb+object (browser_select_option), and noun phrases (browser_tabs, browser_file_upload). The two cloakbrowser_* info tools also break the overall naming scheme, though they are clearly metadata-oriented.
At 25 tools, this is on the heavier end for a tool set. Most tools serve a real browser-automation purpose, but a few are arguably redundant or very niche, and the two metadata info tools add little practical value.
The domain of browser automation is well covered: navigation, page interaction, forms, uploads, dialogs, console, network requests, tabs, and snapshots are all present. Missing pieces like reload, forward navigation, and cookie/storage management are gaps, but agents can work around them using browser_navigate or browser_evaluate.
Maintenance
Related MCP Connectors
Official Browserless MCP server: browser automation, scraping, screenshots and PDFs for AI agents.
Web scraping, browser automation, screenshots and AI data extraction for AI agents via MCP.
Cloud browser, web extraction, screenshots, and remote CDP tools for AI agents.
Zenrows MCP server: Fetch, Extract, Batch, and Browser Sessions for AI agents
Related MCP Servers
- AlicenseAqualityNot gradedmaintenanceEnables browser automation through Playwright using accessibility tree snapshots instead of screenshots. Supports web scraping, form interactions, testing, and connecting to existing browser sessions with logged-in accounts.238,303 npm5-
- AlicenseNot gradedqualityNot gradedmaintenanceA Playwright-based MCP server that exposes a live browser as a traceable, inspectable, debuggable and controllable execution environment for AI agents.5,213 npm57-
- AlicenseNot gradedqualityNot gradedmaintenanceAn MCP server that enables AI agents to automate browser interactions using Playwright and Cloudflare Workers, supporting tasks like navigation, clicking, typing, and screenshots.Apache 2.0
- AlicenseNot gradedqualityNot gradedmaintenanceMCP server that enables AI assistants to control a browser through Playwright, supporting tasks like navigation, typing, clicking, and taking screenshots.Apache 2.0