browser-ref-mcp

v0.2.1
io.github.zy2755/browser-ref-mcp Checked 3 days ago Published 4 days ago

Reliable browser-control MCP server for AI agents: click by ref, self-healing sessions.

Values you need

VariableWhat it is
BROWSER_MCP_CDP_URLoptional 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_HEADLESSoptional Run without a visible browser window (default: headed, so the user can watch and take over).
BROWSER_MCP_PROFILEoptional Browser profile directory, keeps logins across sessions (default: ~/.browser-mcp/profile).
BROWSER_MCP_CHANNELSoptional 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.1
Add 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

  1. 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).
  2. Restart or reload the client so it starts the server.
  3. 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, ….
  4. 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