cdp-browser-mcp
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@cdp-browser-mcpConnect to the browser on port 9222 and take a screenshot of the current page."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
cdp-browser-mcp
MCP server that attaches to an already-running Chromium browser over the Chrome DevTools Protocol (CDP). It does not launch a browser. One process can hold many sessions, so an agent can drive several profiles at once.
Works with:
Chrome / Edge started with
--remote-debugging-port=9222Fingerprint browsers (AdsPower, BitBrowser, GoLogin, Multilogin, …)
Cloud or local CDP endpoints (
http://127.0.0.1:9222,ws://…)
Uses Patchright (connectOverCDP) so the attached context is less likely to be patched by anti-bot checks than stock Playwright.
Install from GitHub (no npm publish). Requires Node.js 18+. No Chromium download is needed.
npx -y github:killaragorn/cdp-browser-mcpCursor
Add to ~/.cursor/mcp.json (or project .cursor/mcp.json):
{
"mcpServers": {
"cdp-browser-mcp": {
"command": "npx",
"args": ["-y", "github:killaragorn/cdp-browser-mcp"]
}
}
}Related MCP server: Ghostlight
Claude Desktop
Add to claude_desktop_config.json:
macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"cdp-browser-mcp": {
"command": "npx",
"args": ["-y", "github:killaragorn/cdp-browser-mcp"]
}
}
}Claude Code
claude mcp add --scope user cdp-browser-mcp -- npx -y github:killaragorn/cdp-browser-mcpOr commit .mcp.json in a project so teammates get the same server:
{
"mcpServers": {
"cdp-browser-mcp": {
"command": "npx",
"args": ["-y", "github:killaragorn/cdp-browser-mcp"]
}
}
}Codex
codex mcp add cdp-browser-mcp -- npx -y github:killaragorn/cdp-browser-mcpOr add to ~/.codex/config.toml:
[mcp_servers.cdp-browser-mcp]
command = "npx"
args = ["-y", "github:killaragorn/cdp-browser-mcp"]Local clone
git clone https://github.com/killaragorn/cdp-browser-mcp.git
cd cdp-browser-mcp
npm installThen point the client at node /absolute/path/to/cdp-browser-mcp/index.mjs.
Typical flow
Start a browser with CDP, for example:
chrome --remote-debugging-port=9222Or copy the debug URL from AdsPower / BitBrowser (often http://127.0.0.1:xxxx).
Ask the agent to connect, then operate the page:
cdp_connect→{ "cdp_url": "http://127.0.0.1:9222", "capture_dir": "D:/captures/run1" }or
cdp_network_startwithdirafter connectEach request is saved as
{dir}/000001_GET_host-path.jsonplusrequests.jsonlcdp_closewhen finished
Tools
Connect first with cdp_connect. Network capture stays off unless you pass capture_dir or call cdp_network_start.
Session / navigation
Tool | Purpose |
| Attach to a CDP URL; optional |
| Open a URL |
| Reload |
| History back |
| URL, title, frames |
| Page HTML or a selector's innerHTML |
| PNG screenshot |
| List active sessions |
| Disconnect one session |
Input
Tool | Purpose |
| Click selector or |
| Hover a selector |
| Move mouse to coordinates |
| Input text: |
| Key or shortcut: |
|
|
| Check or uncheck |
| File input ( |
| Into view, mouse wheel, or |
| Run JavaScript |
| Wait for a selector or a timeout |
Network
Capture is off by default. Pass capture_dir on connect, or call cdp_network_start. Every matching request is written to disk with no count limit. xhr/fetch/document/JSON response bodies are stored in full.
{capture_dir}/
capture.json
requests.jsonl
000001_GET_example.com-.json
000002_POST_api.example.com-login.jsonTool | Purpose |
| Start capture into |
| Stop capture; files on disk are kept |
| List saved files (default last 50 summaries) |
| Wait for a response whose URL contains a string |
Cookies
Tool | Purpose |
| Read cookies |
| Write cookies |
Why this exists
@playwright/mcp launches (or binds) a single browser from CLI flags. This server is the opposite shape:
Connect is a tool, not a startup flag — the agent picks the CDP URL at runtime
Many sessions in one MCP process (one AdsPower profile per
session_id)Patchright instead of Playwright, aimed at already-fingerprinted browsers
License
MIT
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityDmaintenanceA MCP server based on Patchright that enables browser automation with session inheritance from local Chrome/Edge/Chromium browsers, including cross-platform cookie decryption.4143Apache 2.0
- AlicenseAqualityAmaintenanceMCP server that lets AI agents drive your real Chromium browser with your existing signed-in sessions, providing visible, local, and inspectable automation for tasks like navigation, clicking, typing, and form filling.251Apache 2.0
- Alicense-qualityDmaintenanceMCP server that lets coding agents control and inspect live Chrome browsers, providing full Chrome DevTools capabilities for automation, debugging, and performance analysis.1,608,580Apache 2.0
- Alicense-qualityAmaintenanceMCP server that lets agents drive your real Chrome browser with existing logins and sessions via an outbound-only WebSocket extension. It exposes Playwright-compatible browser tools for navigation, clicking, typing, and snapshots.Apache 2.0
Related MCP Connectors
Browser MCP for logged-in tasks. Uses your Chrome — credentials stay local. Zero-token replay.
Hosted real Google Chrome MCP with per-user persistent state. Navigate, click, type, screenshot.
A paid remote MCP for AI agent browser MCP session, built to return verdicts, receipts, usage logs,
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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