browser-mesh
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@browser-meshgo to news.ycombinator.com and summarize the front page"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
🌐 agent-browser-mesh
High-Speed, Zero-Token-Waste Autonomous Browser Engine for AI Agents
Eliminates the 1,500-token vision tax. Built-in Tier-0 indirect prompt injection firewall (<0.4ms overhead), semantic multi-attribute element grounding, and native Model Context Protocol (MCP) server.
Quick Start • Architecture • Benchmarks vs Global Tools • MCP Setup • Ecosystem Matrix
⚡ The Problem with Current Browser Agents
Current browser automation libraries like browser-use, stagehand, and skyvern suffer from 3 critical architectural bottlenecks:
Abusive Vision Token Burn: Sending 1080p screenshots for every
clickorscrollburns 1,500+ tokens per action. A simple 10-step flow costs $0.40–$0.90 and takes 30–50 seconds.Brittle Numeric/XPath Grounding: Floating numeric bounding boxes or raw XPaths invalidate the moment React or Vue components re-render during hydration, causing hallucinated clicks.
Zero Pre-Execution Guardrails: Ingesting untrusted third-party DOM text directly into LLM context leaves agents completely vulnerable to Indirect Prompt Injection hidden in CSS or comments.
Related MCP server: openmcp
💎 The agent-browser-mesh Superiority
⚡ 92%+ Token Reduction (DOM-Delta A11y Tree): Compiles the web accessibility tree into a compact semantic markdown view (<120 tokens/action). Vision screenshots are only triggered as an emergency fallback on canvas or visual ambiguity.
🎯 Semantic Fingerprinting: Anchors elements by invariant tuples
(role, aria-label, text_hash, quadrant). Immune to Tailwind class scrambles and DOM re-ordering.🛡️ Tier-0 Guardrails (SG-4 SSRF + SG-5 Injection Firewall): Blocks private RFC1918 subnets and cloud metadata endpoints (
169.254.169.254) while sanitizing adversarial prompts in-place.🔌 Native Model Context Protocol (MCP) Server: Plug-and-play with Claude Desktop, Cursor, and Codex with zero custom adapter code.
🚀 Zero Heavy Infrastructure: Pure Python. No Docker Compose, no Redis, no PostgreSQL required.
📊 Benchmarks vs Global Competitors
Empirical comparison on real-world multi-step web tasks (E-commerce Checkout & Documentation Search):
Metric |
|
|
|
|
Token Cost per Action | ~1,500 tokens (Vision) | ~800 tokens | ~2,000 tokens | ⚡ <120 tokens (92% cheaper) |
Action Execution Latency | ~4,500 ms | ~3,800 ms | ~8,200 ms | ⚡ <650 ms (CDP Native) |
Prompt Injection Defense | ❌ None | ❌ None | ❌ None | 🛡️ Built-in SG-5 Real-time Firewall |
SSRF / Intranet Blocking | ❌ None | ⚠️ Partial | ❌ None | 🔒 SG-4 Cloud Metadata & RFC1918 Gate |
Element Stability on Re-render | ❌ Fragile indices | ⚠️ XPath fallback | ⚠️ OCR fallback | 🎯 Multi-Attribute Invariant Hash |
Setup Complexity | Playwright + Chromium | Browserbase API Key | Docker + Redis + Postgres | ⚡ 1-Line |
Native MCP Server | ⚠️ Community wrapper | ⚠️ Cloud-only | ❌ No | 💎 Built-in First-Class MCP |
🚀 Quick Start
1. Installation
pip install agent-browser-mesh2. Python SDK
from agent_browser_mesh import BrowserMesh
# Initialize with strict zero-trust guardrails
mesh = BrowserMesh(strict_security=True)
# 1. Navigate (with automatic SSRF & prompt-injection sanitization)
result = mesh.navigate("https://news.ycombinator.com")
print(result.message)
# 2. Get ultra-compact DOM-Delta (<150 tokens)
delta = mesh.snapshot()
print(f"Token savings: {delta.token_savings_pct}% (~{delta.estimated_tokens} tokens)")
print(delta.markdown_view[:500])
# 3. Click actionable semantic anchor
click_res = mesh.click("@link-comments-4a12")
print(click_res.message)
# 4. Extract structured data with zero visual overhead
data = mesh.extract()🔌 Claude Desktop & Cursor MCP Integration
Add agent-browser-mesh directly to your claude_desktop_config.json:
{
"mcpServers": {
"browser-mesh": {
"command": "agent-browser",
"args": ["mcp"]
}
}
}Now your AI coding agent has native, high-speed web browsing with zero vision token waste and built-in prompt injection defense!
🛠️ Command-Line Interface (CLI)
# Inspect any URL and view token compression analysis
agent-browser inspect https://github.com/trending
# Run token savings benchmark
agent-browser benchmark
# Start native MCP stdio server
agent-browser mcp🌐 Benni OS Ecosystem
agent-browser-mesh is the action & web perception primitive of the Benni OS sovereign architecture.
Open-Source Infrastructure Primaries
agent-cyber-sentinel: Tier-0 runtime security shield & prompt injection firewall (<0.4ms).agent-run-ledger: Crash-resilient durable execution state machine & anti-loop circuit breaker.reality-lock: Cryptographic execution verification & non-repudiation receipts.agent-memory-mesh: Bi-temporal causality knowledge graph & 74% lossless context compression.agent-browser-mesh: High-speed, zero-token-waste autonomous browser engine with native MCP.
Benni-OS Organization Repositories
benni-inference-engine: MoE hybrid layer offloading engine for consumer GPUs.benni-operator-gateway: Enterprise MCP gateway over HTTP with role-based governance.mcp-forge: FastAPI-style declarative Python SDK for building production MCP servers.benni-nexus: Intelligent LLM cost/latency router & auto-failover circuit.community-autopilot: Autonomous GitHub community triage & SLA review bot.
📜 License
Distributed under the Apache-2.0 License. See LICENSE for details.
This server cannot be deployed
Maintenance
Related MCP Connectors
Control a real browser from AI agents: navigate, click, type, screenshot, read the page.
Hosted browser for AI agents: screenshots, post-JS DOM, console, WCAG. No install, no API key.
Connect AI agents to your own Chrome with scoped access, approvals, and verified task results.
Undetectable cloud browser sessions for AI agents and scrapers. Navigate, extract, click, captcha.
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceBrowser automation for AI agents via the Model Context Protocol, enabling web navigation, form filling, screenshots, and more using Chromium.MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to automate web tasks such as browsing, clicking, typing, and taking screenshots via the Model Context Protocol.1MIT
- AlicenseAqualityAmaintenanceEnables browser automation through the Model Context Protocol, allowing AI agents to control Chrome, Firefox, or Edge for tasks like navigation, clicking, typing, and screenshots.4145 npmMIT

Browseagent MCPofficial
AlicenseAqualityDmaintenanceEnables AI agents to control web browsers through the Model Context Protocol, supporting navigation, clicking, typing, and screenshots.125 npm1MIT