Skip to main content
Glama
Browser MCP Server

Browser MCP Server

browser_connect

Connect to Chromium, Firefox, or WebKit browsers with device emulation, proxy, and geolocation options; use a CDP URL to reuse existing Chrome sessions with logins intact.

Instructions

Connect to a browser. Supports Chromium/Firefox/WebKit, device emulation, proxy, geolocation. Use cdpUrl to reuse existing Chrome sessions with all logins intact.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "browser_connect"
  }
}

Input Schema

NameRequiredDescriptionDefault
cdpUrlNoCDP URL, e.g. http://localhost:9222
deviceNoDevice preset (e.g. 'iPhone 15', 'Pixel 7')
channelNoUse installed browser: chrome, msedge, chrome-beta, msedge-dev
headlessNoRun headless (default: false)
proxyServerNoProxy URL (http://proxy:8080 or socks5://proxy:1080)
userDataDirNoChrome user-data-dir for session reuse
browserEngineNoBrowser engine
viewportWidthNo
executablePathNoChrome/Edge executable path
viewportHeightNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

B3.2/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are supplied, so the description carries the full behavioral burden and largely does not meet it. It never says whether this launches a new browser process or attaches to an existing one, whether it is idempotent or what happens if a session is already connected, whether cookies/windows are shared across calls, or what the call returns. Only the default for headless is documented, and that lives in the schema, not the description.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two compact sentences, front-loaded with the action and followed by the capability list and the key usage hint. No filler; the only inefficiency is that the capability enumeration partly duplicates what the schema already exposes as parameters.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a ten-parameter, zero-required, no-annotation, no-output-schema tool, the description covers engines and one reuse path but leaves the launch-vs-attach model, defaults, and return value unexplained. It is enough to attempt a call but not enough to predict its side effects or outcome.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 80%, so the baseline is 3. The description does add real meaning for cdpUrl (reusing existing sessions with logins intact), which the schema entry alone does not convey, but it adds nothing for channel, userDataDir, executablePath, or viewportWidth/viewportHeight (the latter two have no schema description at all). It also mentions geolocation support even though no geolocation parameter exists in the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Connect to a browser') and enumerates the capabilities it covers (Chromium/Firefox/WebKit, device emulation, proxy, geolocation). It is clearly distinguishable from siblings like close_browser or get_browser_info, though it does not explicitly name them.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

One concrete usage hint is given: use cdpUrl to reuse an existing Chrome session with logins intact. There is no statement of when not to use it, no prerequisites (does a browser need to be installed?), and no guidance on choosing between the ten optional parameters or relating this call to sibling tools.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.