anomalyco/browse
A local MCP relay for agents to use your browser and hand tabs back to you
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Tracked from daily D1 telemetry snapshots. Hover any data point for exact daily star counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & Core Mechanics
The MCP client starts browse mcp, a stdio proxy that launches the native relay on demand and forwards calls to loopback port 19988, falling back to an available port in 19990–19997. The Rust relay (browse serve, in rust/) manages tabs, handoffs and capture state. The Chromium extension (src/) connects over WebSocket and drives tabs via CDP using chrome.debugger; Firefox-family browsers connect directly over WebDriver BiDi.
The relay embeds QuickJS for tool orchestration through execute, distinct from eval, which runs JavaScript in the page. OpenCode receives individual tools by default; other clients receive execute, status and tabs. OPENCODE_BROWSER_TOOLS=plain|execute|all overrides that selection. The TypeScript UI stack lists solid-js, @solidjs/meta, @kobalte/core and @opencode/ui, with Vite configuration for the main and content builds.
Key Capabilities & Differentiators
Browse uses a tab ID as the unit of work. Opening a named tab again returns the existing tab without navigating it; sessions can group tabs and set per-tab options such as allowedOrigins, readOnly and keepOpen. Page snapshots include iframes and compact element references for actions such as clicking and filling forms. The tool surface includes screenshot diffs, console logs, credential-redacted network captures and tab video recording. PDF export is experimental and off by default.
Handoff is part of the task flow: a person can complete login, 2FA or payment in the same tab and select Continue to resume the agent. A separate demonstration tool records a flow the person performs. Chromium and Firefox can be connected at the same time; a client can use the browser identifier from status when opening a tab or navigating without an existing tab.
Trade-offs & Limitations
Unlike direct Playwright automation in a dedicated test profile, Browse is built to reuse an existing browser session and let a person take over the same tab. That saves session setup for interactive work, but existing session state, extensions and human intervention make it a weaker default for deterministic CI. Firefox's beta driver does not require an extension, but Firefox must be running with remote control enabled, and pages can see navigator.webdriver = true while it is driven.
The trust boundary is the signed-in browser: the Chromium extension needs debugger permission and access to all sites, and page content can try to steer the agent. A per-user relay token and per-browser pairing keys control access to the relay connection; they do not decide which page instructions or authenticated actions are safe. Use a separate profile for sensitive work where practical, narrow tab scope with origin restrictions and read-only mode, and assess what the MCP client sends to its model provider. A local relay alone does not keep every page result on-device.
Hardware & Deployment Guide
The native CLI is available for macOS, Linux and Windows. npx @opencode/browse install is one installation route; the npm launcher requires Node 22 or newer. The installer can configure agent clients and pair a Chromium extension; an already-running client needs an MCP reload or restart. For Firefox, browse firefox --dedicated selects a separate clean profile, and --headless starts a dedicated headless profile. No GPU or model runtime is required by Browse; plan capacity around active browser pages and the volume of recordings and captures.
For separate agent and browser hosts, browse install --remote exposes the extension connection while keeping the HTTP API on loopback. That connection is not encrypted by Browse, so use a private encrypted network such as WireGuard or Tailscale rather than exposing it to the public internet. Release v0.3.0 adds beta Firefox and Zen support; v0.1.5 records the OpenCode Browse extension name, and v0.1.4 makes update checks run at startup and hourly even when automatic installation is disabled.
browse mcp accepts stdio calls and starts a local Rust relay on demand.chrome.debugger; Firefox-family support uses direct WebDriver BiDi and is in beta.execute, status and tabs, with JavaScript running in QuickJS.allowedOrigins and readOnly settings.Interactive browser tasks and debugging that need an existing session, tab-level diagnostics or human confirmation before the agent continues.
You need deterministic, unattended CI, cannot grant the Chromium extension broad browser permissions, or cannot let an agent work with authenticated page data.
Quick Start & Installation
curl -fsSL https://opencode.ai/browse/install | bash
Comparison vs. Top Coding, Skills & MCP Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| browse ★ | 1.3k | +146 | TypeScript | MIT | A local MCP relay for agents to use your browser and hand tabs back to you |
| chrome-devtools-mcp | 60.4k | +760 | TypeScript | Apache-2.0 | Chrome DevTools via MCP and CLI for live browser debugging and performance analy |
| agent-browser | 55.4k | +1k | Rust | Apache-2.0 | Rust CLI and stdio MCP for agents that read and act on live web pages |
| rea | 488.8k | +7.6k | TypeScript | MIT | A local CLI and MCP server for evidence-backed app and binary analysis |
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/anomalyco/browse.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about browse
How do I connect an MCP client that the installer does not configure?
browse mcp over stdio. It starts the local relay on demand; Chromium needs the paired extension, while Firefox connects directly over WebDriver BiDi. browse install --agent none prints the MCP entry for manual setup. Reload MCP or restart an already-running client after adding it.Does it need a GPU, and what determines resource usage?
Can we use it commercially and keep browser operation self-hosted?
When should we use Browse instead of direct Playwright automation?
execute API offers a Playwright-style page interface, not the Playwright runtime or a guarantee of API compatibility.Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
Top 10 Breakout Open-Source AI Repos, Every Thursday
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy