
Browsegrab
io.github.ArkNill由 GitHub 帳號 ArkNill 發布v0.1.1更新於 Oct 24, 2026
Token-efficient browser agent for local LLMs. Playwright + accessibility tree + MarkGrab.
概覽
本機 MCP 伺服器,透過節省 token 的無障礙樹快照驅動 Playwright 瀏覽器,讓助理導覽、點擊、輸入並擷取內容。
- 可以做什麼
- 導覽至網址並返回瀏覽歷史,可設定無頭模式與逾時。取得無障礙樹快照,把可互動元素暴露為穩定參照。依參照點擊和輸入元素,捲動頁面並等待條件。把頁面內容擷取為壓縮的無障礙樹加乾淨 markdown。針對本機或 OpenAI 相容的 LLM 端點執行智慧瀏覽迴圈。
- 適用情境
- 適合助理需要逐步操作真實網頁、而不只是抓取網頁的情境,尤其是每步 token 成本敏感的小型本機模型。也適合可重複使用快取成功模式的重复瀏覽流程。
- 執行需求
- 以本機 stdio 程序執行:安裝帶 mcp 附加項的 browsegrab PyPI 套件,並為 Playwright 安裝 Chromium 瀏覽器。需要 Python 和網路存取。智慧瀏覽還需透過 BROWSEGRAB_LLM_PROVIDER、BROWSEGRAB_LLM_BASE_URL 和 BROWSEGRAB_LLM_MODEL 設定 LLM 端點;其他設定使用 BROWSEGRAB_ 前綴。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Browsegrab,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
browsegrab
Token-efficient browser agent for local LLMs — Playwright + accessibility tree + MarkGrab, MCP native.
browsegrab is a lightweight browser automation library designed for local LLMs (8B-35B parameters). It combines Playwright's accessibility tree with MarkGrab's HTML-to-markdown conversion to achieve 5-8x fewer tokens per step compared to alternatives like browser-use.
Features
- Token-efficient: ~500-1,500 tokens/step (vs 4,000-10,000 for browser-use)
- Local LLM first: Optimized for vLLM, Ollama, and OpenAI-compatible endpoints
- MCP native: Built-in MCP server with 8 browser automation tools
- MarkGrab integration: HTML → clean markdown for content extraction
- Accessibility tree + ref system: Stable element references (
e1,e2, ...) without vision models - Success pattern caching: Zero LLM calls on repeated workflows
- 5-stage JSON parser: Robust action parsing for local LLM outputs
- Minimal dependencies: Only
playwright+httpxin core
Installation
With optional features:
Quick Start
Python API
CLI
MCP Server
Claude Desktop / Cursor / VS Code config:
8 MCP tools: browser_navigate, browser_click, browser_type, browser_snapshot, browser_scroll, browser_extract_content, browser_go_back, browser_wait
How It Works
Agent Browse Loop
Token Efficiency
browsegrab separates structure (accessibility tree) from content (MarkGrab markdown), sending only what the LLM needs:
Token efficiency (measured)
Architecture
Configuration
All settings via environment variables (BROWSEGRAB_* prefix):
Part of the QuartzUnit Ecosystem
Development
License
Part of the QuartzUnit ecosystem — composable Python libraries for data collection, extraction, search, and AI agent safety.
來源:README.md,提交 30f2375
工具
0版本歷史
1- v0.1.1最新Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分