Before you start
Google’s December DevTools notes describe cache control on performance traces and newer Lighthouse reporting. Use measured traces here, not performance promises.
- What you’ll make
- A local before-and-after trace summary with one explained improvement.
- What you’ll need
- A supported MCP client, a current Chrome, Node.js LTS and a local landing-page preview.
Step by step
Connect a fresh browser
Review Google’s MCP setup and add the server to your client. Use isolated Chrome with no signed-in profile. Open only your local preview; don’t attach to a browser that contains other sessions.
Collect a baseline
Record a page-load performance trace; use the same viewport and throttling for any comparison. Identify the largest-content paint element. Check when its resource request starts, how long it takes to download and when it actually paints.
Choose a single fix
Select a fix supported by the trace, such as removing lazy loading from the above-the-fold hero image or serving a better-sized source. Leave everything else unchanged and save that change locally.
Measure again on equal terms
Collect several repeat traces with matching viewport, cache and throttling. Compare consistent patterns and LCP values, not the single fastest run. Record what did not improve as well as what did.
Commands
{"mcpServers":{"chrome-devtools":{"command":"npx","args":["-y","chrome-devtools-mcp@latest","--isolated","--no-usage-statistics"]}}}Sign-in & permissions
This guide uses your own local preview, no login and no external site. The MCP server can read page data; keep it isolated. The configuration opts out of the server’s usage statistics. Chrome’s own settings are separate.
The official repository includes the debug-optimize-lcp skill. Use the server configuration supported by your client, and allow the first npm download only after reviewing the package.
Prompt for your agent
Use with: Coding agent with MCP support and a local preview
Copy the whole prompt into a supported agent. After any manual step, tell the same agent to continue from that step.
Use a clean project folder for this workflow: Find what delays your landing-page hero. Supported setup: Coding agent with MCP support and a local preview. Start from the original documentation: https://github.com/ChromeDevTools/chrome-devtools-mcp.
1. SET UP
Add Google's documented MCP configuration to the current client after approval. Start an isolated unsigned-in Chrome and open only my localhost preview; do not attach to my existing profile.
Documented commands or code reference (respect the comments and replace placeholders before running individual commands):
{"mcpServers":{"chrome-devtools":{"command":"npx","args":["-y","chrome-devtools-mcp@latest","--isolated","--no-usage-statistics"]}}}
2. PAUSE FOR ME IF NEEDED
For a host install, sign-in, permission screen, or model download that needs my consent, stop and tell me the exact app, control and what will be authorized. Do not enter passwords, OTPs or secrets in chat. Resume after I confirm.
3. BUILD THE FIRST RESULT
Use Google’s Chrome DevTools MCP from https://github.com/ChromeDevTools/chrome-devtools-mcp to profile only my localhost preview in an isolated Chrome session. Identify the largest-content paint element and show the trace evidence for the main bottleneck. Propose one minimal change before editing. On approval, repeat traces with matching cache, viewport and throttling. Save a local summary; do not use real profiles, other domains or public uploads.
4. CHECK THE RESULT
Record comparable baseline and follow-up traces and show what changed in the LCP breakdown. Give me the actual file paths and anything that still needs a manual action. Do not publish or make a purchase.
