C

Cloakbrowser MCP

by swimmwatch · io.github.swimmwatch/cloakbrowser-mcp

CloakBrowser MCP server for AI agents: Playwright-powered browsing, clean tool forwarding, Docker support, and multi-session HTTP transport.

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-swimmwatch-cloakbrowser-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "cloakbrowser-mcp"
      ],
      "env": {
        "PLAYWRIGHT_MCP_BROWSER_ENGINE": "cloak",
        "PLAYWRIGHT_MCP_HEADLESS": "true",
        "PLAYWRIGHT_MCP_OUTPUT_DIR": ".playwright-mcp",
        "PLAYWRIGHT_MCP_CODEGEN": "typescript",
        "PLAYWRIGHT_MCP_SNAPSHOT_BOXES": "false",
        "PLAYWRIGHT_MCP_TIMEOUT_SETTLE": "500",
        "PLAYWRIGHT_MCP_USER_DATA_DIR": "<VALUE>",
        "CLOAK_PLAYWRIGHT_MCP_CONTEXT_OPTIONS": "<VALUE>",
        "CLOAK_PLAYWRIGHT_MCP_EXTENSION_PATHS": "<VALUE>",
        "CLOAK_PLAYWRIGHT_MCP_CONSOLE_FALLBACK": "true",
        "CLOAK_PLAYWRIGHT_MCP_GEOIP_PROXY_MATCH": "false",
        "CLOAK_PLAYWRIGHT_MCP_EXTRA_ARGS": "",
        "PLAYWRIGHT_MCP_OUTPUT_MODE": "stdout",
        "PLAYWRIGHT_MCP_VIEWPORT_SIZE": "",
        "PLAYWRIGHT_MCP_TIMEOUT_ACTION": "5000",
        "CLOAK_PLAYWRIGHT_MCP_HTTP_HOST": "127.0.0.1",
        "CLOAK_PLAYWRIGHT_MCP_HTTP_PORT": "3000",
        "CLOAK_PLAYWRIGHT_MCP_TRANSPORT": "stdio",
        "CLOAK_PLAYWRIGHT_MCP_NO_SANDBOX": "true",
        "CLOAK_PLAYWRIGHT_MCP_STEALTH_ARGS": "true",
        "PLAYWRIGHT_MCP_TIMEOUT_NAVIGATION": "60000",
        "CLOAK_PLAYWRIGHT_MCP_HTTP_ENDPOINT": "/mcp",
        "CLOAK_PLAYWRIGHT_MCP_HTTP_AUTH_TOKEN": "",
        "CLOAK_PLAYWRIGHT_MCP_HTTP_SESSION_MAX": "32",
        "CLOAK_PLAYWRIGHT_MCP_HTTP_SESSION_BACKEND": "memory",
        "CLOAK_PLAYWRIGHT_MCP_HTTP_SESSION_IDLE_TTL_MS": "3600000"
      }
    }
  }
}

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-swimmwatch-cloakbrowser-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "cloakbrowser-mcp"
      ],
      "env": {
        "PLAYWRIGHT_MCP_BROWSER_ENGINE": "cloak",
        "PLAYWRIGHT_MCP_HEADLESS": "true",
        "PLAYWRIGHT_MCP_OUTPUT_DIR": ".playwright-mcp",
        "PLAYWRIGHT_MCP_CODEGEN": "typescript",
        "PLAYWRIGHT_MCP_SNAPSHOT_BOXES": "false",
        "PLAYWRIGHT_MCP_TIMEOUT_SETTLE": "500",
        "PLAYWRIGHT_MCP_USER_DATA_DIR": "<VALUE>",
        "CLOAK_PLAYWRIGHT_MCP_CONTEXT_OPTIONS": "<VALUE>",
        "CLOAK_PLAYWRIGHT_MCP_EXTENSION_PATHS": "<VALUE>",
        "CLOAK_PLAYWRIGHT_MCP_CONSOLE_FALLBACK": "true",
        "CLOAK_PLAYWRIGHT_MCP_GEOIP_PROXY_MATCH": "false",
        "CLOAK_PLAYWRIGHT_MCP_EXTRA_ARGS": "",
        "PLAYWRIGHT_MCP_OUTPUT_MODE": "stdout",
        "PLAYWRIGHT_MCP_VIEWPORT_SIZE": "",
        "PLAYWRIGHT_MCP_TIMEOUT_ACTION": "5000",
        "CLOAK_PLAYWRIGHT_MCP_HTTP_HOST": "127.0.0.1",
        "CLOAK_PLAYWRIGHT_MCP_HTTP_PORT": "3000",
        "CLOAK_PLAYWRIGHT_MCP_TRANSPORT": "stdio",
        "CLOAK_PLAYWRIGHT_MCP_NO_SANDBOX": "true",
        "CLOAK_PLAYWRIGHT_MCP_STEALTH_ARGS": "true",
        "PLAYWRIGHT_MCP_TIMEOUT_NAVIGATION": "60000",
        "CLOAK_PLAYWRIGHT_MCP_HTTP_ENDPOINT": "/mcp",
        "CLOAK_PLAYWRIGHT_MCP_HTTP_AUTH_TOKEN": "",
        "CLOAK_PLAYWRIGHT_MCP_HTTP_SESSION_MAX": "32",
        "CLOAK_PLAYWRIGHT_MCP_HTTP_SESSION_BACKEND": "memory",
        "CLOAK_PLAYWRIGHT_MCP_HTTP_SESSION_IDLE_TTL_MS": "3600000"
      }
    }
  }
}

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-swimmwatch-cloakbrowser-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "cloakbrowser-mcp"
      ],
      "env": {
        "PLAYWRIGHT_MCP_BROWSER_ENGINE": "cloak",
        "PLAYWRIGHT_MCP_HEADLESS": "true",
        "PLAYWRIGHT_MCP_OUTPUT_DIR": ".playwright-mcp",
        "PLAYWRIGHT_MCP_CODEGEN": "typescript",
        "PLAYWRIGHT_MCP_SNAPSHOT_BOXES": "false",
        "PLAYWRIGHT_MCP_TIMEOUT_SETTLE": "500",
        "PLAYWRIGHT_MCP_USER_DATA_DIR": "<VALUE>",
        "CLOAK_PLAYWRIGHT_MCP_CONTEXT_OPTIONS": "<VALUE>",
        "CLOAK_PLAYWRIGHT_MCP_EXTENSION_PATHS": "<VALUE>",
        "CLOAK_PLAYWRIGHT_MCP_CONSOLE_FALLBACK": "true",
        "CLOAK_PLAYWRIGHT_MCP_GEOIP_PROXY_MATCH": "false",
        "CLOAK_PLAYWRIGHT_MCP_EXTRA_ARGS": "",
        "PLAYWRIGHT_MCP_OUTPUT_MODE": "stdout",
        "PLAYWRIGHT_MCP_VIEWPORT_SIZE": "",
        "PLAYWRIGHT_MCP_TIMEOUT_ACTION": "5000",
        "CLOAK_PLAYWRIGHT_MCP_HTTP_HOST": "127.0.0.1",
        "CLOAK_PLAYWRIGHT_MCP_HTTP_PORT": "3000",
        "CLOAK_PLAYWRIGHT_MCP_TRANSPORT": "stdio",
        "CLOAK_PLAYWRIGHT_MCP_NO_SANDBOX": "true",
        "CLOAK_PLAYWRIGHT_MCP_STEALTH_ARGS": "true",
        "PLAYWRIGHT_MCP_TIMEOUT_NAVIGATION": "60000",
        "CLOAK_PLAYWRIGHT_MCP_HTTP_ENDPOINT": "/mcp",
        "CLOAK_PLAYWRIGHT_MCP_HTTP_AUTH_TOKEN": "",
        "CLOAK_PLAYWRIGHT_MCP_HTTP_SESSION_MAX": "32",
        "CLOAK_PLAYWRIGHT_MCP_HTTP_SESSION_BACKEND": "memory",
        "CLOAK_PLAYWRIGHT_MCP_HTTP_SESSION_IDLE_TTL_MS": "3600000"
      }
    }
  }
}

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-swimmwatch-cloakbrowser-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "cloakbrowser-mcp"
      ],
      "env": {
        "PLAYWRIGHT_MCP_BROWSER_ENGINE": "cloak",
        "PLAYWRIGHT_MCP_HEADLESS": "true",
        "PLAYWRIGHT_MCP_OUTPUT_DIR": ".playwright-mcp",
        "PLAYWRIGHT_MCP_CODEGEN": "typescript",
        "PLAYWRIGHT_MCP_SNAPSHOT_BOXES": "false",
        "PLAYWRIGHT_MCP_TIMEOUT_SETTLE": "500",
        "PLAYWRIGHT_MCP_USER_DATA_DIR": "<VALUE>",
        "CLOAK_PLAYWRIGHT_MCP_CONTEXT_OPTIONS": "<VALUE>",
        "CLOAK_PLAYWRIGHT_MCP_EXTENSION_PATHS": "<VALUE>",
        "CLOAK_PLAYWRIGHT_MCP_CONSOLE_FALLBACK": "true",
        "CLOAK_PLAYWRIGHT_MCP_GEOIP_PROXY_MATCH": "false",
        "CLOAK_PLAYWRIGHT_MCP_EXTRA_ARGS": "",
        "PLAYWRIGHT_MCP_OUTPUT_MODE": "stdout",
        "PLAYWRIGHT_MCP_VIEWPORT_SIZE": "",
        "PLAYWRIGHT_MCP_TIMEOUT_ACTION": "5000",
        "CLOAK_PLAYWRIGHT_MCP_HTTP_HOST": "127.0.0.1",
        "CLOAK_PLAYWRIGHT_MCP_HTTP_PORT": "3000",
        "CLOAK_PLAYWRIGHT_MCP_TRANSPORT": "stdio",
        "CLOAK_PLAYWRIGHT_MCP_NO_SANDBOX": "true",
        "CLOAK_PLAYWRIGHT_MCP_STEALTH_ARGS": "true",
        "PLAYWRIGHT_MCP_TIMEOUT_NAVIGATION": "60000",
        "CLOAK_PLAYWRIGHT_MCP_HTTP_ENDPOINT": "/mcp",
        "CLOAK_PLAYWRIGHT_MCP_HTTP_AUTH_TOKEN": "",
        "CLOAK_PLAYWRIGHT_MCP_HTTP_SESSION_MAX": "32",
        "CLOAK_PLAYWRIGHT_MCP_HTTP_SESSION_BACKEND": "memory",
        "CLOAK_PLAYWRIGHT_MCP_HTTP_SESSION_IDLE_TTL_MS": "3600000"
      }
    }
  }
}

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-swimmwatch-cloakbrowser-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "cloakbrowser-mcp"
      ],
      "env": {
        "PLAYWRIGHT_MCP_BROWSER_ENGINE": "cloak",
        "PLAYWRIGHT_MCP_HEADLESS": "true",
        "PLAYWRIGHT_MCP_OUTPUT_DIR": ".playwright-mcp",
        "PLAYWRIGHT_MCP_CODEGEN": "typescript",
        "PLAYWRIGHT_MCP_SNAPSHOT_BOXES": "false",
        "PLAYWRIGHT_MCP_TIMEOUT_SETTLE": "500",
        "PLAYWRIGHT_MCP_USER_DATA_DIR": "<VALUE>",
        "CLOAK_PLAYWRIGHT_MCP_CONTEXT_OPTIONS": "<VALUE>",
        "CLOAK_PLAYWRIGHT_MCP_EXTENSION_PATHS": "<VALUE>",
        "CLOAK_PLAYWRIGHT_MCP_CONSOLE_FALLBACK": "true",
        "CLOAK_PLAYWRIGHT_MCP_GEOIP_PROXY_MATCH": "false",
        "CLOAK_PLAYWRIGHT_MCP_EXTRA_ARGS": "",
        "PLAYWRIGHT_MCP_OUTPUT_MODE": "stdout",
        "PLAYWRIGHT_MCP_VIEWPORT_SIZE": "",
        "PLAYWRIGHT_MCP_TIMEOUT_ACTION": "5000",
        "CLOAK_PLAYWRIGHT_MCP_HTTP_HOST": "127.0.0.1",
        "CLOAK_PLAYWRIGHT_MCP_HTTP_PORT": "3000",
        "CLOAK_PLAYWRIGHT_MCP_TRANSPORT": "stdio",
        "CLOAK_PLAYWRIGHT_MCP_NO_SANDBOX": "true",
        "CLOAK_PLAYWRIGHT_MCP_STEALTH_ARGS": "true",
        "PLAYWRIGHT_MCP_TIMEOUT_NAVIGATION": "60000",
        "CLOAK_PLAYWRIGHT_MCP_HTTP_ENDPOINT": "/mcp",
        "CLOAK_PLAYWRIGHT_MCP_HTTP_AUTH_TOKEN": "",
        "CLOAK_PLAYWRIGHT_MCP_HTTP_SESSION_MAX": "32",
        "CLOAK_PLAYWRIGHT_MCP_HTTP_SESSION_BACKEND": "memory",
        "CLOAK_PLAYWRIGHT_MCP_HTTP_SESSION_IDLE_TTL_MS": "3600000"
      }
    }
  }
}

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-swimmwatch-cloakbrowser-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "cloakbrowser-mcp"
      ],
      "env": {
        "PLAYWRIGHT_MCP_BROWSER_ENGINE": "cloak",
        "PLAYWRIGHT_MCP_HEADLESS": "true",
        "PLAYWRIGHT_MCP_OUTPUT_DIR": ".playwright-mcp",
        "PLAYWRIGHT_MCP_CODEGEN": "typescript",
        "PLAYWRIGHT_MCP_SNAPSHOT_BOXES": "false",
        "PLAYWRIGHT_MCP_TIMEOUT_SETTLE": "500",
        "PLAYWRIGHT_MCP_USER_DATA_DIR": "<VALUE>",
        "CLOAK_PLAYWRIGHT_MCP_CONTEXT_OPTIONS": "<VALUE>",
        "CLOAK_PLAYWRIGHT_MCP_EXTENSION_PATHS": "<VALUE>",
        "CLOAK_PLAYWRIGHT_MCP_CONSOLE_FALLBACK": "true",
        "CLOAK_PLAYWRIGHT_MCP_GEOIP_PROXY_MATCH": "false",
        "CLOAK_PLAYWRIGHT_MCP_EXTRA_ARGS": "",
        "PLAYWRIGHT_MCP_OUTPUT_MODE": "stdout",
        "PLAYWRIGHT_MCP_VIEWPORT_SIZE": "",
        "PLAYWRIGHT_MCP_TIMEOUT_ACTION": "5000",
        "CLOAK_PLAYWRIGHT_MCP_HTTP_HOST": "127.0.0.1",
        "CLOAK_PLAYWRIGHT_MCP_HTTP_PORT": "3000",
        "CLOAK_PLAYWRIGHT_MCP_TRANSPORT": "stdio",
        "CLOAK_PLAYWRIGHT_MCP_NO_SANDBOX": "true",
        "CLOAK_PLAYWRIGHT_MCP_STEALTH_ARGS": "true",
        "PLAYWRIGHT_MCP_TIMEOUT_NAVIGATION": "60000",
        "CLOAK_PLAYWRIGHT_MCP_HTTP_ENDPOINT": "/mcp",
        "CLOAK_PLAYWRIGHT_MCP_HTTP_AUTH_TOKEN": "",
        "CLOAK_PLAYWRIGHT_MCP_HTTP_SESSION_MAX": "32",
        "CLOAK_PLAYWRIGHT_MCP_HTTP_SESSION_BACKEND": "memory",
        "CLOAK_PLAYWRIGHT_MCP_HTTP_SESSION_IDLE_TTL_MS": "3600000"
      }
    }
  }
}

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
PLAYWRIGHT_MCP_BROWSER_ENGINE No Bridge browser engine: cloak or playwright. Default: cloak
PLAYWRIGHT_MCP_HEADLESS No Run the browser in headless mode. Default: true
PLAYWRIGHT_MCP_OUTPUT_DIR No Directory where upstream Playwright MCP writes artifacts. Default: .playwright-mcp
PLAYWRIGHT_MCP_CODEGEN No Generate code in typescript, python, java, csharp, or none. Default: typescript
PLAYWRIGHT_MCP_SNAPSHOT_BOXES No Include element bounding boxes in browser snapshots. Default: false
PLAYWRIGHT_MCP_TIMEOUT_SETTLE No Milliseconds to wait after actions for triggered work to settle. Default: 500
PLAYWRIGHT_MCP_USER_DATA_DIR No Persistent Chromium profile directory. The bridge resolves it to an absolute path and writes it to generated Playwright MCP config.
CLOAK_PLAYWRIGHT_MCP_CONTEXT_OPTIONS No JSON object with validated Playwright context options such as viewport, locale, timezoneId, permissions, geolocation, and headers.
CLOAK_PLAYWRIGHT_MCP_EXTENSION_PATHS No JSON array or comma-separated list of Chrome extension directories. Requires PLAYWRIGHT_MCP_USER_DATA_DIR.
CLOAK_PLAYWRIGHT_MCP_CONSOLE_FALLBACK No Enables the compatibility patch for console messages. Default: true
CLOAK_PLAYWRIGHT_MCP_GEOIP_PROXY_MATCH No Resolve proxy GeoIP and match CloakBrowser timezone/locale fingerprint flags when PLAYWRIGHT_MCP_PROXY_SERVER is set. Default: false
CLOAK_PLAYWRIGHT_MCP_EXTRA_ARGS No Comma-separated or JSON array of extra Chromium launch arguments.
PLAYWRIGHT_MCP_OUTPUT_MODE No Return snapshots, console logs, and network logs through stdout or files. Default: stdout
PLAYWRIGHT_MCP_VIEWPORT_SIZE No Browser viewport in WIDTHxHEIGHT format.
PLAYWRIGHT_MCP_TIMEOUT_ACTION No Default action timeout in milliseconds. Default: 5000
CLOAK_PLAYWRIGHT_MCP_HTTP_HOST No Streamable HTTP bind host. Default: 127.0.0.1
CLOAK_PLAYWRIGHT_MCP_HTTP_PORT No Streamable HTTP bind port. Default: 3000
CLOAK_PLAYWRIGHT_MCP_TRANSPORT No MCP transport exposed by the bridge: stdio or streamable-http. Default: stdio
CLOAK_PLAYWRIGHT_MCP_NO_SANDBOX No Adds --no-sandbox and disables Chromium sandboxing. Default: true
CLOAK_PLAYWRIGHT_MCP_STEALTH_ARGS No Adds CloakBrowser default stealth launch arguments. Default: true
PLAYWRIGHT_MCP_TIMEOUT_NAVIGATION No Default navigation timeout in milliseconds. Default: 60000
CLOAK_PLAYWRIGHT_MCP_HTTP_ENDPOINT No Streamable HTTP endpoint path. Default: /mcp
CLOAK_PLAYWRIGHT_MCP_HTTP_AUTH_TOKEN No Optional Bearer token for Streamable HTTP.
CLOAK_PLAYWRIGHT_MCP_HTTP_SESSION_MAX No Maximum active Streamable HTTP sessions in one process. Default: 32
CLOAK_PLAYWRIGHT_MCP_HTTP_SESSION_BACKEND No Session metadata backend. Only memory is implemented in this release. Default: memory
CLOAK_PLAYWRIGHT_MCP_HTTP_SESSION_IDLE_TTL_MS No Idle TTL for Streamable HTTP sessions. Default: 3600000

Similar servers