Pagespeed MCP Server

MCP server for Google PageSpeed Insights & Chrome UX Report APIs — 16 tools to analyze, compare, and optimize web performance with Claude, Cursor, or

Local serverstdioGo

What is the Pagespeed MCP Server?

MCP server for Google PageSpeed Insights & Chrome UX Report APIs — 16 tools to analyze, compare, and optimize web performance with Claude, Cursor, or any

The short version

Add to ~/.grok/config.toml (global) or <repo>/.grok/config.toml (project-scoped, higher priority):

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
analyze_page_speed
get_performance_summary
get_recommendationsGenerate smart performance recommendations with priority scoring and actionable fixes.
clear_cacheClear the internal cache to force fresh API requests for all subsequent analyses.
get_visual_analysisGet screenshots and visual timeline showing how the page loads.
get_element_analysis
get_network_analysisGet detailed network waterfall showing all requests with timing and size.
get_javascript_analysisGet JavaScript execution breakdown showing performance impact.
get_image_optimization_detailsGet specific images needing optimization with exact savings potential.
get_render_blocking_details
get_third_party_impact
get_full_auditGet comprehensive audit results for all Lighthouse categories.
crux_summaryGet real-world Core Web Vitals from the Chrome UX Report (field data from actual Chrome users).
compare_pages

How to install the Pagespeed MCP Server

{
  "mcpServers": {
    "pagespeed-insights": {
      "command": "npx",
      "args": ["-y", "-p", "pino-pretty", "-p", "pagespeed-insights-mcp", "pagespeed-insights-mcp"],
      "env": {
        "GOOGLE_API_KEY": "your-google-api-key-here"
      }
    }
  }
}

Configuration as documented by the project. Restart the client after saving.

Configuration

VariableDescriptionRequired
GOOGLE_API_KEYCredential the server authenticates with.Yes

Example prompts to try

  • “Use Pagespeed to analyze page speed.”
  • “Use Pagespeed to get performance summary.”
  • “Use Pagespeed to get recommendations.”

Frequently asked questions

MCP server for Google PageSpeed Insights & Chrome UX Report APIs — 16 tools to analyze, compare, and optimize web performance with Claude, Cursor, or any Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.