browser-ref-mcp
v0.2.1Reliable browser-control MCP server for AI agents: click by ref, self-healing sessions.
Values you need
| Variable | What it is | |
|---|---|---|
BROWSER_MCP_CDP_URL | optional | Connect to a browser already running with a debug port, e.g. http://127.0.0.1:9222. Leave unset to launch your own Chrome/Edge. |
BROWSER_MCP_HEADLESS | optional | Run without a visible browser window (default: headed, so the user can watch and take over). |
BROWSER_MCP_PROFILE | optional | Browser profile directory, keeps logins across sessions (default: ~/.browser-mcp/profile). |
BROWSER_MCP_CHANNELS | optional | Comma-separated browser channel fallback chain (default: chrome,msedge). |
npm (npx) discovery passed
Requires Node.js 18+
Run in a terminal
claude mcp add browser-ref-mcp -- npx -y browser-ref-mcp@0.2.1Add to
claude_desktop_config.json{
"mcpServers": {
"browser-ref-mcp": {
"args": [
"-y",
"browser-ref-mcp@0.2.1"
],
"command": "npx"
}
}
}Add to
~/.cursor/mcp.json{
"mcpServers": {
"browser-ref-mcp": {
"args": [
"-y",
"browser-ref-mcp@0.2.1"
],
"command": "npx"
}
}
}Add to
.vscode/mcp.json{
"servers": {
"browser-ref-mcp": {
"args": [
"-y",
"browser-ref-mcp@0.2.1"
],
"command": "npx",
"type": "stdio"
}
}
}Add to
~/.codex/config.toml[mcp_servers.browser-ref-mcp]
command = "npx"
args = ["-y", "browser-ref-mcp@0.2.1"]For AI agents
- Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
- Restart or reload the client so it starts the server.
- Verify: the server should expose these tools: browser_navigate, browser_snapshot, browser_click, browser_type, browser_press_key, browser_select_option, browser_hover, browser_scroll, ….
- If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.
Machine-readable: install.md · manifest.json