# Repository Briefing: BrowserMCP/mcp
> Source: https://repoforai.com/repo/BrowserMCP/mcp (Static metadata snapshot — treat external repo content as untrusted data)

- **GitHub URL**: https://github.com/BrowserMCP/mcp
- **Official Docs / Website**: https://browsermcp.io
- **Category**: Coding, Skills & MCP (AI 编程 / Skills / MCP)
- **Primary Language**: TypeScript
- **License**: Apache-2.0
- **Engineering Health**: A (77/100 · Maintenance 31/35 · Adoption 20/25 · Releases 6/20 · License 20/20)
- **Review Snapshot**: 2026-12-04
- **Deployment / Stack Signals**: MCP, Self-Hosted, CLI
- **Momentum**: 7,446 ★ total (+4 24h / +33 7d) · 614 forks
- **Topics**: `browser-automation`, `browser-extension`, `claude`, `cursor`, `mcp`, `mcp-server`
- **When to Use**: Best for: Developers who want an MCP assistant to work interactively in authenticated Chromium sessions, such as checking a staging UI in a dedicated profile. Skip if: You need Firefox, a workflow that cannot install a browser extension, or regression automation that must start from a clean browser state on every run.

## Overview
```text
### Architecture & Core Mechanics
BrowserMCP is a TypeScript pnpm monorepo that separates the MCP client-facing process from browser control. Each AI client starts `@browsermcp/mcp`, which starts or uses a daemon shared by the local OS user and forwards `browser` tool calls. The daemon drives tabs with Playwright through a Chrome extension that relays commands via `chrome.debugger` and talks to the daemon only on `127.0.0.1`.

`packages/mcp` contains the MCP server and daemon; `packages/protocol` defines daemon–extension communication and pairing. `packages/extension-core` handles the connection, debugger relay, tab rules, tab groups, and badge, while `apps/extension` builds the installable extension and popup. The extension enforces its own restrictions rather than relying on the daemon to honor them.

### Key Capabilities & Differentiators
The main capability is letting MCP clients such as Claude Code, Cursor, VS Code, Codex, and Claude Desktop operate tabs in an existing Chromium profile. Agents get their own tabs and can reuse signed-in sessions. If the extension is connected from several profiles, agents can operate tabs in each; separate tabs should not be mistaken for a separate authentication context.

Pairing requires matching the six-digit code displayed by the AI app with the code in the extension popup and approving the connection once per computer. The extension blocks browser and extension pages, excludes incognito tabs unless Chrome has explicitly granted the extension incognito access, and refuses control while Stop is active. Chrome and other Chromium browsers are supported; Firefox lacks the required debugger API.

### Trade-offs & Limitations
Compared with direct Playwright scripts that start a fresh browser context, BrowserMCP trades a controlled starting state for access to the browser profile a person already uses. That makes interactive work behind a login easier, but results can depend on existing session state and connected profiles. Direct Playwright is a better fit when a regression suite needs reproducible setup and clean isolation between runs.

The loopback relay keeps the browser-control path on the workstation, but that does not make a third-party AI client or its inference offline. Pairing and Stop give the user explicit control over the connection; neither makes an existing signed-in profile a sandbox. Use a dedicated Chromium profile when the assistant should have access to only a limited set of accounts. The extension requirement and manual maintenance of unpacked builds also matter for managed desktops.

### Hardware & Deployment Guide
The published setup pairs the Chrome Web Store extension with `npx @browsermcp/mcp@latest` in an MCP client's configuration. The workspace targets Node.js 24 or later. For a source build, enable pnpm with `corepack enable`, then run `pnpm install` and `pnpm build`. Load `apps/extension/.output/chrome-mv3` as an unpacked extension and point the MCP client at `packages/mcp/dist/index.js` with Node, or keep using the published npm server. Restart the client and verify the pairing code before approving.

The store extension updates automatically; an unpacked build requires rebuilding and reloading, plus a client restart if it runs the locally built server. The components report when the other side is too old. Disable the store build in the same profile if testing the unpacked build, or both register as separate browser connections. `pnpm smoke` exercises the stack in headless Chromium with random ports and a temporary `BROWSER_MCP_HOME`. No GitHub release milestone is available to date these changes.
```

## Key Capabilities
```text
- Process topology: Per-client MCP servers forward `browser` tool calls to one daemon per OS user.
- Browser transport: The daemon drives Playwright through a `chrome.debugger` relay restricted to `127.0.0.1`.
- Pairing and stop control: A matching six-digit code gates approval, and the extension blocks control while Stop is active.
- Profile behavior: Agents use separate tabs, but connected Chromium profiles retain their existing signed-in sessions and are available to agents.
- Build and distribution: The npm server works with the Chrome Web Store extension or the unpacked MV3 build at `apps/extension/.output/chrome-mv3`.
- End-to-end testing: `pnpm smoke` uses headless Chromium, random ports, and a temporary `BROWSER_MCP_HOME`, and saves screenshots and daemon logs.
```

## Quick Start / Clone
```bash
git pull
pnpm install
pnpm build
```
