Skip to content
MCP server

Google CrUX MCP

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

Runs locallyStatus and history
Install
Pricing
Open source
Runs
Locally
Version
1.2.1
Listing updated
4 days ago

About Google CrUX MCP

Google CrUX MCP is an open-source MCP server. It runs locally on your machine and is started by your AI client.

Install

Run in a terminal

claude mcp add mcp-google-crux --env CRUX_API_KEY='<CRUX_API_KEY>' -- npx -y mcp-google-crux

Add to claude_desktop_config.json

{
  "mcpServers": {
    "mcp-google-crux": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-google-crux"
      ],
      "env": {
        "CRUX_API_KEY": "<CRUX_API_KEY>"
      }
    }
  }
}

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "mcp-google-crux": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-google-crux"
      ],
      "env": {
        "CRUX_API_KEY": "<CRUX_API_KEY>"
      }
    }
  }
}

Add to .vscode/mcp.json

{
  "servers": {
    "mcp-google-crux": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "mcp-google-crux"
      ],
      "env": {
        "CRUX_API_KEY": "<CRUX_API_KEY>"
      }
    }
  }
}

Add to ~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "mcp-google-crux": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-google-crux"
      ],
      "env": {
        "CRUX_API_KEY": "<CRUX_API_KEY>"
      }
    }
  }
}

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "mcp-google-crux": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-google-crux"
      ],
      "env": {
        "CRUX_API_KEY": "<CRUX_API_KEY>"
      }
    }
  }
}

Configuration

  • CRUX_API_KEYGoogle Cloud API key with the Chrome UX Report API enabled (sent as the key= query parameter). Treat it as a secret.Required
  • CRUX_API_BASEAPI root host override.
  • CRUX_TIMEOUT_MSPer-request timeout in milliseconds.
  • CRUX_MAX_RETRIESRetries on transient errors (429, 5xx, network).

Pricing

Open source

Google CrUX MCP FAQ

Is Google CrUX MCP free?

Yes. Google CrUX MCP is open source, so you can use and self-host it for free.

How do I add Google CrUX MCP to Claude Code?

Run this command in your terminal: claude mcp add mcp-google-crux --env CRUX_API_KEY='<CRUX_API_KEY>' -- npx -y mcp-google-crux