← Back to directory
P

PageSpeed Insights MCP Server

Community
Analyze web performance from an AI client.
Category
Dev Tools #61 of 751
Stars
★ 87 Popular
Transport
stdio (local process) · Streamable HTTP
Runtime
Node.js 20.19.0+
Credentials
Optional API key
License
Apache-2.0
Last commit
Tools
6
61FMRS · C

The source lists six tools for PageSpeed Insights, CrUX, and Lighthouse workflows, provides a stdio installation configuration, and describes an optional Streamable HTTP mode. The server is suited to web performance audits and regression checks; the source does not establish that Google officially maintains it.

Strongest · Documentation 15/20 Weakest · Reliability 10/20

Reliability
10/20
Security and permissions
12/20
Maintenance
10/20
Documentation
15/20
Setup experience
14/20
Why each score
Reliability 10/20
The README describes six tools, caching, timeouts, retries, and concurrency limits, and claims CI and a test suite. The supplied material does not include implementation, workflow, or test files, so the MCP initialization and tool-list handshake, error paths, and consistency between declared and actual behavior cannot be verified. The score reflects that static evidence gap.
Security and permissions 12/20
The material says the server calls Google PSI/CrUX and can run Lighthouse locally; it also mentions optional repository path mapping, baseline file writes, and HTTP Bearer authentication. The API key is marked optional and secret, and examples use placeholders. No red-line evidence is present, but data flows, file-access scope, and authorization boundaries lack verifiable implementation evidence, so the score is limited.
Maintenance 10/20
Apache-2.0 licensing is stated, the repository is not archived, and the supplied metadata reports 85 stars and one open issue. The README also lists release and security-policy links. The material provides no commit or release dates, dependency-update evidence, issue response history, or security-response details to establish sustained maintenance.
Documentation 15/20
The README covers tool purposes, client configuration, environment variables, budget examples, CLI checks, transport, runtime requirements, and documentation links. Deductions reflect limited evidence for complete parameter details, quota and cost limits, troubleshooting, and implementation of the described features; badges and external claims are not independently verified.
Setup experience 14/20
The README provides an npx client configuration, Codex TOML and Docker examples, a Node.js requirement, and guidance on optional API keys and keyless use. The score is limited because platform compatibility and actual execution are not verifiable from the supplied material, and no CI or key-path test files were provided for review.

Static review · not runReviewed 2026-11-30

Read the FMRS scoring method →

Fit and risk

What it can accessReads local filesWrites / deletes local filesRuns commands or codeUses the network

Best for

  • Developers and SEO practitioners who want website performance analysis in an MCP client.
  • Teams using Lighthouse, CrUX data, or performance budgets to investigate regressions.

Not for

  • Users seeking general-purpose web browsing or MCP features unrelated to performance audits.
  • Users who require a Google-maintained official server; the source does not indicate that Google maintains this server.

Required permissions

  • Running the MCP server requires Node.js; the README specifies Node.js >= 20.19.0.
  • Auditing public URLs uses Google PageSpeed Insights; local Lighthouse analysis of localhost or private addresses requires local Chrome/Chromium.
  • GOOGLE_API_KEY can raise PSI quotas and provide CrUX field data; the manifest marks it optional.
  • For HTTP mode, MCP_AUTH_TOKEN can optionally provide Bearer authentication.

Risks and side effects

  • Public URL analysis sends requests to Google PageSpeed Insights; avoid submitting URLs or information that should not be sent to an external service.
  • Local analysis depends on local Chrome/Chromium; protected staging sites may need extra request headers.
  • The README describes local baseline file storage and HTTP mode; protect baseline data and access tokens when deploying.

Setup

Before you start

Runtime:Node.js 20.19.0+

GOOGLE_API_KEY optionalsecret Optional Google API key for higher PageSpeed Insights quotas and CrUX field data; obtain one from Google Cloud Console.
MCP_AUTH_TOKEN optionalsecret Optional Bearer authentication token for HTTP mode.
Other optional settings (8)
MAX_CONCURRENCY optional Optional setting for the maximum number of concurrent analyses.
REQUEST_TIMEOUT optional Optional per-request timeout setting in milliseconds.
RETRY_ATTEMPTS optional Optional retry count for transient network or server errors.
CACHE_TTL optional Optional in-memory cache lifetime setting in seconds.
LOG_LEVEL optional Optional setting for the log level.
LOG_PRETTY optional Optional setting to enable colorized log output.
PAGESPEED_BASELINES_DIR optional Optional override for the performance baseline storage directory.
CHROME_PATH optional Optional path to the Chrome or Chromium executable used for local Lighthouse runs.

