MCP PageSpeed Insights
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| CACHE_TTL_MS | No | How long to cache API responses in milliseconds | 300000 |
| GOOGLE_API_KEY | Yes | Your Google API key for PageSpeed Insights |
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
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| analyze_urlB | Run a comprehensive Google PageSpeed Insights analysis on a URL. Returns all category scores, key performance metrics, and top improvement opportunities. |
| get_performance_metricsB | Get Core Web Vitals and key performance metrics for a URL. Returns performance score, LCP, CLS, TBT, FCP, Speed Index, TTI, and TTFB with ratings. |
| get_recommendationsA | Get prioritized performance improvement recommendations for a URL. Returns actionable opportunities sorted by estimated impact, with savings in milliseconds and bytes. |
| get_network_analysisB | Get detailed network analysis for a URL including resource breakdown by type, total transfer sizes, and the largest resources impacting load time. |
| get_js_analysisB | Get JavaScript execution analysis for a URL. Returns JS boot-up time, main thread work breakdown, unused JavaScript, and the most expensive scripts by execution time. |
| get_image_optimizationB | Get image optimization analysis for a URL. Identifies images that need compression, format conversion to modern formats (WebP/AVIF), lazy-loading opportunities for offscreen images, and unsized images causing layout shifts. |
| get_render_blockingA | Get render-blocking resource analysis for a URL. Identifies CSS and JavaScript resources that block first paint, critical request chains, and preconnect/preload opportunities. |
| get_third_party_impactB | Get third-party script impact analysis for a URL. Shows which third-party providers are loaded, their transfer sizes, main thread blocking time, and facade opportunities to defer loading. |
| get_accessibility_issuesB | Get accessibility audit results for a URL. Returns the accessibility score and all failing accessibility checks grouped by impact level, with affected elements and remediation guidance. |
| compare_strategiesA | Compare mobile vs desktop PageSpeed Insights results side-by-side for a URL. Shows score differences across all categories and key performance metric comparisons to identify strategy-specific issues. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 10 tools
The tools mostly target distinct analysis areas (performance metrics, recommendations, network, JS, images, render blocking, third-party impact, accessibility, strategy comparison). However, analyze_url is a comprehensive tool that overlaps in purpose with several specialized get_* tools, which could cause an agent to choose it instead of a focused tool when both would satisfy a request.
All tool names use consistent snake_case and follow a predictable verb_noun pattern, such as get_performance_metrics, get_image_optimization, compare_strategies, and analyze_url. There are no mixed conventions or unclear name styles.
The server exposes 10 tools, which is well-scoped for a PageSpeed Insights integration. Each tool earns its place by covering a meaningful analysis dimension without excessive fragmentation.
The surface covers the core PageSpeed domains well: performance, recommendations, network, JavaScript, images, render blocking, third-party impact, accessibility, and mobile/desktop comparison. Minor gaps remain, such as dedicated SEO or best-practices audit tools, though analyze_url returns all category scores.