Chrome Bridge

io.github.frsorrentino由 GitHub 帳號 frsorrentino 發布v1.32.1更新於 Nov 6, 2026

Borrow a tab from your own logged-in Chrome, hand it back; 2FA and CAPTCHA stay yours. 69 tools.

已驗證STDIO僅桌面瀏覽器自動化開發者工具

概覽

AI 產生的概覽

透過瀏覽器擴充功能驅動你自己已登入的 Chrome,為助理提供 69 個工具,涵蓋導覽、表單、DOM 檢查、除錯、稽核與效能追蹤。

可以做什麼
  • 開啟、關閉與排列分頁和視窗,導覽、截圖、並排視窗
  • 點擊、填寫並送出表單,上傳檔案,處理對話框與剪貼簿
  • 讀取頁面、擷取表格與元素、查詢 DOM、檢查 CSS 並監看變化
  • 執行 JavaScript,讀取主控台與網路日誌,模擬請求,追蹤事件
  • 執行無障礙、SEO、安全性與 Cookie 稽核,比對截圖,模擬視窗尺寸與媒體
  • 擷取儲存空間、測試資料、MHTML 與下載,錄製與重播工作階段,追蹤效能、螢幕錄影並產生堆積快照
適用情境
適合讓助理直接在你已登入的瀏覽器中工作:填寫表單、檢查測試站台、除錯損壞的頁面、執行稽核或冒煙測試,而不必另開空白設定檔或使用雲端瀏覽器。
執行需求
以 Node.js 18+ 本機程序透過 stdio 執行,並需安裝 Chrome 135+ 擴充功能(線上應用程式商店或載入未封裝擴充功能)。擴充功能透過本機 WebSocket 連線(預設埠 8765,僅回送位址)。選用環境變數包括 CHROME_BRIDGE_PORT、CHROME_BRIDGE_TOKEN、CHROME_BRIDGE_CAPS、CHROME_BRIDGE_READ_ROOT、CHROME_BRIDGE_WRITE_ROOT 與 CHROME_BRIDGE_NO_JS。外掛的錯誤日誌掛鉤可選用 Python 3.8+。
安裝前請注意
它把真實且已登入的瀏覽器交給代理:execute_js、帶著 Cookie 的 http_request、get_storage 與 get_tabs 都是刻意提供的能力。主要風險是頁面內容造成的提示注入,頁面文字未經過濾就進入模型。儲存空間、測試資料、HAR 匯出與截圖不做去識別化,可能含 Cookie、權杖或個人資料。未設定 CHROME_BRIDGE_TOKEN 時,任何本機程序都可能充當中繼;綁定非回送位址時務必設定。啟動模式會在回送位址上開放無驗證的 DevTools 埠。本機會保留錯誤日誌,並可能被提議以 GitHub issue 送出。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Chrome Bridge,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

Chrome Bridge

By frsorrentino · npm chrome-bridge-mcp · not affiliated with other projects named "chrome-bridge".

[License: MIT] [Node 18+] [Chrome 135+] [Tests] [Chrome Web Store] [Chrome Bridge MCP on mcprush]

Claude Code drives the Chrome you are already using — signed in, with your extensions and your cookies. 69 tools: navigation, forms, DOM inspection, network mocking, visual regression, audits, performance traces and the WebMCP tools a page declares. Self-hosted, local-only, no paid plan, works on ChromeOS.

Measured against the official Claude in Chrome extension on the same tasks (paired runs, 17/10/2026, Claude Code 2.1.302, n=5 per task, medians):

TaskChrome BridgeClaude in ChromeFewer turnsLower cost
Fill a form3 turns · $0.04315 turns · $0.2365.0×5.5×
Find one row in a 1,500-row table3 turns · $0.0396 turns · $0.1542.0×3.9×
Debug a broken page6 turns · $0.09131 turns · $0.5595.2×6.1×

15 correct answers out of 15, against 14. Method, every run and the caveats in docs/EFFICIENCY.md.

