Skip to content
MCP server

Pagespeed Insights MCP

Google PageSpeed Insights and CrUX: six workflow tools for web performance.

Runs locallyStatus and history
Install
Pricing
Open source
Runs
Locally
Version
2.2.0
Listing updated
6 days ago

About Pagespeed Insights MCP

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

Install

Run in a terminal

claude mcp add pagespeed-insights-mcp --env GOOGLE_API_KEY='<GOOGLE_API_KEY>' -- npx -y pagespeed-insights-mcp

Add to claude_desktop_config.json

{
  "mcpServers": {
    "pagespeed-insights-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "pagespeed-insights-mcp"
      ],
      "env": {
        "GOOGLE_API_KEY": "<GOOGLE_API_KEY>"
      }
    }
  }
}

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "pagespeed-insights-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "pagespeed-insights-mcp"
      ],
      "env": {
        "GOOGLE_API_KEY": "<GOOGLE_API_KEY>"
      }
    }
  }
}

Add to .vscode/mcp.json

{
  "servers": {
    "pagespeed-insights-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "pagespeed-insights-mcp"
      ],
      "env": {
        "GOOGLE_API_KEY": "<GOOGLE_API_KEY>"
      }
    }
  }
}

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

{
  "mcpServers": {
    "pagespeed-insights-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "pagespeed-insights-mcp"
      ],
      "env": {
        "GOOGLE_API_KEY": "<GOOGLE_API_KEY>"
      }
    }
  }
}

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

{
  "mcpServers": {
    "pagespeed-insights-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "pagespeed-insights-mcp"
      ],
      "env": {
        "GOOGLE_API_KEY": "<GOOGLE_API_KEY>"
      }
    }
  }
}

Using several servers? Build one config file with the MCP config generator.

Configuration

  • GOOGLE_API_KEYGoogle API key with PageSpeed Insights API enabledRequired

Pricing

Open source

Pagespeed Insights MCP FAQ

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 --env GOOGLE_API_KEY='<GOOGLE_API_KEY>' -- npx -y pagespeed-insights-mcp

Where this comes from

  • Description: from the official MCP Registry entry.
  • Install steps: from the official MCP Registry entry.

How AIPoweredBot checks servers