shared-chrome-mcp
Drives a single persistent Google Chrome instance over CDP so multiple agents can share one logged-in browser. Gives each MCP session its own window and tabs, navigates/clicks/types and waits for pages to fully settle before returning a snapshot, keeps cookies and logins across sessions (refusing obvious logouts), and can hand a window over to a human for CAPTCHAs, 2FA codes or final review.
shared-chrome-mcp
One Chrome that stays on and stays logged in, shared by all your agents at once: Claude Code, Codex, Cursor, Claude Desktop, anything that speaks MCP.
You log in to a site once, or let the agent do it, and every agent can use that login from then on. The agent logs in by itself when a site asks; nothing stops at the login page and waits for you.
Why not just Playwright MCP
This is Playwright MCP attached to one Chrome over CDP, plus the rules we learned the hard way, enforced by the server so agents don't have to remember them:
A window per agent, not a tab. A background tab reports
document.hidden, gets throttled, and bot checks flag it. Each MCP session gets its own window on first use and only ever sees its own tabs, so ten agents can work side by side without landing in each other's pages.Waits until the page is ready. After navigate, click, back, select or key press, it waits for load, network idle, no visible spinners and one second without DOM changes (20 s at most), then returns a fresh snapshot. If the page never settles, the result says
NOT READYplainly instead of handing back a half-loaded page.Logins stay. Cookies are shared, so the server refuses obvious logout clicks and URLs. Closing a session closes its windows and nothing else.
Hand a window to the human, and take it back. For a step only a person can do (a CAPTCHA, a 2FA code, a final review before submit),
browser_hand_overbrings the current window to the front, puts an optional note in its title and leaves it open after the session ends; the session stops seeing it and gets a handle. Once the human says they are done, or the page shows it (text: waits up to 5 minutes without touching the page),browser_take_backwith that handle returns the same tab as they left it, solved CAPTCHA and typed fields included, without raising its window. Any session with the handle can take it back, so an agent restarted in the meantime carries on too; other sessions never see it.Sites don't see the automation. Stock Playwright sends CDP
Runtime.enableto every page and iframe, and bot checks detect it (hCaptcha Enterprise on Lever rejects even a human-solved captcha from such a window). This runs on rebrowser-playwright-core, which doesn't send it; the price is thatbrowser_console_messagesstays empty. Agents' scripts (browser_evaluate,page.evaluate) run in an isolated world: they see the DOM, but not the page's own JavaScript variables, and a page that wraps its DOM methods doesn't see them either.Input the way a person makes it. Anti-fraud scripts on sign-in and checkout pages read how input arrives, and stock Playwright jumps the pointer to the exact centre of an element, presses for 0 ms and sets text without a single key press. Here the pointer travels along a curve to a random spot on the element, a press lasts 50-130 ms, text up to 80 characters is typed key by key at an uneven human pace (longer text is set at once, like a paste), and a site's next page loads no sooner than 6-15 s after its last one (
ebay.comandebay.decount as one site; local addresses are not paced).Pay with a saved card the agent never sees. With
SHARED_CHROME_MCP_CARDS=1in the server's environment,browser_fill_cardtypes a card saved in this Chrome's autofill into the current page's card form, by its last 4 digits, as a person types it; the number, expiry and CVC never reach the agent. Off by default: once on, any agent on the server can type the card into any page. macOS (the profile's mock keychain) and Node.js 22.13+.Card data stays out of the agent and off the disk. Every result and every snapshot file shows card fields (by label, placeholder,
autocomplete,nameorid) as•••• 4242or•••, and any Luhn-valid 13-19 digit number in any text as•••• 4242, also inside Stripe or Adyen iframes. Screenshots are not masked.Always on. On macOS a launchd agent keeps Chrome running across crashes and reboots; on Windows a Scheduled Task does the same.
Alternatives: agent-browser (a driver that pins each session to a tab) and BrowserOS neo (a separate browser app for agents).
Related MCP server: agentic-playwright-mcp
Start Chrome
Needs Node.js 20.11+ and Google Chrome.
npx -y github:zucchini-chat/shared-chrome-mcp install # macOS: launchd, Windows: Scheduled Task — keeps it running
npx -y github:zucchini-chat/shared-chrome-mcp start # or run it in the foreground (any OS)
npx -y github:zucchini-chat/shared-chrome-mcp statusChrome opens on its own profile (~/.shared-chrome-mcp/profile) with CDP on 127.0.0.1:9222. Log in there to the sites you want agents to use, or leave that to the agents. Change the port or profile with --port / --profile (or SHARED_CHROME_MCP_PORT / SHARED_CHROME_MCP_PROFILE), the same for every command and for the MCP server. uninstall removes the launchd agent or Scheduled Task and keeps the profile. install points it at the copy of the package it ran from, so run it again after an update.
On Windows, install registers a Scheduled Task, scoped to your own account, that starts at logon and relaunches itself whenever it exits, for any reason; --owner-chrome-first is macOS-only (there's no Dock to redirect). Stopping the task or the start process from outside (Task Manager, Stop-ScheduledTask) can't run its own shutdown code the way a signal does on macOS/Linux, so uninstall finds and stops that Chrome directly instead of relying on it to exit cleanly.
On macOS, links from other apps open in the oldest running Chrome. If they start landing in the agents' Chrome, install with --owner-chrome-first: it starts your own Chrome first and restarts the agents' one whenever yours restarts.
Claude Code
The repo is a plugin and its own marketplace:
/plugin marketplace add zucchini-chat/shared-chrome-mcp
/plugin install shared-chrome-mcp@shared-chrome-mcpClaude Code installs the two dependencies from package-lock.json as part of the plugin install. The plugin has no version number, so it follows this repo's commits: /plugin marketplace update shared-chrome-mcp brings the latest, or turn on auto-update for the marketplace under /plugin > Marketplaces. You get the MCP server, a skill with the rules the server cannot enforce (payments, downloads, parallel agents, what to do when Chrome is down), and a hook that blocks Claude in Chrome, which refuses to log in anywhere.
Codex, Cursor, Claude Desktop and others
Add it as a stdio MCP server. Codex, in ~/.codex/config.toml:
[mcp_servers.browser]
command = "npx"
args = ["-y", "github:zucchini-chat/shared-chrome-mcp"]Cursor, Claude Desktop and most others:
{ "mcpServers": { "browser": { "command": "npx", "args": ["-y", "github:zucchini-chat/shared-chrome-mcp"] } } }Each client process is one session with its own window. Subagents inside one session share it, so run one browser subagent at a time, or separate sessions in parallel.
Security
The CDP port hands the whole logged-in profile to any process on this machine: every cookie and every session, no password asked. Chrome listens on 127.0.0.1 only. Never forward or expose the port, and run this only on a machine where you trust everything that runs. Playwright MCP's browser_run_code_unsafe tool, kept here, runs arbitrary code in the server process.
Test
From a checkout, after npm install: npm run smoke starts a throwaway Chrome on port 9333, connects two MCP sessions at once and checks the windows, visibility, renderer priority, readiness wait, popups, dialogs, hand-over and take-back (also from a new session), human-like input as a page sees it, isolated scripts, card masking and browser_fill_card, reopening after browser_close and cleanup.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Give AI agents a real cloud Chrome: open sessions, navigate, read pages, click, type and screenshot.
Real Chrome for coding agents over MCP: browse, replay playbooks, human takeover, HIPAA & BAA.
Browser MCP for logged-in tasks. Uses your Chrome — credentials stay local. Zero-token replay.
Let AI agents use any website you're logged in to. Sessions stay encrypted on your machine.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceA multi-agent orchestrator that enables multiple AI agents to share a single Chrome browser instance with tab isolation and shared state. It preserves local browser data like cookies and logins while allowing concurrent agent sessions through the official Playwright MCP.10MIT
- AlicenseNot gradedqualityBmaintenanceLets many AI agent sessions share one real logged-in browser, each with its own tab group, using standard Playwright MCP tools.Apache 2.0

Dooza Browserofficial
AlicenseNot gradedqualityCmaintenanceGives AI agents a single shared, logged-in Chrome they can drive over MCP or plain HTTP: open and read tabs, click, type, upload files, run short Playwright scripts, hand off whole web tasks to a cheaper model, and keep per-site memory. Agents work in background windows they own without stealing the user's mouse or closing their tabs.MIT- AlicenseBqualityCmaintenanceEnables local AI agents to drive the user's real Chrome session through MCP tools, preserving existing logins and extensions without a debug port or separate profile. Supports tab groups, navigation, page reading, interaction, screenshots, and safe multi-agent sharing over a local bridge.21MIT