Skip to main content
Glama
PageSpeed Insights MCP Server

PageSpeed Insights MCP Server

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
GOOGLE_API_KEYYesGoogle API key for PageSpeed Insights API

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{}
prompts
{}
resources
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
pagespeed_analyze_pageA

Run a PageSpeed Insights (or local Lighthouse for localhost/private URLs) analysis for one page. Start with report=summary for a health check; choose full for audits, recommendations for a prioritized fix list, audit for non-performance categories, or performance-map for Mermaid. Example: analyze a mobile product page and return the three most useful remediation steps. Returns a report plus structured result.

pagespeed_diagnose_pageA

Inspect one page through exactly one diagnostic lens: visual, elements, network, javascript, images, render-blocking, or third-parties. Use after pagespeed_analyze_page identifies a problem; do not use it for a general score. Example: focus=render-blocking to identify CSS/JS delaying first render. Returns focused evidence (including native image screenshots when focus=visual).

pagespeed_get_field_dataA

Get real-user Core Web Vitals from Chrome UX Report, not Lighthouse lab measurements. Use scope=page for one URL; use scope=origin with a bare origin when the page has insufficient traffic. Set includeHistory=true to inspect multi-week historical trends. Returns p75 field metrics, distribution histograms, or a clear no-data result.

pagespeed_compare_pagesA

Compare two pages now (mode=pages) or measure one page against its locally stored baseline (mode=baseline). Baseline mode records the first call; use runs=3 or more and rely on guaranteed deltas, not medians alone. Example: compare staging against production, or verify whether a deployed fix improved mobile LCP. replaceBaseline overwrites local baseline state.

pagespeed_analyze_batchA

Analyze 1–10 URLs in parallel (bounded by concurrency) and return per-page results plus success/failure counts. Use pagespeed_analyze_page for one URL or pagespeed_compare_pages for a direct comparison. Progress notifications are emitted when supported by the client.

pagespeed_clear_cacheA

Clear only this server process's in-memory PageSpeed response cache, forcing later analysis calls to contact Google again. Use after a deploy when a cached result is stale. It does not change the target website, files, or remote data; repeating the call is safe.

Prompts

Interactive templates invoked by user choice

NameDescription
performance-auditDeep dive audit of a webpage with Lighthouse lab metrics, CrUX field data, and prioritized remediation actions.
release-comparisonCompare production vs staging/preview URL to verify whether recent changes caused Core Web Vitals regressions.
core-web-vitals-deepdiveAnalyze Chrome UX Report (CrUX) 28-day real-user field metrics against Lighthouse synthetic lab simulation to diagnose user experience discrepancies.

Resources

Contextual data attached and managed by the client

NameDescription
Google Core Web Vitals Official Reference GuideDefinitive 2026 Core Web Vitals thresholds (Good / Needs Improvement / Poor) for LCP, INP, CLS, FCP, TTFB, and TBT, plus Lab vs Field guidance.
Local PageSpeed Stored BaselinesLocally recorded performance baselines for regression comparisons and tracking improvements over time.

TDQS

A4.3/5.0

Scored across 6 tools

Disambiguation5/5

Each tool targets a distinct workflow: general analysis, focused diagnosis, field data, comparison, batch analysis, and cache clearing. The potentially overlapping analyze/diagnose pair is explicitly differentiated by scope and use case.

Naming Consistency5/5

All tools use the same pagespeed_ prefix and a predictable snake_case verb_noun pattern, such as analyze_page, get_field_data, and clear_cache. The convention is consistent throughout.

Tool Count5/5

Six tools are well-scoped for a PageSpeed Insights server, with each tool earning its place by covering a separate workflow. There are no redundant variants or obviously missing core operations.

Completeness4/5

The set covers the main lifecycle: single-page analysis, diagnostic drill-downs, real-user field data, comparisons, batch runs, and cache clearing. A minor gap exists around explicit baseline management, since baseline state is handled implicitly through compare_pages rather than dedicated list/reset tools.

Maintenance

ActivityActive
ResponsivenessLimited data