← All recipes

MCP Recipe

Debug a staging page with Chrome DevTools MCP

Influzer starter recipe: open a staging URL in Chrome DevTools MCP, capture console errors and failed network requests, and return a short triage note — without touching production sessions.

DevOps
By Influzer Published 2026-11-22 Updated 2026-11-22 0 worked for me

MCP servers used

Compatible clients (author-reported, not verified by Influzer): Cursor, Claude Code, Claude Desktop

Prerequisites

  • Local Chrome + chrome-devtools-mcp via npx
  • A staging URL you own or have permission to inspect
  • Prefer a fresh browser profile — do not attach to your personal logged-in Chrome session

Required permissions

DevTools MCP can see page content, cookies, and network for the controlled browser. Treat it like giving the agent your browser. Use staging only; avoid --autoConnect to personal profiles with banking or admin sessions.

Setup

1. Install Chrome DevTools MCP locally

Add the official Chrome DevTools MCP (chrome-devtools-mcp) to Cursor or Claude Code. Use a dedicated/staging profile — do not connect the agent to your everyday logged-in Chrome.

2. Example stdio mcp.json · json
{
  "mcpServers": {
    "chrome-devtools": {
      "command": "npx",
      "args": ["-y", "chrome-devtools-mcp@latest"]
    }
  }
}
3. Capture console + network on staging · markdown
Using Chrome DevTools MCP, open https://staging.example.com/checkout (replace with my staging URL).
1) Wait for the page to settle
2) List console errors/warnings
3) List failed network requests (status >= 400) with method + URL
4) Summarize the most likely root cause and one concrete next check
Do not submit payments, do not change account settings, and do not use production URLs.

Expected result

A triage note: top console errors, failed requests (status + URL), and a hypothesized root cause with a next debug step.

Sample output

FAIL — 1 console error, 2 failed XHRs
console: TypeError: Cannot read properties of null (reading id) @ checkout.js:142
network: POST /api/cart 500; GET /api/me 401
Hypothesis: session cookie missing on staging subdomain — check SameSite + domain.

Troubleshooting

  • Browser does not launch: ensure npx -y chrome-devtools-mcp@latest works in a terminal
  • Empty console: hard-reload after navigate; confirm the page actually errors
  • Stdio only — not usable from ChatGPT’s remote-only MCP path

Source repository

https://github.com/ChromeDevTools/chrome-devtools-mcp

Report an issue