Quickstart

  1. In a Claude Code session:
    /plugin install chrome-bridge --marketplace frsorrentino/chrome-bridge
    From a shell, the same: claude plugin install chrome-bridge --marketplace frsorrentino/chrome-bridge.
  2. Add the extension from the Chrome Web Store.
  3. Restart Claude Code.

Then ask for something like "open localhost:3000, run an accessibility audit and find the Sign Up button": Claude Code calls navigate, audit and find_text. Because navigate already returns element refs, click(ref="n1") follows with no discovery turn in between.

The plugin registers the MCP server from npm together with the recipes skill.

RequirementForNotes
Node.js 18+the MCP server
Chrome 135+the extensionexecute_js needs Allow user scripts in chrome://extensions → Chrome Bridge → Details; on Chrome 135-137, Developer Mode instead
Claude Code 2.1.275+ in a session, 2.1.292+ from a shellthe one-command installOlder versions: see below
Python 3.8+ (optional)the plugin's error log hooksAs python3, python or py (the Microsoft Store python3 alias is skipped). Without it they stay silent and the tools work the same
Older Claude Code, from source, Windows, one path only

Older Claude Code. Add the marketplace first: /plugin marketplace add frsorrentino/chrome-bridge, then /plugin install chrome-bridge@chrome-bridge (from a shell: claude plugin marketplace add frsorrentino/chrome-bridge, then claude plugin install chrome-bridge@chrome-bridge).

From source:

bash
git clone https://github.com/frsorrentino/chrome-bridge.gitcd chrome-bridge && ./install.sh

Then open chrome://extensions, enable Developer mode, click Load unpacked, select the extension/ folder, and restart Claude Code. install.sh registers the MCP server with --scope user; by hand: claude mcp add --scope user chrome-bridge node /path/to/server/index.js. On ChromeOS/Crostini use the Web Store extension instead: an unpacked one is dropped on every reboot, because the container isn't mounted when Chrome starts.

Windows. install.sh does not run from PowerShell or cmd: use the plugin with the Web Store extension, or run install.sh from Git Bash. The plugin's error log hooks run in Git Bash, as Claude Code runs every hook. For launch mode see CHROME_BRIDGE_BROWSER below: Google Chrome cannot load the extension there, Microsoft Edge can.

One path only. The plugin and install.sh would register the same server twice, and so would a plugin added from the Anthropic directory on claude.ai (it reaches Claude Code as chrome-bridge@synced) next to a marketplace install. In claude.ai chat the plugin loads only the recipes skill: the tools need Claude Code, or Cowork running on your computer, where the local MCP server can start. Clients that read Agent Plugins 1.0 get the same from plugin.json + mcp.json.

[The same form filled in 3 turns instead of 15 — 5× fewer turns on the form, 3.9-6.1× lower cost on form, 1,500-row table and debugging (paired runs, 17/10/2026, n=5)]

Why it takes fewer turns

  • Refs, not screenshots. navigate returns the page's interactive elements as short refs (n1, n2…), so the next call is the click, not a screenshot and a coordinate guess.
  • One call for a whole form. fill_form fills N fields and submits in the same call.
  • Filtering on the server. extract_table with where and columns returns the matching rows of a 1,500-row table, not the table.
  • Debugging starts with the answer. navigate reports the first console error mapped to its source line and the failed requests with their status; get_css_styles names the rule behind a style and flags undefined CSS variables.
  • Deferred loading. 22 stay in context; the rest of the 46 in the default set wait behind Claude Code's tool search (2.1.285+), and loading one mid-session does not invalidate the prompt cache. The other 23, in seven optional groups, switch on mid-session with get_status({enable: [...]}), no restart.

Your browser, your login

No blank profile, no debugging port, no cloud browser. The extension runs in your Chrome, so every site you are signed into is already open to the agent: webmail, the hosting panel, a back office, a staging site behind basic auth. Tabs the agent opens are marked as its own and closed when the session ends; your tabs stay yours. Several Claude Code sessions share the same browser: the second one becomes a relay on the first one's bridge.

