C

Cloak Browser MCP

by devinwang · io.github.devinwang/cloak-browser-mcp

Enables AI agents to drive a source-patched stealth Chromium through the Model Context Protocol, exposing 86 Playwright-compatible browser automation tools for navigation, interaction, tabs, forms, screenshots, and page-state inspection. Adds persistent profiles, proxy/GeoIP-aware emulation, humanized input, and built-in stealth auditing so automated sessions pass Cloudflare Turnstile, reCAPTCHA v3, FingerprintJS, and similar bot detection.

npm Local · stdio GlamaOfficial MCP Registry High confidence

Install

Add to ~/Library/Application Support/Claude/claude_desktop_config.json

Windows / Linux path
Windows: %APPDATA%\Claude\claude_desktop_config.json
Linux: ~/.config/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "io-github-devinwang-cloak-browser-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@devinwangd/cloak-browser-mcp"
      ],
      "env": {
        "CLOAKBROWSER_LICENSE_KEY": "<YOUR_VALUE>",
        "--caps": "<VALUE>",
        "--geoip": "<VALUE>",
        "--proxy": "<VALUE>",
        "--headed": "<VALUE>",
        "--locale": "<VALUE>",
        "--headless": "<VALUE>",
        "--humanize": "<VALUE>",
        "--timezone": "<VALUE>",
        "--viewport": "<VALUE>",
        "--max-pages": "<VALUE>",
        "--self-test": "<VALUE>",
        "--user-agent": "<VALUE>",
        "--profile-dir": "<VALUE>",
        "--download-dir": "<VALUE>",
        "--allowed-domains": "<VALUE>",
        "--blocked-domains": "<VALUE>",
        "--fingerprint-seed": "<VALUE>",
        "--upload-allow-dir": "<VALUE>",
        "--enable-unsafe-eval": "<VALUE>",
        "CLOAKBROWSER_VERSION": "<VALUE>",
        "CLOAKBROWSER_BINARY_PATH": "<VALUE>",
        "CLOAKBROWSER_DOWNLOAD_URL": "<VALUE>",
        "CLOAKBROWSER_SKIP_CHECKSUM": "<VALUE>",
        "CLOAKBROWSER_RELEASE_CHANNEL": "<VALUE>"
      }
    }
  }
}

Restart Claude Desktop to activate the new server.

Add to .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)

Windows / Linux path
Windows: .cursor\mcp.json (project) or %USERPROFILE%\.cursor\mcp.json (global)
Linux: .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)
{
  "mcpServers": {
    "io-github-devinwang-cloak-browser-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@devinwangd/cloak-browser-mcp"
      ],
      "env": {
        "CLOAKBROWSER_LICENSE_KEY": "<YOUR_VALUE>",
        "--caps": "<VALUE>",
        "--geoip": "<VALUE>",
        "--proxy": "<VALUE>",
        "--headed": "<VALUE>",
        "--locale": "<VALUE>",
        "--headless": "<VALUE>",
        "--humanize": "<VALUE>",
        "--timezone": "<VALUE>",
        "--viewport": "<VALUE>",
        "--max-pages": "<VALUE>",
        "--self-test": "<VALUE>",
        "--user-agent": "<VALUE>",
        "--profile-dir": "<VALUE>",
        "--download-dir": "<VALUE>",
        "--allowed-domains": "<VALUE>",
        "--blocked-domains": "<VALUE>",
        "--fingerprint-seed": "<VALUE>",
        "--upload-allow-dir": "<VALUE>",
        "--enable-unsafe-eval": "<VALUE>",
        "CLOAKBROWSER_VERSION": "<VALUE>",
        "CLOAKBROWSER_BINARY_PATH": "<VALUE>",
        "CLOAKBROWSER_DOWNLOAD_URL": "<VALUE>",
        "CLOAKBROWSER_SKIP_CHECKSUM": "<VALUE>",
        "CLOAKBROWSER_RELEASE_CHANNEL": "<VALUE>"
      }
    }
  }
}

Cursor usually picks up config changes automatically; if the server does not appear, reload the window.

Add to .mcp.json (project) or ~/.claude.json (global)

