PageSpeed MCP Server
Provides tools for running PageSpeed Insights audits and SEO checks, including performance scores, Core Web Vitals, technical SEO, sitemap/robots validation, security headers, and mobile-friendliness analysis.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@PageSpeed MCP Server run a PageSpeed test on https://example.com"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
PageSpeed MCP Server
A Model Context Protocol (MCP) server for PageSpeed & SEO audits. Zero configuration required - just install and use.
Features
7 powerful SEO audit tools:
Tool | Description |
| PageSpeed Insights summary: scores, Core Web Vitals (lab and field), top opportunities, failing audits |
| Meta tags, canonical URLs, hreflang, Open Graph, Twitter Cards, JSON-LD structured data |
| Validate sitemap.xml and robots.txt |
| Heading structure, word count, internal/external links, images, keyword analysis |
| HTTPS, HSTS, CSP, X-Frame-Options, and more |
| Core Web Vitals summary with optimization opportunities |
| Mobile-friendliness: viewport, tap targets, font sizes, responsive images, PWA readiness |
Related MCP server: Lighthouse MCP
Quick Start
Add this to your Claude Desktop config:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"pagespeed": {
"command": "npx",
"args": ["-y", "pagespeed-mcp-server"]
}
}
}Restart Claude Desktop. That's it!
Example Prompts
"Run an SEO audit on https://example.com"
"Check the Core Web Vitals for my website"
"Is my site mobile-friendly?"
"Analyze https://mysite.com/blog for the keyword 'seo tips'"
"Check if my sitemap and robots.txt are configured correctly"
Tools
run_pagespeed_test
A compact summary of the PageSpeed Insights result, about 1,500 characters: category scores, lab Core Web Vitals, real-user field data for the page and origin, top opportunities with estimated savings, and failing audits per category. The raw Lighthouse response is about 700,000 characters, more than MCP clients accept in one reply, so it is no longer returned.
Parameter | Type | Default | Description |
| string | required | URL to test |
| string |
|
|
| array |
| Any of: |
technical_seo_audit
Analyzes technical SEO elements.
Checks: Title tag, meta description, canonical URL, hreflang tags, Open Graph, Twitter Cards, JSON-LD structured data, viewport, language attribute.
sitemap_robots_audit
Validates sitemap and robots.txt.
Checks: robots.txt existence/content, sitemap references, sitemap.xml format, URL count.
onpage_seo_audit
Analyzes on-page SEO factors.
Parameter | Type | Description |
| string | URL to analyze |
| string | Optional keyword to check optimization |
Checks: Heading structure (H1-H6), word count, internal/external links, image alt text, keyword placement/density.
security_headers_audit
Checks security headers.
Checks: HTTPS, Strict-Transport-Security, Content-Security-Policy, X-Content-Type-Options, X-Frame-Options, Referrer-Policy, Permissions-Policy.
performance_audit
Summarized performance report.
Returns: Performance/Accessibility/SEO scores, Core Web Vitals (FCP, LCP, TBT, CLS), top optimization opportunities, overall grade (A-F).
mobile_audit
Mobile-friendliness check.
Checks: Viewport configuration, tap target sizes, font sizes, content width, responsive images, PWA elements (manifest, theme-color, touch icons).
Using Your Own API Key (Optional)
The server works out of the box with a built-in key that every user shares. If you hit its quota, the error tells you so. Add your own free key for your own quota.
Claude Code:
claude mcp add pagespeed -s user -e PAGESPEED_API_KEY=your_key -- npx -y pagespeed-mcp-serverClaude Desktop:
{
"mcpServers": {
"pagespeed": {
"command": "npx",
"args": ["-y", "pagespeed-mcp-server"],
"env": {
"PAGESPEED_API_KEY": "your-api-key-here"
}
}
}
}Get a free API key from Google's PageSpeed Insights guide, or in Google Cloud Console with the PageSpeed Insights API enabled.
License
MIT
About Me
I'm Sofian Bettayeb.
By day, I'm a martech consultant, working with billion-dollar brands like Rolex and Helsana. By night, I build tools like AI SEO Copilot (15k+ installs), AEO Copilot, and blueprints like Webflow SEO Checklist (1k+ downloads) to help my Webflow friends make money with SEO and AEO.
In between, I ride my bikes and play with my kids in Bern, Switzerland.
Available Tools
7 toolsmobile_auditB
Comprehensive mobile-friendliness audit: viewport configuration, tap target sizes, font sizes, content width, responsive images, PWA readiness, and mobile-specific meta tags.
Inputs: url (required).
onpage_seo_auditB
Analyze on-page SEO factors: heading structure, content length, internal/external links, images alt text, and optional keyword optimization analysis.
Inputs: url (required), targetKeyword.
performance_auditC
Get a summarized performance audit with Core Web Vitals, scores for performance/accessibility/SEO, and top optimization opportunities.
Inputs: url (required), strategy.
run_pagespeed_testB
Run a PageSpeed Insights test on a URL. Returns a compact summary: category scores, lab Core Web Vitals, real-user field data (page and origin), top opportunities with savings, and failing audits per category.
Inputs: url (required), apiKey, locale, category, +1 more.
security_headers_auditC
Check HTTPS status and security headers (HSTS, CSP, X-Frame-Options, etc.). Important for both security and SEO.
Inputs: url (required).
sitemap_robots_auditB
Validate sitemap.xml and robots.txt files. Checks existence, format, URL count, and common issues.
Inputs: url (required).
technical_seo_auditC
Audit technical SEO elements: meta tags, canonical URLs, hreflang, Open Graph, Twitter Cards, structured data (JSON-LD), and more.
Inputs: url (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 7 tools
Most tools target clearly distinct audit domains (technical, sitemap/robots, on-page, security, mobile), but performance_audit and run_pagespeed_test overlap heavily — both return Core Web Vitals and category scores from PageSpeed, and an agent cannot easily tell which to pick. technical_seo_audit and onpage_seo_audit also share territory around meta tags and structured content.
Six of seven tools follow a clean snake_case `<scope>_audit` pattern, which is predictable and readable. run_pagespeed_test breaks the pattern with a verb-first form, a minor deviation justified by it being the raw upstream call rather than an audit wrapper.
Seven tools is well within the ideal range and each audit category (technical, sitemap/robots, on-page, security, performance, mobile) earns its place. The only redundancy is the extra pagespeed test tool, which is a small overlap rather than bloat.
The surface covers the major SEO audit dimensions comprehensively for a read-only auditing server, including sitemap/robots validation and security headers. Gaps are minor: no broken-link/redirect-chain check, no site-wide crawl or multi-URL comparison, and no report export or result-persistence tool.
Maintenance
Related MCP Connectors
Run Google Lighthouse audits on any URL — performance, SEO, accessibility scores.
Free SEO, AI visibility (AI crawlers, llms.txt, JSON-LD) and security-header checks for any URL.
SEO, broken links, Lighthouse, sitemaps, Open Graph tags and SSL expiry for any list of URLs.
Audit websites for SEO from your AI assistant: scores, issues with fixes, Google indexability
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceActs as a bridge between AI models and Google's PageSpeed Insights API, enabling detailed performance analysis of websites.13MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI models to perform Google Lighthouse website performance analysis, including Core Web Vitals, accessibility, SEO audits, and actionable optimization recommendations. Provides comprehensive web performance insights through natural language interactions.4MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to perform comprehensive web performance analysis using Google's PageSpeed Insights API, including metrics, best practices, SEO, and accessibility audits.44 npmMIT
- FlicenseNot gradedqualityDmaintenanceEnables auditing of websites for performance, SEO, accessibility, security, and mobile readiness, with tools to validate URLs, run page audits, save results, and retrieve reports.1-