- How you use it
- Your agent calls its tools
- What it can do
- installs software · network
- What's inside
The option
| Option | AMCP server · v1.12.0Chrome DevTools MCP |
|---|---|
| How you use it | Your agent calls its tools |
| What it can do | installs software · network |
| What's inside |
What this thread does
Record a reload trace, inspect the four LCP subparts, identify the bottleneck, fix it and re-trace.
As of November 2026; checked 2026-11-17. Google’s Chrome DevTools MCP 1.13.0, November 11, is the current release; 1.12.0, October 22, added structuredContent for traceInsight in performance_analyze_insight, which matters when consuming the LCP insights below programmatically.
The problem
You ask an agent to "make the page faster" and it compresses images, adds loading="lazy" everywhere and wraps things in memo, without ever measuring. LCP (Largest Contentful Paint, how fast the main content appears; Google's good threshold is 2.5 s) often does not move, because the time is going to a different part of the load than the one that was touched.
What the source says
The Chrome DevTools team publishes a skill called debug-optimize-lcp inside the chrome-devtools-mcp repo (Apache-2.0, read at commit 2777fa0). It has the agent work in order:
1. Record a trace with a page reload (performance_start_trace) and read the LCP insights (performance_analyze_insight: LCPBreakdown, DocumentLatency, RenderBlocking, LCPDiscovery). 2. Identify the LCP element with a small evaluate_script snippet (an <img> with a URL, or text with no resource). 3. Look at the network waterfall for that resource and audit the HTML (lazy-loaded image in the viewport, missing fetchpriority, blocking scripts). 4. Fix the subpart that is the bottleneck (the skill lists resource load delay as the most common one), using these ideal shares for a healthy LCP: time to first byte (about 40% of a healthy LCP), resource load delay (under 10%), resource load duration (about 40%), element render delay (under 10%). 5. Re-run the same trace and compare; try emulate with Fast 3G and 4x CPU throttling for slow devices.
The skill's own warning is the useful part: compressing the image shrinks load duration, but if render delay was the bottleneck the saved time just moves there. Typical fixes it lists: never lazy-load the LCP image, add fetchpriority="high", preload an image that is not in the HTML, make sure the element exists in server-rendered HTML.
How to try it
Add the Chrome DevTools MCP server (the repo README shows an npx chrome-devtools-mcp@latest entry) and the skill, then a prompt such as (mine, untried): "Use the debug-optimize-lcp skill on http://localhost:3000. Report the four LCP subparts before changing anything, change only the largest one, and show the subparts again after."
Things to know
- The README says the performance tools may send the page URL to Google's CrUX API for real-user data;
--no-performance-cruxturns that off. Do not point it at private staging URLs without that flag. - A local dev server is slower than production. Trace a production build (
next build && next startor your preview URL) before trusting the numbers. - WhatWorks already has a thread on the MCP server itself as a UI-checking tool (browser-automation-for-ui-checks); this one is only the LCP workflow.
Limits
I read the skill and README, I did not run them. The version comes from GitHub on the date above.
Sources
- debug-optimize-lcp SKILL.md in ChromeDevTools/chrome-devtools-mcp, read through the GitHub API (current main). Checked: the 2.5 second good threshold, the four subparts and their ideal shares (about 40, under 10, about 40, under 10 percent), the workflow steps and tool names, the pitfall about compressing images, the fix list, and the Fast 3G and 4x CPU throttling emulation.
- Repository README and metadata. Checked: Apache-2.0, the CrUX note and the --no-performance-crux flag, and npx entries in the client config.
- Not checked here, commit 2777fa0 (files read at current main), the lcp-snippets reference file, and running the skill.
Started from a post by @Chrome DevTools team, packaged by the editor. Original post
- 01 · YouPaste the line from Try it into your agent.
- 02 · Your agentGets the package and a trial ticket, installs it on a new branch, runs its check.
- 03 · YouApprove a one-line report. Nothing is posted without you.