Windows / Linux path
Windows: .mcp.json (project) or %USERPROFILE%\.claude.json (global)
Linux: .mcp.json (project) or ~/.claude.json (global)
{
  "mcpServers": {
    "io-github-devinwang-cloak-browser-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@devinwangd/cloak-browser-mcp"
      ],
      "env": {
        "CLOAKBROWSER_LICENSE_KEY": "<YOUR_VALUE>",
        "--caps": "<VALUE>",
        "--geoip": "<VALUE>",
        "--proxy": "<VALUE>",
        "--headed": "<VALUE>",
        "--locale": "<VALUE>",
        "--headless": "<VALUE>",
        "--humanize": "<VALUE>",
        "--timezone": "<VALUE>",
        "--viewport": "<VALUE>",
        "--max-pages": "<VALUE>",
        "--self-test": "<VALUE>",
        "--user-agent": "<VALUE>",
        "--profile-dir": "<VALUE>",
        "--download-dir": "<VALUE>",
        "--allowed-domains": "<VALUE>",
        "--blocked-domains": "<VALUE>",
        "--fingerprint-seed": "<VALUE>",
        "--upload-allow-dir": "<VALUE>",
        "--enable-unsafe-eval": "<VALUE>",
        "CLOAKBROWSER_VERSION": "<VALUE>",
        "CLOAKBROWSER_BINARY_PATH": "<VALUE>",
        "CLOAKBROWSER_DOWNLOAD_URL": "<VALUE>",
        "CLOAKBROWSER_SKIP_CHECKSUM": "<VALUE>",
        "CLOAKBROWSER_RELEASE_CHANNEL": "<VALUE>"
      }
    }
  }
}

The server will be available in the next Claude Code session.

Add to .vscode/mcp.json

Windows / Linux path
Windows: .vscode\mcp.json
Linux: .vscode/mcp.json
{
  "servers": {
    "io-github-devinwang-cloak-browser-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@devinwangd/cloak-browser-mcp"
      ],
      "env": {
        "CLOAKBROWSER_LICENSE_KEY": "<YOUR_VALUE>",
        "--caps": "<VALUE>",
        "--geoip": "<VALUE>",
        "--proxy": "<VALUE>",
        "--headed": "<VALUE>",
        "--locale": "<VALUE>",
        "--headless": "<VALUE>",
        "--humanize": "<VALUE>",
        "--timezone": "<VALUE>",
        "--viewport": "<VALUE>",
        "--max-pages": "<VALUE>",
        "--self-test": "<VALUE>",
        "--user-agent": "<VALUE>",
        "--profile-dir": "<VALUE>",
        "--download-dir": "<VALUE>",
        "--allowed-domains": "<VALUE>",
        "--blocked-domains": "<VALUE>",
        "--fingerprint-seed": "<VALUE>",
        "--upload-allow-dir": "<VALUE>",
        "--enable-unsafe-eval": "<VALUE>",
        "CLOAKBROWSER_VERSION": "<VALUE>",
        "CLOAKBROWSER_BINARY_PATH": "<VALUE>",
        "CLOAKBROWSER_DOWNLOAD_URL": "<VALUE>",
        "CLOAKBROWSER_SKIP_CHECKSUM": "<VALUE>",
        "CLOAKBROWSER_RELEASE_CHANNEL": "<VALUE>"
      }
    }
  }
}

Reload the VS Code window to activate.

Add to ~/.codeium/windsurf/mcp_config.json

Windows / Linux path
Windows: %USERPROFILE%\.codeium\windsurf\mcp_config.json
Linux: ~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "io-github-devinwang-cloak-browser-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@devinwangd/cloak-browser-mcp"
      ],
      "env": {
        "CLOAKBROWSER_LICENSE_KEY": "<YOUR_VALUE>",
        "--caps": "<VALUE>",
        "--geoip": "<VALUE>",
        "--proxy": "<VALUE>",
        "--headed": "<VALUE>",
        "--locale": "<VALUE>",
        "--headless": "<VALUE>",
        "--humanize": "<VALUE>",
        "--timezone": "<VALUE>",
        "--viewport": "<VALUE>",
        "--max-pages": "<VALUE>",
        "--self-test": "<VALUE>",
        "--user-agent": "<VALUE>",
        "--profile-dir": "<VALUE>",
        "--download-dir": "<VALUE>",
        "--allowed-domains": "<VALUE>",
        "--blocked-domains": "<VALUE>",
        "--fingerprint-seed": "<VALUE>",
        "--upload-allow-dir": "<VALUE>",
        "--enable-unsafe-eval": "<VALUE>",
        "CLOAKBROWSER_VERSION": "<VALUE>",
        "CLOAKBROWSER_BINARY_PATH": "<VALUE>",
        "CLOAKBROWSER_DOWNLOAD_URL": "<VALUE>",
        "CLOAKBROWSER_SKIP_CHECKSUM": "<VALUE>",
        "CLOAKBROWSER_RELEASE_CHANNEL": "<VALUE>"
      }
    }
  }
}

Restart Windsurf (or refresh its MCP servers panel) to activate the new server.

