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

MCP server that gives AI coding assistants direct access to the browser — navigate, click, fill forms, run JavaScript, take screenshots, and read page content.

README.md

Browser Bridge MCP

![npm version](https://www.npmjs.com/package/mcp-browser-bridge)

MCP server that gives AI coding assistants direct control of a real Chrome browser — navigate, click, fill forms, run JavaScript, take screenshots, and read page content. It exists so your assistant can see what you see, instead of you alt-tabbing to copy-paste errors and describe UI state in words.

MCP Client ←(stdio)→ mcp-browser-bridge ←(WebSocket :7483)→ Browser Extension ←(Chrome APIs)→ Browser

Works with any MCP-compatible client: Claude Code, Cursor, Windsurf, Cline, and others.

Quick Start

1. Install the extension

Load it as an unpacked extension:

  1. Download or clone this repo.
  2. Open chrome://extensions and enable Developer mode.
  3. Click Load unpacked and select the extension/ folder.

Works in any Chromium browser: Chrome, Brave, Edge, Arc, Vivaldi, Opera.

2. Add to your MCP client

<details> <summary><strong>Claude Code</strong></summary>

Run: ``sh claude mcp add browser-bridge -- npx -y mcp-browser-bridge ``

Or add to .mcp.json: ``json { "mcpServers": { "browser-bridge": { "command": "npx", "args": ["-y", "mcp-browser-bridge"] } } } `` </details>

<details> <summary><strong>Cursor</strong></summary>

Add to .cursor/mcp.json: ``json { "mcpServers": { "browser-bridge": { "command": "npx", "args": ["-y", "mcp-browser-bridge"] } } } `` </details>

<details> <summary><strong>Windsurf</strong></summary>

Add to ~/.codeium/windsurf/mcp_config.json: ``json { "mcpServers": { "browser-bridge": { "command": "npx", "args": ["-y", "mcp-browser-bridge"] } } } `` </details>

<details> <summary><strong>Cline</strong></summary>

In the Cline pane, open MCP ServersConfigure MCP Servers to edit cline_mcp_settings.json, and add: ``json { "mcpServers": { "browser-bridge": { "command": "npx", "args": ["-y", "mcp-browser-bridge"] } } } `` </details>

<details> <summary><strong>Other MCP clients</strong></summary>

Use npx -y mcp-browser-bridge as the server command in your client's MCP configuration. The server communicates over stdio. </details>

3. Verify

Start your MCP client. The extension popup should show a green Connected indicator. Call the browser_status tool to confirm.

Available Tools

All tools accept an optional tabId parameter. When omitted, they target the active tab.

| Tool | Description | |------|-------------| | browser_status | Check if the extension is connected and get active tab info | | browser_navigate | Navigate a tab to a URL | | browser_screenshot | Capture a screenshot of the visible area of a tab | | browser_evaluate | Execute JavaScript in a tab and return the result | | browser_click | Click an element by CSS selector | | browser_fill | Fill a form field by CSS selector (React-compatible) | | browser_get_content | Get the text or HTML of a page or element | | browser_get_tabs | List all open browser tabs | | browser_get_console | Get captured console log entries from a tab | | browser_wait_for | Wait for a CSS selector to appear on the page | | browser_send_message | Send a custom message to the extension |

Included Prompts

The server ships two MCP prompts that provide guided workflows to any connected client:

| Prompt | Description | |--------|-------------| | browse | General-purpose browser interaction — navigating, clicking, filling forms, screenshotting, running JS. Accepts an optional task argument. | | qa-runner | Structured QA checklist execution — drives the browser through test scenarios defined in markdown and reports pass/fail results. Accepts an optional checklist path. |

In Claude Code, these appear as slash commands: /browser-bridge:browse and /browser-bridge:qa-runner.

Configuration

The WebSocket port defaults to 7483. To change it:

  • Server side: Set the BRIDGE_WS_PORT environment variable in your MCP config.
  • Extension side: Change the port in the extension popup and click Reconnect.

Security

  • WebSocket binds to 127.0.0.1 only — no network exposure.
  • Connections restricted to browser extension origins.
  • Single extension client at a time.

Troubleshooting

Extension shows "Disconnected" Check that the MCP server is running and the port is free: ```sh

macOS/Linux

lsof -i :7483

Windows

netstat -aon | findstr :7483 ```

Tools return "No extension connected" Open the extension popup and click Reconnect.

Screenshots fail The target tab must be visible and focused. Background or minimized tabs cannot be captured.

browser_evaluate returns unexpected results Results must be JSON-serializable. Promises return {} — use synchronous expressions or await inside an IIFE and return a plain value.

Development

git clone https://github.com/adbarc92/mcp-browser-bridge.git
cd mcp-browser-bridge
npm install
npm run build
npm test                 # 57 tests via Vitest

Load the extension locally via chrome://extensionsLoad unpacked → select extension/.

The repo includes a .mcp.json configured for local development.

License

MIT

See related servers & alternatives →

Related MCP servers

Browse all →

Related guides

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