One run is noise, so this reports the median of several distinct PageSpeed analyses and the spread.
pagespeed insights MCP Server
Published by ruslanlapGoogle PageSpeed Insights and CrUX: six workflow tools for web performance.
- CATEGORY
- More to explore
- DEPLOYMENT
- Local package
- LATEST SOURCE VERSION
- 2.5.0
- SOURCE CHECKED
- Dec 2, 2026
Quick answers
How do I add pagespeed insights MCP Server to Claude Code, Cursor or Codex?
Claude CodeCommand
Run this in your terminal:
claude mcp add --env 'GOOGLE_API_KEY=<your-google-api-key>' --transport stdio pagespeed-insights -- npx -y pagespeed-insights-mcpReplace the <your-…> placeholder with your own GOOGLE_API_KEY.
CursorConfig
Add this to ~/.cursor/mcp.json, or to .cursor/mcp.json in a project:
{
"mcpServers": {
"pagespeed-insights": {
"command": "npx",
"args": [
"-y",
"pagespeed-insights-mcp"
],
"env": {
"GOOGLE_API_KEY": "<your-google-api-key>"
}
}
}
}Replace the <your-…> placeholder with your own GOOGLE_API_KEY.
CodexCommand
Run this in your terminal:
codex mcp add pagespeed-insights --env 'GOOGLE_API_KEY=<your-google-api-key>' -- npx -y pagespeed-insights-mcpReplace the <your-…> placeholder with your own GOOGLE_API_KEY.
VS CodeConfig
Add this to .mcp.json at the root of your workspace:
{
"mcpServers": {
"pagespeed-insights": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"pagespeed-insights-mcp"
],
"env": {
"GOOGLE_API_KEY": "<your-google-api-key>"
}
}
}
}Replace the <your-…> placeholder with your own GOOGLE_API_KEY.
Claude DesktopConfig
Add this to claude_desktop_config.json, then restart Claude:
{
"mcpServers": {
"pagespeed-insights": {
"command": "npx",
"args": [
"-y",
"pagespeed-insights-mcp"
],
"env": {
"GOOGLE_API_KEY": "<your-google-api-key>"
}
}
}
}Replace the <your-…> placeholder with your own GOOGLE_API_KEY.
ChatGPTNot available
ChatGPT can't add it from its published details: it connects from the cloud and needs a public address, and this server runs on your computer.
ChatGPT setup guideWhich apps can use pagespeed insights MCP Server?
Claude Code, Cursor, Codex, VS Code and Claude Desktop can add it from its published details. ChatGPT can't: it connects from the cloud and needs a public address, and this server runs on your computer.
Does pagespeed insights MCP Server need an API key?
To run it on your computer, set GOOGLE_API_KEY first, with values from the publisher.
Is pagespeed insights MCP Server official?
It's published by ruslanlap. The Official MCP Registry accepts names under io.github.ruslanlap only from the GitHub account or organisation ruslanlap. We last checked its listing on Dec 2, 2026. A listing shows where a server comes from; it isn't a security review.
Published packages
npm · pagespeed-insights-mcp@2.5.0