经 AI Skill Hub 精选评估,PageSpeed Insights MCP 获评「强烈推荐」。这款MCP工具在功能完整性、社区活跃度和易用性方面表现出色,AI 评分 8.0 分,适合有一定技术背景的用户使用。
PageSpeed Insights MCP 是一款遵循 MCP(Model Context Protocol)标准协议的 AI 工具扩展。通过 MCP 协议,它可以让 Claude、Cursor 等主流 AI 客户端直接访问和操作外部工具、数据源和服务,实现 AI 能力的无缝扩展。无论是文件操作、数据库查询还是 API 调用,都可以通过自然语言在 AI 对话中直接触发,极大提升生产效率。
PageSpeed Insights MCP 是一款遵循 MCP(Model Context Protocol)标准协议的 AI 工具扩展。通过 MCP 协议,它可以让 Claude、Cursor 等主流 AI 客户端直接访问和操作外部工具、数据源和服务,实现 AI 能力的无缝扩展。无论是文件操作、数据库查询还是 API 调用,都可以通过自然语言在 AI 对话中直接触发,极大提升生产效率。
# 方式一:通过 Claude Code CLI 一键安装
claude skill install https://github.com/ruslanlap/pagespeed-insights-mcp
# 方式二:手动配置 claude_desktop_config.json
{
"mcpServers": {
"pagespeed-insights-mcp": {
"command": "npx",
"args": ["-y", "pagespeed-insights-mcp"]
}
}
}
# 配置文件位置
# macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
# Windows: %APPDATA%/Claude/claude_desktop_config.json
# 安装后在 Claude 对话中直接使用 # 示例: 用户: 请帮我用 PageSpeed Insights MCP 执行以下任务... Claude: [自动调用 PageSpeed Insights MCP MCP 工具处理请求] # 查看可用工具列表 # 在 Claude 中输入:"列出所有可用的 MCP 工具"
// claude_desktop_config.json 配置示例
{
"mcpServers": {
"pagespeed_insights_mcp": {
"command": "npx",
"args": ["-y", "pagespeed-insights-mcp"],
"env": {
// "API_KEY": "your-api-key-here"
}
}
}
}
// 保存后重启 Claude Desktop 生效
<p align="center"> <img src="./1.png" alt="PageSpeed MCP chat demo" width="48%" /> <img src="./2.png" alt="PageSpeed MCP terminal demo" width="48%" /> </p>
MCP server for Google PageSpeed Insights API that enables web page performance analysis directly through Claude.
🎬 View Interactive Demo → — See all 16 tools in action with animated examples Fallback URL: https://ruslanlap.github.io/pagespeed-insights-mcp/demo.html
Get a quick performance report for https://example.com
```bash
npm install -g pagespeed-insights-mcp
npx pagespeed-insights-mcp
#### From GitHub Packagesbash
npm install -g @ruslanlap/pagespeed-insights-mcp ```
Note: This package is available on both npm and GitHub Packages. - For npm: Usenpm install pagespeed-insights-mcp- For GitHub Packages: Usenpm install @ruslanlap/pagespeed-insights-mcp(requires GitHub authentication) For detailed instructions on installing from GitHub Packages, see GITHUB_PACKAGES.md or visit the GitHub Packages page
docker build -t pagespeed-insights-mcp .
docker run -e GOOGLE_API_KEY=your-key pagespeed-insights-mcp
npm run build
"pagespeed-insights": {
"command": "npx",
"args": [
"-y",
"-p",
"pino-pretty",
"-p",
"pagespeed-insights-mcp",
"pagespeed-insights-mcp"
],
"env": {
"GOOGLE_API_KEY": "your-google-api-key-here"
}
}
[mcp_servers.pagespeed-insights]
command = "npx"
args = [
"-y",
"-p",
"pino-pretty",
"-p",
"pagespeed-insights-mcp",
"pagespeed-insights-mcp"
]
env = { GOOGLE_API_KEY = "your-google-api-key-here" }
Note: These examples include pino-pretty for better log formatting. For production use without pretty logs, see the Logging section below.
After configuration, simply ask Claude any of these commands:
answer example from Claude Desktop with pagespeed-insights-mcp 🔥🔥🔥
Now I have the full analysis! Here are all the ratings:
export GOOGLE_API_KEY=your-google-api-key
bash curl -sSL https://raw.githubusercontent.com/ruslanlap/pagespeed-insights-mcp/master/install.sh | bash ```
#### From npm (Public Registry) ```bash
The MCP server requires a Google API key to access the PageSpeed Insights API.
```bash
export GOOGLE_API_KEY=your-google-api-key
To use this MCP server with Claude Desktop, add the following to your Claude Desktop configuration file:
{
"mcpServers": {
"pagespeed-insights": {
"command": "npx",
"args": [
"-y",
"-p",
"pino-pretty",
"-p",
"pagespeed-insights-mcp",
"pagespeed-insights-mcp"
],
"env": {
"GOOGLE_API_KEY": "your-google-api-key-here"
}
}
}
}
Example configuration files are available in the examples directory.
If you used the install.sh script, the configuration was created automatically.
Add the configuration to your Claude Desktop file:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json Windows: %APPDATA%\Claude\claude_desktop_config.json Linux: ~/.config/claude/claude_desktop_config.json
#### For npm installation and global installation
{
"mcpServers": {
"pagespeed-insights": {
"command": "npx",
"args": [
"-y",
"-p",
"pino-pretty",
"-p",
"pagespeed-insights-mcp",
"pagespeed-insights-mcp"
],
"env": {
"GOOGLE_API_KEY": "your-google-api-key-here"
}
}
}
}
#### For GitHub Packages installation
{
"mcpServers": {
"pagespeed-insights": {
"command": "npx",
"args": [
"-y",
"-p",
"pino-pretty",
"-p",
"@ruslanlap/pagespeed-insights-mcp",
"pagespeed-insights-mcp"
],
"env": {
"GOOGLE_API_KEY": "your-google-api-key-here"
}
}
}
}
#### For Docker:
{
"mcpServers": {
"pagespeed-insights": {
"command": "docker",
"args": [
"run", "--rm", "-i",
"--env", "GOOGLE_API_KEY=your-google-api-key-here",
"pagespeed-insights-mcp"
]
}
}
}
Restart Claude Desktop after configuration!
This MCP server uses pino for logging and enables the pino-pretty transport when NODE_ENV=development.
NODE_ENV=production GOOGLE_API_KEY=your-google-api-key npx pagespeed-insights-mcp
or in your MCP config:
"pagespeed-insights": {
"command": "npx",
"args": ["pagespeed-insights-mcp"],
"env": {
"GOOGLE_API_KEY": "your-google-api-key-here",
"NODE_ENV": "production"
}
}
npx, you can have npx install pino-pretty alongside the server:"pagespeed-insights": {
"command": "npx",
"args": [
"-y",
"-p",
"pino-pretty",
"-p",
"pagespeed-insights-mcp",
"pagespeed-insights-mcp"
],
"env": {
"GOOGLE_API_KEY": "your-google-api-key-here"
}
}
1. Go to Google Cloud Console 2. Create a new project or select an existing one 3. Enable PageSpeed Insights API: - Navigate to "APIs & Services" → "Library" - Search for "PageSpeed Insights API" and enable it 4. Create an API key: - Go to "APIs & Services" → "Credentials" - Click "Create Credentials" → "API Key" - Copy the generated key
Ensure the GOOGLE_API_KEY environment variable is set in your Claude Desktop configuration.
Check if PageSpeed Insights API is enabled in your Google Cloud project.
高质量的开源MCP工具,易于使用和集成
AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。
建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。
✅ MIT 协议 — 最宽松的开源协议之一,可自由商用、修改、分发,仅需保留版权声明。
AI Skill Hub 点评:PageSpeed Insights MCP 的核心功能完整,质量优秀。对于Claude Desktop / Claude Code 用户来说,这是一个值得纳入个人工具库的选择。建议先在非生产环境试用,再逐步推广。
| 原始名称 | pagespeed-insights-mcp |
| 原始描述 | 开源MCP工具:MCP server for Google PageSpeed Insights API that enables web page performance a。⭐25 · JavaScript |
| Topics | google-insightsmcpjavascript |
| GitHub | https://github.com/ruslanlap/pagespeed-insights-mcp |
| License | MIT |
| 语言 | JavaScript |
收录时间:2026-05-26 · 更新时间:2026-05-26 · License:MIT · AI Skill Hub 不对第三方内容的准确性作法律背书。
选择 Agent 类型,复制安装指令后粘贴到对应客户端