Skip to content
Skillpedia
● Free and open sourceπŸ’» LocalπŸ”“ No API keyWeb and browser

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

NameWhat it isRequired
PLAYWRIGHT_MCP_BROWSER_ENGINEBridge browser engine: cloak or playwright.No
PLAYWRIGHT_MCP_HEADLESSRun the browser in headless mode.No
PLAYWRIGHT_MCP_OUTPUT_DIRDirectory where upstream Playwright MCP writes artifacts.No
PLAYWRIGHT_MCP_CODEGENGenerate code in typescript, python, java, csharp, or none.No
PLAYWRIGHT_MCP_SNAPSHOT_BOXESInclude element bounding boxes in browser snapshots.No
PLAYWRIGHT_MCP_TIMEOUT_SETTLEMilliseconds to wait after actions for triggered work to settle.No
PLAYWRIGHT_MCP_USER_DATA_DIRPersistent Chromium profile directory. The bridge resolves it to an absolute path and writes it to generated Playwright MCP config.No
CLOAK_PLAYWRIGHT_MCP_CONTEXT_OPTIONSJSON object with validated Playwright context options such as viewport, locale, timezoneId, permissions, geolocation, and headers.No
CLOAK_PLAYWRIGHT_MCP_EXTENSION_PATHSJSON array or comma-separated list of Chrome extension directories. Requires PLAYWRIGHT_MCP_USER_DATA_DIR.No
CLOAK_PLAYWRIGHT_MCP_CONSOLE_FALLBACKPatch upstream console message collection for CloakBrowser compatibility.No
CLOAK_PLAYWRIGHT_MCP_GEOIP_PROXY_MATCHResolve proxy GeoIP and match CloakBrowser timezone/locale fingerprint flags when PLAYWRIGHT_MCP_PROXY_SERVER is set.No
CLOAK_PLAYWRIGHT_MCP_EXTRA_ARGSComma-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
  • doctor command 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

Node.js 22.13+ in the 22.x line or Node.js 24+, or Docker. No account.

Skills that pair well

⭐ Skillpedia MCP Β· freeYour agent finds the right skill on its ownInstall our MCP and your agent searches 15,000+ skills whenever it needs one.Install for free β†’

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.