
Browsegrab
io.github.ArkNillPublished by GitHub account ArkNillv0.1.1Updated Oct 24, 2026
Token-efficient browser agent for local LLMs. Playwright + accessibility tree + MarkGrab.
Overview
A local MCP server that drives a Playwright browser through token-efficient accessibility-tree snapshots, letting an assistant navigate, click, type and extract
- What you can do
- Navigate to URLs and go back in browser history, with configurable headless mode and timeouts. Take accessibility-tree snapshots that expose interactive elements as stable references. Click and type into elements by reference, scroll pages and wait for conditions. Extract page content as compressed accessibility tree plus clean markdown. Run an agentic browse loop against a local or OpenAI-compatible LLM endpoint.
- When to use it
- Useful when an assistant needs to operate real web pages step by step rather than just fetch them, especially with small local models where per-step token cost matters. Fits repeated browsing workflows that can benefit from cached success patterns.
- Requirements
- Runs as a local stdio process: install the browsegrab PyPI package with the mcp extra and install the Chromium browser for Playwright. Python and network access are needed. Agentic browse additionally needs an LLM endpoint configured through BROWSEGRAB_LLM_PROVIDER, BROWSEGRAB_LLM_BASE_URL and BROWSEGRAB_LLM_MODEL; other settings use the BROWSEGRAB_ prefix.
Installation
In SourceWeft
- Open Browsegrab in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
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.
Source: README.md at commit 30f2375
Tools
0Version history
1- v0.1.1LatestSep 16, 2026
Score
50% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts