Skip to main content

chrome-remote-debugging-mcp

MCP server that controls a running Chrome over the Chrome DevTools Protocol (CDP). It connects to Chrome's remote-debugging endpoint and exposes browser control as MCP tools.

Requirements

  • Python ≥ 3.10

  • A Chrome/Chromium started with remote debugging:

    google-chrome --remote-debugging-port=9222
    

Register with an MCP client

Example mcpServers entry:

{
  "mcpServers": {
    "chrome-remote-debugging": {
      "command": "uvx",
      "args": ["chrome-remote-debugging-mcp"],
      "env": { "CDP_URL": "http://localhost:9222" }
    }
  }
}

Tools

Tool Args Returns
ping — {connected, cdp_url, browser, protocol}
list_tabs — {"tabs": [{id, title, url, type}, ...]}
navigate url, tab_id? {tab_id, url, frameId}
evaluate expression, tab_id? {tab_id, value, type}
cdp_command method, params?, tab_id? {tab_id, method, result}

cdp_command is a raw CDP escape hatch: pass any CDP method + params and get the raw response, for cases the typed tools above don't cover. It targets a page socket, so page-domain methods work (Page.*, DOM.*, Runtime.*, Network.*, …); browser-level domains (Browser.*, Target.*) do not.

On any Chrome connection problem a tool returns {"error": "..."} instead of crashing.

Configuration

Env var Default Meaning
CDP_URL http://localhost:9222 Chrome remote-debugging origin

SSH tunnel (optional)

To control a Chrome that only listens on a remote host's loopback, set:

Env var Default Meaning
CDP_URL http://localhost:9222 Chrome endpoint. With a tunnel active, the remote-side address to forward to.
SSH_PROXY_TO unset SSH target, e.g. user@remote. Presence enables the tunnel.
SSH_PROXY_PORT unset Fixed local port. Auto-assigned when unset.

The server runs ssh -N -L 127.0.0.1:<local>:<host>:<port> <target> and points CDP at the forwarded port. Requires key-based SSH auth (BatchMode=yes) and the ssh client on PATH. The tunnel uses StrictHostKeyChecking=accept-new (trust-on-first-use: unknown host keys are accepted automatically on first connect).

Develop

uv sync        # venv + runtime + dev group
pytest -q

Locally, from a checkout (no publish needed):

uvx --from . chrome-remote-debugging-mcp
# or
python -m chrome_remote_debugging_mcp

Metadata

Release files for chrome-remote-debugging-mcp 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for chrome-remote-debugging-mcp 0.1.0
File Size Uploaded Provenance Actions
chrome_remote_debugging_mcp-0.1.0.tar.gz 99.0 kB With provenance Details for chrome_remote_debugging_mcp-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for chrome-remote-debugging-mcp 0.1.0
File Interpreter ABI Platform Actions
chrome_remote_debugging_mcp-0.1.0-py3-none-any.whl Python 3 none any Details for chrome_remote_debugging_mcp-0.1.0-py3-none-any.whl

Total release size: 108.8 kB

Release files / chrome_remote_debugging_mcp-0.1.0.tar.gz

Download URL chrome_remote_debugging_mcp-0.1.0.tar.gz
Size 99.0 kB
Tags Source
SHA-256 checksum
How to use checksums
77419c22175f383c948f77ca10274ea0e201d904fb5afa6f4a1e9348a785da60
BLAKE2b-256 checksum
How to use checksums
8918057dbe6800586ac0f388287013ca4f4fd5389951d2fe0c63e635818c3447
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 17, 2026.

Transparency log

Release files / chrome_remote_debugging_mcp-0.1.0-py3-none-any.whl

Download URL chrome_remote_debugging_mcp-0.1.0-py3-none-any.whl
Size 9.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8d648299775496d3d5fcd7fbe1b20348cc6552e8dd6f52e2600699cd3462c408
BLAKE2b-256 checksum
How to use checksums
b62a9466e893ab5f5ecd8d1047384c3dc1eb3747ec80da587ae528f4be716e91
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 17, 2026.

Transparency log

Security for chrome-remote-debugging-mcp 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for chrome_remote_debugging_mcp-0.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 17, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page