WebMCP. When a page declares its own tools through WebMCP, navigate and get_interactives say so in one line, webmcp_tools lists them and webmcp_call runs one, with a timeout. Needs the WebMCP flag or origin trial in Chrome; get_status reports whether it is on.

Limits you can set. upload_file refuses keys and credentials (~/.ssh, .env*, *.pem, …) and --read-root fences it to one directory; --write-root fences every path the model writes; --no-js removes arbitrary JavaScript. The agent never types credentials: for a login, a 2FA code or a choice, handoff shows a banner in the page and waits for you.

Compared

Chrome BridgeClaude in ChromeChrome DevTools MCPPlaywright MCP
ChromeOS / CrostiniYes (real host)NoContainer onlyContainer only
Tools69 (46 default, 22 always loaded)2229 default (56 with flags)24 core (71 total)
Requires paid planNoYes (Pro+)NoNo
WebMCP (tools the page declares)YesNoYesYes
Network mockingYes (stub/headers)NoNoYes
Visual regressionYes (screenshot_diff)NoNoNo
Audits (a11y/SEO/sec)Yes (one call, report on disk)NoLighthouseNo
Performance traceYes (perf_trace, lighthouse)NoYesPlaywright trace only
Screen recordingYes (screencast, mp4/webm)Yes (GIF)PartialYes (video)
Heap snapshotYes (launch mode)NoYesNo
BreakpointsNoNoYesNo
Headless / CIYesNoYesYes

Codex for Chrome (OpenAI, May 2026) sits in the Claude in Chrome column: an official extension with the debugger permission, macOS and Windows only, the ChatGPT app required. Claude in Chrome documents Linux desktop since September 2026; ChromeOS and WSL stay out. Competitor tool counts measured on 2026-09-01 and 2026-09-11 (docs/analisi-2026-09-11-concorrenti.md); WebMCP, recording and tracing rows checked in their documentation on 2026-10-28.

[Claude checks its own work: console errors, pixel diffs, network mocking and audits]

Using it

The skill in skills/chrome-bridge/SKILL.md is what makes the tools discoverable: recipes with the phrase that triggers each one ("verify the email arrives", "test the checkout with a test card", "which plugin slows the page", "what fires before consent"), the tool sequence, and the zero-token CLI commands the model would otherwise never see. install.sh copies it to ~/.claude/skills/chrome-bridge; do the same by hand for other clients.

Beyond the MCP tools, two lanes keep work away from the model entirely.

[Some jobs never touch the model: the CLI lane runs the same tools at zero tokens]

CLI — batch operations, piped through grep or jq before anything reaches the context:

bash
chrome-bridge navigate --url https://example.comchrome-bridge read_console --level error | head -20chrome-bridge assert --selector "#success" --text "Done"chrome-bridge replay --file ./recordings/login.jsonl

Launch mode — a dedicated Chromium instance with an ephemeral profile, for isolated sessions or CI:

bash
node server/index.js --launch --headless

It looks for Chromium, Microsoft Edge, Brave and last Google Chrome in their standard paths on Linux, macOS and Windows; CHROME_BRIDGE_BROWSER picks another binary. Google Chrome 137+ ignores --load-extension, so the extension never connects in it: use Chromium, Edge, Brave or Chrome for Testing.

Pair it with session_record + replay for smoke tests with no model in the loop. In launch mode execute_js falls back to new Function when the user-script toggle isn't available.

Tools

69 in total. core (46 tools: every tool used in 101 real sessions, plus the two WebMCP tools) loads by default; the other 23 sit in seven optional caps, switched on with get_status({enable: ["visual"]}) or at startup with --caps.

[69 tools in nine groups, from clicking a button to tracing a page]

