Featured

Deploy OpenClaw in 60 seconds β€” 20% off logoDeploy OpenClaw in 60 seconds β€” 20% off

Launch OpenClaw on Hostinger in about 60 seconds and keep your agent live 24/7. Our referral link gives you 20% off, no coupon code needed.

Launch on Hostinger β†’
Run your Hermes agent on Hostinger, fully managed logoRun your Hermes agent on Hostinger, fully managed

Launch Hermes on Hostinger in one click, fully managed, no VPS knowledge needed. Use code ZACAARON10 for 10% off.

Launch on Hostinger β†’
Crawl and scrape any site into clean data, 10% off logoCrawl and scrape any site into clean data, 10% off

Firecrawl crawls and scrapes any site into clean markdown for your agent. Get 1,000 free credits, and new users get 10% off their first purchase.

Try Firecrawl free β†’
Your own AI agent, running 24/7 with QwikClaw logoYour own AI agent, running 24/7 with QwikClaw

QwikClaw sets up and runs an always-on OpenClaw agent for you. One click, no config files, no server setup.

Deploy now β†’
One API to scrape, enrich, and extract the internet. logoOne API to scrape, enrich, and extract the internet.

Context.dev gives your agents a single API to scrape, enrich, and extract live web data β€” no proxies, no parsers, no maintenance.

Start building free β†’
SetupClaw: done-for-you OpenClaw for founders & exec teams logoSetupClaw: done-for-you OpenClaw for founders & exec teams

White-glove OpenClaw for founders and exec teams (4–50+ employees): we install, harden, integrate your tools, and maintain it β€” secured from day one.

Get it set up for you β†’
SEO data APIs for your agent, $1 free credit logoSEO data APIs for your agent, $1 free credit

DataForSEO gives your agent live access to SERP results, keyword data, backlinks, and on-page SEO data through one API. New accounts get a $1 credit, good for up to 20,000 keyword or backlink lookups.

Try DataForSEO free β†’
Reach 47,000+ AI builders

A flat monthly placement in front of developers actively installing AI tools. No lock-in, cancel anytime.

Advertise here β†’

Works with

Claude CodeClaude DesktopCursorVS CodeClineCodex CLIOpenClaw+ any MCP client

Install to Claude Code

This server doesn't publish a one-line install command. Follow the setup in the source repository.

Summary

real-browser-mcp MCP server](https://glama.ai/mcp/servers/ofershap/real-browser-mcp/badges/score.svg)](https://glama.ai/mcp/servers/ofershap/real-browser-mcp) πŸ“‡ 🏠 - MCP server + Chrome extension that gives AI agents control of the user's real browser...

README.md

<p align="center"> <img src="assets/logo.png" alt="Real Browser MCP" width="100" height="100" /> </p>

<h1 align="center">real-browser-mcp</h1>

<p align="center"> <strong>The missing piece in AI coding: your agent can now see your REAL browser.</strong> </p>

<p align="center"> <a href="https://chromewebstore.google.com/detail/real-browser-mcp/fkkimpklpgedomcheiojngaaaicmaidi"><img src="https://img.shields.io/badge/Chrome_Extension-4285F4?style=for-the-badge&logo=googlechrome&logoColor=white" alt="Chrome Extension" /></a> &nbsp; <a href="https://www.npmjs.com/package/real-browser-mcp"><img src="https://img.shields.io/badge/MCP_Server-CB3837?style=for-the-badge&logo=npm&logoColor=white" alt="MCP Server" /></a> &nbsp; <a href="cursor://anysphere.cursor-deeplink/mcp/install?name=real-browser&config=eyJjb21tYW5kIjoibnB4IiwiYXJncyI6WyIteSIsInJlYWwtYnJvd3Nlci1tY3AiXX0="><img src="https://img.shields.io/badge/Add_to_Cursor-6366f1?style=for-the-badge&logo=data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCI+PHBhdGggZD0iTTEyIDJMMiA3bDEwIDUgMTAtNS0xMC01ek0yIDE3bDEwIDUgMTAtNS0xMC01LTEwIDV6TTIgMTJsMTAgNSAxMC01LTEwLTUtMTAgNXoiIGZpbGw9IndoaXRlIi8+PC9zdmc+" alt="Add to Cursor" /></a> &nbsp; <a href="#-teach-your-agent"><img src="https://img.shields.io/badge/🧠_Agent_Rules-22c55e?style=for-the-badge" alt="Agent Rules" /></a> </p>

<p align="center"> <a href="https://github.com/ofershap/real-browser-mcp/actions/workflows/ci.yml"><img src="https://github.com/ofershap/real-browser-mcp/actions/workflows/ci.yml/badge.svg" alt="CI" /></a> <a href="https://www.npmjs.com/package/real-browser-mcp"><img src="https://img.shields.io/npm/v/real-browser-mcp.svg" alt="npm version" /></a> <a href="https://www.npmjs.com/package/real-browser-mcp"><img src="https://img.shields.io/npm/dm/real-browser-mcp.svg" alt="npm downloads" /></a> <a href="https://opensource.org/licenses/MIT"><img src="https://img.shields.io/badge/License-MIT-yellow.svg" alt="License: MIT" /></a> <a href="https://www.typescriptlang.org/"><img src="https://img.shields.io/badge/TypeScript-strict-blue" alt="TypeScript" /></a> </p>

<p align="center"> <img src="assets/demo.gif" alt="Demo" /> </p>

---

You ship a fix. Your agent says "done, please verify." You alt-tab to Chrome, navigate to the page, log in, click around, find the bug.

Your agent just wrote the code. It could also verify it. It already has your browser open right there. It just can't see it.

Now it can.

<p align="center"> <img src="assets/preview.png" alt="Real Browser MCP" width="100%" /> </p>

---

Quick Start

Two parts:

  • MCP server - runs on your machine, talks to your AI agent
  • Chrome extension - sits in your browser, executes the commands

1. Add the MCP server

Cursor (one click):

<img src="https://cursor.com/deeplink/mcp-install-dark.svg" alt="Install in Cursor" height="32" />

Or add manually in Cursor Settings > MCP > "Add new MCP server":

{
  "mcpServers": {
    "real-browser": {
      "command": "npx",
      "args": ["-y", "real-browser-mcp"]
    }
  }
}

<details> <summary>Claude Desktop, Windsurf, or other MCP clients</summary>

Claude Desktop: Edit ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows). Add the same JSON block.

