browser-relay
OfficialClick on "Install 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-relayopen a new tab, go to news.ycombinator.com, and give me the top story"
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.
browser-relay
Drives the user's real, logged-in Chrome from AI agent sessions without ever handing another browser client the user's cookies (which gets sessions invalidated). An MV3 extension lives inside real Chrome and executes commands sent over a WebSocket from a local relay daemon.
Architecture
Claude session -> MCP (HTTP :9277/mcp) -> relay daemon -> WebSocket -> MV3 extension -> real Chrome tabsextension/- the Chrome MV3 extension.server/relay.js- the relay daemon: MCP streamable-HTTP server + WebSocket server. Node >= 18, single dependency (ws).deploy/ai.wecko.browser-relay.plist- launchd LaunchAgent template (macOS);install.shfills in your node and repo paths.install.sh- installs deps + the LaunchAgent and prints the two remaining manual steps.test/- MCP smoke test (e2e.sh), a direct tool-call helper (call.js), and a mock extension for testing the relay without Chrome.
The extension connects out to ws://127.0.0.1:9277/ws as a client (it does
not run a server itself), sends a hello on open, and answers every command
the relay sends with exactly one ok:true/ok:false reply.
Related MCP server: Chrome MCP Server
Install
/bin/bash install.shThis copies the LaunchAgent, (re)starts it, and waits for
http://127.0.0.1:9277/health to answer. It then prints two steps you do by
hand:
Register the MCP server:
claude mcp add --transport http browserx http://127.0.0.1:9277/mcp -s userLoad the extension:
chrome://extensions-> enable Developer mode -> Load unpacked -> selectextension/.
Tools (relay commands)
command | args | result |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tab_id is optional everywhere it appears - it falls back to the active tab
of the last focused normal window.
snapshot is the main way an agent finds things to act on: it walks the top
document (same-origin iframes are out of scope in v1) for interactive
elements, tags each one with a stable data-bx-id="eN" ref, and returns a
compact list plus a text excerpt of the page. click and type_text then
target elements by that ref.
Known limitations
Synthetic input is not trusted input.
clickandtype_textdispatch real DOM events, but they are not OS-level input, so some sites (payment iframes, bot-detection-heavy forms) may reject or flag them.Screenshots require the tab to be active.
chrome.tabs.captureVisibleTabonly captures the active tab of a window;screenshotbriefly activates the target tab if it isn't already, then restores the previous one.evaluatecan be blocked by a page's CSP. Strictscript-srcpolicies can reject the injected eval; when that happens the error is surfaced verbatim rather than swallowed. A future version should switch tochrome.userScripts.executein theUSER_SCRIPTworld, which is exempt from page CSP.The MV3 service worker gets killed by Chrome. It is normal for
background.jsto be torn down and revived repeatedly; thebx-keepalivealarm (every ~24s) and the reconnect-on-close logic are what keep the WebSocket connection coming back. A short gap in connectivity right after Chrome starts or the SW is revived is expected.Google (and similar) may challenge with reCAPTCHA or a security check. If that happens, the agent must stop and ask the human to clear it in the real browser window rather than trying to script around it.
Same-origin iframes are not walked by
snapshotin v1.
Troubleshooting
curl 127.0.0.1:9277/health- confirms the relay daemon is up.tail -f relay.log- relay daemon stdout/stderr (from the LaunchAgent).Reload the extension from
chrome://extensionsif it stops responding.Inspect the service worker console:
chrome://extensions-> browserx relay -> "service worker" link, to see WebSocket connect/reconnect logs and any errors from injected scripts.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityDmaintenanceAn extension-based MCP server that enables AI assistants to control your browser, leveraging existing sessions and login states for automation and content analysis. It provides over 20 tools for semantic tab search, interactive element manipulation, and network monitoring directly within your daily Chrome environment.Last updatedMIT
- Alicense-quality-maintenanceAn extension-based MCP server that enables AI assistants to control your existing Chrome browser, leveraging your active login states and settings for automation. It provides over 20 tools for tasks like semantic tab search, screen capture, network monitoring, and direct element interaction.Last updated
- Flicense-qualityDmaintenanceEnables AI agents to control the Google Chrome browser through a Node.js WebSocket bridge and a dedicated browser extension. It provides tools for capturing screenshots, executing JavaScript, managing tabs, and extracting page content via the MCP protocol.Last updated2
- Flicense-qualityCmaintenanceLets any MCP-capable coding agent drive your real, logged-in Chrome through a local MCP server and MV3 extension.Last updated5
Related MCP Connectors
Hosted real Google Chrome MCP with per-user persistent state. Navigate, click, type, screenshot.
Browser MCP for logged-in tasks. Uses your Chrome — credentials stay local. Zero-token replay.
Live browser debugging for AI assistants — DOM, console, network via MCP.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Wecko-ai/browser-relay'
If you have feedback or need assistance with the MCP directory API, please join our Discord server