
Obscura MCP
io.github.Metadrama由 GitHub 帳號 Metadrama 發布v0.1.1更新於 Oct 24, 2026
MCP server adapter for Obscura Rust headless browser — web scraping with anti-detection.
概覽
面向 Obscura Rust 無頭瀏覽器的本機 MCP 轉接器,讓助理讀取網頁、點擊輸入、維持工作階段並批次擷取 URL。
- 可以做什麼
- 以文字、Markdown、HTML、連結、Cookie、無障礙樹或版面等形式讀取單一頁面,可選擇執行 JavaScript 運算式並注入 Cookie、請求標頭或 User-Agent。執行一次性頁面操作,例如點擊元素或輸入文字。管理工作階段式的瀏覽器工作階段,支援建立、關閉、列出、跳轉、等待、擷取、點擊和輸入,適合登入等多步驟流程。平行擷取多個 URL,使用獨立工作程序、並行上限和單頁逾時,回傳 JSON 結果或逐 URL 錯誤。
- 適用情境
- 適合助理需要取得或擷取網頁內容、執行登入表單等簡單多步驟互動,或一次從大量 URL 收集資料,而不想安裝完整 Chrome 的情境。
- 執行需求
- 以本機 Node.js 程序執行,透過 npm 安裝 obscura-mcp,通常使用 stdio 傳輸。Obscura 瀏覽器二進位檔(約 80 MB)首次使用時自動下載並快取在使用者主目錄;可用 OBSCURA_PATH 指定自訂路徑。選用設定包括 OBSCURA_STEALTH、OBSCURA_PROXY、OBSCURA_USER_AGENT 以及 HTTP 傳輸的主機與連接埠變數。需要網路存取。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Obscura MCP,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
obscura-mcp — ARCHIVED
⚠️ Archived. Upstream ships native MCP since v0.1.4 (
obscura mcp). npm package deprecated.
An MCP server adapter for Obscura, a lightweight Rust headless browser for scraping and AI agent automation.
Exposes Obscura's native CDP capabilities through a clean MCP interface — no Chrome dependency, no heavyweight browser automation.
Installation
The npm package itself is a small Node.js wrapper (~20 KB). The browser binary (~80 MB) is downloaded automatically on first use — no separate install step needed.
The binary is cached at ~/.obscura/bin/ and survives npm upgrades.
Pre-release builds are published under the dev tag:
To use a custom binary path:
Quick Start
Most MCP clients (Claude Desktop, Cline, Continue) connect via stdio. The streamable-http transport is also supported for custom integrations.
Tools
Four tools cover browsing, interacting, session persistence, and bulk scraping.
browse_page — one-shot page reading
Get content from any page in a single call. Combine output format with optional JavaScript evaluation.
Examples:
When eval is provided, the JavaScript result is appended to the format output under a --- eval --- divider.
browse_interact — one-shot page actions
Click an element or type text into a page. For multi-step interactions (login → wait → extract), use browse_session instead.
Examples:
Both actions create a fresh page, perform the action, and close. The page context does not persist — for sequential interactions (type into a form, then click submit), use browse_session instead.
browse_session — multi-step persistent sessions
Create a persistent browser session, interact with it across multiple calls, then close. Sessions auto-close after 5 minutes of inactivity. Multiple sessions can run simultaneously.
Session lifecycle:
Login flow example:
Multi-article browsing example:
browse_scrape — parallel bulk scraping
Scrape multiple URLs simultaneously using isolated worker processes. Each URL gets its own headless browser worker — built on top of Obscura's native scrape command with obscura-worker.
Example:
Output format (JSON):
On errors (timeout, network failure, etc.), the per-URL result includes an "error" field instead of "eval":
This is the tool that directly leverages Obscura's core advantage over headless Chrome: lightweight parallel scraping with built-in stealth. The ~30 MB per-worker memory footprint means 100 concurrent workers use less memory than a single Chrome instance.
Configuration
Claude Desktop / Cline / Continue / Any MCP client
VS Code (Cline extension)
After global npm install, obscura-mcp is on your PATH — no absolute paths needed.
Environment Variables
Development
Built with TypeScript, compiled to dist/, tested with Vitest.
All 36 integration tests run against a real Obscura binary (auto-downloaded on first run). Tests use StdioClientTransport and cover every tool, format, and action.
Why Obscura?
- No Chrome — pure Rust, no 200 MB browser bundle
- CDP-native — exposes Chrome DevTools Protocol directly
- Anti-detection — built-in stealth for scraping-resistant sites
- Tiny footprint — ~15 MB binary, starts in milliseconds
License
MIT
來源:README.md,提交 6321546
工具
0版本歷史
1- v0.1.1最新Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分