What is PageSpeed MCP Server?
A Model Context Protocol (MCP) server that extends AI assistant capabilities with PageSpeed Insights functionality, acting as a bridge between AI models and Google's PageSpeed Insights API for detailed website performance analysis.
How to use PageSpeed MCP Server?
Install via npm (npm install pagespeed-mcp-server) or Smithery, then configure in your AI assistant's configuration file with a GOOGLE_API_KEY and the path to the server binary. The server can be invoked with a URL and optional parameters such as strategy (mobile/desktop) and categories.
Key features of PageSpeed MCP Server
- Analyzes Core Web Vitals: FCP, LCP, TTI, TBT, CLS, Speed Index, TTFB
- Assesses best practices: HTTPS, JavaScript errors, deprecated APIs
- Performs SEO audits: meta descriptions, robots.txt, structured data
- Runs accessibility checks: ARIA validation, color contrast, heading hierarchy
- Provides resource optimization suggestions: image optimization, caching, minification
Use cases of PageSpeed MCP Server
- Integrate real-time PageSpeed audits into AI-powered developer assistants
- Automate performance regression checks in CI/CD pipelines
- Enable AI chatbots to answer website speed and SEO questions
- Quickly audit accessibility and best practices for multiple URLs
评论