Summary
Page speed and Core Web Vitals from Google: run a PageSpeed Insights (Lighthouse) test on any public page for performance, accessibility, best practices and SEO scores with findings, and query the Chrome UX Report for real-user LCP, INP and CLS of a site or page, current and as weekly history. One free Google API key.
Guided setup
Connect Google PageSpeed Insights to ChatGPT in 2 minutes
Start a free trial on AnythingMCP Cloud, connect Google PageSpeed Insights in the guided setup, then add your MCP URL to ChatGPT. No code and no server to run.
No credit card · 7-day trial · Self-host alternative available
AnythingMCP's plugin in ChatGPT's directory answers questions from your company databases on AnythingMCP Cloud (PostgreSQL, MySQL, SQL Server, Oracle, SAP HANA, SQLite, MongoDB, read-only): open the listing (opens in a new tab) and click Install plugin. Every other connector is added to ChatGPT as a custom MCP server with your AnythingMCP MCP URL.
Try asking
Example prompts for Google PageSpeed Insights
Click any prompt to copy it. Paste into Claude, ChatGPT, Cursor, Gemini, Copilot or OpenClaw to run it against this connector.
Claude is AI and can make mistakes. Please double-check responses.
💡 No install? Use cloud.anythingmcp.com directly. Sign in, click Connectors → Google PageSpeed Insights, paste your credentials, mint an MCP API key and you're done. No Docker, no
git clone, no local server.
Google PageSpeed Insights + ChatGPT
Page speed and Core Web Vitals from Google: run a PageSpeed Insights (Lighthouse) test on any public page for performance, accessibility, best practices and SEO scores with findings, and query the Chrome UX Report for real-user LCP, INP and CLS of a site or page, current and as weekly history. One free Google API key.
Prerequisites
See the full setup instructions baked into the connector (visible in the in-app store when you select the connector). The required environment variables for this connector are:
GOOGLE_PAGESPEED_API_KEY
Step 1 — Get credentials
Setting up takes about 5 minutes.
- Open https://console.cloud.google.com and pick or create a project.
- APIs & Services, Library: enable PageSpeed Insights API and Chrome UX Report API (both are needed; the setup check calls CrUX).
- APIs & Services, Credentials, Create credentials, API key. Under API restrictions allow exactly those two APIs. Do not add an HTTP referrer restriction: the calls come from a server.
- Paste the key as
GOOGLE_PAGESPEED_API_KEY. It is sent as thekeyquery parameter. Both APIs are free of charge.
Lab data or field data
- Lab (Lighthouse,
google_pagespeed_get_scoresandgoogle_pagespeed_run_audit): one synthetic load of the page on emulated hardware, right now. Good for diagnosing and for pages without traffic. Results vary by a few points between runs. - Field (CrUX,
google_pagespeed_query_crux_recordandgoogle_pagespeed_query_crux_history): 75th percentile over 28 days of real Chrome users. This is what Google uses for Core Web Vitals in Search. It changes slowly and only exists for pages and sites with enough traffic.
Where to start: google_pagespeed_get_scores with the page address and strategy MOBILE gives scores, the key metrics and the field summary in one small answer. For the list of problems and savings run google_pagespeed_run_audit with one category. For a site-wide or historical view use the CrUX tools with origin.
PageSpeed parameters
urlmust be public and include the scheme.strategyis MOBILE (default) or DESKTOP.categoryis a list of PERFORMANCE, ACCESSIBILITY, BEST_PRACTICES, SEO; without it only PERFORMANCE runs.- Category
scoreis 0 to 1: 0.9 and above is good, 0.5 to 0.89 needs improvement, below 0.5 is poor. A null score means the audit did not apply or failed; checklighthouseResult.runtimeErrorandrunWarnings. - A run takes 10 to 60 seconds; heavy pages can fail with a 500 answer. Retry once before reporting a failure.
CrUX request rules (most failed calls break one of these)
- Give exactly one of
originorurl. Both together, or neither, is refused with 400. originis scheme plus host with no path:https://www.example.com.urlis one full page address.https://example.comandhttps://www.example.comare different origins: use the one the site actually serves.form_factoris PHONE, DESKTOP or TABLET in capitals (PageSpeed says MOBILE, CrUX says PHONE). Leave it out for all devices together.metricsis a list of lower-case names with underscores, such aslargest_contentful_paint. Leave it out for all metrics.first_input_delayno longer exists; its successor isinteraction_to_next_paint.- 404 NOT_FOUND means Chrome has too little data for that key, not that the request is wrong: try without
form_factor, then withorigininstead ofurl.
Reading CrUX values: percentiles.p75 is the value 75 percent of page loads stay under. Thresholds (good / poor): LCP 2500 / 4000 ms, INP 200 / 500 ms, CLS 0.1 / 0.25, FCP 1800 / 3000 ms, TTFB 800 / 1800 ms. A page passes Core Web Vitals when LCP, INP and CLS are all good at p75. Histogram densities are shares between 0 and 1. The daily record covers a rolling 28 days ending about two days ago; history points are weekly windows of 28 days each.
Quotas: PageSpeed Insights allows about 25,000 runs a day and 240 a minute per project; CrUX allows 150 queries a minute. Exceeding them answers 429.
Step 2 — Install the adapter
curl -fsSL https://raw.githubusercontent.com/HelpCode-ai/anythingmcp/main/docker-compose.quickstart.yml -o docker-compose.yml
printf 'JWT_SECRET=%s\nENCRYPTION_KEY=%s\n' "$(openssl rand -hex 32)" "$(openssl rand -hex 32)" > .env
docker compose up -d
Step 3 — Add the connector in ChatGPT
Your server URL: in AnythingMCP, open MCP Servers → the server this connector is on, and copy its URL (
https://cloud.anythingmcp.com/mcp/…). Use it wherever this guide showsYOUR_SERVER_ID.
ChatGPT adds MCP servers as plugins on its Plugins page, on the web and on paid plans. Developer mode is no longer needed. In a Business workspace only admins and owners can add one; in Enterprise and Edu an admin can grant the Create plugins with MCPs permission.
- Go to chatgpt.com/plugins, click Add, then Add custom MCP server.
- Enter a name, e.g. Name:
Google PageSpeed Insights. - Under Connection, enter the Server URL
https://cloud.anythingmcp.com/mcp/YOUR_SERVER_IDand keep Authentication on OAuth. - Select I understand and want to continue, then Create as a plugin. When ChatGPT asks, sign in to AnythingMCP and allow access.
- Install the new plugin from your personal plugins, then type @ in a chat and pick it.
Available tools
| Tool | What it does |
|---|---|
google_pagespeed_get_scores | Run PageSpeed Insights on a page and return the summary: the Lighthouse category scores (0 to 1; multiply by 100 for the usual 0 to 100… |
google_pagespeed_run_audit | Run PageSpeed Insights on a page and return the full Lighthouse report: every audit under lighthouseResult.audits (id, title, description… |
google_pagespeed_query_crux_record | Query the Chrome UX Report (CrUX) for the real-user experience of a site or a page over the last 28 days. Returns record.key (what was… |
google_pagespeed_query_crux_history | Query the Chrome UX Report history for a site or a page: the weekly time series of the last 25 collection periods (about 6 months; up to… |
Example prompts
- "What are the mobile performance, accessibility and SEO scores of our home page?"
- "Does our site pass Core Web Vitals for real users on phones?"
- "List the biggest performance problems of our product page and the savings for each."
- "How did the LCP of our origin develop over the last weeks?"
- "Compare the desktop and mobile scores of our pricing page."
FAQ
Where does the API key come from? In the Google Cloud console pick a project, enable PageSpeed Insights API and Chrome UX Report API (both are needed), then create an API key under Credentials and restrict it to those two APIs. Do not add an HTTP referrer restriction. Both APIs are free of charge.
What is the difference between lab and field data? Lab data is one Lighthouse test of the page right now, on emulated hardware, with scores and findings; it varies by a few points between runs and works for pages without traffic. Field data from the Chrome UX Report is the 75th percentile of real Chrome users over 28 days, the data Google uses for Core Web Vitals, and only exists for pages and sites with enough traffic.
Which tools install switched off? None: the four tools only read. Only public pages can be tested.
Does the free ChatGPT plan work with custom MCP servers? OpenAI documents custom MCP servers for paid plans only; the Free plan is not on its list.
Next steps
Was this guide helpful?