MCP Server Studio

Browser Ref MCP MCP server

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

Registry name: io.github.zy2755/browser-ref-mcp

Publisher
zy2755
Runs
Runs locally
Package
npm
Version
0.2.1
Category
Browser & scraping
Updated
2026-12-01

Source code on GitHub

Set up Browser Ref MCP (run locally)

Claude Desktop

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "browser-ref-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "[email protected]"
      ],
      "env": {
        "BROWSER_MCP_CDP_URL": "<BROWSER_MCP_CDP_URL>",
        "BROWSER_MCP_HEADLESS": "<BROWSER_MCP_HEADLESS>",
        "BROWSER_MCP_PROFILE": "<BROWSER_MCP_PROFILE>",
        "BROWSER_MCP_CHANNELS": "<BROWSER_MCP_CHANNELS>"
      }
    }
  }
}

Claude Code

Run in your terminal:

claude mcp add browser-ref-mcp -e BROWSER_MCP_CDP_URL='<BROWSER_MCP_CDP_URL>' -e BROWSER_MCP_HEADLESS='<BROWSER_MCP_HEADLESS>' -e BROWSER_MCP_PROFILE='<BROWSER_MCP_PROFILE>' -e BROWSER_MCP_CHANNELS='<BROWSER_MCP_CHANNELS>' -- npx -y [email protected]

Cursor

Add to .cursor/mcp.json:

{
  "mcpServers": {
    "browser-ref-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "[email protected]"
      ],
      "env": {
        "BROWSER_MCP_CDP_URL": "<BROWSER_MCP_CDP_URL>",
        "BROWSER_MCP_HEADLESS": "<BROWSER_MCP_HEADLESS>",
        "BROWSER_MCP_PROFILE": "<BROWSER_MCP_PROFILE>",
        "BROWSER_MCP_CHANNELS": "<BROWSER_MCP_CHANNELS>"
      }
    }
  }
}

VS Code

Add to .vscode/mcp.json:

{
  "servers": {
    "browser-ref-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "[email protected]"
      ],
      "env": {
        "BROWSER_MCP_CDP_URL": "<BROWSER_MCP_CDP_URL>",
        "BROWSER_MCP_HEADLESS": "<BROWSER_MCP_HEADLESS>",
        "BROWSER_MCP_PROFILE": "<BROWSER_MCP_PROFILE>",
        "BROWSER_MCP_CHANNELS": "<BROWSER_MCP_CHANNELS>"
      }
    }
  }
}

Windsurf

Add to ~/.codeium/windsurf/mcp_config.json:

{
  "mcpServers": {
    "browser-ref-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "[email protected]"
      ],
      "env": {
        "BROWSER_MCP_CDP_URL": "<BROWSER_MCP_CDP_URL>",
        "BROWSER_MCP_HEADLESS": "<BROWSER_MCP_HEADLESS>",
        "BROWSER_MCP_PROFILE": "<BROWSER_MCP_PROFILE>",
        "BROWSER_MCP_CHANNELS": "<BROWSER_MCP_CHANNELS>"
      }
    }
  }
}

Settings

NameRequiredWhat it is
BROWSER_MCP_CDP_URLNoConnect 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_HEADLESSNoRun without a visible browser window (default: headed, so the user can watch and take over).
BROWSER_MCP_PROFILENoBrowser profile directory, keeps logins across sessions (default: ~/.browser-mcp/profile).
BROWSER_MCP_CHANNELSNoComma-separated browser channel fallback chain (default: chrome,msedge).

More browser & scraping MCP servers