pagespeed insights mcp for VS Code
io.github.ruslanlap/pagespeed-insights-mcp
Google PageSpeed Insights and CrUX: six workflow tools for web performance.
client:VS Code
transport:stdio
runtime:npm
Install pagespeed insights mcp in VS Code
.vscode/mcp.json
{
"inputs": [
{
"type": "promptString",
"id": "google-api-key",
"description": "GOOGLE_API_KEY",
"password": true
}
],
"servers": {
"pagespeed-insights-mcp": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"pagespeed-insights-mcp"
],
"env": {
"GOOGLE_API_KEY": "${input:google-api-key}"
}
}
}
}
VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs