Stealth Agent Browser

io.github.ykshah1309由 GitHub 帳號 ykshah1309 發布v0.2.0更新於 Oct 24, 2026

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

發布方自己的服務:Stealth Communications

概覽

AI 產生的概覽

在本機執行的隱蔽型 Chromium 瀏覽器伺服器,讓助理依元素參照瀏覽網頁、讀取無障礙快照、點擊輸入,並以 Markdown 擷取正文。

可以做什麼
導覽至網址並取得無障礙樹快照,可選擇疊加帶編號標記的截圖以進行視覺定位,並可等待文字或元素出現。依快照中的參照 id 點擊元素、輸入文字、選擇下拉選項。捲動頁面並透過 Readability 以精簡 Markdown 回傳正文,重複讀取時只回傳變動部分。管理分頁(列出、新增、關閉、切換),並在頁面主環境執行 JavaScript。設定單一代理或輪替住宅代理池、重新啟動瀏覽器工作階段,並對 Turnstile、hCaptcha 或 reCAPTCHA 呼叫備用驗證碼求解。
適用情境
適用於經授權的瀏覽器自動化,以及對自己擁有或獲准測試的網站做品質檢查與無障礙稽核;也適合把文章類頁面讀成精簡的 Markdown 而非原始 HTML。隱蔽與代理功能面向有機器人偵測的網站,而這正是服務條款風險最高的情境。
執行需求
透過 npx 以 stdio 在本機執行,需要 Node.js;首次啟動時自動下載 Chromium。選用環境變數涵蓋無頭模式、隱蔽等級、代理伺服器與憑證、代理池與輪替、驗證碼服務商與 API 金鑰、持久化設定目錄、視窗大小、語言與時區。僅支援桌面端。
安裝前請注意
隱蔽工具可能違反網站服務條款或法律,README 限定僅用於經授權的用途。代理憑證(SAB_PROXY_USERNAME、SAB_PROXY_PASSWORD)與驗證碼服務商 API 金鑰(SAB_CAPTCHA_API_KEY)從環境變數讀取,驗證碼求解可能產生服務商費用。助理可點擊、輸入、送出表單並在頁面執行任意 JavaScript,持久化設定目錄會保存 Cookie。頁面內容與請求會傳送到所造訪的網站及所設定的代理。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Stealth Agent Browser,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

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

bash
npm install -g stealth-agent-browser-mcp# Chromium binary is fetched automatically on first launchnpx 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:

json
{  "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

bash
npm installnpx playwright-core install chromiumnpm run buildnpm test

Contributing

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

License

Apache-2.0

來源:README.md,提交 255de06

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v0.2.0最新Sep 16, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分

其他 Stealth 整合