Stealth Agent Browser

Official registry Search and web

Stealth Chromium MCP server with hybrid AOM + Set-of-Mark vision and Readability extraction.

Install

Add this to your client's MCP configuration (Claude Desktop: claude_desktop_config.json; Cursor: .cursor/mcp.json; VS Code and others use the same "mcpServers" shape).

NPM package stealth-agent-browser-mcp
Claude Code
claude mcp add stealth-agent-browser -e 'SAB_HEADLESS=true' -e 'SAB_STEALTH_LEVEL=patched' -e 'SAB_PROXY_SERVER=<SAB_PROXY_SERVER>' -e 'SAB_PROXY_USERNAME=<your sab_proxy_username>' -e 'SAB_PROXY_PASSWORD=<your sab_proxy_password>' -e 'SAB_USER_DATA_DIR=<SAB_USER_DATA_DIR>' -- npx -y stealth-agent-browser-mcp@0.2.0
JSON configuration (Claude Desktop, Cursor, VS Code)
{
    "mcpServers": {
        "stealth-agent-browser": {
            "command": "npx",
            "args": [
                "-y",
                "stealth-agent-browser-mcp@0.2.0"
            ],
            "env": {
                "SAB_HEADLESS": "true",
                "SAB_STEALTH_LEVEL": "patched",
                "SAB_PROXY_SERVER": "<SAB_PROXY_SERVER>",
                "SAB_PROXY_USERNAME": "<your sab_proxy_username>",
                "SAB_PROXY_PASSWORD": "<your sab_proxy_password>",
                "SAB_USER_DATA_DIR": "<SAB_USER_DATA_DIR>"
            }
        }
    }
}

Environment variables

  • SAB_HEADLESS Run Chromium headless. Default: true.
  • SAB_STEALTH_LEVEL off | patched | paranoid. Default: patched.
  • SAB_PROXY_SERVER Optional proxy URL, e.g. http://host:port.
  • SAB_PROXY_USERNAME secret Optional proxy username.
  • SAB_PROXY_PASSWORD secret Optional proxy password.
  • SAB_USER_DATA_DIR Persistent browser profile directory.

Documentation

From the project's README on GitHub, refreshed weekly. Links open on GitHub.

Contents
  1. stealth-agent-browser-mcp
  2. Install
  3. Quickstart (Claude Desktop / Claude Code / Cursor)
  4. Tools
  5. Configuration
  6. Architecture
  7. TLS / JA3 fingerprint — why there is no Node-layer spoofer here
  8. Benchmarks
  9. Comparison
  10. Development
  11. Contributing
  12. License

stealth-agent-browser-mcp

A Model Context Protocol (MCP) server that gives AI agents a stealth-grade Chromium browser with a hybrid Accessibility-Object-Model + Set-of-Mark vision interface. Built for Claude, works with any MCP-compatible host.

  • Stealth first. Uses rebrowser-playwright to patch the Runtime.Enable CDP leak that bypasses playwright-extra-class stealth plugins. Passes modern bot-detection suites (CreepJS, bot.sannysoft.com) where vanilla Playwright fails.
  • Token-lean by default. browser_snapshot returns Playwright aria snapshot YAML (~2–5 KB) instead of raw HTML (100KB+). Every interactive element carries a [ref=eN] id that actions consume directly — no selectors, no drift.
  • Hybrid vision when it matters. Ask for mode: "hybrid" and the server overlays numbered red boxes on the screenshot so the model can ground visually (Set-of-Mark prompting, Yang et al.). The ref ids on the image match the ids in the YAML. No parallel numbering scheme to go out of sync.
  • Readability-based content extraction. browser_scroll_read runs Mozilla Readability through JSDOM and returns clean Markdown — optionally delta-only, so re-reads cost nothing when nothing changed.
  • Proxy-ready. Per-session proxy auth, useful with residential pools.

Authorized use only. Stealth tooling has legitimate applications (accessibility auditing, your-own-account automation, QA against sites you own or have permission to test). Do not use this server to violate a site's terms of service or applicable law. See SECURITY.md.


Install

npm install -g stealth-agent-browser-mcp
# Chromium binary is fetched automatically on first launch
npx playwright-core install chromium

Or run without install via npx stealth-agent-browser-mcp.

Quickstart (Claude Desktop / Claude Code / Cursor)

Add to your MCP config:

{
  "mcpServers": {
    "stealth-browser": {
      "command": "npx",
      "args": ["-y", "stealth-agent-browser-mcp"],
      "env": {
        "SAB_HEADLESS": "true",
        "SAB_STEALTH_LEVEL": "patched"
      }
    }
  }
}

Restart the host. The agent will see the tools listed below.

Tools

ToolPurpose
browser_navigateNavigate a URL and return a snapshot.
browser_snapshotaom (YAML only, cheapest), vision (raw screenshot), or hybrid (YAML + Set-of-Mark screenshot).
browser_clickClick an element by its [ref=eN].
browser_typeType into an input/textarea by ref.
browser_selectChoose options in a <select> by ref.
browser_scroll_readScroll and return Readability Markdown (delta-only by default).
browser_wait_forWait for text or a ref to become visible.
browser_tabslist / new / close / switch.
browser_evalEvaluate a JS expression in the page's MAIN world; JSON result.
browser_set_proxyUpdate single-proxy config (effective after browser_restart).
browser_set_proxy_poolReplace residential proxy pool at runtime (effective after browser_restart).
browser_solve_captchaFallback captcha solver (CapSolver / 2Captcha). Detects Turnstile/hCaptcha/reCAPTCHA on the page.
browser_restartClose + re-open the active browser session with current config.

All action tools are addressed by the ref emitted in the last AOM snapshot. Refs are Playwright's own aria-ref=eN ids — there is no parallel numbering scheme.

Configuration

All via environment variables:

