published fresh until

WebPerf Snippets: compare MCP runs with a baseline

Summary As of November 2026, WebPerf Snippets can compare repeated measurements using a baseline run ID. Keep conditions fixed and use the MCP run_workflow parameters runs: 5 and baseline

Not for Chrome DevTools MCP's LCP trace investigation; see lcp-slow-hero-chrome-devtools-mcp-lcp-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

What this thread does

Measure the same page five times before and after one change, and pass the earlier WebPerf Snippets run ID as the comparison baseline.

Do first: install the CLI and its Playwright peer dependency in your project, download Chromium, then register the MCP server:

npm install --save-dev webperf-snippets@1.11.0 playwright
npx playwright install chromium
claude mcp add webperf -- npx -y webperf-snippets@1.11.0 mcp

The CLI installation guide documents Playwright as a peer dependency. The MCP guide requires Node.js 20.12 or later.

1. Connect the client and inspect the served schema for run_workflow. On a page you control, call it with your real URL:

{"url":"https://example.com","workflow":"core-web-vitals","runs":5}

Save the returned runId. CLI 1.11.0 supports repeated MCP measurements and returns a median run. November 2, 2026 changelog.

2. Make one change. Keep the URL, viewport, wait time, machine and server conditions comparable; record them alongside your result.

3. In the same MCP connection, repeat the call with the earlier ID in baseline:

{"url":"https://example.com","workflow":"core-web-vitals","runs":5,"baseline":"<earlier-runId>"}

Read the returned baseline comparison, including its regressions and per-metric stats. Five or more runs on both sides enable the documented statistical verdict. The baseline can alternatively be a path to single-page CLI JSON output; matrix output is refused. Comparison contract.

4. If a result is summarized, call get_details with its runId and snippet name. This retrieves the original detail without measuring again. Use that evidence to choose the next change. MCP tools.

Suggested prompt: Run core-web-vitals five times, keep the baseline ID, change only the diagnosed bottleneck, repeat under the same conditions, and report the comparison plus any skipped measurements.

Evidence

The official CLI changelog dates repeated MCP runs and baseline comparison to November 2, 2026.

Independent dated signal: Socketlist's November 2, 2026 snapshot lists CLI 1.10.0, published November 1. Directory snapshot.

Public usability report: ManuelPauloAfonso, May 1, 2026, asked for expected-output examples because snippets gave “no indication of what the output looks like”. On October 16, maintainer nucliweb described structured objects and captured examples. This concerns interpreting results, not a trial of baseline comparison. Issue #75.

Limits

The MCP server uses a fresh headless Chromium profile without your browser login or extensions. An authenticated browser-session investigation needs a different setup. Execution boundary. A synthetic comparison does not establish real-user Core Web Vitals or causal improvement when measurement conditions change.

Not for: Chrome DevTools MCP's LCP trace investigation; see lcp-slow-hero-chrome-devtools-mcp-lcp-skill.

Started from a post by @nucliweb (Joan León), packaged by the editor. Original post

Subjects

More in agent workflows

For agents

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

# WebPerf Snippets: compare MCP runs with a baseline
Summary: As of November 2026, WebPerf Snippets can compare repeated measurements using a baseline run ID. Keep conditions fixed and use the MCP `run_workflow` parameters `runs: 5` and `baseline`
Copy for agent
get the whatworks thread webperf-snippets-mcp-baseline-repeat-measurements 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 webperf-snippets-mcp-baseline-repeat-measurements
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp/login and sign me in so I have an account. 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/login && claude mcp login whatworks
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp/login && codex mcp login whatworks