CloakBrowser MCP
Lets your AI agent control a CloakBrowser Chromium browser using the standard Playwright MCP tools.
176 stars on GitHubby swimmwatchLicense MITUpdated 18 days ago
How to install
This MCP is local: it runs on your computer.
It works in apps installed on your PC (Claude Desktop, Claude Code, Cursor, VS Codeβ¦). Choose your app:
Paste in the terminal:
claude mcp add cloakbrowser -- npx -y cloakbrowser-mcp
What to fill in
| Name | What it is | Required |
|---|---|---|
PLAYWRIGHT_MCP_BROWSER_ENGINE | Bridge browser engine: cloak or playwright. | No |
PLAYWRIGHT_MCP_HEADLESS | Run the browser in headless mode. | No |
PLAYWRIGHT_MCP_OUTPUT_DIR | Directory where upstream Playwright MCP writes artifacts. | No |
PLAYWRIGHT_MCP_CODEGEN | Generate code in typescript, python, java, csharp, or none. | No |
PLAYWRIGHT_MCP_SNAPSHOT_BOXES | Include element bounding boxes in browser snapshots. | No |
PLAYWRIGHT_MCP_TIMEOUT_SETTLE | Milliseconds to wait after actions for triggered work to settle. | No |
PLAYWRIGHT_MCP_USER_DATA_DIR | Persistent Chromium profile directory. The bridge resolves it to an absolute path and writes it to generated Playwright MCP config. | No |
CLOAK_PLAYWRIGHT_MCP_CONTEXT_OPTIONS | JSON object with validated Playwright context options such as viewport, locale, timezoneId, permissions, geolocation, and headers. | No |
CLOAK_PLAYWRIGHT_MCP_EXTENSION_PATHS | JSON array or comma-separated list of Chrome extension directories. Requires PLAYWRIGHT_MCP_USER_DATA_DIR. | No |
CLOAK_PLAYWRIGHT_MCP_CONSOLE_FALLBACK | Patch upstream console message collection for CloakBrowser compatibility. | No |
CLOAK_PLAYWRIGHT_MCP_GEOIP_PROXY_MATCH | Resolve proxy GeoIP and match CloakBrowser timezone/locale fingerprint flags when PLAYWRIGHT_MCP_PROXY_SERVER is set. | No |
CLOAK_PLAYWRIGHT_MCP_EXTRA_ARGS | Comma-separated or JSON array of extra Chromium launch arguments. | No |
Ready! Now test it
Restart the app and paste one of these requests in the chat:
Open my site, log in with the saved profile and check the dashboard loads.
Go to the pricing page and take a screenshot.
What it is
This server runs the upstream Playwright MCP tools but points them at CloakBrowser Chromium. The tools are unchanged, with two extra local introspection tools. It works over stdio or Streamable HTTP, with npm or Docker packaging.
What it can do
- All upstream Playwright MCP browser tools, unchanged
- Two local introspection tools
- Persistent browser profiles
- Chrome extension loading
- Managed CDP access for CDP-capable clients
- GeoIP-aware proxy matching
doctorcommand for diagnostics
When to use
- βΊWhen you want browser automation through Playwright MCP but with CloakBrowser as the browser
- βΊWhen you need a login to persist between sessions with a saved profile
- βΊWhen you test a site as seen from a certain region through a proxy
What you need
Skills that pair well
MCP or skill?
The MCP gives the agent the hands. The skill teaches the right way to use them. Together, the result is better and uses fewer tokens.
browser-automationTeaches your agent to control web pages step by step, including logins, tabs, and recovery when a page stops responding.playwright-interactiveHelps your agent drive a local web or Electron app in a persistent browser session, to debug the interface and check it visually as it changes.browser-automationTeaches your agent to control a web browser with Playwright, using CSS selectors to find buttons, forms and links.Frequently asked questions
Is it free and open source?
The licence badge is shown in the readme. The package is on npm and Docker Hub.
How is it different from Playwright MCP?
It keeps the same tools but runs CloakBrowser Chromium, and adds options such as profiles, extensions and GeoIP proxy matching.
How do I install it?
Run npx -y cloakbrowser-mcp@latest, or use claude mcp add --transport stdio cloakbrowser -- npx -y cloakbrowser-mcp@latest.
Does it work in Docker?
Yes, on linux/amd64 and linux/arm64. The image defaults to no Chromium sandbox, so keep network access and mounts tightly scoped for untrusted pages.
Can I run it over HTTP?
Yes, with --transport streamable-http --http-port 3000.
Which platforms are tested?
npm on Linux x64/arm64, macOS arm64/x64 and Windows x64.
If it does not work
- βΊRun npx -y cloakbrowser-mcp@latest doctor before wiring a client.
- βΊCheck the Node.js version, since 22.13 or newer in 22.x, or 24+, is required.
- βΊIn Docker, mount a folder to /data so artifacts and profiles can be saved.
5 new skills a week. 1 minute to read.