GroupNWhat's in it
Core & Navigation13tabs, windows, navigate, screenshot, tile_windows
Interaction11click, fill_form, upload_file, dialogs, clipboard
DOM & Inspection12read_page, extract, extract_table, query_dom, get_css_styles, watch_dom
Debugging & Network8execute_js, console, network log, mocking, track_events
WebMCP2webmcp_tools, webmcp_call: the tools a page declares
Visual & Responsive5screenshot_diff, viewport and zoom, media emulation
Audits2audit (a11y, keyboard, SEO, security, links, vitals, css, resources, cache in one call), cookie_audit
State, Storage & Files10storage, fixtures, MHTML, capture_downloads (exports saved with no "Save as" dialog), recording, assert
Motion & Performance6animations, frames (long frames, CLS, INP), perf_trace, screencast, lighthouse and heap_snapshot (launch mode)

Every tool, with the notes that matter: docs/TOOLS.md.

How it works

[It drives the Chrome you are logged into, over a local WebSocket bridge]

Claude Code  <--stdio-->  MCP Server  <--WebSocket :8765-->  Chrome Extension                          (server/)                          (extension/, MV3)

The Node.js server handles the protocol and tool logic; the MV3 extension executes commands through Chrome APIs. User scripts (execute_js) run via chrome.userScripts.execute().

Configuration and security

Environment variables, each with a matching CLI flag
VariableDefaultNotes
CHROME_BRIDGE_PORT8765
CHROME_BRIDGE_HOST / --host127.0.0.10.0.0.0 only where the browser lives outside the container (ChromeOS/Crostini port-forward) — and only with a token
CHROME_BRIDGE_TOKENunsetRequired on both ext_init and relay_init. Strongly recommended whenever the bind isn't loopback
CHROME_BRIDGE_CAPS / --capscorecore, audits, visual, network, storage, dom, files, all. Optional caps can also be switched on at runtime with get_status({enable})
CHROME_BRIDGE_ALWAYS_LOAD / --always-load22 most used toolsTools kept in context when the client loads the server whole; the others carry _meta['anthropic/alwaysLoad'] = false and wait behind tool search (Claude Code 2.1.285+). all loads every tool; a comma list picks them
CHROME_BRIDGE_NO_JS / --no-jsunsetNo arbitrary JavaScript in the page: execute_js and modify_dom leave the schema, wait_for(condition=function) and javascript:/data: URLs are refused. get_status reports js_evaluation
CHROME_BRIDGE_READ_ROOT / --read-rootunsetWhere upload_file may read from. Unset: any file except keys and credentials (~/.ssh, ~/.aws, ~/.gnupg, .env*, id_*, *.pem, *.key, …), symlinks resolved first. Set: only files under this directory, whatever their name — the way to upload a certificate key on purpose
CHROME_BRIDGE_BROWSERunsetLaunch mode only: the browser binary, e.g. C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe. Unset: the first of Chromium, Edge, Brave, Google Chrome found in the standard paths (on Linux Chromium, then Google Chrome)
CHROME_BRIDGE_OBSERVEunsetoff stops the local error log below. The plugin sets hook: its hooks keep the log and the server stays out of it
CHROME_BRIDGE_WRITE_ROOT / --write-rootunsetEvery path the model chooses (save_to, output_path, exports) must be under this directory, checked before the browser does any work; the server's own state under ~/.config/chrome-bridge stays writable. The CLI is your shell and is not restricted

The bridge binds loopback, accepts extension connections only from a chrome-extension:// origin, and — when a token is set — requires it on both handshakes. Without one, any local process could act as a relay and reach execute_js inside your authenticated browser session. Secondary MCP instances connect via loopback and are acknowledged with relay_init_ok, so a foreign process holding the port fails fast instead of timing out per command.

What is not protected: page content reaches the model unfiltered, so a hostile page's text is untrusted input. get_storage, session_fixture, HAR exports and screenshots are not redacted and may carry cookies, tokens or personal data. Don't point the automation at pages holding secrets you wouldn't paste into a chat.

