OpenBrowser
Click 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., "@OpenBrowserOpen the GitHub repo and take a screenshot of the issues tab"
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.
OpenBrowser
Browser automation for AI agents โ in your real Chrome, with your real logins.
A Chrome extension plus a zero-dependency MCP server, so any MCP client can drive an actual browser instead of a headless copy of one.
๐ openbrowser.pulse-core.com
Install ยท Quickstart ยท Tools ยท Token cost ยท Difficult sites ยท Security ยท Contributing
What it is
OpenBrowser lets an AI agent drive your Chrome โ the one already signed in to your accounts, running your extensions โ over the Model Context Protocol. It has two halves: a Manifest V3 Chrome extension with a side-panel UI, and a small MCP stdio server that any MCP client (Claude Code, opencode, Cursor, Windsurf, Zed, or your own) can launch.
Most browser automation hands the agent a fresh headless browser instead: signed out of everything, fingerprinted as a bot, and reading pages as either raw DOM or screenshots. OpenBrowser takes the opposite position on all three โ real session, trusted input, and a compact accessibility tree that keeps token cost low.
Related MCP server: Chrome MCP Server
Highlights
๐ Real browser, real session. Runs in your actual Chrome, with your logins, cookies, and extensions. Nothing extra to keep signed in.
โจ๏ธ Trusted input events. Clicks and keystrokes go through the Chrome debugger, so they are indistinguishable from a real user's. Payment forms, login pages, and drag-and-drop all work where synthetic clicks are rejected.
๐ชถ Built for token cost. Pages are read as a compact accessibility tree, not screenshots or raw DOM. A full login page costs ~350 characters.
โก Parallel by default. Every tool takes a
tabId. Read twenty tabs at once.๐งฉ Fourteen composable tools. Grouped by
actionenums rather than split into forty single-purpose ones โ models pick an enum value far more reliably.๐ฅ๏ธ Side-panel UI. Run any tool by hand and see exactly what an agent would get back โ the fastest way to debug a flow.
๐ Multi-browser and multi-machine. Several agents share one browser; one hub can federate to hubs on other machines and drive their browsers too.
๐ฆ Zero dependencies. No
npm install. Node 18+ and Chrome 116+ is the whole requirement.๐ Entirely local. Loopback only by default. No telemetry, no analytics, no outbound calls.
Zero dependencies is a feature, not a boast.
npm installfailing is the most common reason a local MCP server doesn't work, and it fails silently from the user's point of view. The WebSocket and MCP protocol implementations are hand-written for exactly this reason.
Install
1. Get the code
git clone https://github.com/dylansantwani/openbrowser.gitThere is nothing to build and nothing to install โ no npm install step.
2. Load the extension
Open chrome://extensions, turn on Developer mode, click Load unpacked,
and select the extension/ folder.
3. Point your MCP client at the server
claude mcp add openbrowser -- node /absolute/path/to/openbrowser/mcp-server/src/index.js{
"mcp": {
"openbrowser": {
"type": "local",
"enabled": true,
"command": ["node", "/absolute/path/to/openbrowser/mcp-server/src/index.js"]
}
}
}Standard MCP stdio server:
{
"mcpServers": {
"openbrowser": {
"command": "node",
"args": ["/absolute/path/to/openbrowser/mcp-server/src/index.js"]
}
}
}Quickstart
First, confirm Chrome is connected. The server prints its status and exits:
node mcp-server/src/index.js --healthThe toolbar badge clears when Chrome is connected. If it doesn't, see Troubleshooting.
Now hand your agent a task. Everything an agent does reduces to two moves โ read the page, then act on it. A read looks like this:
browser_navigate url:"example.com"
browser_snapshotand browser_snapshot renders the page as a compact accessibility tree with
[ref=eN] handles you can act on directly:
app.example.com/login ยท "Sign in ยท Example" ยท tab 481 ยท 1280x800
banner
link "Example" [e1] /
main
heading "Sign in" h1
form
textbox "Email" [e2] required
password "Password" [e3] required
checkbox "Remember me" [e4] unchecked
button "Sign in" [e5]
link "Forgot your password?" [e6] /reset356 characters โ roughly 90 tokens. The same page is ~4,000 tokens as raw accessibility JSON and ~1,500 as a screenshot.
A whole login in one call
Once you know a flow, browser_batch collapses it into a single round-trip:
{
"tool": "browser_batch",
"args": {
"steps": [
{ "tool": "browser_navigate", "args": { "url": "app.example.com/login" } },
{ "tool": "browser_input", "args": {
"fields": [
{ "ref": "e2", "value": "ada@example.com" },
{ "ref": "e3", "value": "correct horse battery staple" }
]}},
{ "tool": "browser_act", "args": { "action": "click", "ref": "e5" } },
{ "tool": "browser_wait", "args": { "for": "text", "value": "Dashboard" } }
]
}
}One round-trip instead of eight.
The tools
Fourteen tools, grouped by action enums rather than split into forty
single-purpose ones โ models pick an enum value far more reliably.
Tool | What it does |
| list / new / close / select / reload / duplicate |
| go to a URL, back, forward, reload |
| read the page as an accessibility tree with |
| find elements by description, ranked |
| click, hover, drag, select, check, answer native dialogs โ trusted input events |
| type text, fill many fields at once, press keys |
| viewport / full page / element / region, or record a GIF |
| block on text, selector, URL, network idle, load |
| run JavaScript in the page |
| console, network, cookies, storage, downloads, frames |
| run many calls as one request, optionally across many tabs |
| attach local files to a file input |
| pick the window/browser, attach a hub on another machine, resize, emulate a device, throttle network |
| save and replay step sequences |
Full parameter reference: docs/TOOLS.md.
Keeping token cost down
The design assumes tokens are the scarce resource:
Snapshots, not screenshots. ~20x cheaper, and refs are directly actionable. Screenshot only to verify something visual.
mode: "diff"in loops. After the first snapshot, ask only what changed.Actions return their own delta. After a click you usually already know what changed, so no follow-up snapshot is needed.
selectorto scope. On a dense page, read the one region you care about.browser_batchfor known flows. Collapses N round-trips into one.browser_macrofor repeated flows. Derive the flow once, replay for the cost of a single call.
Difficult sites
The cases that usually break browser automation, and what handles them here:
Problem | How it is handled |
Site ignores synthetic clicks | Trusted events via the Chrome debugger |
Content inside iframes | All frames are read; refs carry their frame ( |
Cross-origin iframe coordinates | Offsets cascade via |
Element under a cookie banner | Detected before clicking, and reported with what is covering it |
Shadow DOM / web components | Open shadow roots are pierced when reading and hit-testing |
React ignores a typed value | Native setter + the event pair frameworks actually listen for |
Hidden file inputs behind "Browse" | The real |
Drag-and-drop libraries | Interpolated, eased movement above the drag threshold |
SPA re-render invalidates a ref | Refs re-resolve through a stored selector before failing |
Element is off screen | Auto-scrolled into view, then waited until it stops moving |
CAPTCHA | Detected and reported. Not bypassed โ that needs a human |
Click opens a new tab or popup | Reported with the new tab's id, rather than looking like nothing happened |
Tab is in the background | Foregrounded before input; Chrome silently discards clicks aimed at hidden tabs |
Native JS dialog (alert/confirm/beforeunload) | Reported with the dialog's text; answered with |
Every row above is a bug that was found by driving the extension against a real site, not a hypothetical. The write-ups are in docs/SESSION-2026-08-02.md and docs/SESSION-2026-08-03.md.
Side panel
Click the toolbar icon or press Ctrl+Shift+U (โ+Shift+U on macOS).
Control โ tabs, quick actions, element search
Tools โ run any tool by hand and see exactly what an agent would get
Macros โ inspect, run, and delete saved sequences
Activity โ every call with timing and errors
The panel calls the same dispatcher the MCP server does, so it is the fastest way to debug a flow: try it by hand, then hand it to the model.
Configuration
Extension options (chrome://extensions โ Details โ Extension options):
Setting | Default | Notes |
Hub port |
| Must match the server's |
Connect automatically | on | Reconnects on browser start |
Trusted input events | on | Turning this off makes many sites ignore the agent |
Highlight elements | on | Outlines elements as they are used |
Capture bodies | off | Request/response bodies; large, often sensitive |
Snapshot budget | 20,000 chars | Truncation limit |
Blocklist | identity providers | Never automated |
Allowlist | empty | If non-empty, only these sites are automated |
Server flags (node mcp-server/src/index.js โฆ, or the matching env var):
Flag | Env | Default | What it does |
|
|
| Hub port |
|
|
| Bind address; |
|
| โ | Attach to remote hub(s) at startup |
| Print hub + browser status and exit | ||
| Run the hub only, no MCP | ||
| Log to stderr |
How it works
Claude Code โโ
โโ stdio โ> mcp-server โ ws://127.0.0.1:8848 โ> Chrome extension โ> your tabs
opencode โโโโโThe MCP server speaks stdio to your client and WebSocket to the extension. The
first server to start binds the hub port; later ones join it. So several agents
can share one browser โ an editor agent and a CLI agent can work side by side
without fighting over it, because each session gets a name of its own (harbor),
owns only the tabs in its own tab group, and works in a shared background agent
window that nothing it does can bring in front of you.
Everything is local. Nothing leaves your machine except the pages you ask it to visit.
Browsers on other machines
A hub can attach to hubs elsewhere, so one agent with one MCP config drives browsers on any number of boxes:
your agent โโ> hub (laptop) โโโฌโโ> Chrome, here
โโโwsโโ> hub (10.0.0.5) โโ> Chrome, there
โโโwsโโ> hub (10.0.0.6) โโ> Chrome, thereOn each remote machine, let the hub listen off-loopback:
node mcp-server/src/index.js --hub --host 0.0.0.0Then, from an agent:
browser_window action:"connect" hub:"10.0.0.5"Its browsers appear as 10.0.0.5/<name> and are used exactly like local ones.
action:"remotes" lists what is attached; action:"disconnect" detaches.
--connect 10.0.0.5,10.0.0.6 attaches them at startup instead.
โ ๏ธ The hub has no authentication. Anything that can reach it can run JavaScript in a logged-in browser.
--hostdefaults to127.0.0.1for that reason โ keep federated hubs on a private network or a VPN mesh, never on a public IP.
For why the pieces are split the way they are, see docs/ARCHITECTURE.md.
Security
Binds loopback only (
127.0.0.1). Nothing is exposed to your network.No telemetry, no analytics, no outbound calls of any kind.
The blocklist ships with identity providers on it, because an automation mistake against an SSO flow is expensive and hard to undo.
CAPTCHAs are reported, never solved or bypassed.
The
debuggerpermission is what makes trusted input possible. It is broad โ read docs/ARCHITECTURE.md for exactly what it is used for, and turn it off in options if you would rather not grant it.
โ ๏ธ Treat an agent with browser access as having your logged-in privileges. Use the allowlist when running unattended.
Troubleshooting
node mcp-server/src/index.js --healthThe hub only exists while an MCP client has the server running. To test
standalone: npm run hub.
Chrome blocks extensions on chrome:// pages, the Web Store, and other
extensions' pages. Navigate somewhere else.
DevTools and the extension cannot both own the debugger. Close DevTools, or use another tab.
The page re-renders aggressively. Use browser_find immediately before acting,
or browser_batch so the whole sequence runs before the page can change under
you.
Expected under MV3. It respawns and reconnects on its own; the first call afterwards may take a moment.
Chrome caches extension files. Anything under extension/ needs
chrome://extensions โ reload before it takes effect. Anything under
mcp-server/ is picked up when the MCP client next starts the server.
Development
npm test # 232 tests: WebSocket framing, MCP protocol, round trip, formatting
npm run preview # UI preview + in-browser accessibility-tree tests at :8850
npm run hub # hub only, verbose
npm run icons # regenerate icon PNGsnpm run preview serves two things that need a DOM: the side-panel UI at /,
and the accessibility-tree assertions at /test/a11y-browser.html.
Layout:
extension/
background/ service worker: bridge, router, CDP, recorder, frames, formatting
content/ injected: accessibility tree, actions, frame offsets
sidepanel/ the UI
options/ settings
mcp-server/src/ ws.js (hand-rolled RFC 6455), hub.js, mcp.js, tools.js
docs/ capabilities, tools reference, architecture, test checklist
site/ the source of openbrowser.pulse-core.com (static, no build step)Doc | What it is for |
What the fourteen tools can do in combination โ parallel tabs, macros, retroactive network capture, trusted input, iframe reach | |
Full parameter reference | |
Why the pieces are split this way | |
Manual checklist for the parts that need a real browser | |
First real-site hardening pass: what broke, what was fixed, what is still unproven | |
Second pass โ OAuth, popups, checkout forms, and the backgrounded-tab input bug |
CLAUDE.md carries the hard rules and the platform behaviours that each cost a
real bug to discover. AGENTS.md is the short version for AI coding agents.
TODO.md has the open work with reproduction details.
Contributing
Contributions are welcome. The short version: no dependencies, ever; npm test
stays green; commits follow Conventional
Commits. The full guide โ dev setup,
testing, commit convention, and PR process โ is in
CONTRIBUTING.md.
License
MIT โ see LICENSE.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.
No tool schema history has been recorded yet.
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 Connectors
Live browser debugging for AI assistants โ DOM, console, network via MCP.
Browser MCP for logged-in tasks. Uses your Chrome โ credentials stay local. Zero-token replay.
A paid remote MCP for AI agent browser DevTools MCP, built to return verdicts, receipts, usage logs,
Hosted browser for AI agents: screenshots, post-JS DOM, console, WCAG. No install, no API key.
61
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceAn MCP server that enables AI agents to control a real Google Chrome instance using specific user profiles, cookies, and extensions. It provides 18 tools for browser navigation, element interaction, and page inspection via the Chrome DevTools Protocol.-
- AlicenseNot gradedqualityDmaintenanceAn 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.MIT
- AlicenseNot gradedqualityNot gradedmaintenanceAn 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.-
- -licenseNot gradedqualityNot gradedmaintenanceMCP server that connects AI agents to a real Chrome browser via a WebSocket extension bridge, enabling over 40 browser control tools without debug mode or profile isolation.-
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/dylansantwani/openbrowser'
If you have feedback or need assistance with the MCP directory API, please join our Discord server