Skip to content
VS Code

Google CrUX MCP for VS Code

io.github.a1-x-tech/mcp-google-crux

Real-user Core Web Vitals from the Chrome UX Report (CrUX) API for any origin or URL.

client:VS Code transport:stdio runtime:npm

Install Google CrUX MCP in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "crux-api-key",
      "description": "CRUX_API_KEY",
      "password": true
    },
    {
      "type": "promptString",
      "id": "crux-api-base",
      "description": "CRUX_API_BASE",
      "password": true
    },
    {
      "type": "promptString",
      "id": "crux-timeout-ms",
      "description": "CRUX_TIMEOUT_MS",
      "password": true
    },
    {
      "type": "promptString",
      "id": "crux-max-retries",
      "description": "CRUX_MAX_RETRIES",
      "password": true
    }
  ],
  "servers": {
    "mcp-google-crux": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "mcp-google-crux"
      ],
      "env": {
        "CRUX_API_KEY": "${input:crux-api-key}",
        "CRUX_API_BASE": "${input:crux-api-base}",
        "CRUX_TIMEOUT_MS": "${input:crux-timeout-ms}",
        "CRUX_MAX_RETRIES": "${input:crux-max-retries}"
      }
    }
  }
}

VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs

Google CrUX MCP in other clients