chrome-cdp

chrome-cdp is a skill for Claude Code, Codex from aiguicai/MCP-Gateway. It costs 79 tokens per session (1,939 once invoked), scanned A, original, MIT.

A browser-control and debugging skill that communicates with Chrome through its built-in developer interface.

In plain words
What is it for?
Use it for browser automation, page inspection, and debugging in a managed Chromium browser or, when configured, an already-open browser.
Why use it?
It provides a way to inspect and operate web pages while retaining browser data such as cookies, cache, and login sessions.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it for browser automation, page inspection, and debugging in a managed Chromium browser or, when configured, an already-open browser.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/aiguicai/mcp-gateway/chrome-cdp
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add aiguicai/MCP-Gateway --skill chrome-cdp
Clone the repo
git clone --depth 1 https://github.com/aiguicai/MCP-Gateway

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for chrome-cdp

README.md
[![agentmods](https://agentmods.dev/badge/skills/aiguicai/mcp-gateway/chrome-cdp/github.svg)](https://agentmods.dev/skills/aiguicai/mcp-gateway/chrome-cdp)
Your own site
<a href="https://agentmods.dev/skills/aiguicai/mcp-gateway/chrome-cdp"><img src="https://agentmods.dev/badge/skills/aiguicai/mcp-gateway/chrome-cdp/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for chrome-cdp

Your own site · 80×15
<a href="https://agentmods.dev/skills/aiguicai/mcp-gateway/chrome-cdp"><img src="https://agentmods.dev/badge/skills/aiguicai/mcp-gateway/chrome-cdp.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 79 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,939 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00079 $0.01939
Opus 5 $0.00039 $0.00970
Sonnet 5 $0.00016 $0.00388
Haiku 4.5 $0.00008 $0.00194

Measured 10d ago against content hash 0600695dabc3, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

chrome-cdp scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/cdp.mjs), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

mcp-gateway/crates/gateway-http/builtin-skills/chrome-cdp/SKILL.md · 237 lines

How it starts

The opening of the file, as written. The whole thing — 237 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Chrome CDP

This built-in skill uses MCP Gateway's bundled cdp.mjs runner. It talks directly to Chrome DevTools Protocol over WebSocket with no third-party browser automation bridge.

Default Browser Mode

By default, the gateway starts or reuses a visible Chromium-family browser in managed launch mode.

  • It does not attach to the user's already-open Chrome unless the gateway process is started with CDP_BROWSER_MODE=attach.
  • It uses a gateway-managed runtime directory for target caches, per-tab daemons, and CDP state.
  • It sets CDP_PROFILE_MODE=persistent by default.
  • It sets CDP_USER_DATA_DIR to the gateway-owned persistent profile path: mcp-gateway/builtin-skills/chrome-cdp/chrome-user-data under the OS local data directory.
  • Cookies, cache, localStorage, and login sessions are reused across commands, browser restarts, and gateway restarts unless the site expires them or the profile directory is deleted.

Cache and Login State

Default behavior is to reuse the existing browser cache/profile. Do not create a fresh profile just because a new task starts, a new page is opened, or the browser was closed and reopened.

Use the default persistent profile when the user asks to:

  • open a page
  • continue browsing
  • debug a site
  • use an already logged-in session
  • reopen the browser later

Only use a new cache/profile when the user explicitly asks for a clean browser, fresh cache, separate login, separate account, temporary session, or similar. In that case, start the gateway with a different CDP_USER_DATA_DIR, or set CDP_PROFILE_MODE=empty for a blank managed profile. Do not delete or overwrite the default persistent profile unless the user explicitly asks to clear saved browser data.

Commands

Short form accepted by the gateway:

open https://example.com
list
snap
eval "document.title"
netclear
net api/chat
netget 1234.56 --request-file "D:\tmp\chat-request.txt" --response-file "D:\tmp\chat-response.txt"
stop

You may also pass the script form; the gateway still runs its bundled script:

Read the full file on GitHub · 237 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago First seen · 237 lines · 79 tokens per session scan A 0600695dabc3

Subscribe to this mod's changes

chrome-cdp is a skill published in the GitHub repository aiguicai/MCP-Gateway (154 stars, last pushed 3mo ago), licensed MIT. It adds 79 tokens to every session and 1,939 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

chrome-devtools-cli

Use this skill to write shell scripts or run shell commands to automate tasks in the browser or otherwise use Chrome DevTools via CLI.

ChromeDevTools/chrome-devtools-mcp · 31 tokens

a11y-debugging

Uses Chrome DevTools MCP for accessibility (a11y) debugging and auditing based on web.dev guidelines. Use when testing semantic HTML, ARIA labels, focus states, keyboard navigation, tap targets, and color contrast.

ChromeDevTools/chrome-devtools-mcp · 50 tokens

chrome-devtools

Uses Chrome DevTools via MCP for efficient debugging, troubleshooting and browser automation. Use when debugging web pages, automating browser interactions, analyzing performance, or inspecting network requests. This skill does not apply to --slim mode (MCP configuration).

ChromeDevTools/chrome-devtools-mcp · 55 tokens

chrome-performance-optimizer

Autonomous multi-agent performance optimization loop for Chromium and V8. Supports profile-seeded mode (analyzing Speedometer 3 / JetStream profiles via pprof or Sagacity MCP) and pattern-driven discovery mode (fan-out exploration of Blink and V8 macro-patterns grounded in historical wins and past rejected CLs).…

chromium/chromium · 119 tokens

nullaway

Guide for resolving NullAway static analysis errors. Best practices for: Passing ObservableSupplier/Supplier Dereferencing potentially @Nullable values Adding @NullMarked to Java code.

chromium/chromium · 43 tokens

bisect

Bisect regressions or broken builds in the Chromium repository using deterministic binary search, checking out midpoint commits, syncing dependencies with gclient sync, compiling the target with autoninja, and querying the user for test results until the culprit commit is isolated.

chromium/chromium · 52 tokens