
A Model Context Protocol (MCP) server for controlling Chrome with debugging capabilities, userscript injection, and extension support.

An MCP server written in Rust that lets AI agents control, automate, and debug Chromium-based browsers through the Chrome DevTools Protocol, including browser lifecycle, tabs, network inspection, and live debugging.
MCP server for controlling and debugging Chromium browsers is cataloged as an MCP server attributed to raultov. An MCP server written in Rust that lets AI agents control, automate, and debug Chromium-based browsers through the Chrome DevTools Protocol, including browser lifecycle, tabs, network inspection, and live debugging. It is categorized under browser automation. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.
Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.
Catalog license label: MIT License. Check the source repository's current license and terms before using, modifying or distributing this software.
Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.
No reviewed records to display. This does not establish that upstream lacks this capability.
No reviewed records to display. This does not establish that upstream lacks this capability.
No reviewed records to display. This does not establish that upstream lacks this capability.
Email delivery is not connected. This page does not collect email addresses or create subscriptions.
Browse the registry for current listings instead.
Reviews for MCP server for controlling and debugging Chromium browsers are not available yet
Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.
No. By default it launches Chrome with a fresh, temporary profile that is independent of the user's main browser profile and is removed when the browser stops.
With the --enable-webmcp flag, the server exposes webmcp_* tools that list and invoke tools exposed by the current page, and enables Chromium's WebMCP feature switches.
README.md · ab7eb152a69f · Fetched 2026-11-13 12:58:36 UTC
Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.
Showing the last retrieved documentation snapshot; check the source for current changes.
[!WARNING] Deprecated. chrome-debug-mcp is no longer maintained. Its successor is browser-control-mcp, which started from this code and adds Firefox, several browsers at once, frames of another origin and many fixes. Version 1.5.6 is the last one with changes; 1.5.7 only adds this notice.
Switch your MCP configuration to it:
npx -y @raultov/browser-control-mcp,brew install raultov/tap/browser-control-mcporcargo install browser-control-mcp.
chrome-debug-mcp is an asynchronous Rust-based Model Context Protocol (MCP) server that allows AI agents and Large Language Models to natively control, automate, and debug Chromium-based browsers via the Chrome DevTools Protocol (CDP). Written in Rust for a single, dependency-free binary — but installed like any other MCP server: npx -y @raultov/chrome-debug-mcp, Homebrew, or a one-line installer. No Rust toolchain required.
Using cdp-browser-lite underneath (which itself re-exports the cdp-lite client), this MCP server directly hooks into the browser avoiding heavy abstractions, enabling live-debugging sessions directly from your editor or chat-interface. Starting from v0.2.0, it can also manage the Chrome process lifecycle automatically.
This server natively implements a suite of tools categorized by CDP domains and native process management:
🛡️ Privacy & Security
NetworkState automatically caps network requests at 1,000 requests per navigation and retains up to 3 top-level navigations rotated on Page.frameNavigated. WebSocket frames are capped at 500 per connection, and console logs at 1,000 entries.ListenerHandles) and automatically aborted when tabs are closed or browser connections reset.list_instances reports detected browser_version data via Browser.getVersion and appends warnings if Chrome major version is below 120.--allow-cookie-import): When started with the --allow-cookie-import flag, the server allows tools (navigate, open_instance, restart_chrome) to accept copy_cookies: true to seed the isolated ephemeral profile with your real Chrome session cookies.
copy_cookies: true.v11 decrypted via desktop keyring). Imports os_crypt.selected_backend to prevent silent decryption failures.v10 decrypted via Chrome binary ACL).v10/v20 via DPAPI/App-Bound Encryption in os_crypt).navigate is called with copy_cookies: true on an already-running instance, it returns an error detailing all open tabs and requires confirm_restart: true before restarting the instance with the seeded cookies.Login Data) are never copied.--user-profile flag to launch Chrome using your existing system profile. This is useful when you want the LLM to work within your active sessions (cookies, saved logins, etc.) without having to re-authenticate on every site. Use with caution as this provides the LLM access to your personal browser data.
--user-profile: Due to Chrome's singleton architecture, if your browser is already open, it will delegate the request and fail to open the debugging port. You must either close all existing Chrome instances before starting the MCP, or start your browser manually with the --remote-debugging-port=9222 flag.🚀 Chrome Instance & Tab Management
Multi-Instance Support: Spawns and controls multiple concurrent, independent Chrome processes on dynamic ports, each with its own isolated profile directory. Limit the number of instances using the --max-instances flag.
Instance Registry Tools: Use open_instance, list_instances, and close_instance to create, audit, and clean up additional instances. All existing tools accept an optional instance_id to route commands to the targeted browser.
Multi-Tab Support (New): Controls multiple concurrent tabs within a single Chrome instance, multiplexing the event streams and commands over a single WebSocket connection.
window.open()) are automatically discovered, attached, and registered in the session's tab registry.Tab Registry Tools (New):
open_tab — Opens a new tab, optionally with a custom label and target URL. Returns JSON with the tab_id to reuse in other tools.list_tabs — Lists all open and registered tabs for the instance as JSON (tab_id, label, target_id, url) plus the currently active tab. When no tabs are registered, tools fall back to the instance's default single-tab connection.close_tab — Closes a specific tab by ID and cleans up its cache state. Returns the new active tab.switch_tab — Changes the default active tab used when tab_id is omitted in tool calls, and optionally brings it to the foreground.LLM-Friendly Interface: The lifecycle tools (open_instance, close_instance, open_tab, list_tabs, switch_tab, close_tab) return structured JSON so agents can chain calls without regex-parsing prose, and their descriptions follow the standard MCP template (side effects, prerequisites, returns, alternatives) so models rank them correctly.
Target Routing (New): All tab-scoped tools accept an optional tab_id parameter to target commands and retrieve cache state from a specific tab. If omitted, the default active tab is targeted.
Isolated Profiles: Launches Chrome using a fresh, temporary profile by default, ensuring it doesn't share cookies, passwords, or session data with your main browser.
User Profile Support: Optionally use --user-profile to leverage your existing browser sessions and cookies.
Dynamic Port Management: Automatically detects if the default port (9222) is in use.
chrome-debug-mcp instance), it automatically attaches to it instead of spawning a new one.Docker & Headless Support: Full compatibility with Docker environments. Use the --headless flag to run Chrome without a GUI inside containers.
Remote/Host Connection: Use the --host argument to connect to a Chrome instance running on a different machine or the host machine (e.g., --host host.docker.internal from inside a container).
Optional Automation Infobar: Add the --enable-automation flag to explicitly show the native "Chrome is being controlled by automated test software" message. By default, this is disabled for stealthier interaction.
Proxy Support: restart_chrome now accepts an optional proxy_server argument to launch Chrome routing traffic through a proxy.
Auto-Launch: Automatically detects if Chrome is running on the specified port. If not, it spawns a new instance with the required flags.
restart_chrome: Restarts the managed Chrome instance.
Capability Presets: restart_chrome accepts an optional features array so a client can opt into extra browser capabilities per restart. It is a closed set — arbitrary Chrome flags are deliberately not accepted, to keep the tool from becoming a command line injection point:
WEBGL_SOFTWARE — forces SwiftShader software WebGL (--use-gl=angle, --use-angle=swiftshader, --enable-unsafe-swiftshader), for GPU-less environments such as containers.Presets apply to the instance started by that call; a later restart_chrome that omits features clears them, mirroring how proxy_server behaves.
stop_chrome: Shuts down the managed Chrome instance gracefully (SIGTERM/SIGINT with fallback to SIGKILL).
Robust Lifecycle: Fixed issues with dangling Chrome processes. Ephemeral profiles are deleted on stop, and cdp-browser-lite sweeps orphaned profile dirs left behind by abrupt kills; the "Chrome didn't shut down correctly" restore bubble is suppressed via launch flags and profile patching.
⚠️ Behaviour change: Managed Chrome instances are now terminated when the MCP server process exits (including crashes). Previously a managed Chrome survived a server crash and was re-attached on restart; from now on it is killed. Attached (user-started) Chrome instances are never killed.
🔐 Proxy Authentication
enable_proxy_auth: Automatically handles proxy authentication challenges by hooking into the Fetch CDP domain and supplying user-provided credentials. Exposed only when the server is started with --proxy-server.Document requests to prevent breaking background requests.http://api.ipify.org?format=json. Can use credentials passed via --proxy-username/--proxy-password or in tool arguments.🖱️ User Input
click_element: Simulates a native mouse click on a specific element by using a CSS selector. It calculates the center coordinates of the element and dispatches CDP mouse events directly.fill_input: Fills an input field in the DOM with specified text. It focuses the element via CSS selector and then uses native CDP Input.insertText.scroll: Scrolls the page by pixels, viewport heights (pages), or to a specific element. Essential for interacting with lazy-loaded content or infinite scrolling.📡 Network Inspection
get_network_logs: Retrieve intercepted network requests (REST/HTTP) and WebSocket frames.🪵 Console & Errors
get_console_logs: Retrieve console logs from the browser. This includes console.log/warn/error calls, exceptions, and network errors. Crucial for troubleshooting page scripts and errors. Includes optional log level filtering and a clear flag to manage state efficiently.⚡ Performance & Profiling
get_performance_metrics: Retrieve run-time performance metrics from the browser (e.g., JS heap size, DOM nodes, layout duration). Useful for getting a quick snapshot of the page's memory and computational overhead.profile_page_performance: Record and analyze a performance trace of the page. It automatically calculates Core Web Vitals (FCP, LCP, DCL, Load) and identifies the top Long Tasks (main thread blocking operations). You can optionally reload the page with cache disabled to simulate a cold start.🌐 Page & Runtime Control
capture_screenshot: Take a screenshot of the current page (or full page layout) and return it to the LLM client as a base64 encoded image block.navigate: Navigate the active tab to a specific URL.reload: Reload the current page.inspect_dom: Fetch the entire HTML or a smart snippet around a search query.
evaluate_js: Run an arbitrary JavaScript expression globally on the page context.🐞 Live Debugging & Execution Control
pause_on_load: Enables the debugger and triggers a page reload, pausing execution on the very first parsed script statement.search_scripts: Search across all parsed script contexts for a query to accurately find lines and columns for breakpoints.set_breakpoint: Set a precise JS breakpoint using script_id, url, or exact script_hash.evaluate_on_call_frame: Evaluate a JavaScript expression directly inside the local scope of the currently paused debugger call frame.step_over: Step over the next expression line.resume: Unpause and resume the execution.remove_breakpoint: Remove a previously set breakpoint.🧩 WebMCP (page-exposed tools)
Requires launching the server with --enable-webmcp to expose tools (webmcp_*) and enable Chromium feature switches (--enable-features=WebMCPTesting,DevToolsWebMCPSupport). All WebMCP tools accept an optional tab_id to target a specific tab (omit to use the active tab).
webmcp_list_tools: Lists the tools the current page exposes to the browser (name, description, inputSchema, frameId). After every cross-document navigation the tab's tool cache is purged and re-synced via WebMCP.enable, so the output keeps matching document.modelContext.getTools(); same-document (hash/history) navigations keep the cache. Listeners are subscribed before the CDP domains are enabled, so Chrome's authoritative replay (WebMCP.enable re-emits the whole toolsAdded list) is captured: a new tool is reflected here within milliseconds of WebMCP.toolsAdded (measured 1-491 ms on Chrome 153, vs. 2-17 s before 1.5.5). If the event channel ever reports a dropped-event gap, the tool cache is rebuilt from the source rather than trusted.
webmcp_invoke_tool: Invokes a page tool by name. input is a JSON object string (e.g. "{}" or "{\"product\":\"knot\"}"), matching the tool's inputSchema. Blocks up to 30s waiting for the result.
webmcp_get_invocation: Returns the status (Pending/Completed/Error/Canceled) and result of an invocation by invocationId — non-blocking.
webmcp_list_invocations: Lists all invocations in the session with their status, with optional status filter.
⚠️ Consent dialogs: page tools with side effects (clipboard writes, form submissions…) may show an on-page confirmation dialog that a human must click. In that case webmcp_invoke_tool returns a timeout error containing the invocationId — the invocation stays Pending (it is NOT canceled), so you can poll it with webmcp_get_invocation after the user approves or denies it.
🧪 Stability & Reliability
debugger domain.Every method installs the same pre-compiled binaries published on each GitHub Release; a Rust toolchain is only needed for the Cargo and source routes. The npm packages are small wrappers whose postinstall fetches the pre-compiled binary for your platform from GitHub Releases — no compiling, no Rust toolchain.
⚠️ Always use the scoped npm name
@raultov/chrome-debug-mcp. The unscopedchrome-debug-mcpon npm is a different, unrelated project.
Prefer zero effort? The one-prompt route below lets your AI agent do all of it. Otherwise, methods are grouped by platform and ordered by popularity.
Paste this prompt into any AI coding agent's chat (Claude Code, opencode, Cursor, Codex CLI, Copilot, ...) and let it install the server and register it with every MCP-capable client it detects on your machine:
Install and set up the chrome-debug-mcp MCP server on this machine. Do not launch Chrome yourself — the server launches and manages it automatically.
1. Install the server binary with the first method that works on this OS:
- Homebrew available (macOS/Linux): brew install raultov/tap/chrome-debug-mcp
- Node.js >= 14 available (any OS): npm install -g @raultov/chrome-debug-mcp
- macOS/Linux fallback: curl --proto '=https' --tlsv1.2 -LsSf https://github.com/raultov/chrome-debug-mcp/releases/latest/download/chrome-debug-mcp-installer.sh | sh
- Windows fallback: download and run the .msi from https://github.com/raultov/chrome-debug-mcp/releases/latest
Verify with: chrome-debug-mcp --version (add the install dir to PATH if it is not found).
2. Register the MCP server with every AI client you detect on this machine:
- Claude Code: claude mcp add --scope user chrome-debug-mcp chrome-debug-mcp
- opencode (and agy, its bridge): merge into ~/.config/opencode/opencode.json —
"mcp": { "chrome-debug-mcp": { "type": "local", "command": ["chrome-debug-mcp"] } }
- Codex CLI: append to ~/.codex/config.toml —
[mcp_servers.chrome-debug-mcp]
command = "chrome-debug-mcp"
- Any other MCP-capable client (Cursor, Windsurf, VS Code, ...): add it with its own MCP settings, command "chrome-debug-mcp" with no arguments.
3. Report what you installed and which clients you configured, and remind me to restart each client so the MCP server loads. Do not enable --user-profile or cookie import unless I ask for them.
1. Homebrew — the natural option on macOS:
brew install raultov/tap/chrome-debug-mcp
The formula fetches the pre-compiled binary (Apple Silicon & Intel) straight from GitHub Releases, and brew upgrade keeps you current on every release.
2. npm / npx — the MCP-client convention (requires Node.js >= 14):
npm install -g @raultov/chrome-debug-mcp # installs the `chrome-debug-mcp` command
npx -y @raultov/chrome-debug-mcp # ...or just run it once, nothing to install
3. Shell installer — one-liner that installs to ~/.cargo/bin:
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/raultov/chrome-debug-mcp/releases/latest/download/chrome-debug-mcp-installer.sh | sh
4. Cargo — if you already have Rust:
cargo install chrome-debug-mcp # compiles from crates.io
cargo binstall chrome-debug-mcp # with cargo-binstall: fetches the pre-compiled binary, no compile
5. Manual download — get the aarch64-apple-darwin or x86_64-apple-darwin .tar.xz archive from the Releases page.
1. npm / npx — the MCP-client convention (requires Node.js >= 14):
npm install -g @raultov/chrome-debug-mcp # installs the `chrome-debug-mcp` command
npx -y @raultov/chrome-debug-mcp # ...or just run it once, nothing to install
2. Shell installer — one-liner that installs to ~/.cargo/bin:
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/raultov/chrome-debug-mcp/releases/latest/download/chrome-debug-mcp-installer.sh | sh
The Linux binaries require glibc >= 2.35 (Ubuntu 22.04+, Debian 12+, Fedora 36+).
3. Homebrew (Linuxbrew) — if you already use Homebrew-on-Linux:
brew install raultov/tap/chrome-debug-mcp
4. Cargo — if you already have Rust:
cargo install chrome-debug-mcp # compiles from crates.io
cargo binstall chrome-debug-mcp # with cargo-binstall: fetches the pre-compiled binary, no compile
5. Manual download — get the x86_64-unknown-linux-gnu or aarch64-unknown-linux-gnu .tar.xz archive from the Releases page.
1. npm / npx — the MCP-client convention (requires Node.js >= 14):
npm install -g @raultov/chrome-debug-mcp # installs the `chrome-debug-mcp` command
npx -y @raultov/chrome-debug-mcp # ...or just run it once, nothing to install
2. MSI installer — the native Windows experience: download chrome-debug-mcp-x86_64-pc-windows-msvc.msi from the Releases page and double-click it.
3. PowerShell installer — one-liner:
powershell -ExecutionPolicy Bypass -c "irm https://github.com/raultov/chrome-debug-mcp/releases/latest/download/chrome-debug-mcp-installer.ps1 | iex"
4. Cargo — if you already have Rust:
cargo install chrome-debug-mcp # compiles from crates.io
cargo binstall chrome-debug-mcp # with cargo-binstall: fetches the pre-compiled binary, no compile
5. Manual download — get the x86_64-pc-windows-msvc .zip archive from the Releases page.
For containerized isolation, host-hybrid mode, and the zero-install Glama cloud deployment, see the Docker & Headless Usage section below.
See Compilation (From Source) below.
The MCP Server discovers the Chrome executable using a cross-platform search: CHROME_PATH environment variable first (absolute priority), followed by common binaries in PATH (google-chrome, google-chrome-stable, chromium, chromium-browser), and finally standard OS install paths (/Applications/Google Chrome.app/... on macOS, chrome.exe locations on Windows, /usr/bin/google-chrome, /opt/google/chrome/chrome, and /snap/bin/chromium on Linux).
These flags configure the MCP server process when launched. Pass them on the command line when starting chrome-debug-mcp (or in your client's args / command definition).
| Flag | Description | Default | Possible Values / Format |
|---|---|---|---|
--local | Restricts navigation to local addresses only (localhost, 127.0.0.1, 192.168.x.x, *.local). Highly recommended for security. | off | Flag present (on) or omitted (off) |
--enable-automation | Shows the native "Chrome is being controlled by automated test software" infobar. | off | Flag present (on) or omitted (off) |
--user-profile | Uses your default system Chrome profile (cookies, saved logins) instead of a fresh, isolated temporary profile. | off | Flag present (on) or omitted (off) |
--allow-cookie-import | Exposes cookie-import parameters (copy_cookies, source_profile, confirm_restart) to tools (navigate, open_instance, restart_chrome). | off | Flag present (on) or omitted (off) |
--enable-webmcp | Enables WebMCP testing switches (--enable-features=WebMCPTesting,DevToolsWebMCPSupport) on Chrome instances and exposes WebMCP tools (webmcp_*). Alias: --webmcp. | off | Flag present (on) or omitted (off) |
--proxy-server <URL> | Configures proxy server for Chrome instances and exposes proxy tools (enable_proxy_auth). Alias: --proxy. | (none) | Valid proxy URL (e.g. http://proxy.example.com:8080) |
--proxy-username <USER> | Default username for proxy authentication. | (none) | String username |
--proxy-password <PASS> | Default password for proxy authentication. | (none) | String password |
--headless | Runs Chrome in headless mode (no GUI). Required for GPU-less or Docker environments. | off | Flag present (on) or omitted (off) |
--host <HOST> | Target host IP address for Chrome remote debugging connection. | 127.0.0.1 | Valid IP address (e.g. 127.0.0.1, host.docker.internal) |
--port <PORT> | Chrome remote debugging port for the primary instance. | 9222 | Any free TCP port (1–65535) |
--max-instances <N> | Maximum number of concurrent independent Chrome instances allowed in the instance pool. Ignored if --user-profile is set. | 8 | Positive integer (e.g. 1, 4, 16) |
| Variable | Description | Default | Value Format |
|---|---|---|---|
CHROME_PATH | Explicit absolute path to the Chrome or Chromium binary. Overrides all automatic binary discovery paths. | (not set) | Absolute file path (e.g. /usr/bin/google-chrome-stable or C:\Program Files\Google\Chrome\Application\chrome.exe) |
When the MCP server spawns Chrome, it constructs switches based on its startup flags, dynamically allocated ports, and capability presets requested per instance (e.g. via open_instance or restart_chrome).
| Native Chrome / Chromium Switch | Triggered when chrome-debug-mcp is launched with... | Effect / Description |
|---|---|---|
--remote-debugging-port=<PORT> | --port <PORT> | Binds V8 Inspector CDP WebSocket endpoint to the specified port. |
--user-data-dir=<TMP_DIR> | --user-profile omitted (default) | Creates an isolated, ephemeral profile directory in /tmp deleted automatically on shutdown. |
(no --user-data-dir switch) | --user-profile passed | Delegates to system default profile location (~/.config/google-chrome, Keychain/DPAPI). |
--headless | --headless passed | Runs browser without GUI. |
--disable-infobars | --enable-automation omitted (default) | Suppresses the "controlled by automated software" notification bar for stealthier interaction. |
(no --disable-infobars switch) | --enable-automation passed | Shows native automation infobar. |
--proxy-server="<PROXY_URL>" | --proxy-server <URL> passed | Routes instance network traffic through the specified HTTP/SOCKS proxy. |
--enable-features=WebMCPTesting,DevToolsWebMCPSupport | --enable-webmcp passed | Enables the WebMCP runtime testing API (#enable-webmcp-testing) and DevTools CDP inspection switches (#devtools-webmcp-support) in Chrome. |
--user-data-dir=<SEEDED_TMP_DIR> | Seed profile / Cookie import (dynamic) | Copies decrypted Chrome cookies into a fresh ephemeral profile copy. |
features parameter)Dynamic tools (open_instance, restart_chrome) accept a features array of closed capability presets:
| Preset Name | Chrome Command Line Switches Applied | Use Case / Purpose |
|---|---|---|
"WEBGL_SOFTWARE" | --use-gl=angle--use-angle=swiftshader--enable-unsafe-swiftshader | Forces SwiftShader software rasterization for WebGL in GPU-less containers. |
chrome-debug-mcp is fully container-ready. This allows several powerful use cases for LLMs:
The easiest way to use this server. Glama spawns a Docker container with Chrome pre-installed. The LLM gets immediate access to a browser in the cloud without any local setup.
Run everything inside Docker to avoid installing Chrome or Rust on your host machine:
docker build -t chrome-mcp .
docker run -i --rm chrome-mcp --headless
The MCP server runs inside a secure Docker container but controls the Chrome instance on your actual desktop. This allows the LLM to assist you in your real browsing session:
--remote-debugging-port=9222
--proxy-server="http://your-proxy:port" flag.# On macOS/Windows
docker run -i --rm chrome-mcp --host host.docker.internal
Pick any installation method above, then point your MCP client at the chrome-debug-mcp command. You do not need to start Chrome manually anymore, the MCP Server will automatically launch a visible instance of Chrome with the correct debugging flags.
This server is fully tested and confirmed to work with Claude Code, agy, and codex. Configure your AI client to execute the server using any of the following modes.
Most MCP clients (like Claude Code or any JSON-based config) use this structure. Here are the three main usage modes:
{
"mcpServers": {
"chrome-debug-mcp": {
"command": "chrome-debug-mcp",
"args": [],
"env": {}
},
"chrome-docker": {
"command": "docker",
"args": ["run", "-i", "--rm", "chrome-debug-mcp:v1.0.9", "--headless"]
},
"chrome-docker-hybrid": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"--net=host",
"chrome-debug-mcp:v1.0.9",
"--host",
"127.0.0.1"
]
}
}
}
Note: The chrome-docker-hybrid mode using --net=host is the recommended way on Linux to allow the container to access your local Chrome instance on 127.0.0.1.
To add and activate the server in Claude Code. The two positional arguments are <name> (the server's label in Claude) and <command> (the executable to launch):
# Run the binary installed by any method above (Homebrew, npm -g, installer, cargo, MSI):
claude mcp add chrome-debug-mcp chrome-debug-mcp
# ...or without installing anything first (Node.js >= 14):
claude mcp add chrome-debug-mcp -- npx -y @raultov/chrome-debug-mcp
Once connected, the AI agent will automatically handle starting Chrome when the first command is executed. The browser will remain visible so you can visually track the debugging process.
LLMs can operate this server using a few optimized patterns:
When running automated browser sessions, you can launch separate Chrome processes to prevent cookie pollution or tab collision:
open_instance with label: "user-session-1" or optional proxy server configs. This returns a unique instance_id (e.g. chrome-2).instance_id explicitly to downstream tools like navigate, evaluate_js, or webmcp_list_tools.close_instance once finished.If you navigate to a page that supports WebMCP (e.g., https://www.knot.kz/#/agent-tools):
webmcp_list_tools.chrome-debug-mcp with --enable-webmcp to expose WebMCP tools and enable Chrome's WebMCP feature switches (--enable-features=WebMCPTesting,DevToolsWebMCPSupport).webmcp_invoke_tool, providing input JSON arguments. If a consent dialog pauses execution on the web page, the tool will timeout after 30 seconds but keep the invocation pending. You can poll its result using webmcp_get_invocation.If you wish to compile from source:
git clone https://github.com/raultov/chrome-debug-mcp
cd chrome-debug-mcp
cargo build --release
make check # Run all local quality gates (fmt, clippy, test, dupes)
# Or run gates individually:
cargo clippy --all-targets -- -D warnings # Must pass
cargo fmt -- --check # Must pass
cargo test --all-targets # Run unit tests
cargo dupes check # Code duplication check
The resulting binary will be located in target/release/chrome-debug-mcp. This project utilizes cargo-dist to handle cross-platform native distribution seamlessly via GitHub Actions.
Other integration servers like Puppeteer/Playwright wrappers are high-level, heavy, and typically fail at exposing real, interactive step-by-step debuggers. This MCP server uses raw CDP messages mapping them 1:1 to LLM tools, which allows intelligent agents to literally step over JS, read local scope variables natively, search inside V8 compiler contexts, and understand exactly why a script is crashing.
This project is licensed under the MIT License. See the LICENSE file for more details.
Claim this server with your GitHub account to request manual ownership verification.
Link to the catalog listing for MCP server for controlling and debugging Chromium browsers from your README. This badge does not certify ownership, compatibility or security.
[](https://awesome-mcp.com/servers/chrome-debug-mcp-raultov)Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.
Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.
No reviewed package or image identity; download statistics are not listed yet.
Alternative and complementary servers in the same category

A Model Context Protocol (MCP) server for controlling Chrome with debugging capabilities, userscript injection, and extension support.

An MCP server that lets AI assistants browse websites and extract content using optional CSS selectors.

An MCP server that reads pages, fills forms, takes screenshots, and hands the browser to a person for logins or CAPTCHAs.