OpenCode Browse: An Open-Source MCP Bridge That Lets AI Agents Use Your Real Chrome Without Taking Over Your ScreenNote · digest for November 30
Mixed-media collage showing a browser window, collapsed agent tabs, and a login security gate.
Note2 sections≈ 4 min

OpenCode Browse: An Open-Source MCP Bridge That Lets AI Agents Use Your Real Chrome Without Taking Over Your Screen

Wiring a browser to an AI agent sounds easy: give it page access and let it collect tables on its own. In practice, you hit two extremes. Agents on Playwright or Puppeteer open a blank profile missing your cookies and bookmarks, immediately getting stuck on logins and 2FA at every second site. Meanwhile, desktop-control tools hijack your mouse and window focus, forcing you away from your own screen.

Open-source OpenCode Browse from the Anomaly team (@opencode/browse v0.1.5, MIT) avoids both traps. It pairs a Chromium extension with a local MCP server and Rust relay. An MCP (Model Context Protocol) server acts as a universal adapter giving agents ready-made browser commands: navigate, click, capture a screenshot, and record video.

OpenCode Browse banner: real browser with a collapsed agent tab group and local MCP relay (Source: github.com/anomalyco/browse)

The relay listens on 127.0.0.1:19988 (fallback ports 19990–19997) and talks to the extension through chrome.debugger. Your agent works in the background inside a collapsed tab group, leaving your windows and cursor free. Idle tabs close automatically after 10 minutes (configurable). If you want to show the agent a page you already have open, click the extension icon: Tab Lending hands over that tab, and clicking again takes it back.

Four-Step Setup and a Common Pairing Hiccup

The bridge works in Chrome, Edge, Brave, Arc, Helium, Vivaldi, and Opera, and supports 30+ MCP clients on the AI side: OpenCode, Claude Code, Cursor, Codex, Zed, VS Code, Windsurf, Cline, and Gemini CLI. Install it via script on macOS and Linux, via irm https://opencode.ai/browse/install.ps1 | iex on Windows, or through npm (requires Node 22+).

# Native binary for macOS and Linux
curl -fsSL https://opencode.ai/browse/install | bash

# Or install via npm (Node 22+)
npm i -g @opencode/browse && browse install

# Manual pairing and status check
browse pair
browse status

Running browse install places the binary in ~/.local/bin, registers the MCP server with your chosen agents, and opens the extension in the Chrome Web Store. One snag shows up often here: the extension sees your computer yet stays stuck on 'unpaired.'

The fix takes ten seconds. Run browse pair to get a one-time XXXX-XXXX code (valid for 10 minutes; five wrong tries reset all codes), open Extensions → browse → Options → Pair with a code, and click Connect. Pairing binds the extension to your local relay using ECDH key exchange so no other program on that port can hijack your browser.

To wire up any stdio MCP client manually, browse install --agent none prints the ready-to-use JSON:

{
  "mcpServers": {
    "browse": {
      "command": "/home/you/.local/bin/browse",
      "args": ["mcp"]
    }
  }
}

Restart your agent, verify the link with browse status, and ask it to open news.ycombinator.com and read the top headline. The debugging bar at the top of Chrome is normal chrome.debugger behavior.

Security, Limits, and a Live Test Slip-Up

On login, 2FA, CAPTCHA, and payment pages, an automatic handoff pauses the run: a card with the domain name appears on the tab and the agent waits until you finish the step and click Continue (sites cannot spoof that click). You also get an allowedOrigins domain allowlist and a readOnly mode that permits scrolling and screenshots while blocking clicks, typing, and navigation. Screenshots, videos, and network logs stay local—Anomaly runs no servers or telemetry, so only what the agent passes to your chosen model leaves your machine.

Don't treat it as a strict sandbox, though. allowedOrigins blocks top-level navigation and pop-ups, yet background fetch/XHR calls and page iframe elements still go through. In readOnly mode, eval and webmcp commands still run JavaScript, and screenshots and cookies remain readable—so keep tabs holding sensitive secrets closed. Also, Windows Smart App Control currently blocks the unsigned browse.exe binary.

Two test runs with free DeepSeek V4.1 Flash showed what the tool does well and where human eyes still matter. In the first test, the agent pulled ten roofing contractors in Austin from Google Maps in under two minutes (name, rating, reviews, website, phone), skipped the first two sponsored ads on its own, and noted that in its report. In the second test, it reviewed a contractor's site, drafted a short follow-up email, and saved it to disk without sending—yet confidently claimed there was no quote button above the fold, even though a form with a large green button sat right in the center. You still need to double-check a model's eyes on visual audits.

Want a deep diveVotes help us choose what to break down in detail. This material has 0 votes.
Sources · 4