VarDefaultNotes
SAB_HEADLESStruefalse for a visible window (debugging).
SAB_STEALTH_LEVELpatchedoff \patched \paranoid.
SAB_PROXY_SERVER—Single-proxy mode. e.g. http://host:port
SAB_PROXY_USERNAME / SAB_PROXY_PASSWORD—
SAB_PROXY_POOL—Residential pool. Comma-separated URLs (http://u:p@host:port,...) or a JSON array of {server, username, password}.
SAB_PROXY_ROTATIONper-restartper-session \per-restart \static.
SAB_PROXY_STICKY_TEMPLATE—Username template for sticky-IP providers. ${sessionId} interpolates. Example: brd-customer-c1-zone-res-session-${sessionId}.
SAB_HUMAN_MOUSEtrueBezier-path click with pre-click hesitation. Defeats Datadome trajectory analysis.
SAB_CAPTCHA_PROVIDERnonecapsolver \twocaptcha \none.
SAB_CAPTCHA_API_KEY—Provider API key.
SAB_USER_DATA_DIR—Persistent profile directory (cookies build reputation).
SAB_DEFAULT_TIMEOUT_MS15000Per-action timeout.
SAB_MAX_ANNOTATED75Max labelled boxes in hybrid mode.
SAB_VIEWPORT_W / SAB_VIEWPORT_H1366 / 768
SAB_LOCALEen-US
SAB_TIMEZONEAmerica/New_York
LOG_LEVELinfodebug, warn, etc. Always writes to stderr.

Architecture

src/
├── index.ts         # Entry (stdio)
├── server.ts        # MCP server + tool registration
├── tools.ts         # Tool handlers
├── browser.ts       # Stealth Chromium launcher (rebrowser-playwright)
├── session.ts       # Per-connection browser/context/page state
├── snapshot.ts      # AOM + Set-of-Mark pipeline
├── annotate.ts      # SVG overlay compositing (sharp)
├── reader.ts        # Readability → Markdown (pierces open shadow roots)
├── fingerprint.ts   # Rotatable UA/viewport/timezone profiles
├── proxy.ts         # Residential pool + rotation + sticky-session template
├── human-mouse.ts   # Bezier-curve cursor paths (ghost-cursor math)
├── captcha.ts       # CapSolver / 2Captcha REST adapters
├── config.ts        # Zod-validated env config
└── logger.ts        # pino → stderr (never stdout)

All logs go to stderr — stdout is reserved for JSON-RPC. Never add console.log.

TLS / JA3 fingerprint — why there is no Node-layer spoofer here

A common ask for scrapers is: "spoof the TLS ClientHello (JA3) to look like Chrome, via curl-impersonate or node-tls-client."

That applies to Node-layer HTTP scrapers (fetch, got, axios) where the TCP connection originates from Node's OpenSSL, which emits a ClientHello signature distinct from Chrome's BoringSSL — and Cloudflare / Akamai Bot Manager drop it at the network layer before a single byte of JavaScript runs.

This MCP does not have that architecture. Every request exits through Chromium. Chromium's TLS stack is Chrome's TLS stack (literally the same BoringSSL build), so the ClientHello JA3 is Chrome's JA3 by construction. No JS-level rewriting is possible or necessary.

The one place TLS can still betray you is if you route through a proxy that terminates and re-initiates TLS (MITM). Residential proxy providers (Bright Data, DataImpulse, Oxylabs residential, SOAX) route at TCP — they do not MITM TLS — and the Chromium handshake reaches the origin unmodified. The products that do MITM TLS are managed scraping browsers (Bright Data's Scraping Browser, Oxylabs Web Unblocker), which ship their own headless Chrome and replace this MCP rather than layering on top of it.

Bottom line: with rebrowser-playwright + residential pool (P1) + human mouse (P2), the TLS fingerprint, CDP runtime, DOM surface, and behavioral layer all match real Chrome. Captcha solving (P3) is a fallback for the 1–5% of sessions that still get flagged.

Benchmarks

npm run bench:stealth launches the configured browser against public bot-detection test pages (bot.sannysoft.com, CreepJS, pixelscan, BrowserLeaks WebRTC) and reports pass/fail. These are the same harnesses used by the rebrowser-patches and Patchright projects — see rebrowser-bot-detector for the reference suite.

Typical local-fixture test run (see test/):

TestResult
AOM YAML contains refs for all interactive elements✓
hybrid mode returns PNG + YAML, refs match✓
click/type by ref produces expected DOM change✓
Readability extracts article to Markdown✓
Delta-only scroll returns (no readable content change) on repeat✓

Comparison

stealth-agent-browser-mcpplaywright-mcpbrowser-use MCPcomputer use
CDP-level stealth (Cloudflare/DataDome)✓✗partial✗
Accessibility-tree snapshots✓✓✓✗
Set-of-Mark vision (ref-labeled screenshot)✓✗✗pure vision
Readability-based scroll-and-read✓✗✗✗
Token-lean by default✓✓✗✗
Bundled agent loop✗ (host's model drives)✗✓✗

Development

npm install
npx playwright-core install chromium
npm run build
npm test

Contributing

See CONTRIBUTING.md. All contributions under Apache-2.0.

License

Apache-2.0

Frequently asked questions

What is Stealth Agent Browser?

Stealth Chromium MCP server with hybrid AOM + Set-of-Mark vision and Readability extraction.

How do I install Stealth Agent Browser?

It runs on your machine. In Claude Code: claude mcp add stealth-agent-browser -e 'SAB_HEADLESS=true' -e 'SAB_STEALTH_LEVEL=patched' -e 'SAB_PROXY_SERVER=<SAB_PROXY_SERVER>' -e 'SAB_PROXY_USERNAME=<your sab_proxy_username>' -e 'SAB_PROXY_PASSWORD=<your sab_proxy_password>' -e 'SAB_USER_DATA_DIR=<SAB_USER_DATA_DIR>' -- npx -y stealth-agent-browser-mcp@0.2.0. For other clients, paste the JSON configuration from this page into their MCP settings.

Does Stealth Agent Browser need an API key?

Yes. It expects SAB_PROXY_USERNAME, SAB_PROXY_PASSWORD, which you set in its configuration.

Is Stealth Agent Browser open source?

Yes. Its code is on GitHub under the Apache-2.0 license.

Who maintains Stealth Agent Browser?

It is published by ykshah1309. AI.tn lists it but does not maintain or endorse it.

From the official MCP Registry. Listing is not an endorsement: review a server's code and permissions before giving it access to your data.