Threat model

chrome-bridge gives an AI agent your real, logged-in browser. Scanners that rate MCP servers by capability flag it, correctly, for code execution (execute_js), requests that carry your cookies (http_request) and reading private page data (get_storage, get_tabs). Those are the product, not bugs. What matters is who can reach them and what a hostile page can make the agent do with them.

  • Launch mode also opens a DevTools port on 127.0.0.1 (chosen by the system), for lighthouse and heap_snapshot. CDP has no authentication: any local process can drive that dedicated browser while it runs. Its profile is temporary and holds nothing of yours; your own Chrome never gets a port.
  • The debugger bar is the signal. click/press_key with trusted, emulate_media via: "debugger", perf_trace and screencast attach chrome.debugger to one tab only for that work; Chrome shows its "started debugging this browser" bar meanwhile, and cancelling it ends the work.
  • The real risk is prompt injection. A page can ask the agent to run JavaScript, send a request with your cookies, submit a form or upload a file. Treat every page you automate as untrusted input, and review what the agent proposes on sites that hold money or credentials.
  • Reduce the surface: --caps core (the default) exposes the smallest set, and see Limits you can set. For sessions that matter, automate in a separate Chrome profile.
  • --no-js is not a sandbox: inject_css stays, and CSS attribute selectors with url() can leak attribute values to a remote host.
  • What leaves your machine is what the browser sends on the agent's behalf. chrome-bridge itself has no telemetry; the error log below stays local unless you approve an issue.

Local error log

