We're Hiring: Interns 🚀

Apply Now →

Updates & announcements

Enally announcement
We're Hiring: Interns 🚀

We're hiring interns for Full-Stack Development and Social Media Marketing. Join Enally to work on real products, campaigns, and ideas in a fast-moving startup ecosystem.

Archilo: helping architecture work become visible.
Archilo: helping architecture work become visible.

A focused platform for architecture portfolios, research, talent and creative opportunity. Built for architects, students and studios.

Enally announcement
Enally: building useful things, together.

A founder-led ecosystem connecting products, services, knowledge, community and opportunities. One belief, expressed in different ways.

Enally announcement
Build with us: internships, contributors and partnerships.

Practical ways for young builders, contributors and domain experts to learn through real products and useful responsibility.

Archilo growing steadily
Archilo growing steadily

Architecture portfolios and research pages now serve 5,000+ creative professionals.

Humble campus expansion
Humble campus expansion

Verified student communities now active across multiple campuses with 2K+ members.

Faaho partner beta live
Faaho partner beta live

Zero-brokerage living discovery is now available in partner beta. Technology by Enally.

Enally announcement
Enally Labs launched

Applied AI experiments, internal agents and prototype products now live under Labs.

Enally announcement
Blog redesigned

The Enally blog now brings practical guides, opportunities and ecosystem knowledge together.

Enally announcement
Services: SEO to AIO

Five-layer visibility services now available — SEO, AEO, GEO, SXO and AI Optimization.

Enally announcement
Build with us program

Internships, campus ambassadors and contributor roles open for builders who want real ownership.

Enally announcement
Company website rebuilt

Enally.in redesigned with improved performance, accessibility and dark theme support.

SEO, AEO, PAGESPEED

Google PageSpeed MCP: The Open-Source AI Performance Toolkit Built on Google Lighthouse

Explore Google PageSpeed MCP, an open-source toolkit that connects AI agents with Lighthouse and Core Web Vitals for faster SEO and performance audits.

Google PageSpeed MCP: The Open-Source AI Performance Toolkit Built on Google Lighthouse
What you'll learn

Explore Google PageSpeed MCP, an open-source toolkit that connects AI agents with Lighthouse and Core Web Vitals for faster SEO and performance audits.

Jump to the guide

Google PageSpeed MCP: The Open-Source AI Performance Toolkit Built on Google Lighthouse

Modern websites are no longer optimized only for human visitors. Today, developers must build for search engines, AI agents, automated crawlers, LLM-powered assistants, accessibility tools, and performance scoring systems. Yet most teams still rely on scattered dashboards, manual Lighthouse reports, browser extensions, and complex JSON outputs that are difficult to analyze at scale.

Traditional performance workflows create several problems:

  • Developers run Lighthouse audits manually.

  • Core Web Vitals data is spread across multiple dashboards.

  • AI coding assistants cannot easily consume PageSpeed data.

  • Teams struggle to identify which CSS, JavaScript, or third-party scripts are actually hurting performance.

  • SEO, accessibility, and performance reports remain disconnected.

  • Performance regression monitoring becomes difficult across multiple pages.

Even though Google provides PageSpeed Insights and Lighthouse, extracting actionable insights from raw reports requires significant engineering effort.

This is exactly the problem that Google PageSpeed MCP aims to solve.


What Is Google PageSpeed MCP?

Google PageSpeed MCP is an open-source Model Context Protocol (MCP) server that transforms Google PageSpeed Insights and Lighthouse into AI-native developer tools.

Official platform:

Google PageSpeed MCP

Documentation:

Official Documentation

The project exposes Google's performance ecosystem as structured MCP tools that work directly with AI clients like:

  • Kiro

  • Cursor

  • Claude Desktop

  • VS Code

  • Windsurf

  • Any MCP-compatible host

Instead of manually reading thousands of Lighthouse audit lines, developers can simply ask:

  • "Audit my website."

  • "Find unused JavaScript."

  • "Compare desktop and mobile performance."

  • "Explain poor CLS scores."

  • "Generate optimization recommendations."

  • "Analyze third-party impact."

The AI performs the analysis automatically.


Author and Developer

Google PageSpeed MCP is developed and maintained by Prashant Kumar, a full-stack engineer focused on developer tooling, AI workflows, SEO systems, and performance infrastructure.

The project is built on top of Google's official Lighthouse and PageSpeed ecosystem while exposing the data in a format optimized for modern AI-assisted development.


The Performance Problem Nobody Talks About

Most developers optimize only for Lighthouse scores.

However, real-world performance depends on much more:

Search Engines

Google evaluates:

  • Core Web Vitals

  • Mobile performance

  • Accessibility

  • SEO signals

  • Best practices

Official platform:

Google PageSpeed Insights


AI Systems

