MCP Server Pagespeed
@enemyrr/mcp-server-pagespeed
提供 Google PageSpeed Insights 分析的模型上下文协议服务器。该服务器使 AI 模型能够通过标准化接口分析网页性能。
Cursor IDE 的安装和设置
克隆并构建项目:
git clone https://github.com/enemyrr/mcp-server-pagespeed.git
cd mcp-server-pagespeed
npm install
npm run build在 Cursor IDE 设置中添加服务器:
打开命令面板(Cmd/Ctrl + Shift + P)
搜索“MCP:添加服务器”
填写字段:
名称:
pagespeed类型:
command命令:
node /absolute/path/to/mcp-server-pagespeed/build/index.js
注意:将
/absolute/path/to/替换为您克隆和构建项目的实际路径。
Related MCP server: Lighthouse MCP
命令行用法
只需运行:
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 请求。
执照
麻省理工学院
Available Tools
1 toolanalyze_pagespeedC
Analyzes a webpage using Google PageSpeed Insights API
Inputs: url (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 1 tool
With only one tool, there is no possibility of confusion or overlap between tools. The tool's purpose is clearly defined and distinct by default.
The single tool name follows a clear verb_noun pattern (analyze_pagespeed). Since there is only one tool, consistency is inherently perfect with no deviations to assess.
A single tool is too few for a server named 'MCP Server Pagespeed', which suggests a broader scope for page speed analysis. This minimal set feels thin and limits functionality, as it only covers analysis without supporting operations like history tracking or batch processing.
The tool surface is severely incomplete for a page speed analysis domain. It only provides analysis but lacks essential operations such as retrieving historical results, comparing analyses, or managing configurations, leaving significant gaps for agent workflows.
Related MCP Connectors
Analyze web performance and get optimization insights from GTmetrix, directly in your AI workflow.
SEO & marketing toolkit for AI agents: GA4, Search Console, AdSense, GTM, PageSpeed, Trends.
Google PageSpeed Insights — runs Lighthouse against any public URL and returns the performance…
Website and AI visibility checks: speed, SEO, security, accessibility, content, AI recommendations
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceActs as a bridge between AI models and Google's PageSpeed Insights API, enabling detailed performance analysis of websites.13MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI models to perform Google Lighthouse website performance analysis, including Core Web Vitals, accessibility, SEO audits, and actionable optimization recommendations. Provides comprehensive web performance insights through natural language interactions.4MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to perform comprehensive web performance analysis using Google's PageSpeed Insights API, including metrics, best practices, SEO, and accessibility audits.44 npmMIT
- AlicenseAqualityBmaintenanceEnables AI agents to monitor website performance by scanning sites, retrieving Core Web Vitals, detecting regressions, and receiving AI-powered optimization recommendations.1140 npmMIT