Cat Burglar is a stealth browser MCP (Model Context Protocol) server for AI agents, designed to connect real browser capabilities to agent workflows safely and efficiently.
Purpose
Cat Burglar lets AI agents control a real browser for web navigation, form filling, data extraction, and similar operations, while improving efficiency and reliability through mechanisms such as diff observation, site memory, and human CAPTCHA handoff.
Key capabilities
- Three browser engines: a patched stealth Chromium, standard Chromium (for developer tools), and Obscura's 43MB Rust engine, switchable within the same session (requires restart).
- Diff observation: after an action, returns the page changes as a diff rather than a full DOM dump, reducing data transfer volume.
- Site memory: agents can write and remember repeatable workflows for each site; page text is not ingested, references are discarded, and input values become placeholders.
- Human CAPTCHA handoff: detects reCAPTCHA, hCaptcha, Turnstile, DataDome, PerimeterX, Arkose, and common text challenges, but does not solve them automatically; in a local desktop environment, reopens the same profile in headed mode so the user can complete the challenge manually and then continue; in a display-less environment or under the Obscura engine, falls back to a live view page on the loopback address.
- Remote CDP and cloud browsers: can connect to any Chrome DevTools Protocol endpoint, supporting Browserbase, Steel, Browserless, Obscura Cloud, and others.
- Residential proxies: supports HTTP, HTTPS, and SOCKS5 proxies, with rotation, sticky sessions, or per-session selection, and provides proxy check, test, rotate, add, and delete tools.
- Security protections: SSRF protection is enabled for navigation and every request (including DNS checks and redirect coverage), blocking private, loopback, link-local, CGNAT, multicast, and reserved addresses by default; cloud metadata endpoints are always blocked; supports origin allow/block lists (wildcard hosts); page-derived output is marked as untrusted content; high-risk targets such as delete, payment, transfer, send, publish, and deactivate are flagged, and you can set
BROWSER_MCP_RISKY_ACTION_POLICY=askto require explicit confirmation. - Resource efficiency: uses full Chromium by default to ensure fidelity; the server does not stack browsers, does not record in the background, and does not proactively run proxy checks; at startup it disables background networking, component updates, sync, ping, and metrics.
- Benchmarking tools: can compare Cat Burglar, Playwright, Chrome DevTools, and Obscura on 12 local tasks.
Usage
- Obtain via the official MCP registry (OCI image) or GHCR:
docker run -i --rm ghcr.io/drmkdaddy/cat-burglar:latest. - The installer adds the
cat-burglarbinary to PATH; you can also install it globally with pnpm. - The install command prints configuration for claude-code, claude-desktop, cursor, codex, gemini, vscode, windsurf, cline, opencode, or generic clients.
- Note: do not name the server
browser, because OpenCode has a built-in browser toolset with the same name, and Code Mode will hide overlapping tools. - Basic operation flow:
navigatenavigate →snapshotGet URL, title, controls, and stable references → execute via referencesclick、fill、select→ observe changes returned by read operations → usemarkdownread,extractextract structured data,perfget performance traces → after successfully repeating a workflow, runmemory learn. - References remain valid while the element stays in the DOM; after the element leaves the page, operations fail with a stale reference error rather than clicking a cloned element.
- To switch engines, call
openand setrestart: true. - Remote CDP example:
open({ "engine": "remote", "cdp_url": "http://127.0.0.1:9222" }). - The configuration file is located at
~/.config/browser-mcp/config.json, and environment variables can override it.
Use cases
- AI agent tasks that require stealth browsing capabilities.
- Form filling and workflow automation.
- Local application testing.
- Automation workflows that require human intervention to handle CAPTCHAs.
- Scaled browser operations via remote CDP or cloud browsers.
Limitations
- No automatic CAPTCHA solving is provided; only manual handoff is supported.
- A running browser cannot switch engines in place and must be restarted.
- Full Chromium is used by default, with relatively high resource usage.
- Version 0.5.2; benchmarks are based on 12 local tasks, with results available in the repository's raw JSON.
- Licensed under the MIT License.