Modern AI systems increasingly need:

  • Structured page content

  • Predictable navigation

  • Semantic HTML

  • Machine-readable layouts

  • Metadata

  • Fast loading resources

Large language models and AI agents cannot effectively reason over poorly structured websites.


Users

Visitors care about:

  • Fast page loads

  • Stable layouts

  • Readability

  • Mobile usability

  • Accessibility

A beautiful website that loads slowly still loses users.


Why Existing Workflows Break

A typical performance audit looks like this:

Website
    ↓
PageSpeed Insights
    ↓
Massive Lighthouse JSON
    ↓
Developer manually reads report
    ↓
Find problems
    ↓
Fix issues

Problems:

  • Too much raw data.

  • Hard to automate.

  • Difficult for AI tools to understand.

  • Limited historical context.

  • Poor developer experience.

Google PageSpeed MCP introduces a better workflow.

Website
    ↓
Google Lighthouse API
    ↓
Google PageSpeed MCP
    ↓
Structured tools
    ↓
AI assistant
    ↓
Actionable recommendations

Built on Google's Official APIs

The project is powered by Google's official Lighthouse and PageSpeed APIs.

Google Lighthouse:

Google Lighthouse Documentation

Google PageSpeed API:

Google PageSpeed Insights API

Google Cloud Console:

Google Cloud Console

Because the MCP server uses Google's own infrastructure, the data remains consistent with the metrics developers already trust.


Core Features

Google PageSpeed MCP includes 27 tools across five categories.

Audit Tools

  • pagespeed_mobile_audit

  • pagespeed_desktop_audit

  • compare_mobile_desktop

  • batch_pagespeed_audit

These tools generate complete Lighthouse reports for mobile and desktop environments.


Metrics Tools

  • get_core_web_vitals

  • get_field_data

  • get_lighthouse_scores

Metrics include:

  • FCP

  • LCP

  • CLS

  • INP

  • TBT

  • Speed Index


Analysis Tools

  • get_opportunities

  • get_diagnostics

  • get_resource_breakdown

  • get_third_party_impact

  • get_layout_analysis

  • get_css_analysis

  • get_javascript_analysis

  • get_network_analysis

These tools explain:

  • Unused CSS.

  • Heavy JavaScript bundles.

  • Third-party script impact.

  • Render-blocking resources.

  • Layout shifts.

  • Network bottlenecks.


Report Tools

  • get_accessibility_report

  • get_seo_report

  • get_best_practices_report

  • get_performance_summary

Perfect for:

  • SEO audits

  • AEO analysis

  • client reports

  • agency workflows

  • performance reviews


Advanced Tools

  • Competitor analysis

  • Site monitoring

  • Performance regression detection

  • Multi-format export

  • Health checks

  • Recommendation engines


Real Problems It Can Detect

Google PageSpeed MCP goes beyond Lighthouse scores.

Instead of saying:

Performance: 76

it can explain:

Unused CSS: 223 KB
Unused JavaScript: 391 KB
Third-party impact: 88.5%
Largest bundle: HugeIcons
Heavy scripts: Google Ads and GTM

This shifts performance optimization from guesswork to engineering.


Sample AI Prompt

A developer can simply ask:

Audit https://example.com and identify:

- Core Web Vitals issues
- Unused CSS
- Unused JavaScript
- Accessibility problems
- SEO weaknesses
- Third-party bottlenecks

Generate optimization recommendations.

The AI assistant automatically calls the appropriate MCP tools.


Sample MCP Configuration

{
  "mcpServers": {
    "google-pagespeed-mcp": {
      "url": "https://googlepagespeedmcp.enally.in/api/mcp",
      "headers": {
        "x-api-key": "YOUR_GOOGLE_PAGESPEED_API_KEY"
      }
    }
  }
}

How Google PageSpeed MCP Works

Internally, the flow looks like this:

AI Client
   ↓
MCP Server
   ↓
Google PageSpeed API
   ↓
Lighthouse Engine
   ↓
JSON Response
   ↓
Tool Layer
   ↓
AI Analysis

The AI never parses raw Lighthouse data manually.

Instead, the MCP server converts complex audits into structured outputs.


Example Raw Output

Core Web Vitals response:

{
  "fcp": 2863,
  "lcp": 3830,
  "cls": 0.005,
  "tbt": 121.5,
  "speedIndex": 7545
}

JavaScript analysis:

{
  "totalJsSize": 686517,
  "unusedJsSize": 390759,
  "longTaskCount": 8
}

CSS analysis:

{
  "totalCssSize": 235582,
  "unusedCssSize": 223000
}

Accessibility report:

{
  "score": 97,
  "issues": [
    "Low contrast",
    "Label mismatch"
  ]
}

Page-Speed-Insights-Proof-Enally

 

How to Get a Google API Key

Google PageSpeed MCP requires an official Google API key.

Step 1

Open:

Google Cloud Console


Step 2

Create a new project.


