Google PageSpeed Insights & CrUX APIs: 16 tools for web performance audits.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
We haven't yet run this listing's install command through our automated sandbox check. This isn't a red flag β we're steadily working through the catalog.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
Six-tool MCP server for Google PageSpeed Insights & Chrome UX Report APIs. Analyze, compare, and optimize web performance directly through Claude, Cursor, or any MCP-compatible AI client.
Get a free API key at Google Cloud Console β paste into Claude Desktop's claude_desktop_config.json β restart. Done. (Codex/OpenAI config, Docker)
Most PageSpeed MCP servers wrap one tool: "run PSI on a URL." This server ships six workflow tools covering the full performance workflow β not just a score, but an action plan:
π¬ View Interactive Demo β β See the tools in action with animated examples Fallback URL: https://ruslanlap.github.io/pagespeed-insights-mcp/demo.html
Add to your claude_desktop_config.json:
Add to your configuration (TOML):
Note: The
pino-prettypackage is required for proper log formatting. The above configurations ensure it is installed automatically vianpx.
Add to ~/.grok/config.toml (global) or <repo>/.grok/config.toml (project-scoped, higher priority):
Project-scoped example (put in this repo's .grok/config.toml for local dist/index.js + tighter Serena):
Verification inside Grok session:
/mcps (or Ctrl+L β MCP tab) β ensure pagespeed-insights shows "running"pagespeed-insights__pagespeed_analyze_page, pagespeed-insights__pagespeed_get_field_data, etc. (namespaced)Real pagespeed_analyze_page results for github.com β one mobile Lighthouse run. CrUX numbers come from pagespeed_get_field_data with scope: "origin":
Lighthouse lab scores:
| Category | Score | Status |
|---|---|---|
| Performance (mobile) | 54/100 | π΄ Poor |
| Performance (desktop) | 52/100 | π΄ Poor |
Core metrics (mobile):
| Metric | Value | Rating |
|---|---|---|
| First Contentful Paint | 11.9 s | π΄ Poor |
| Largest Contentful Paint | 13.4 s | π΄ Poor |
| Total Blocking Time | 30 ms | π’ Excellent |
| Cumulative Layout Shift | 0.07 | π’ Good |
| Speed Index | 11.9 s | π΄ Poor |
CrUX field data β real users, github.com origin (phone):
| Metric | p75 (real users) |
|---|---|
| First Contentful Paint | 1.9 s |
| Largest Contentful Paint | 2.2 s |
| Interaction to Next Paint | 243 ms |
| Cumulative Layout Shift | 0.02 |
Results vary between runs β Lighthouse lab data is noisy (a single run is one sample). Use
runs: 3-5for medians.Lab vs field: Lighthouse throttles the connection (hence 54/100 mobile), while CrUX shows how actual GitHub visitors experience it β both views come straight from this server's tools.
We have comprehensive documentation available online.
π View Full Documentation Site
You can also view the raw markdown files in the
docs/directory or runmkdocs servelocally.
Current release: v2.0.0.
Recent highlights:
pagespeed_* tools replace the 19 v1 endpoint-shaped tools; all data tools support Markdown or JSON with structured results.The badges at the top of this README update automatically on every release (npm version, GitHub package version, downloads). No manual edits needed.
For the complete release history, see CHANGELOG.md.
Pain point 1 β "My page is slow but I don't know why." You open PageSpeed Insights, get a wall of data, and still can't tell what to fix first. This MCP gives your AI assistant six focused workflows that cut through the noise: it identifies the exact render-blocking resources, the specific images wasting 2 MB, the third-party scripts eating 1.5 s of main-thread time β and ranks them by impact. Ask "why is my site slow?" and get a prioritized fix list, not a 40-metric dashboard.
Pain point 2 β "I ship performance regressions to production." Your team moves fast, deploys daily, and nobody runs a full Lighthouse audit before each merge. By the time someone notices the Core Web Vitals dropped, the regression is already live. This MCP lets any developer paste a URL into Claude/Cursor and get a complete audit β lab data, field data from real Chrome users (CrUX), element-level CLS/LCP debugging β in seconds. It's the difference between catching a regression at your desk and discovering it in a Slack message from the SEO team three days later.
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/pagespeed-insights-mcp-2)<a href="https://allmcps.com/mcp/pagespeed-insights-mcp-2"><img src="https://allmcps.com/api/badge/pagespeed-insights-mcp-2?style=directory" alt="Pagespeed Insights MCP on AllMCPs" /></a>