Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By diegocconsoliniv1.0.1MITIn 1 marketplace
Cuts Chrome DevTools MCP token use by preferring text snapshots over screenshots, which it claims saves 70-80%. Optional Gemini Flash image analysis needs a Gemini API key and Node.js 18+.
Trending plugins
7-day copy clicks
Claude hands work to one, or you mention it with @.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Reduce token consumption by 70-80% when using Chrome DevTools MCP through smart snapshot strategies and optional Gemini Flash vision processing.
Chrome DevTools MCP screenshots consume ~1,600 tokens each in Claude's context. For workflows involving multiple page checks, this quickly exhausts context and increases costs.
| Workflow | Without Optimizer | With Optimizer | Savings |
|---|---|---|---|
| Single page check | 1,600 tokens | 500 tokens | 69% |
| Login flow (3 screens) | 4,800 tokens | 800 tokens | 83% |
| Form debugging (5 screens) | 8,000 tokens | 1,500 tokens | 81% |
| Full test session (10 ops) | 16,000 tokens | 3,000 tokens | 81% |
Use text-based take_snapshot (accessibility tree) instead of images by default. Returns element structure, UIDs, and text content at 70% lower cost.
When visual analysis IS needed, process screenshots through Gemini Flash (~$0.001/image vs ~$0.005 direct to Claude) and return text summaries.
Capture only specific elements using UIDs. Smaller images = fewer tokens.
Use fill_form for multiple fields instead of separate fill calls.
If you're on WSL2, run the automated setup:
# Automated setup (installs Chrome, adds alias, configures MCP)
cd chrome-devtools-optimizer && ./scripts/wsl2-setup.sh
Or manually:
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
sudo sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list'
sudo apt update && sudo apt install -y google-chrome-stable
echo "alias chrome-debug='mkdir -p /tmp/chrome-debug-profile && google-chrome --remote-debugging-port=9222 --user-data-dir=/tmp/chrome-debug-profile --no-sandbox > /tmp/chrome.log 2>&1 &'" >> ~/.bashrc
source ~/.bashrc
Add to ~/.claude/settings.json inside mcpServers:
"chrome-devtools": {
"command": "npx",
"args": ["-y", "chrome-devtools-mcp@latest", "--browserUrl", "http://localhost:9222"],
"env": {}
}
Restart Claude Code after adding the MCP config.
Windows (native):
"C:\Program Files\Google\Chrome\Application\chrome.exe" --remote-debugging-port=9222
macOS:
/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --remote-debugging-port=9222
Linux:
google-chrome --remote-debugging-port=9222
# Clone or copy to your plugins directory
cp -r chrome-devtools-optimizer ~/.claude/plugins/
Or add to your Claude Code settings:
{
"plugins": [
"path/to/chrome-devtools-optimizer"
]
}
# Interactive setup
node chrome-devtools-optimizer/scripts/setup.js
You'll need a Gemini API key:
node chrome-devtools-optimizer/scripts/test-connection.js
Once installed, the agent automatically applies optimization rules when you use Chrome DevTools MCP tools.
# Process a screenshot file
node chrome-devtools-optimizer/scripts/process-screenshot.js screenshot.png
# Process base64 data
node chrome-devtools-optimizer/scripts/process-screenshot.js <base64_string>
# Custom analysis prompt
node chrome-devtools-optimizer/scripts/process-screenshot.js --prompt "Find all buttons" page.png
# JSON output
node chrome-devtools-optimizer/scripts/process-screenshot.js -j screenshot.png
| Need | Use | Tokens |
|---|---|---|
| Page structure/elements | take_snapshot | 300-1,500 |
| Visual appearance | Screenshot → Gemini | ~300 |
| Single element | take_screenshot with uid | 400-800 |
| Form values | evaluate_script | 50-100 |
| Console errors | list_console_messages (filtered) | 100-300 |
| Network calls | list_network_requests (filtered) | 200-500 |
| Bad | Good |
|---|---|
| Screenshot after every action | Snapshot or verify only when needed |
Multiple fill() calls | Single fill_form() |
| Unfiltered console/network | Always filter and limit |
| Full page screenshot for one element | Use uid parameter |
7-day copy clicks
npx claudepluginhub diegocconsolini/claudeskillcollection --plugin chrome-devtools-optimizerBuilt from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
Plugins from other owners that cover similar ground