When one of its own tools fails, chrome-bridge adds a line to a local file, ${XDG_STATE_HOME:-~/.local/state}/claude-observe/chrome-bridge.jsonl (mode 0600, in a 0700 folder), in the claude-observe format (the plugin's copy is in observe/). A PostToolUseFailure hook writes it, or the server when used without the plugin. A repeated error is one line with a count.

  • Kept: the tool name, the error text after scrubbing (your home folder becomes ~; emails, URL queries, secrets and typed values are removed), the names of the parameters and the length of text values, the chrome-bridge version, the OS, the name of the working folder and of the Claude Code config folder. With the plugin, also the Claude Code and model versions, the session id and the names of the last three tools called.
  • Never kept: parameter values — no URLs, selectors, typed text or page content.
  • Nothing leaves your computer unless you say yes. With the plugin, once a few errors have piled up (or one has waited a few days, or one is marked as a defect), a line at the end of a turn tells you so, and Claude may offer to send them as one GitHub issue: it shows the anonymized text first and sends only what you choose. /chrome-bridge:observe send does the same on demand; list, mark and add read and triage the log. The server alone never sends or offers anything.
  • Security observations (a read or write outside the perimeter, a secret exposed, unwanted code execution, data leaving the computer) never enter a public issue: /chrome-bridge:observe send --security prepares a private vulnerability report for the maintainers, see SECURITY.md.
  • Turn it off: {"enabled": false} in ~/.config/claude-observe/config.json (every plugin that uses claude-observe), or CHROME_BRIDGE_OBSERVE=off for the server. Keep the log but stop the offers: {"propose": false}.

Troubleshooting

Symptoms and fixes
SymptomCause / fix
Chrome extension not connectedExtension disabled, or its port differs from the server's. The error names the actual host/port; check them in the popup (⚙).
Port 8765 already in useExpected: a second MCP session becomes a relay and shares the one bridge. Set CHROME_BRIDGE_PORT for a separate one.
Port N is held by a process that is not chrome-bridgeSomething else owns the port. Free it or change CHROME_BRIDGE_PORT.
execute_js failsEnable Allow user scripts in chrome://extensions → Chrome Bridge → Details (Chrome 138+; on 135-137 enable Developer Mode).
read_console returns note=Instrumentation not loadedThe page was opened before the extension, "Capture console & metrics" is off, or the page isn't injectable (chrome://). Reload it.
Screenshot times out, or image readback failedA minimized or fully covered window stops producing frames; captures fail after 10 s. Bring the window forward.
wait_for/scroll return page_hidden: true, pages stop updatingSame cause: Chrome does not render a hidden page and slows its timers (after a few minutes, to one wake-up per minute). get_page_info reports visibility. Bring the window on screen, or create_tab with new_window and bounds.
screenshot presets says NOT APPLIEDPresets resize the window; they do not emulate a phone (no device pixel ratio, UA or touch). The window manager enforces a minimum width, and no window exceeds the screen (e.g. at most a 1536×686 viewport on a 1536×864 ChromeOS screen). For phone emulation use emulate_media with device (via debugger), or a headless browser for larger viewports.
type_text returns mismatch: trueThe field rejected the value. Events from an extension have isTrusted: false, and some widgets (date pickers, search boxes with tokenizers) discard them. Try mode: 'keys', then the site's own controls (the calendar buttons), or handoff.
[media removed: request limit] instead of a screenshotWritten by the MCP client, not by the bridge: too many images in one request. Use save_to, or element_screenshot with region and a small scale.
Commands work, then stopThe MV3 service worker restarted and in-memory state (network log, diff baselines, HTTP auth) was reset. Re-run the monitoring call.
Extension dropped on every ChromeOS rebootInstall from the Web Store instead of Load unpacked.
Tool missing from the listIt's in an opt-in group. Check get_status → caps_available, then set CHROME_BRIDGE_CAPS=all.
claude mcp get shows no command, arguments or environmentExpected with the plugin: since Claude Code 2.1.285 it hides them for stdio servers that plugins provide (variable names stay). get_status reports the server and extension versions, mode, host, port and caps; /mcp shows the connection.
Popup says «In attesa: un altro browser è collegato», get_status lists refused_browsersTwo browsers with the extension reach the same port. The one already connected keeps the bridge; the other retries every 15 s and takes over when the first disconnects. get_status → browser names the connected one. Before this, the last one to connect took over silently.

Documentation

Tests

npm test (Chrome-free, ~22s) · npm run test:e2e (needs Chrome and a connected extension; with a bridge already on 8765: CHROME_BRIDGE_PORT=8799 node test/test-devtools.js --launch, which opens its own Chromium with extension/) · npm run measure (schema cost) · npm run bench:latency (milliseconds per tool, launches its own Chromium, writes docs/PERFORMANCE.md).

Related projects

  • agent-webbridge — drives several Chrome profiles at once, with parallel tabs
  • awb-recipes — community-maintained, dated per-site recipes for automating logged-in websites

License

MIT

來源:README.md,提交 eeb896a

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

26
  1. v1.32.1最新Oct 29, 2026
  2. v1.30.7Oct 26, 2026
  3. v1.30.6Oct 23, 2026
  4. v1.30.5Oct 17, 2026
  5. v1.30.4Oct 17, 2026
  6. v1.30.3Oct 16, 2026
  7. v1.30.2Oct 15, 2026
  8. v1.30.0Oct 14, 2026
  9. v1.29.3Oct 14, 2026
  10. v1.29.2Oct 9, 2026
  11. v1.29.1Oct 9, 2026
  12. v1.29.0Oct 6, 2026
  13. v1.28.0Oct 2, 2026
  14. v1.27.0Oct 1, 2026
  15. v1.26.0Sep 29, 2026
  16. v1.25.1Sep 29, 2026
  17. v1.24.0Sep 28, 2026
  18. v1.23.4Sep 27, 2026
  19. v1.23.3Sep 27, 2026
  20. v1.23.0Sep 26, 2026
  21. v1.22.0Sep 25, 2026
  22. v1.21.0Sep 24, 2026
  23. v1.20.0Sep 24, 2026
  24. v1.19.0Sep 23, 2026
  25. v1.18.0Sep 22, 2026
  26. v1.17.0Sep 16, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分