CloakMCP

io.github.overtimepog由 GitHub 帳號 overtimepog 發布v2.0.1更新於 Oct 24, 2026

Stealth browser MCP server — anti-detection Chromium with snapshot-first agent interface

概覽

AI 產生的概覽

讓助理操作一款反偵測的隱匿 Chromium 瀏覽器:開啟網頁、以 Markdown 讀取內容,並透過無障礙樹參照進行點擊與輸入。

可以做什麼
CloakMCP 在本機執行一款隱匿 Chromium,並向助理提供瀏覽器控制工具。核心工具涵蓋啟動與關閉瀏覽器、導覽、上一頁與下一頁、取得帶 [@eN] 元素參照的無障礙樹快照、點擊、輸入、選取、懸停、勾選、按鍵、捲動、等待、執行 JavaScript,以及管理頁面。它也能把頁面內容輸出成乾淨的 Markdown,或輸出標註元素編號的截圖。可選的能力開關工具會增加網路攔截、Cookie 讀寫、PDF 匯出與主控台輸出。
適用情境
當助理需要真正操作網頁、而不只是抓取時適用,尤其是會阻擋一般自動化的網站。以快照為先、以參照為基礎的互動方式,適合多步驟表單填寫、頁面導覽與內容擷取。它是僅限桌面的本機程序,不適合無頭伺服器部署。
執行需求
本機 Python 環境,需以 pip 安裝 cloakbrowsermcp 套件,以及它所驅動的修補版 Chromium。預設使用 stdio 傳輸,也可用 SSE 並指定連接埠。可選命令列參數用來開啟額外能力,環境變數用來控制日誌。代理為選用,但在隱匿用途下建議設定。
安裝前請注意
它專為規避機器人偵測而設計,包括 Cloudflare Turnstile 與 reCAPTCHA,使用它可能違反所造訪網站的服務條款。相關工具可以點擊、輸入、送出表單、設定 Cookie、攔截網路請求,並在頁面中執行任意 JavaScript,可能修改或外送資料。代理與持久化設定檔可能帶有身分資訊;請先確認允許助理執行哪些操作。

安裝

在 SourceWeft 中

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

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

其他 MCP 客戶端

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

README

CloakBrowser MCP

Stealth browser automation for AI agents — a Model Context Protocol server combining CloakBrowser's anti-detection with Playwright MCP-inspired architecture.

CloakBrowser is a source-level patched Chromium that passes Cloudflare Turnstile, reCAPTCHA v3 (0.9 score), FingerprintJS, BrowserScan, and 30+ bot detection services.

Why CloakBrowser MCP?

FeaturePlaywright MCPCloakBrowser MCP
Anti-detection❌ None✅ Source-patched Chromium
Cloudflare bypass❌✅
reCAPTCHA v3❌✅ 0.9 score
Snapshot-first✅✅
Markdown extraction❌✅ Readability-style
Annotated screenshots❌✅ browser-use style
Smart page settlingBasic✅ MutationObserver + networkidle
Auto-retry clicks❌✅
Humanized input❌✅ Mouse curves, keyboard timing
Capability gating✅ --caps✅ --caps

Quick Start

Install

bash
pip install cloakbrowsermcp

Use with Claude Desktop

Add to your claude_desktop_config.json:

json
{  "mcpServers": {    "cloakbrowser": {      "command": "cloakbrowsermcp"    }  }}

Use with VS Code / Cursor

Add to .vscode/mcp.json:

json
{  "servers": {    "cloakbrowser": {      "command": "cloakbrowsermcp",      "args": ["--caps", "all"]    }  }}

Use with Hermes Agent

Add to ~/.hermes/config.yaml:

yaml
mcp_servers:  cloakbrowser:    command: cloakbrowsermcp    args: ["--caps", "all"]    timeout: 120

How It Works

Snapshot-First Architecture

CloakBrowser MCP uses accessibility tree snapshots as the primary way for AI models to understand web pages — not screenshots, not raw HTML.

1. cloak_launch()           → Start stealth browser2. cloak_navigate(pid, url) → Go to page (auto-waits for settle)3. cloak_snapshot(pid)      → Get interactive elements with [@eN] refs4. cloak_click(pid, '@e5')  → Click element by ref5. cloak_type(pid, '@e3', 'hello')  → Type into input6. cloak_read_page(pid)     → Get content as clean markdown7. cloak_close()            → Done

Each interactive element gets a [@eN] ref ID. All interaction tools use these refs — no CSS selectors needed.

Three Ways to See a Page

  1. cloak_snapshot() — Accessibility tree with [@eN] refs. Fast, cheap, reliable. Use this.
  2. cloak_read_page() — Clean markdown extraction. For reading content, not interacting.
  3. cloak_screenshot() — Annotated screenshot with element indices. For visual context (images, charts, CAPTCHAs).

Stealth by Default