Add the supplied JSON configuration to the MCP client configuration for Claude Desktop, Cursor, or Antigravity, then restart the client. GOOGLE_API_KEY can raise PageSpeed Insights quotas and provide CrUX field data; the manifest marks it optional. The README also describes starting without a key.

claude_desktop_config.json
{"mcpServers":{"pagespeed-insights":{"command":"npx","args":["-y","pagespeed-insights-mcp"],"env":{"GOOGLE_API_KEY":"your-google-api-key"}}}}

Shown for Claude Desktop. Other clients may use a different file or key (VS Code uses "servers") — the configurator below converts it.

.vscode/mcp.json
{
  "servers": {
    "pagespeed-insights": {
      "command": "npx",
      "args": [
        "-y",
        "pagespeed-insights-mcp"
      ],
      "env": {
        "GOOGLE_API_KEY": "your-google-api-key"
      }
    }
  }
}

Goes in your project's .vscode/mcp.json (VS Code uses a "servers" key).

~/.codex/config.toml
[mcp_servers.pagespeed-insights]
command = "npx"
args = ["-y", "pagespeed-insights-mcp"]

[mcp_servers.pagespeed-insights.env]
GOOGLE_API_KEY = "your-google-api-key"

Append to ~/.codex/config.toml (OpenAI Codex CLI uses TOML).

Terminal
claude mcp add pagespeed-insights -e GOOGLE_API_KEY=your-google-api-key -- npx -y pagespeed-insights-mcp

Run it in a terminal; replace any <…> placeholders with your own values first.

Check that it works

Confirm that `pagespeed_analyze_page` appears in your client's tool list. Ask it to analyze a public page; a Lighthouse report confirms the connection is working.

Troubleshooting

  1. Check that the MCP client configuration uses the npx command and pagespeed-insights-mcp package, then restart the client after changes.
  2. If quotas are insufficient or CrUX field data is unavailable, check GOOGLE_API_KEY and whether the required Google APIs are enabled.
  3. If localhost analysis fails, check that Chrome/Chromium is available and set CHROME_PATH if needed.
  4. If HTTP mode is unreachable, check the server address, port, and Bearer token when authentication is enabled.

Things to try

Once connected, you can ask your AI assistant things like:

  • Analyze the mobile performance of https://example.com and suggest prioritized fixes.
  • Compare the performance of https://example.com and https://www.example.org.
  • Show the CrUX Core Web Vitals field data for https://example.com.

Tools 6

pagespeed_analyze_page read-only
Get a Lighthouse summary, full report, audit recommendations, audit results, or a performance map.
pagespeed_diagnose_page read-only
Diagnose a page through visual, elements, network, JavaScript, images, render-blocking, or third-party views.
pagespeed_get_field_data read-only
Get CrUX real-user Core Web Vitals, traffic histograms, and optional weekly history trends.
pagespeed_compare_pages read-only
Compare pages side by side or check multiple runs against a stored baseline for regressions.
pagespeed_analyze_batch read-only
Analyze 1–10 URLs in parallel with MCP progress notifications.
pagespeed_clear_cache writes
Clear the in-memory response cache.

Use cases

Audit public pages or localhost pages.
Find performance issues in Lighthouse reports and inspect diagnostics.
Review real-user Core Web Vitals and historical trends.
Compare pages or check for performance regressions against a stored baseline.
Check up to 10 URLs in a batch or use the CLI performance budget check.

Supported clients

Claude Desktop
Cursor
Codex
Antigravity

Listed from the project's documentation, not tested by this site.

Overview

PageSpeed Insights MCP Server analyzes web performance using Google PageSpeed Insights, Chrome UX Report (CrUX), and local Lighthouse. It supports audits of public pages and localhost, performance diagnostics, real-user Core Web Vitals data, page comparisons, and batch analysis.

Similar servers

Source revision 1552c6e60301 Data synced 2026-12-05 Read the FMRS scoring method Markdown

Maintainer badge: embed FMRS score

Paste this Markdown into your repository README to display a live score badge:

README.md
[![FollowMCP](https://followmcp.com/badges/pagespeed-insights-mcp.svg)](https://followmcp.com/en/servers/pagespeed-insights-mcp)