Windsurf Next uses ~/.codeium/windsurf-next/mcp_config.json. Devin Desktop (the Windsurf rebrand) uses ~/.config/devin/mcp_config.json and imports the Windsurf file.

Add to ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json

Windows / Linux path
Windows: %APPDATA%\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json
Linux: ~/.config/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
{
  "mcpServers": {
    "io-github-devinwang-cloak-browser-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@devinwangd/cloak-browser-mcp"
      ],
      "env": {
        "CLOAKBROWSER_LICENSE_KEY": "<YOUR_VALUE>",
        "--caps": "<VALUE>",
        "--geoip": "<VALUE>",
        "--proxy": "<VALUE>",
        "--headed": "<VALUE>",
        "--locale": "<VALUE>",
        "--headless": "<VALUE>",
        "--humanize": "<VALUE>",
        "--timezone": "<VALUE>",
        "--viewport": "<VALUE>",
        "--max-pages": "<VALUE>",
        "--self-test": "<VALUE>",
        "--user-agent": "<VALUE>",
        "--profile-dir": "<VALUE>",
        "--download-dir": "<VALUE>",
        "--allowed-domains": "<VALUE>",
        "--blocked-domains": "<VALUE>",
        "--fingerprint-seed": "<VALUE>",
        "--upload-allow-dir": "<VALUE>",
        "--enable-unsafe-eval": "<VALUE>",
        "CLOAKBROWSER_VERSION": "<VALUE>",
        "CLOAKBROWSER_BINARY_PATH": "<VALUE>",
        "CLOAKBROWSER_DOWNLOAD_URL": "<VALUE>",
        "CLOAKBROWSER_SKIP_CHECKSUM": "<VALUE>",
        "CLOAKBROWSER_RELEASE_CHANNEL": "<VALUE>"
      }
    }
  }
}

Cline reloads cline_mcp_settings.json automatically; if the server does not appear, reload the VS Code window.

Open it from Cline's MCP Servers panel → Configure. Roo Code uses a different file and format.

Configuration

Environment variables this server reads. Secrets stay on your machine.

NameRequiredDescription
CLOAKBROWSER_LICENSE_KEY secret No CloakBrowser Pro license key. Without it the free binary tier is used.
--caps No Comma-separated list of capability groups to enable (`all` or a subset: network, storage, vision, pdf, testing, devtools, config, humanize).
--geoip No Boolean flag: auto-resolve geolocation from the proxy exit IP. Default off.
--proxy No HTTP(S) or SOCKS5 proxy URL, optionally with inline credentials, e.g. http://user:pass@proxy.example.com:8080.
--headed No Run the browser headed (visible). This is the default.
--locale No BCP-47 locale, e.g. en-US. Defaults to the system locale.
--headless No Run the browser headless for batch/CI usage. Default is headed (visible browser).
--humanize No Boolean flag: enable Bézier-curve mouse movement and typo-correcting keyboard input. Default off.
--timezone No IANA timezone, e.g. America/New_York. Defaults to the system timezone.
--viewport No Viewport size as WxH, e.g. 1920x1080. Default is 1280x720.
--max-pages No Maximum number of concurrent tabs. Default 20.
--self-test No Boolean flag: print the tool list and exit.
--user-agent No User-agent string. Defaults to the CloakBrowser default.
--profile-dir No Absolute path to a persistent user-data directory. Defaults to an ephemeral profile.
--download-dir No Directory where downloaded files land. Default is the current working directory.
--allowed-domains No Comma-separated host patterns (supports wildcards like *.example.com) that browser_navigate may visit. Default open.
--blocked-domains No Comma-separated host patterns that browser_navigate may not visit. Checked before allowed-domains. Default none.
--fingerprint-seed No Integer seed for deterministic canvas/WebGL noise. Default random.
--upload-allow-dir No Restrict file-upload source paths for browser_file_upload and browser_drop to this directory. Default none.
--enable-unsafe-eval No Boolean flag: allow browser_run_code_unsafe, which executes JavaScript in the Node.js server process. Default off.
CLOAKBROWSER_VERSION No Pin a specific CloakBrowser Chromium version.
CLOAKBROWSER_BINARY_PATH No Path to an audited CloakBrowser Chromium binary, bypassing the default download location.
CLOAKBROWSER_DOWNLOAD_URL No Override the download URL for the CloakBrowser Chromium binary (default https://cloakbrowser.dev).
CLOAKBROWSER_SKIP_CHECKSUM No Set to `true` to skip SHA-256 verification of the downloaded binary. Default `false`.
CLOAKBROWSER_RELEASE_CHANNEL No CloakBrowser release channel: `stable` or `preview`.

Similar servers