All anti-detection features are ON by default:

  • Source-patched Chromium binary (not Playwright patches — actual Chromium source modifications)
  • Human-like mouse curves, keyboard timing, and scroll patterns (humanize=True)
  • Stealth fingerprint arguments (consistent canvas, WebGL, audio fingerprints)
  • Proxy support with GeoIP-based timezone/locale detection

Tools

Core Tools (20 — always available)

ToolDescription
cloak_launchStart stealth browser (all anti-detection ON)
cloak_closeClose browser and release resources
cloak_snapshotPRIMARY — accessibility tree with [@eN] refs
cloak_clickClick element by ref (auto-retry)
cloak_typeType into input by ref (with submit option)
cloak_selectSelect dropdown option by ref
cloak_hoverHover over element by ref
cloak_checkCheck/uncheck checkbox by ref
cloak_read_pagePage content as clean markdown
cloak_screenshotAnnotated screenshot with element indices
cloak_navigateGo to URL (auto-waits for settle)
cloak_backNavigate back in history
cloak_forwardNavigate forward in history
cloak_press_keyPress keyboard key
cloak_scrollScroll page up/down
cloak_waitWait for page to settle
cloak_evaluateExecute JavaScript in page
cloak_new_pageOpen new page/tab
cloak_list_pagesList all open pages
cloak_close_pageClose a specific page

Capability-Gated Tools (enabled via --caps)

Enable with cloakbrowsermcp --caps network,cookies,pdf,console or --caps all.

ToolCapabilityDescription
cloak_network_interceptnetworkBlock/mock/passthrough requests
cloak_network_continuenetworkRemove interception rule
cloak_get_cookiescookiesGet all cookies
cloak_set_cookiescookiesSet cookies
cloak_pdfpdfSave page as PDF
cloak_consoleconsoleGet browser console output

Configuration

CLI Options

cloakbrowsermcp [--caps CAPS] [--transport {stdio,sse}] [--port PORT]
  • --caps: Comma-separated capabilities: network, cookies, pdf, console, all
  • --transport: MCP transport — stdio (default) or sse
  • --port: Port for SSE transport (default: 8931)

Environment Variables

VariableDefaultDescription
CLOAKBROWSER_LOG_LEVELINFOLog level
CLOAKBROWSER_LOG_FILE~/.cloakbrowser/logs/server.logLog file path
CLOAKBROWSER_LOG_STDERRfalseAlso log to stderr

Launch Options

python
cloak_launch(    headless=True,        # False for headed mode (some sites require it)    proxy="http://...",   # Residential proxy recommended    humanize=True,        # Human-like input (ON by default)    stealth_args=True,    # Stealth fingerprints (ON by default)    timezone="America/New_York",    locale="en-US",    geoip=False,          # Auto-detect from proxy IP    fingerprint_seed="my-identity",  # Consistent fingerprint across sessions    user_data_dir="/path",  # Persistent profile)

Backend note: SessionConfig.backend is deprecated. CloakBrowser 0.4.0 removed the patchright backend (it broke proxy auth and add_init_script without improving stealth), so current versions ignore the setting and log a one-time warning. If you still need it, pip install "cloakbrowsermcp[patchright]" pins cloakbrowser<0.4, where the old backend still works, but it carries those upstream bugs.

Architecture

cloakbrowsermcp/├── server.py      # FastMCP server, tool registration, error handling├── session.py     # Browser lifecycle, page management, ref storage├── snapshot.py    # Accessibility tree JS, ref resolution├── markdown.py    # Readability-style HTML-to-markdown extraction├── vision.py      # Annotated screenshots with element indices├── waiting.py     # Smart wait, page settle, retry logic├── stealth.py     # Stealth config inspection├── network.py     # Network intercept, cookies (capability-gated)├── __init__.py└── __main__.py

Design Principles

  1. Snapshot-first — Tool descriptions steer models to use cloak_snapshot() as the primary page understanding tool
  2. Ref-based only — No CSS selector tools. All interaction via [@eN] refs from snapshots
  3. Stealth by default — Anti-detection, humanization, and stealth args all ON without configuration
  4. Auto-snapshot after actions — Click, type, navigate all return an updated snapshot
  5. Smart waiting — Auto-wait on navigation (networkidle + MutationObserver settle), auto-retry on failed clicks
  6. Capability gating — Advanced tools (network, cookies, PDF) off by default to keep tool count low
  7. Clean content extraction — Markdown for reading, snapshot for interaction, annotated screenshots for vision

Development

bash
git clone https://github.com/overtimepog/CloakMCPcd CloakMCPpip install -e ".[dev]"pytest

License

Apache-2.0

來源:README.md,提交 1e7122d

工具

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

版本歷史

1
  1. v2.0.1最新Sep 16, 2026

評分

已滿足適用檢查項的 40%

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

  • 近 30 天內可連通25 分

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

  • 已宣告認證方式10 分

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

  • 已列出工具15 分

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

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

    請在儲存庫或註冊中心條目中宣告授權條款。