chrome-devtools-mcp-cleanup

chrome-devtools-mcp-cleanup is a skill for Claude Code from MSApps-Mobile/claude-plugins. It costs 108 tokens per session (1,474 once invoked), scanned C, original, MIT.

A cleanup guide for a Chrome debugging connection that gets stuck when several browser processes try to use the same profile folder.

In plain words
What is it for?
Use it to diagnose the shared-profile error, remove stale Chrome debugging processes, and prevent the same conflict by using separate browser profiles.
Why use it?
It removes conflicts from leftover processes, which can make actions such as opening, navigating, or inspecting pages fail even when listing pages still works.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: reads .claude/ paths; mentions Claude Code.

Not installable: its command points at a path on the author’s own machine, so it runs nowhere else. The line is /Users/.../chrome-profile..

Part of the fix-chrome-connection plugin — 3 skills shipped together

Good fit Use it to diagnose the shared-profile error, remove stale Chrome debugging processes, and prevent the same conflict by using separate browser profiles.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add MSApps-Mobile/claude-plugins
Claude Code
/plugin install fix-chrome-connection

Made for: Claude Code.

Or install fix-chrome-connection, the plugin that ships this one along with the rest of its 3 skills.

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-devtools-mcp-cleanup

README.md
[![agentmods](https://agentmods.dev/badge/skills/msapps-mobile/claude-plugins/chrome-devtools-mcp-cleanup/github.svg)](https://agentmods.dev/skills/msapps-mobile/claude-plugins/chrome-devtools-mcp-cleanup)
Your own site
<a href="https://agentmods.dev/skills/msapps-mobile/claude-plugins/chrome-devtools-mcp-cleanup"><img src="https://agentmods.dev/badge/skills/msapps-mobile/claude-plugins/chrome-devtools-mcp-cleanup/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-devtools-mcp-cleanup

Your own site · 80×15
<a href="https://agentmods.dev/skills/msapps-mobile/claude-plugins/chrome-devtools-mcp-cleanup"><img src="https://agentmods.dev/badge/skills/msapps-mobile/claude-plugins/chrome-devtools-mcp-cleanup.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 108 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,474 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. 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.00108 $0.01474
Opus 5.5 $0.00043 $0.00590
Sonnet 5.5 $0.00022 $0.00295
Haiku 4.5 $0.00011 $0.00147

Measured 2d ago against content hash 1a7fb225eb93, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade C, and why

chrome-devtools-mcp-cleanup scanned grade C with 1 finding 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 2d ago.

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.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

- Don't `rm -rf ~/.cache/chrome-devtools-mcp/chrome-profile/` while a session is active — corrupts the running Chromium's state.
plugins/fix-chrome-connection/skills/chrome-devtools-mcp-cleanup/SKILL.md · 106 lines

How it starts

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

chrome-devtools-mcp wedge cleanup

Different server from Claude-in-Chrome. This is for chrome-devtools-mcp (DevTools Protocol; tools new_page, take_snapshot, navigate_page, evaluate_script, lighthouse_audit). Not the Claude-in-Chrome extension (mcp__Claude_in_Chrome__*). Both can be down independently — see the sibling /fix-chrome-connection skill for the extension.

Symptom

list_pages works (read-only) but every state-changing tool errors with:

The browser is already running for /.cache/chrome-devtools-mcp/chrome-profile. Use --isolated to run multiple browser instances.

Root cause: ≥2 concurrent chrome-devtools-mcp@latest parents, each spawning Chromium pinned to the shared profile dir. The Chrome that the current MCP tries to start collides with one started by a stale MCP parent from an earlier session.

The permanent fix is configuration: run chrome-devtools-mcp with --isolated so each session gets its own profile. This skill is the one-time cleanup for hosts where stale parents accumulated before that fix.

When to invoke

Use deliberately — NOT from a scheduled-task runner. Killing processes on a shared Mac is destructive; the user must opt in.

Trigger phrases: "fix chrome-devtools-mcp", "chrome-devtools wedged", "browser is already running for chrome-profile", "stale chrome-devtools parents", "card #223 cleanup".

Diagnosis

# 1. List all chrome-devtools-mcp parent processes
ps -eo pid,etime,command | awk '/chrome-devtools-mcp@latest/ && !/awk/'

# 2. List Chromium children spawned by them (pinned to chrome-profile)
ps -eo pid,ppid,etime,command \
  | awk '/chrome-devtools-mcp\/chrome-profile/ && !/awk/'

# 3. Show the lock file holder
ls -la ~/.cache/chrome-devtools-mcp/chrome-profile/SingletonLock 2>/dev/null

If only ONE parent shows up: the wedge is unrelated to staleness. Check the server's args with claude mcp get chrome-devtools (this skill does not read ~/.claude.json directly, since it can contain secrets). It should list --isolated. If missing, tell the user to add it themselves (claude mcp remove then claude mcp add ... -- npx chrome-devtools-mcp@latest --isolated) and restart Claude Code.

Read the full file on GitHub · 106 lines

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. 2d ago Changed · -26 lines · -1 tokens per session 1a7fb225eb93
  2. 3mo ago First seen · 132 lines · 109 tokens per session scan C f5d345e67763

Subscribe to this mod's changes

chrome-devtools-mcp-cleanup is a skill published in the GitHub repository MSApps-Mobile/claude-plugins (14 stars, last pushed yesterday), licensed MIT. It adds 108 tokens to every session and 1,474 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

chrome-devtools-mcp-cleanup compared with skills from other repositories

chrome-devtools-mcp-cleanup next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
chrome-devtools-mcp-cleanupMSApps-Mobile/claude-pluginsSkill14yesterdayMITC108Claude Code
site-auditsivang/sivan-claude-pluginsSkill129d agoMITA47Claude Code
chrome-devtools-cliChromeDevTools/chrome-devtools-mcpSkill60ktodayApache-2.0A31Claude Code
chrome-performance-optimizerchromium/chromiumSkill25ktodayBSD-3-ClauseA119Claude Code, Codex
reenable-testchromium/chromiumSkill25ktodayBSD-3-ClauseA85Claude Code, Codex
remove-circular-includeschromium/chromiumSkill25ktodayBSD-3-ClauseA37Claude Code, Codex
experimental-code-coverage-orchestratorchromium/chromiumSkill25ktodayBSD-3-ClauseA38Claude Code, Codex