MCP server for Google CrUX — check real-user Core Web Vitals and compare mobile, desktop and 40-week trends
接入配置
选择客户端,复制配置,再按项目文档补齐环境变量。
claude mcp add google-crux --env CRUX_API_KEY='<CRUX_API_KEY>' -- npx -y mcp-google-crux~/.codex/config.toml
[mcp_servers.google-crux]
command = "npx"
args = ["-y", "mcp-google-crux"]
env = { CRUX_API_KEY = "<CRUX_API_KEY>" }
# codex mcp add google-crux --env CRUX_API_KEY='<CRUX_API_KEY>' -- npx -y mcp-google-crux~/.cursor/mcp.json
{
"mcpServers": {
"google-crux": {
"command": "npx",
"args": [
"-y",
"mcp-google-crux"
],
"env": {
"CRUX_API_KEY": "<CRUX_API_KEY>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"google-crux": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"mcp-google-crux"
],
"env": {
"CRUX_API_KEY": "<CRUX_API_KEY>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"google-crux": {
"command": "npx",
"args": [
"-y",
"mcp-google-crux"
],
"env": {
"CRUX_API_KEY": "<CRUX_API_KEY>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"google-crux": {
"command": "npx",
"args": [
"-y",
"mcp-google-crux"
],
"env": {
"CRUX_API_KEY": "<CRUX_API_KEY>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"google-crux": {
"command": "npx",
"args": [
"-y",
"mcp-google-crux"
],
"env": {
"CRUX_API_KEY": "<CRUX_API_KEY>"
}
}
}
}需要的环境变量
CRUX_API_KEY
把占位值换成你自己的密钥;不要把密钥提交到代码仓库。