With the MCP Server Pagespeed, you can analyze webpage performance using Google PageSpeed Insights.
Real-time performance analysis: Get instant insights into webpage loading metrics like First Contentful Paint and First Input Delay
Performance scoring: Receive an overall performance score (0-100)
Improvement suggestions: View the top 5 prioritized recommendations with title, description, potential impact, and current value
Error handling: Access detailed error messages for invalid URLs, API failures, and other issues
TypeScript support: Integrate the server seamlessly with TypeScript-based projects
Allows analyzing webpage performance using Google PageSpeed Insights API, providing performance scores, loading experience metrics, and improvement suggestions
@enemyrr/mcp-server-pagespeed
A Model Context Protocol server that provides Google PageSpeed Insights analysis. This server enables AI models to analyze webpage performance through a standardized interface.
Installation & Setup for Cursor IDE
Clone and build the project:
Add the server in Cursor IDE settings:
Open Command Palette (Cmd/Ctrl + Shift + P)
Search for "MCP: Add Server"
Fill in the fields:
Name:
pagespeedType:
commandCommand:
node /absolute/path/to/mcp-server-pagespeed/build/index.js
Note: Replace
/absolute/path/to/with the actual path where you cloned and built the project.
Command-line Usage
Just run:
Available Tools
analyze_pagespeed
Analyze a webpage using Google PageSpeed Insights API.
The tool returns:
Overall performance score (0-100)
Loading experience metrics
First Contentful Paint
First Input Delay
Top 5 improvement suggestions with:
Title
Description
Potential impact
Current value
Features
Real-time webpage performance analysis
Detailed loading experience metrics
Prioritized improvement suggestions
Comprehensive error handling
TypeScript support
Error Handling
The server provides detailed error messages for:
Invalid URLs
API request failures
Connection issues
Invalid tool calls
Contributing
Contributions are welcome! Please feel free to submit a Pull Request to https://github.com/enemyrr/mcp-server-pagespeed
License
MIT
Related MCP Servers
- -securityAlicense-qualityActs as a bridge between AI models and Google's PageSpeed Insights API, enabling detailed performance analysis of websites.Last updated -218MIT License
- -security-license-qualityProvides SEO automation with tools for keyword research, SERP analysis, and competitor analysis through Google Ads API integration, enabling AI assistants to access these capabilities via MCP.Last updated -29
- -securityFlicense-qualityAllows AI models to query and retrieve analytics data from Plausible Analytics through the Plausible API, enabling natural language interactions with website statistics.Last updated -4
- -security-license-qualityEnables AI tools to interact with your browser for enhanced frontend development, providing context-rich capabilities like API call analysis, screenshot capture, element inspection, and API testing with automatic authentication.