Step 3

Enable the PageSpeed Insights API.

API documentation:

PageSpeed API Reference


Step 4

Navigate to:

APIs & Services → Credentials

Step 5

Create an API key.


Step 6

Paste the key into your MCP configuration.


Compatible AI Clients

The server works with:

  • Kiro

  • Cursor

  • Claude Desktop

  • VS Code

  • Windsurf

  • Custom MCP hosts

MCP itself is based on the Model Context Protocol specification.

Learn more:

Model Context Protocol


Is Google PageSpeed MCP Legitimate?

Yes.

The project does not replace Google's PageSpeed infrastructure.

It acts as an orchestration layer on top of:

  • Google Lighthouse

  • Google PageSpeed API

  • Core Web Vitals

  • Chrome UX Report

Official references:

Chrome UX Report

Core Web Vitals

The metrics originate from Google's systems.

The MCP simply makes them easier for developers and AI assistants to consume.



SEO, AEO, GEO and AI Optimization

Google PageSpeed MCP is especially valuable for modern optimization strategies.

SEO (Search Engine Optimization)

Helps improve:

  • Core Web Vitals

  • Mobile speed

  • Crawlability

  • Technical SEO

  • Indexing quality


AEO (Answer Engine Optimization)

Improves:

  • Structured data readiness

  • FAQ compatibility

  • Semantic HTML

  • Content discoverability


GEO (Generative Engine Optimization)

Supports:

  • AI agent comprehension

  • LLM-friendly architecture

  • machine-readable content

  • contextual retrieval


SXO (Search Experience Optimization)

Combines:

  • Performance

  • UX

  • Accessibility

  • Search visibility


Agentic Browsing and the Future

Modern PageSpeed reports now include an additional category called:

Agentic Browsing

This reflects a broader shift in the web ecosystem.

Websites are increasingly consumed by:

  • AI agents

  • autonomous browsers

  • copilots

  • search assistants

  • reasoning systems

Future-ready websites will need:

  • clean HTML

  • semantic structure

  • stable layouts

  • predictable navigation

  • fast responses

Google PageSpeed MCP prepares teams for that transition.


Who Should Use It?

This project is valuable for:

  • SEO agencies

  • freelancers

  • SaaS founders

  • startup teams

  • product engineers

  • DevOps teams

  • performance consultants

  • technical writers

  • AI developers

Especially if you manage:

  • multiple websites

  • client audits

  • performance reports

  • enterprise dashboards

  • SEO workflows


Bonus Use Cases

Competitor Analysis

Compare:

Your Website
vs
Competitor Website

and detect:

  • speed gaps

  • bundle differences

  • SEO weaknesses

  • third-party overhead


Automated Reports

Generate:

  • Markdown reports

  • JSON exports

  • HTML summaries


CI/CD Monitoring

Run audits:

  • before deployment

  • after deployment

  • on schedule

  • during performance regressions


AI Coding Workflows

Ask:

Why is my CLS poor?
Which script blocks rendering?
How much JavaScript can I remove?
Which resources hurt mobile performance?

The AI assistant answers using structured metrics.


Questions to Ask Yourself Before Optimizing

  • Is my website fast for real users or only in Lighthouse?

  • Which scripts consume the most bandwidth?

  • How much CSS is never used?

  • Which third-party tools hurt performance?

  • Are accessibility issues hurting conversions?

  • Can AI systems understand my website?

  • Am I optimizing for search engines or for users?

  • Is my site prepared for agentic browsing?

  • Can my team automate performance analysis?

  • What happens when traffic doubles?

Written by Prashant Kumar
Prashant Kumar Founder & Product Engineer

Founder of Enally. Product engineer building focused platforms for communities, architecture and campus life. Full-stack developer working across strategy, desi

Frequently asked questions

Google PageSpeed MCP is an open‑source Model Context Protocol (MCP) server that converts Google PageSpeed Insights and Lighthouse data into AI‑native, structured outputs. Unlike the raw Lighthouse reports or the PageSpeed Insights UI, MCP delivers machine‑readable JSON that can be directly consumed by AI agents, chat‑bots, and automated pipelines.

MCP wraps Lighthouse metrics (Core Web Vitals, SEO, accessibility, etc.) in a standardized schema that AI assistants can query via simple API calls. This lets tools like Kiro or custom LLM workflows fetch, filter, and act on performance insights without parsing complex HTML or JSON dashboards.

The toolkit pinpoints slow‑loading CSS, heavy JavaScript bundles, inefficient third‑party scripts, and violations of Core Web Vitals. It also surfaces SEO and accessibility issues, allowing developers to see exactly which resources are degrading page speed.

By integrating MCP into CI/CD pipelines, teams can run automated Lighthouse audits on every build and store the structured results in a central database. Trend analysis and alerts can then be generated to flag regressions on any page before they reach production.

Keep learning

Related articles