MCP Server Pagespeed logo

MCP Server Pagespeed

by enemyrr

A Model Context Protocol server that provides Google PageSpeed Insights analysis. This server enables AI models to analyze webpage performance through a standardized interface.

View on GitHub

Last updated: N/A

What is MCP Server Pagespeed?

This is a Model Context Protocol (MCP) server designed to analyze webpage performance using the Google PageSpeed Insights API. It provides a standardized interface for AI models to access and interpret webpage performance data.

How to use MCP Server Pagespeed?

The server can be used either through the Cursor IDE by adding it as an MCP server or directly via the command line using npx mcp-server-pagespeed. Once set up, you can use the analyze_pagespeed tool with a URL to get performance data.

Key features of MCP Server Pagespeed

  • Real-time webpage performance analysis

  • Detailed loading experience metrics

  • Prioritized improvement suggestions

  • Comprehensive error handling

Use cases of MCP Server Pagespeed

  • Automated webpage performance monitoring

  • Integration with AI-powered website optimization tools

  • Performance analysis as part of a CI/CD pipeline

  • Identifying and prioritizing website performance improvements

FAQ from MCP Server Pagespeed

What is the purpose of this server?

To provide a standardized way for AI models to analyze webpage performance using Google PageSpeed Insights.

How do I install it in Cursor IDE?

Clone the repository, build it, and then add it as an MCP server in the Cursor IDE settings, providing the path to the built index.js file.

Can I use it without Cursor IDE?

Yes, you can run it directly from the command line using npx mcp-server-pagespeed.

What kind of data does the analyze_pagespeed tool return?

It returns the overall performance score, loading experience metrics (like First Contentful Paint and First Input Delay), and top 5 improvement suggestions with details on their potential impact.

What kind of errors does the server handle?

The server handles errors related to invalid URLs, API request failures, connection issues, and invalid tool calls.