MCP Server Pagespeed

by enemyrr
Integrations
  • 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

  1. Clone and build the project:
git clone https://github.com/enemyrr/mcp-server-pagespeed.git cd mcp-server-pagespeed npm install npm run build
  1. Add the server in Cursor IDE settings:
    • Open Command Palette (Cmd/Ctrl + Shift + P)
    • Search for "MCP: Add Server"
    • Fill in the fields:
      • Name: pagespeed
      • Type: command
      • Command: 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:

npx mcp-server-pagespeed

Available Tools

analyze_pagespeed

Analyze a webpage using Google PageSpeed Insights API.

use_mcp_tool({ server_name: "pagespeed", tool_name: "analyze_pagespeed", arguments: { url: "https://example.com" } });

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

You must be authenticated.

A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

Enables AI models to analyze webpage performance using the Google PageSpeed Insights API, providing real-time performance scores and improvement suggestions.

  1. Installation & Setup for Cursor IDE
    1. Command-line Usage
      1. Available Tools
        1. analyze_pagespeed
      2. Features
        1. Error Handling
          1. Contributing
            1. License

              Related MCP Servers

              • A
                security
                A
                license
                A
                quality
                Enables AI assistants to download images from URLs and perform basic image optimization tasks.
                Last updated -
                2
                4
                JavaScript
                Apache 2.0
              • -
                security
                A
                license
                -
                quality
                Acts as a bridge between AI models and Google's PageSpeed Insights API, enabling detailed performance analysis of websites.
                Last updated -
                4
                4
                JavaScript
                MIT License
                • Linux
                • Apple
              • A
                security
                A
                license
                A
                quality
                This server enables AI systems to integrate with Tavily's search and data extraction tools, providing real-time web information access and domain-specific searches.
                Last updated -
                2
                5,348
                378
                JavaScript
                MIT License
                • Apple
                • Linux
              • A
                security
                A
                license
                A
                quality
                Welcome to Hyperbrowser, the Internet for AI. Hyperbrowser is the next-generation platform empowering AI agents and enabling effortless, scalable browser automation. Built specifically for AI developers, it eliminates the headaches of local infrastructure and performance bottlenecks, allowing you to
                Last updated -
                10
                688
                213
                TypeScript
                MIT License
                • Linux
                • Apple

              View all related MCP servers

              MCP directory API

              We provide all the information about MCP servers via our MCP API.

              curl -X GET 'https://glama.ai/api/mcp/v1/servers/enemyrr/mcp-server-pagespeed'

              If you have feedback or need assistance with the MCP directory API, please join our Discord server