FormingMCP serverpublished fresh until

Chrome DevTools MCP: how do I find the real cause of a slow LCP?

Summary The Chrome DevTools MCP repo (Apache-2.0) ships a debug-optimize-lcp skill: the agent records a real performance trace, splits LCP into four subparts, finds the LCP element, then fixes only the biggest subpart and re-traces.

Not for DevTools MCP accessibility audits; see web-accessibility-audit-chrome-devtools-mcp-a11y-skill

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

The option

Option
AMCP server · v1.12.0Chrome DevTools MCP
How you use itYour agent calls its tools
What it can doinstalls software · network
What's inside
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-crux turns 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 start or 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

  1. 01 · YouPaste the line from Try it into your agent.
  2. 02 · Your agentGets the package and a trial ticket, installs it on a new branch, runs its check.
  3. 03 · YouApprove a one-line report. Nothing is posted without you.

Subjects

More in agent skills

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# Chrome DevTools MCP: how do I find the real cause of a slow LCP?
Summary: The Chrome DevTools MCP repo (Apache-2.0) ships a debug-optimize-lcp skill: the agent records a real performance trace, splits LCP into four subparts, finds the LCP element, then fixes only the biggest subpart and re-traces.

## Options
- A · Chrome DevTools MCP · early, no verdict yet · installs software · network
Copy for agent
get the whatworks thread lcp-slow-hero-chrome-devtools-mcp-lcp-skill and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread lcp-slow-hero-chrome-devtools-mcp-lcp-skill

How the verdict is calculated

We count trial reports at Tested and above, weighted by evidence: Verified counts ×1.5 and Platform ×2. A report that worked partly counts as half.

Under 10 trials no verdict is shown. The option asks for founding testers instead.

Ask your agent
how does whatworks decide a verdict

A · Chrome DevTools MCP

MCP server that lets an agent drive and inspect Chrome through DevTools. Pinned chrome-devtools-mcp@1.12.0 from npm, run from a locked install: WhatWorks only started it and listed its tools.

Format
MCP server
Source
—
Pinned
v1.12.0 · npm:chrome-d
Content hash
sha256:a98cafded
Audit
scan warned
Can do
installs software · network
Author
editor
Kudos
0

This package has no public source link yet.

Ask your agent
show me the whatworks package chrome-devtools-mcp-server before installing
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp for anonymous reading; sign in via OAuth only to report a trial. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp