Skip to content
MCP server

PageSpeed Insights MCP

Measure PageSpeed Insights as the median of five distinct runs, with the spread

Runs locallyStatus and history
Install
Pricing
Open source
Platforms
CLI, macOS, Linux
Runs
Locally
Version
2.0.1
Listing updated
3 days ago

About PageSpeed Insights MCP

PageSpeed Insights MCP is an open-source MCP server for developer tools. It runs locally on your machine and is started by your AI client.

The idea here is that a single Lighthouse run is noise, so this server keeps asking Google until it has five genuinely different analyses and reports the median with the min-max spread beside each figure. The README explains that PageSpeed caches results per URL, so repeated calls can return the same stale analysis; the server drops cached replays and says how many it dropped.

It also shows Chrome UX Report data, with up to six months of weekly history, separately from the lab score and never blended. When a small site has no real-user data, it says so. The README illustrates the gap with a lab LCP of 21.36 s against 1.20 s for real users on one large news site. A terminal mode exits with a code that separates a broken site from quota exhaustion.

It uses only the Python standard library, is Apache 2.0, and runs on macOS, Linux or Windows.

Install

Run in a terminal

claude mcp add pagespeed-insights-mcp -- npx -y https://github.com/Considus/pagespeed-insights-mcp/releases/download/v2.0.1/pagespeed-insights-mcp-2.0.1.mcpb

Add to claude_desktop_config.json

{
  "mcpServers": {
    "pagespeed-insights-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "https://github.com/Considus/pagespeed-insights-mcp/releases/download/v2.0.1/pagespeed-insights-mcp-2.0.1.mcpb"
      ]
    }
  }
}
Install in CursorOpens Cursor, which asks you to confirm. Or add it by hand:

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "pagespeed-insights-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "https://github.com/Considus/pagespeed-insights-mcp/releases/download/v2.0.1/pagespeed-insights-mcp-2.0.1.mcpb"
      ]
    }
  }
}
Install in VS CodeOpens VS Code, which asks you to confirm. Or add it by hand:

Add to .vscode/mcp.json

{
  "servers": {
    "pagespeed-insights-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "https://github.com/Considus/pagespeed-insights-mcp/releases/download/v2.0.1/pagespeed-insights-mcp-2.0.1.mcpb"
      ]
    }
  }
}

Add to ~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "pagespeed-insights-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "https://github.com/Considus/pagespeed-insights-mcp/releases/download/v2.0.1/pagespeed-insights-mcp-2.0.1.mcpb"
      ]
    }
  }
}

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "pagespeed-insights-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "https://github.com/Considus/pagespeed-insights-mcp/releases/download/v2.0.1/pagespeed-insights-mcp-2.0.1.mcpb"
      ]
    }
  }
}

What it does

Median of five
Reports the median of distinct analyses with spread.
Cache-replay filter
Drops repeated cached results and counts them.
Lab and field data
Shows Lighthouse and Chrome UX Report separately.
Terminal use
Exit codes separate failures for build pipelines.
No dependencies
Standard library only; no pip or venv.

Good for

  • Check whether a speed score really changed after a deploy
  • Report real-user Core Web Vitals when available
  • Gate a CI build on page speed with meaningful exit codes

Pricing

Open source

Free, Apache 2.0

Prices change. Check considus.com before you buy.

PageSpeed Insights MCP FAQ

Why five runs?

One run is noisy, so the median and spread show whether a change is real.

Does it need a virtual environment?

No. It uses only the standard library.

What licence is it under?

Apache 2.0.

Is PageSpeed Insights MCP free?

Yes. PageSpeed Insights MCP is open source, so you can use and self-host it for free.

How do I add PageSpeed Insights MCP to Claude Code?

Run this command in your terminal: claude mcp add pagespeed-insights-mcp -- npx -y https://github.com/Considus/pagespeed-insights-mcp/releases/download/v2.0.1/pagespeed-insights-mcp-2.0.1.mcpb

What are the best alternatives to PageSpeed Insights MCP?

The closest alternatives to PageSpeed Insights MCP are REA, Codebase Memory, GitHub, Serena MCP: the IDE for your agent and XERJ.

Alternatives to PageSpeed Insights MCP

  1. REA

    MCP server

    CLI and MCP server that lets coding agents reverse engineer apps and binaries

    Runs locally
    • Open source
    • 464K GitHub stars
    • Developer tools
  2. Codebase Memory

    MCP server

    Local MCP server that builds a code knowledge graph for AI coding agents

    Runs locally
    • Open source
    • 48.7K GitHub stars
    • Knowledge and memory
  3. GitHub

    MCP server

    Official MCP server connecting AI assistants to GitHub repos, issues and workflows

    Not checked yet
    • Remote
    • Open source
    • 34.5K GitHub stars
    • Developer tools
  4. MCP toolkit giving coding agents symbol-level code retrieval and editing

    Runs locally
    • Open source
    • 31.5K GitHub stars
    • Developer tools
  5. XERJ

    MCP server

    Local search engine for AI agents with cited answers over your code and docs

    Runs locally
    • Open source
    • 19.2K GitHub stars
    • Knowledge and memory
  6. Ouroboros

    MCP server

    Spec-first layer that pins requirements and verifies results of AI coding agent work

    Runs locally
    • Open source
    • 6.4K GitHub stars
    • Developer tools