Browsegrab
Automates browser interactions with exceptional token efficiency for local large language models using Playwright and an accessibility tree.
Browsegrab is a lightweight browser automation library meticulously engineered for local LLMs, particularly those in the 8B-35B parameter range. It smartly integrates Playwright's accessibility tree with MarkGrab's HTML-to-markdown conversion, drastically reducing token consumption by 5-8x compared to similar tools. This efficiency makes it ideal for developing AI agents that navigate and interact with web pages, providing rich context to LLMs without overwhelming them with data, while also offering built-in MCP server capabilities and robust action parsing.
Key Features
01Built-in MCP server with 8 browser automation tools
02Accessibility tree with stable element references (e.g., e1, e2)
034 GitHub stars
04Token-efficient browser automation (~500-1,500 tokens/step)
05Optimized for local LLMs (vLLM, Ollama, OpenAI-compatible)
065-stage JSON parser for robust action parsing from LLM outputs
Use Cases
01Providing browser automation capabilities via an MCP server for AI assistants
02Building AI agents for web interaction and data gathering with local LLMs
03Extracting structured content from web pages into clean markdown
04Automating complex web workflows with reduced token costs