Skip to main content
Glama

MCP Server Pagespeed

by enemyrr

@enemyrr/mcp-server-pagespeed

提供 Google PageSpeed Insights 分析的模型上下文协议服务器。该服务器使 AI 模型能够通过标准化接口分析网页性能。

Cursor IDE 的安装和设置

  1. 克隆并构建项目:
git clone https://github.com/enemyrr/mcp-server-pagespeed.git cd mcp-server-pagespeed npm install npm run build
  1. 在 Cursor IDE 设置中添加服务器:
    • 打开命令面板(Cmd/Ctrl + Shift + P)
    • 搜索“MCP:添加服务器”
    • 填写字段:
      • 名称: pagespeed
      • 类型: command
      • 命令: node /absolute/path/to/mcp-server-pagespeed/build/index.js

注意:将/absolute/path/to/替换为您克隆和构建项目的实际路径。

命令行用法

只需运行:

npx mcp-server-pagespeed

可用工具

分析页面速度

使用 Google PageSpeed Insights API 分析网页。

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

该工具返回:

  • 总体表现评分(0-100)
  • 加载体验指标
    • 首次内容绘制
    • 首次输入延迟
  • 五大改进建议:
    • 标题
    • 描述
    • 潜在影响
    • 当前值

特征

  • 实时网页性能分析
  • 详细的加载体验指标
  • 优先改进建议
  • 全面的错误处理
  • TypeScript 支持

错误处理

服务器提供以下详细的错误消息:

  • 无效的 URL
  • API 请求失败
  • 连接问题
  • 无效的工具调用

贡献

欢迎贡献!请随时向https://github.com/enemyrr/mcp-server-pagespeed提交 Pull 请求。

执照

麻省理工学院

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.

使 AI 模型能够使用 Google PageSpeed Insights API 分析网页性能,提供实时性能分数和改进建议。

  1. Cursor IDE 的安装和设置
    1. 命令行用法
      1. 可用工具
        1. 分析页面速度
      2. 特征
        1. 错误处理
          1. 贡献
            1. 执照

              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
                8,040
                437
                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
                311
                274
                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