Loading...
Loading...
This skill helps launch and configure the Chrome DevTools MCP server, giving Claude visual access to a live browser for debugging and automation. Use when the user asks to set up browser debugging, launch Chrome with DevTools, configure chrome-devtools-mcp, see what my app looks like, take screenshots of my web application, check the browser console, debug console errors, inspect network requests, analyse API responses, measure Core Web Vitals or page performance, run a Lighthouse audit, test button clicks or form submissions, automate browser interactions, fill out forms programmatically, simulate user actions, emulate mobile devices or slow networks, capture DOM snapshots, execute JavaScript in the browser, or troubleshoot Chrome DevTools MCP connection issues. Supports Windows, Linux, and WSL2 environments.
npx skill4agent add henkisdabro/wookstar-claude-plugins devtools| Category | Capabilities |
|---|---|
| Visual Inspection | Take screenshots, capture DOM snapshots, see rendered output |
| Console & Logging | Read console messages, catch JavaScript errors, debug issues |
| Network Analysis | Inspect API requests/responses, analyse headers, debug fetch calls |
| Performance | Record traces, measure Core Web Vitals (LCP, CLS, TBT), identify bottlenecks |
| User Simulation | Click elements, fill forms, drag-and-drop, handle dialogs |
| Device Emulation | Simulate mobile viewports, throttle CPU/network, test responsive design |
bash scripts/detect_environment.shwindowslinuxwsl2bash scripts/check_chrome.sh <environment>status:installedstatus:not_installedclaude mcp list | grep -i chromeclaude mcp add chrome-devtools -- npx chrome-devtools-mcp@latest --browserUrl http://127.0.0.1:9222bash scripts/detect_dev_server.shnpm run devnpm run devnpx next devnpm startbash scripts/launch_chrome.sh <environment> <url> [headed]<environment>windowslinuxwsl2<url>http://localhost:5173[headed]headed# Headless (default)
bash scripts/launch_chrome.sh wsl2 http://localhost:5173
# Headed (visible browser)
bash scripts/launch_chrome.sh wsl2 http://localhost:5173 headed# Headless
google-chrome --headless --remote-debugging-port=9222 --no-first-run --user-data-dir=/tmp/chrome-mcp http://localhost:5173 &
# Headed
google-chrome --remote-debugging-port=9222 --no-first-run --user-data-dir=/tmp/chrome-mcp http://localhost:5173 &REM Headless
start chrome.exe --headless --remote-debugging-port=9222 --no-first-run --user-data-dir=%TEMP%\chrome-mcp http://localhost:5173
REM Headed
start chrome.exe --remote-debugging-port=9222 --no-first-run --user-data-dir=%TEMP%\chrome-mcp http://localhost:5173wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
sudo apt install -y ./google-chrome-stable_current_amd64.deb# Add signing key
wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | sudo gpg --dearmor -o /usr/share/keyrings/google-chrome.gpg
# Add repository
echo 'deb [arch=amd64 signed-by=/usr/share/keyrings/google-chrome.gpg] http://dl.google.com/linux/chrome/deb/ stable main' | sudo tee /etc/apt/sources.list.d/google-chrome.list
# Install
sudo apt update
sudo apt install -y google-chrome-stablesudo apt update
sudo apt install -y chromium-browserwinget install Google.Chromechoco install googlechrome$installer = "$env:TEMP\chrome_installer.exe"
Invoke-WebRequest -Uri "https://dl.google.com/chrome/install/latest/chrome_installer.exe" -OutFile $installer
Start-Process -FilePath $installer -Args "/silent /install" -Wait
Remove-Item $installerbash scripts/check_chrome.sh <environment>claude mcp add chrome-devtools -- npx chrome-devtools-mcp@latest --browserUrl http://127.0.0.1:9222args.mcp.json| Flag | Description | Default |
|---|---|---|
| Connect to running Chrome (e.g., | - |
| Auto-connect to Chrome 145+ with remote debugging enabled | |
| Run in headless (no UI) mode | |
| Use temporary user-data-dir, auto-cleaned on close | |
| Chrome channel: | |
| Initial viewport size (e.g., | - |
| Path to custom Chrome executable | - |
| Custom user data directory | |
| WebSocket endpoint (alternative to | - |
| Custom WebSocket headers as JSON (use with | - |
| Proxy server for Chrome | - |
| Ignore self-signed/expired certificate errors | |
| Additional Chrome launch arguments (array) | - |
| Debug log file path (set | - |
| Include emulation tools | |
| Include performance tools | |
| Include network tools | |
{
"mcpServers": {
"chrome-devtools": {
"command": "npx",
"args": [
"chrome-devtools-mcp@latest",
"--browserUrl",
"http://127.0.0.1:9222"
]
}
}
}{
"mcpServers": {
"chrome-devtools": {
"command": "npx",
"args": [
"chrome-devtools-mcp@latest",
"--headless",
"--isolated"
]
}
}
}{
"mcpServers": {
"chrome-devtools": {
"command": "npx",
"args": [
"chrome-devtools-mcp@latest",
"--browserUrl=http://127.0.0.1:9222",
"--viewport=390x844"
]
}
}
}{
"mcpServers": {
"chrome-devtools": {
"command": "npx",
"args": [
"chrome-devtools-mcp@latest",
"--channel=canary",
"--headless",
"--isolated"
]
}
}
}{
"mcpServers": {
"chrome-devtools": {
"command": "npx",
"args": [
"chrome-devtools-mcp@latest",
"--browserUrl=http://127.0.0.1:9222",
"--logFile=/tmp/chrome-devtools-mcp.log"
],
"env": {
"DEBUG": "*"
}
}
}
}{
"mcpServers": {
"chrome-devtools": {
"command": "npx",
"args": [
"chrome-devtools-mcp@latest",
"--wsEndpoint=ws://127.0.0.1:9222/devtools/browser/<id>",
"--wsHeaders={\"Authorization\":\"Bearer YOUR_TOKEN\"}"
]
}
}
}http://127.0.0.1:9222/json/versionwebSocketDebuggerUrl--browserUrlchrome://inspect/#remote-debugging--autoConnect{
"mcpServers": {
"chrome-devtools": {
"command": "npx",
"args": ["chrome-devtools-mcp@latest", "--autoConnect"]
}
}
}--browserUrl--autoConnect{
"mcpServers": {
"chrome-devtools": {
"command": "npx",
"args": ["chrome-devtools-mcp@latest", "--headless", "--isolated"]
}
}
}$HOME/.cache/chrome-devtools-mcp/chrome-profile-$CHANNEL%HOMEPATH%/.cache/chrome-devtools-mcp/chrome-profile-$CHANNEL--isolatedreferences/troubleshooting.mdnpx chrome-devtools-mcp@latest --helpcurl -s http://127.0.0.1:9222/json/version# Linux/WSL2
pgrep -a chrome
# Windows
tasklist | findstr chrome| Issue | Solution |
|---|---|
| "Target closed" error | Close all Chrome instances, restart with debugging |
| Module not found | Clear npm cache: |
| Connection refused | Ensure Chrome launched with |
| Port already in use | Kill existing Chrome or use different port |
| Chrome won't start in sandbox | Use |
| WebDriver sign-in blocked | Use |
| VM-to-host connection fails | See |
--browserUrl--isolatedhttp://127.0.0.1:9222mcp__chrome-devtools__list_pages