Windsurf: Settings > MCP. Same config.

Any MCP-compatible client works.

</details>

2. Install the Chrome extension

<img src="https://developer.chrome.com/static/docs/webstore/branding/image/iNEddTyWiMfLSwFD6qGq.png" alt="Available in the Chrome Web Store" height="58" />

Or load from source:

git clone https://github.com/ofershap/real-browser-mcp.git
  1. Open chrome://extensions and enable Developer mode (toggle in the top right)
  2. Click Load unpacked and select the extension/ folder from the cloned repo

Click the Real Browser MCP icon in your toolbar.

Green dot = connected. Gray = waiting for server.

Done. Your agent can see your browser.

---

How Others Compare

| | Real Browser MCP | Playwright MCP | Chrome DevTools MCP | |---|---|---|---| | Uses your existing browser | Yes | No, launches new | Partial, needs debug port | | Sessions and cookies | Already there | Fresh profile | Manual setup | | Works behind corporate SSO | Yes | No | Depends | | Setup | Extension + MCP config | Headless browser | Chrome with --remote-debugging-port |

---

🧠 Teach Your Agent

The agent can use all 18 tools out of the box, but it works better when it knows _when_ and _how_ to chain them. A config file teaches the right workflow - snapshot first, then act, then verify.

Run one command:

npx real-browser-mcp --setup cursor

This installs:

  • ~/.cursor/rules/real-browser-mcp.mdc - teaches the snapshot-first workflow, how to handle dropdowns, when to use screenshots vs snapshots
  • ~/.cursor/commands/check-browser.md - adds /check-browser to your Cursor chat

After that, type /check-browser in any chat. Or just say "check the result in my browser" and the agent knows what to do.

<details> <summary>Claude Code setup</summary>

npx real-browser-mcp --setup claude

Adds an AGENTS.md to your project root. Claude Code auto-discovers it.

</details>

See agent-config/ for manual installation or to customize the rules.

---

What It Can Do

18 tools. Grouped by purpose.

See

| Tool | What it does | |------|-------------| | browser_snapshot | Accessibility tree with element refs. Compact mode (default) returns only interactive elements | | browser_screenshot | Capture what's on screen | | browser_text | Extract raw text from page or element | | browser_find | Query elements by CSS selector |

Interact

| Tool | What it does | |------|-------------| | browser_click | Click by ref or CSS selector | | browser_click_text | Click by visible text. Works through React portals and overlays | | browser_type | Type into inputs and contenteditable fields | | browser_press_key | Key combos (Enter, Escape, Ctrl+A) | | browser_scroll | Scroll pages and virtual containers | | browser_hover | Trigger tooltips and dropdowns | | browser_select | Pick from native <select> dropdowns | | browser_wait | Wait for elements to appear or disappear |

