Skip to main content
Glama
killaragorn

cdp-browser-mcp

by killaragorn

cdp_connect

Connect to an existing Chromium browser via CDP for automation and optionally capture network requests to JSON files.

Instructions

Attach to an already-running Chromium browser via CDP (does not launch a browser). Accepts HTTP (http://127.0.0.1:9222) or WebSocket URLs. Pass capture_dir to start saving every matching request as JSON into that folder (no count limit). Returns session_id for later tools.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
cdp_urlYesCDP WebSocket or HTTP URL, e.g. "ws://127.0.0.1:9222" or "http://127.0.0.1:9222"
capture_dirNoIf set, start network capture and write each request to this directory as JSON. Omit to leave capture off.
capture_methodNoOnly save this HTTP method, e.g. POST
capture_url_containsNoOnly save requests whose URL contains this string
capture_resource_typeNoOnly save this Playwright resource type, e.g. xhr, fetch, document
Behavior4/5

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

With no annotations provided, the description carries the full burden of disclosing behavior. It mentions the critical non-launching behavior, the capture_dir side effect (starting to save requests with no count limit), and the return of session_id. It does not detail failure modes or network interaction specifics, but the most important behavioral traits are disclosed.

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

Conciseness5/5

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

The description is three sentences, front-loaded with the primary purpose. Each sentence adds value: the core action, URL format, capture behavior, and return value. No redundant words or filler.

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

Completeness4/5

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

For a connection tool with 5 parameters and no output schema, the description adequately explains the main flow: connect, optionally capture, and receive a session_id for later tools. It does not elaborate on error handling or the exact mechanics of the capture filters, but the schema covers those details. The description is sufficient for an agent to understand the tool's role.

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

Parameters4/5

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

The schema covers 100% of parameters with descriptions, providing a baseline of 3. The tool description adds meaningful context by explaining that cdp_url accepts HTTP or WebSocket formats and that capture_dir triggers continuous JSON saving with no count limit. This extra guidance elevates the score above baseline.

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

Purpose5/5

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

The description clearly states the tool's function: attaching to an already-running Chromium browser via CDP, explicitly noting it does not launch a browser. It distinguishes from siblings by focusing on connection/setup rather than navigation or DOM actions, and specifies the return value (session_id).

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

Usage Guidelines4/5

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

The description gives clear context: use when a browser is already running and needs to be controlled via CDP. It explicitly excludes launching a browser, providing a 'when not to use' cue. However, it does not name alternative tools for launching or other connection methods, so it stops short of full comparative guidance.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/killaragorn/cdp-browser-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server