Koskamo

browser-ref-mcp

A reliable browser-control MCP server for AI agents that enables clicking by reference rather than brittle CSS selectors. It features self-healing sessions, semantic snapshots with [eN] refs, and handles shadow DOM and cross-origin iframes. It drives existing Chrome or Edge browsers via playwright-core without requiring a browser download.

Package and access

Local package with source-attributed installation metadata. Koskamo does not execute packages during review.

browser-ref-mcp logo, by zy2755Community listingLocal stdioSource reviewed; not executedPublished by zy2755
Vendor documentation

What you can do with it

  • Click elements by reference instead of CSS selectors
  • Handle self-healing sessions when browser crashes
  • Navigate to URLs and interact with web pages
  • Flatten shadow DOM and cross-origin iframes into one tree

Source and maintenance

Community listingRegistry 0.2.0
Maintenance checked

Packages and installation

Source-provided package data. Koskamo has not executed or live-probed this package.

browser-ref-mcp 0.2.0

npm
browser-ref-mcp package definition
{
  "version": "0.2.0",
  "transport": "stdio",
  "identifier": "browser-ref-mcp",
  "registryType": "npm",
  "environmentVariables": [
    {
      "name": "BROWSER_MCP_CDP_URL",
      "format": "string",
      "description": "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."
    },
    {
      "name": "BROWSER_MCP_HEADLESS",
      "format": "string",
      "description": "Run without a visible browser window (default: headed, so the user can watch and take over)."
    },
    {
      "name": "BROWSER_MCP_PROFILE",
      "format": "string",
      "description": "Browser profile directory, keeps logins across sessions (default: ~/.browser-mcp/profile)."
    },
    {
      "name": "BROWSER_MCP_CHANNELS",
      "format": "string",
      "description": "Comma-separated browser channel fallback chain (default: chrome,msedge)."
    }
  ]
}

Tools

Reported by the attributed source; not independently observed by Koskamo.

No tool definitions available.

Connect from your client

Each snippet configures the same source-provided package; replace placeholders before use.

This server is operated by the named third party. Listing and endpoint checks are not an endorsement or a security audit. Review the operator's permissions, terms, and data handling before connecting. How listings are checked and corrected.

Cursor

Merge this local stdio configuration, replace every placeholder environment value, and restart Cursor. Koskamo has not executed this package.
Cursor configuration
{
  "mcpServers": {
    "browser-ref-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "browser-ref-mcp@0.2.0"
      ],
      "env": {
        "BROWSER_MCP_CDP_URL": "<YOUR_BROWSER_MCP_CDP_URL>",
        "BROWSER_MCP_HEADLESS": "<YOUR_BROWSER_MCP_HEADLESS>",
        "BROWSER_MCP_PROFILE": "<YOUR_BROWSER_MCP_PROFILE>",
        "BROWSER_MCP_CHANNELS": "<YOUR_BROWSER_MCP_CHANNELS>"
      }
    }
  }
}

Cline

Merge this local stdio configuration, replace every placeholder environment value, and restart Cline. Koskamo has not executed this package.
Cline configuration
{
  "mcpServers": {
    "browser-ref-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "browser-ref-mcp@0.2.0"
      ],
      "env": {
        "BROWSER_MCP_CDP_URL": "<YOUR_BROWSER_MCP_CDP_URL>",
        "BROWSER_MCP_HEADLESS": "<YOUR_BROWSER_MCP_HEADLESS>",
        "BROWSER_MCP_PROFILE": "<YOUR_BROWSER_MCP_PROFILE>",
        "BROWSER_MCP_CHANNELS": "<YOUR_BROWSER_MCP_CHANNELS>"
      }
    }
  }
}

VS Code

Merge this local stdio configuration, replace every placeholder environment value, and restart VS Code. Koskamo has not executed this package.
VS Code configuration
{
  "servers": {
    "browser-ref-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "browser-ref-mcp@0.2.0"
      ],
      "env": {
        "BROWSER_MCP_CDP_URL": "<YOUR_BROWSER_MCP_CDP_URL>",
        "BROWSER_MCP_HEADLESS": "<YOUR_BROWSER_MCP_HEADLESS>",
        "BROWSER_MCP_PROFILE": "<YOUR_BROWSER_MCP_PROFILE>",
        "BROWSER_MCP_CHANNELS": "<YOUR_BROWSER_MCP_CHANNELS>"
      }
    }
  }
}

Claude Desktop

Merge this local stdio configuration, replace every placeholder environment value, and restart Claude Desktop. Koskamo has not executed this package.
Claude Desktop configuration
{
  "mcpServers": {
    "browser-ref-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "browser-ref-mcp@0.2.0"
      ],
      "env": {
        "BROWSER_MCP_CDP_URL": "<YOUR_BROWSER_MCP_CDP_URL>",
        "BROWSER_MCP_HEADLESS": "<YOUR_BROWSER_MCP_HEADLESS>",
        "BROWSER_MCP_PROFILE": "<YOUR_BROWSER_MCP_PROFILE>",
        "BROWSER_MCP_CHANNELS": "<YOUR_BROWSER_MCP_CHANNELS>"
      }
    }
  }
}

Let your agent find its tools

Find servers like browser-ref-mcp from your agent. Add Koskamo once to search the index for endpoints, access requirements, and client setup. Public discovery needs no key.