Navigate

| Tool | What it does | |------|-------------| | browser_navigate | Go to a URL in the active tab | | browser_tabs | List, create, close, or focus tabs |

Debug

| Tool | What it does | |------|-------------| | browser_console | Console output (log, warn, error) | | browser_network | XHR/fetch requests with status codes | | browser_evaluate | Run JavaScript via Chrome DevTools Protocol | | browser_handle_dialog | Handle alert/confirm/prompt dialogs |

---

Configuration

| Env var | Default | What it does | |---------|---------|-------------| | WS_PORT | 7225 | WebSocket port for extension connection |

Connection drops are handled automatically with exponential backoff (1s to 30s), ping/pong health checks every 10s, and per-tool timeouts (5s for clicks, 60s for navigation).

<details> <summary>Multiple Chrome profiles</summary>

Run two server instances on different ports:

{
  "mcpServers": {
    "browser-work": {
      "command": "npx", "args": ["-y", "real-browser-mcp"]
    },
    "browser-personal": {
      "command": "npx", "args": ["-y", "real-browser-mcp"],
      "env": { "WS_PORT": "9333" }
    }
  }
}

Update the port in each extension popup to match.

</details>

---

<details> <summary><strong>Architecture</strong></summary>

Everything stays on your machine. The extension connects to the MCP server via WebSocket on localhost. No cloud, no proxy, nothing leaves your browser.

real-browser-mcp/
β”œβ”€β”€ mcp-server/          MCP server (npm package, TypeScript)
β”‚   └── src/tools/       One file per tool, registry pattern
β”œβ”€β”€ extension/           Chrome extension (Manifest V3, plain JS)
β”‚   β”œβ”€β”€ background.js    Service worker, WebSocket client, tool handlers
β”‚   β”œβ”€β”€ content.js       Console capture
β”‚   └── popup/           Connection status UI
β”œβ”€β”€ agent-config/        Pre-built configs for Cursor + Claude Code
β”‚   β”œβ”€β”€ cursor/          Rules and commands
β”‚   β”œβ”€β”€ skills/          Browser automation skill
β”‚   └── setup.mjs        One-command installer
└── tests/               Bridge + registry tests

Stack: TypeScript (strict) Β· MCP SDK Β· WebSocket Β· Chrome Extension Manifest V3 Β· Vitest

</details>

<details> <summary><strong>Development</strong></summary>

git clone https://github.com/ofershap/real-browser-mcp.git
cd real-browser-mcp
npm install
npm run build
npm test

| Command | What it does | |---------|-------------| | npm run build | Compile TypeScript | | npm run dev | Watch mode | | npm test | Run tests | | npm run typecheck | Type check without emitting | | npm run setup:cursor | Install Cursor rule + command |

</details>

FAQ

<details> <summary>Does it work with my logged-in sessions?</summary>

That's the whole point. The extension runs inside your actual Chrome - same cookies, same sessions, same local storage. No re-authentication needed.

</details>

<details> <summary>Does it send data anywhere?</summary>

No. The MCP server and extension talk over WebSocket on localhost. Nothing leaves your machine. There's no analytics, no telemetry, no cloud component. Privacy policy.

</details>

<details> <summary>Which AI clients work?</summary>

Any MCP-compatible client. Cursor, Claude Desktop, Claude Code, Windsurf, Cline, and anything else that speaks the MCP protocol.

</details>

<details> <summary>Can I use it with multiple Chrome profiles?</summary>

Yes. Run two MCP server instances on different ports. See Configuration for the setup.

</details>

<details> <summary>How is this different from Playwright MCP or browser-use?</summary>

They launch a new browser instance from scratch - no state, no cookies, no sessions. You have to replay the full login flow every time. This connects to the browser you already have open with everything already loaded.

</details>

---

Contributing

Bug reports, feature requests, and PRs welcome. Open an issue first for larger changes.

Author

![Made by ofershap](https://gitshow.dev/ofershap)

![LinkedIn](https://linkedin.com/in/ofershap) ![GitHub](https://github.com/ofershap)

---

<sub>README built with README Builder</sub>

License

MIT &copy; Ofer Shapira

See related servers & alternatives β†’

Related MCP servers

Browse all β†’

Related guides

Hand-picked reading to help you choose and use Browser & Scraping servers.