Chrome Bridge
MCP server + Chrome extension that drive the user's real, logged-in Chrome over a local WebSocket. 59 token-efficient web-dev tools: compact element refs instead of screenshots, server-side table filtering, visual regression, accessibility/SEO/security audits, network mocking. Also runs on ChromeOS/Crostini.
README
Chrome Bridge
Chrome Bridge is an MCP server that connects Claude Code to your real, logged-in Chrome browser — 2.3–2.8× more token-efficient and ~3× the toolset of the official "Claude in Chrome" extension, with no paid plan.
By using a local WebSocket bridge and a specialized Chrome extension, Chrome Bridge provides 59 web-development tools (navigation, DOM inspection, visual regression, audits, network mocking) and a dedicated headless instance for CI. It is self-hosted, local-only, and requires no paid plan.
Why Chrome Bridge?
Chrome Bridge is designed to be both more efficient and more powerful than Anthropic's official browser extension.
1. Directional Efficiency Benchmark
In a same-model, two-task benchmark (Claude Sonnet 5, headless, July 2026, n=2 per cell), Chrome Bridge used 2.3–2.8× fewer turns, tokens, and dollars than Claude in Chrome.
| Task | Chrome Bridge | Claude in Chrome | Savings |
|---|---|---|---|
| Form fill task | 6.0 turns / $0.21 | 16.5 turns / $0.48 | ~2.3x |
| 1500-row table lookup | 4.0 turns / $0.18 | 11.0 turns / $0.41 | ~2.3x |
Why it wins:
- Compact References: The agent acts on short element handles (e.g.,
n1,n2) returned bynavigateorget_interactivesinstead of the slow screenshot → read-coordinates → click loop. - Server-Side Processing: Filtering and paginating large tables happens server-side (
extract_tablewithwhere). The extension-to-model payload is the token bottleneck; Chrome Bridge moves the heavy lifting to localhost. - Full method and data available in bench/RESULTS.md.
2. Feature Comparison
Chrome Bridge ships 59 specialized tools (30 core by default) compared to ~20 in Claude in Chrome. It is also the only automation that drives the real host Chrome on ChromeOS/Crostini.
| Chrome Bridge | Claude in Chrome | Chrome DevTools MCP | Playwright MCP | |
|---|---|---|---|---|
| ChromeOS / Crostini | Yes (real host) | No | Container only | Container only |
| Tools | 59 (30 core) | ~20 | ~50 | 23 core (71 total) |
| Requires Paid Plan | No | Yes (Pro+) | No | No |
| Network Mocking | Yes (stub/headers) | No | No | Yes |
| Visual Regression | Yes (screenshot_diff) |
No | No | No |
| Audits (A11y/SEO/Sec) | Yes (Full suite) | No | Partial | No |
| Headless / CI | Yes | No | Yes | Yes |
| GIF / Video | No | Yes | Partial | No |
| Breakpoints / Heap | No | No | Yes | No |
Quickstart
git clone git@github.com:frsorrentino/chrome-bridge.git && cd chrome-bridge && ./install.sh
- Load the extension: Open
chrome://extensions, enable Developer mode, click Load unpacked, and select theextension/folder. - Restart Claude Code.
On ChromeOS/Crostini, install the published extension from the Chrome Web Store instead of loading it unpacked — a filesystem-loaded extension is dropped on every reboot (the container isn't mounted when Chrome starts). See the project homepage for the store link.
Example Session
"Open localhost:3000, run an accessibility audit, and find the 'Sign Up' button"
Claude Code calls navigate (returning clickable element refs), accessibility_audit, and find_text. Because navigate returns refs like n1, the agent can immediately call click(ref="n1") without a discovery turn.
Token-Efficient Design
- Compact Schemas: 30 core tools use ≈3.9k tokens of schemas (vs Playwright MCP's ~4.6k). Specialized groups (audits, visual, network, storage, dom, files) are opt-in via
--caps. - Act-from-Result: Tools attach a capped preview of interactive elements with short refs. Actions only report a
page_changeddelta when the URL or title actually changes. - Optimized Media: Screenshots are downscaled to ≤1568px. Full-page captures are sliced into readable segments.
- Zero-Token Escape Hatches: The CLI skips MCP schemas entirely, and recorded flows replay without any model in the loop.
Highlights
- Launch Mode: Start a dedicated Chromium instance with an ephemeral profile for isolated sessions or CI.
- Network Mocking: Block/redirect requests, rewrite headers, or stub response bodies with synthetic data.
- Visual Regression: Use
screenshot_diffto compare current pages against named baselines. - Structured Extraction: One-call
extractfor repeated data andextract_tablewith server-sidewherefiltering.
Architecture
Claude Code <--stdio--> MCP Server <--WebSocket :8765--> Chrome Extension
(server/) (extension/, MV3)
The MCP Server (Node.js) handles the protocol and tool logic. The Chrome Extension (MV3) executes commands via Chrome APIs. User scripts (execute_js) run via chrome.userScripts.execute(), requiring the "Allow user scripts" toggle in extension settings.
Tools (59 total)
Core & Navigation (7)
get_status, get_tabs, create_tab, navigate, tab_action, get_frames, screenshot.
Interaction (11)
click, type_text, fill_form, hover, press_key, scroll, drag_and_drop, upload_file, dismiss_overlays, handle_dialogs, clipboard.
DOM & Inspection (11)
read_page, extract, get_page_info, query_dom, modify_dom, find_text, get_interactives, inject_css, highlight_elements, watch_dom, measure_spacing.
Debugging & Network (8)
execute_js, read_console, monitor_network, monitor_websocket, network_rules (block/redirect/stub/headers), get_performance, web_vitals, list_event_listeners.
Visual & Responsive (7)
element_screenshot, full_page_screenshot, screenshot_diff, viewport_resize, set_zoom, emulate_media, set_geolocation.
Audits (6)
accessibility_audit, seo_audit, security_headers, check_links (server-side verification), unused_css, extract_table (with where filtering).
State, Storage & Files (9)
get_storage, set_storage, session_fixture, http_auth, save_page (MHTML), manage_downloads, session_record, wait_for, assert.
Install
Requirements: Node.js 18+, Chrome 135+.
From Source
git clone git@github.com:frsorrentino/chrome-bridge.git
cd chrome-bridge
./install.sh
install.sh registers the MCP server in Claude Code (--scope user).
Manual Registration
claude mcp add --scope user chrome-bridge node /path/to/server/index.js
Note: For execute_js, you must enable "Allow user scripts" in chrome://extensions → Chrome Bridge → Details. On Chrome 135-137, enable Developer Mode instead.
Configuration
Configure the server via environment variables:
CHROME_BRIDGE_PORT: Default8765.CHROME_BRIDGE_TOKEN: Optional shared secret for WebSocket security.CHROME_BRIDGE_CAPS: Tool groups to load (core,audits,visual,network,storage,dom,files, orall).
CLI
The CLI allows batch operations and pipes output through grep or jq before it reaches the model:
chrome-bridge navigate --url https://example.com
chrome-bridge read_console --level error | head -20
chrome-bridge assert --selector "#success" --text "Done"
chrome-bridge replay --file ./recordings/login.jsonl
Launch Mode (Headless / CI)
Launch mode starts a dedicated Chromium instance with an ephemeral profile:
node server/index.js --launch --headless
Perfect for CI smoke tests using session_record + replay. Note: execute_js uses a new Function fallback in launch mode if the user-script toggle is unavailable.
Security
- Origin Validation: Extension connections are only accepted from the
chrome-extension://origin. - Relay Security: Secondary MCP instances (relays) must connect via loopback.
- Shared Token: Use
CHROME_BRIDGE_TOKENto gate access on untrusted networks (especially on Crostini where the server binds0.0.0.0).
Tests
- Unit:
npm run test:unit(95 tests). - E2E:
node test/test-devtools.js(25 tests, requires Chrome).
License
MIT
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.