Google CrUX MCP
A read-only Google Chrome UX Report (CrUX) MCP server that brings real-user Core Web Vitals data into AI apps for assessment, comparison, and trend analysis.
Assess Core Web Vitals:
get_core_web_vitalschecks p75 LCP, INP, and CLS ratings plus overall pass/fail for an origin or URL, optionally filtered by phone, desktop, or tablet.Compare devices:
compare_form_factorscompares aggregated, phone, desktop, and tablet results, including traffic share; costs 4 API calls.Compare page vs site:
compare_origin_vs_urlshows whether a specific page is faster or slower than the site-wide origin average; costs 2 API calls.Analyze trends:
get_cwv_trendreturns weekly p75 history for up to 40 weeks with improvement/regression direction.Inspect raw data:
query_recordreturns the latest CrUX record with histograms, percentiles, and fractions;query_history_recordreturns the raw weekly timeseries.Handles missing data: Returns
{no_data: true}when an origin, URL, or device group has insufficient public Chrome-user traffic.Read-only and quota-aware: All tools are read-only, with retries for failures and a known CrUX quota of 150 queries/minute per project.
Allows querying the Chrome UX Report (CrUX) API to evaluate real-user Core Web Vitals (LCP, INP, CLS, FCP, TTFB) for origins and URLs, compare mobile versus desktop, benchmark a page against its site average, and analyze up to 40 weeks of p75 trends.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Google CrUX MCP Does https://web.dev pass Core Web Vitals on mobile?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Google CrUX MCP
English | Русский
A1 Google CrUX MCP brings real-user Core Web Vitals data into an AI app. Check whether a public site or page passes LCP, INP and CLS, compare mobile with desktop, and see how the metrics changed over time.
It reads Google’s Chrome UX Report dataset — field data collected from Chrome users, not a synthetic speed test or a way to change your site.
6 read-only tools. Core Web Vitals assessment, device comparison, origin-versus-page comparison, 40-week trend and raw latest or historical records.
Real-user data. It is the same CrUX field data used by PageSpeed Insights and Google’s Core Web Vitals signals.
Clear availability boundary. Only public origins and URLs with enough real-user traffic have data;
no_datais a valid result.Known quota cost. CrUX allows 150 queries per minute per project. Device comparison makes four API calls; origin-versus-page makes two.
Start with a read-only question:
Does
https://example.compass Core Web Vitals on mobile?
Connect the server · Explore use cases · Open technical documentation
See it work in a minute
You: Does
https://example.com/pricingpass Core Web Vitals on mobile?Assistant: Shows p75 LCP, INP and CLS, their good/needs-improvement/poor ratings and the overall result. Nothing changes.
You: Compare this page with the site average and show how mobile differs from desktop.
Assistant: Compares the origin and URL, then device groups and their traffic shares. All six tools read the public CrUX dataset only.
Related MCP server: Google Search Console MCP Server
Contents
Quick start
You need Node.js 20+ and a Google Cloud API key with Chrome UX Report API enabled.
Add the server to your AI app.
Ask the read-only question above.
In Settings → MCP servers, select Add server, choose STDIO, enter the command npx -y mcp-google-crux@latest and environment variables CRUX_API_KEY, then select Save and Restart.
codex mcp add google-crux --env CRUX_API_KEY=your_key -- npx -y mcp-google-crux@latest
codex mcp listclaude mcp add --env CRUX_API_KEY=your_key --transport stdio --scope user google-crux -- npx -y mcp-google-crux@latest
claude mcp listThe current official path is Settings → Extensions. For a custom desktop extension, open Advanced settings → Extension Developer → Install Extension…, select a .mcpb file and follow the prompts.
This repository currently publishes an npm stdio package and does not contain a .mcpb bundle. For Claude Desktop builds that still support local configuration, use the following JSON stdio configuration as a fallback:
{"mcpServers":{"google-crux":{"command":"npx","args":["-y","mcp-google-crux@latest"],"env":{"CRUX_API_KEY":"your_key"}}}}
In those builds, save it to ~/Library/Application Support/Claude/claude_desktop_config.json on macOS or %APPDATA%\Claude\claude_desktop_config.json on Windows.
Claude Desktop MCP documentation
Add {"mcpServers":{"google-crux":{"type":"stdio","command":"npx","args":["-y","mcp-google-crux@latest"],"env":{"CRUX_API_KEY":"your_key"}}}} to ~/.cursor/mcp.json on macOS/Linux or %USERPROFILE%\.cursor\mcp.json on Windows. Cursor MCP documentation
Run MCP: Open User Configuration and add:
{"servers":{"google-crux":{"type":"stdio","command":"npx","args":["-y","mcp-google-crux@latest"],"env":{"CRUX_API_KEY":"${input:crux_api_key}"}}},"inputs":[{"type":"promptString","id":"crux_api_key","description":"Google Cloud API key","password":true}]}Check it with MCP: List Servers. VS Code MCP documentation
What you can ask it to do
Does this public origin or URL pass Core Web Vitals?
Compare phone, desktop, tablet and all-device results.
Is this page faster or slower than the site average?
How did LCP, INP and CLS change during the last 25 weeks?
Show the raw CrUX histograms and percentiles for a technical review.
How to read CrUX data
CrUX reports a rolling 28-day window, updated daily. Historical data is weekly and updates on Mondays. The key value is p75: 75% of observed visits are at or below it. get_core_web_vitals interprets metric thresholds for you; raw record tools expose full histograms and density fractions.
No data does not mean the site is broken. It means Google has no sufficiently large public Chrome-user sample for that origin, URL or device group. Tablets and individual URLs often have no data.
Getting access
In Google Cloud Console, create or select a project; no billing account is needed for CrUX.
Enable the Chrome UX Report API.
Create an API key in APIs & Services → Credentials.
Restrict the key to Chrome UX Report API and pass it as
CRUX_API_KEY.
The key is stored in the MCP client configuration and is sent in the API request URL, so treat it as a password.
Configuration
Variable | Required | Description |
| Yes | Google Cloud key with Chrome UX Report API enabled. |
| No | API base URL override. |
| No | Per-request timeout; default |
| No | Retries for 429, 5xx and network failures; default |
Data, limits and background work
Read-only public dataset. The server cannot alter sites, Search Console, CrUX records or Google rankings.
Quota-aware retries. It retries
429, 5xx and network errors with backoff. Keep compound comparisons in mind when budgeting the 150 queries per minute project quota.No background monitoring. The server works only while called. If your AI app supports scheduled tasks, it can create a recurring performance report.
Anonymous telemetry. It sends installation and version data plus tool names, never API keys, queried URLs, results, arguments or prompts. For each tool call it also sends the outcome and, on failure, an excerpt of the error text with e-mails, addresses, tokens, numbers of 4+ digits and quoted text replaced by
#; a value from your request can appear in it if the error text contains it. SetASKADS_TELEMETRY=0to opt out.
Technical documentation
MCP capability catalog — task-oriented pages for every tool.
Support
Found a bug or need a scenario? Create an issue or write in Telegram.
Available Tools
6 toolscompare_form_factorsPhone vs desktop vs tabletARead-onlyIdempotent
Compares real-user performance across device classes for an origin or URL: one aggregated all-devices record plus phone, desktop and tablet records (4 API requests = 4 quota units of the 150/min budget). Per device: p75 + rating per metric; traffic_share gives each device's fraction of page loads (from the unfiltered form_factors metric). Devices without enough data come back as {no_data: true} — expected for tablet almost always. Default metrics: the three Core Web Vitals. Provide exactly one of origin or url.
Inputs: url, origin, metrics.
compare_origin_vs_urlOrigin vs specific pageARead-onlyIdempotent
Compares the site-wide origin record against one specific page (2 API requests): p75 + rating per metric for each, so you can tell whether a page is faster or slower than the site average. Either side can come back {no_data: true} (single pages often lack data; redirecting homepages can lack origin data while pages have it). Default metrics: the three Core Web Vitals. Both origin AND url are required here (unlike the other tools).
Inputs: url (required), origin (required), metrics, form_factor.
get_core_web_vitalsCore Web Vitals assessmentARead-onlyIdempotent
One-call Core Web Vitals assessment for an origin or URL over the latest 28-day window. Per metric (LCP, INP, CLS + diagnostic FCP and TTFB): p75, rating (good | needs-improvement | poor, web.dev thresholds: LCP ≤2500ms/>4000ms, INP ≤200ms/>500ms, CLS ≤0.10/>0.25) and the good/needs_improvement/poor user-experience densities (~sum 1.0). passes_core_web_vitals is true when all three CWV rate good. Timings are ms; CLS is unitless. Returns {no_data: true} when the origin/URL has insufficient traffic in CrUX. Provide exactly one of origin or url.
Inputs: url, origin, form_factor.
get_cwv_trendCore Web Vitals trendARead-onlyIdempotent
Weekly p75 trend for an origin or URL from the CrUX History API (1 request). Per metric: points — array of {period_end, p75, rating}, one per week (each week is a 28-day rolling window ending on period_end; ineligible weeks are skipped), and delta — first vs last p75 with direction improved | regressed | stable (lower is always better). Default metrics: the three Core Web Vitals; weeks caps the history depth (1..40, default 25). History data updates on Mondays. Returns {no_data: true} when CrUX has no data. Provide exactly one of origin or url.
Inputs: url, weeks, origin, metrics, +1 more.
query_history_recordCrUX weekly timeseries (raw)ARead-onlyIdempotent
Returns the weekly CrUX timeseries for an origin or URL (raw API response, updated Mondays ~04:00 UTC): up to 40 collection periods, each a 28-day rolling window. Per metric: histogramTimeseries (bins with densities arrays), percentilesTimeseries.p75s and fractionTimeseries; all series align with record.collectionPeriods. Ineligible periods appear as null p75s and "NaN" densities — tolerate non-numeric entries. A no-data answer (HTTP 404) is returned as {no_data: true}. Prefer get_cwv_trend for a cleaned p75 trend.
Inputs: url, origin, metrics, form_factor, +1 more.
query_recordLatest CrUX record (raw)ARead-onlyIdempotent
Returns the latest 28-day rolling CrUX record for an origin or URL (raw API response, updated daily ~04:00 UTC). Per metric: histogram (3 bins good/needs-improvement/poor with density), percentiles.p75, and for enum metrics fractions. Timings are integer ms; cumulative_layout_shift p75 is a string-encoded double (e.g. "0.05"). collectionPeriod always spans 28 days. urlNormalizationDetails appears if the URL was normalized (e.g. fragment stripped). A no-data answer (HTTP 404) is returned as {no_data: true} — not an error. Prefer get_core_web_vitals for a ready-made assessment; use this for full histograms/fractions.
Inputs: url, origin, metrics, form_factor.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 6 tools
Each tool has a clearly distinct purpose: processed current assessment (get_core_web_vitals), device comparison (compare_form_factors), origin vs URL comparison (compare_origin_vs_url), historical trend (get_cwv_trend), and raw current/historical API queries (query_record, query_history_record). The processed/raw pairs are explicitly differentiated by use cases, leaving no ambiguity.
All tool names follow a consistent verb_noun pattern in snake_case, with get_ for processed views, compare_ for comparisons, and query_ for raw API access. The naming clearly signals the action and domain, and while 'get_cwv_trend' uses an acronym, it remains consistent with the pattern.
Six tools is a well-scoped count for a specialized CrUX server. Each tool fills a distinct niche—current, historical, comparisons, and raw access—without redundancy or bloat. The count is neither too thin nor excessive for the domain.
The tool set covers the core CrUX workflows comprehensively: single-point assessment, trend analysis, cross-device comparison, origin vs page comparison, and raw data access for custom analysis. There are no obvious dead ends or missing operations for the stated purpose of accessing CrUX data.
Maintenance
Related MCP Connectors
Core Web Vitals (LCP, INP, CLS) per URL from the Chrome UX Report, with daily checks on Pro.
Real-user Core Web Vitals for any website with enough traffic, from Google's Chrome UX Report…
Real User Monitoring for Core Web Vitals. Query LCP, INP, CLS field data from real visitors.
Query your SEO data in plain language: rankings, audits, backlinks, competitors and AI visibility.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables querying Google Search Console data via natural language, providing tools for site traffic analysis, page changes, and optimization opportunities.-
- AlicenseNot gradedqualityDmaintenanceEnables querying Google Search Console data, including search analytics with advanced filtering, quick wins detection, and rich dimensions, through natural language.MIT
- AlicenseAqualityDmaintenanceMCP server for the Chrome UX Report, providing real-user Core Web Vitals (LCP, INP, CLS) and historical trends for any origin or URL via natural language queries.32MIT
- AlicenseAqualityBmaintenanceEnables querying Google Search Console, GA4, and IndexNow data via natural language, allowing users to ask about site rankings, clicks, indexing status, and conversions.131MIT