# WebPerf Snippets (MCP server)

> WebPerf Snippets is an MCP server that runs curated WebPerf Snippets headlessly via Playwright. Diagnose Core Web Vitals beyond what Lighthouse exposes and gate CI on real performance budgets. It has 1,454 GitHub stars, is released under the MIT license and runs locally with npx -y webperf-snippets.

Run curated WebPerf Snippets headlessly via Playwright. Diagnose Core Web Vitals beyond what Lighthouse exposes and gate CI on real performance budgets.

## Key facts

| Fact | Value |
|---|---|
| Repository | https://github.com/nucliweb/webperf-snippets |
| GitHub stars | 1,454 |
| License | MIT |
| Language | JavaScript |
| Transport | stdio |
| Packages | npm: webperf-snippets |
| Remote URL | none |
| Needs API key | yes |
| Official | no |
| Works with | Claude Desktop, Claude Code, Cursor, VS Code |
| Category | Web & browsing |
| Latest release | v2.1.0 (Oct 25, 2026) |
| Last commit | Oct 26, 2026 |
| MCP registry name | io.github.nucliweb/webperf-snippets |

## Install

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "webperf-snippets": {
      "command": "npx",
      "args": [
        "-y",
        "webperf-snippets"
      ],
      "env": {
        "CRUX_API_KEY": "your-value"
      }
    }
  }
}
```

Settings > Developer > Edit Config. macOS: ~/Library/Application Support/Claude/, Windows: %APPDATA%\Claude\. Restart Claude Desktop afterwards.

### Claude Code

```sh
claude mcp add --env CRUX_API_KEY=your-value --transport stdio webperf-snippets -- npx -y webperf-snippets
```

### Cursor (.cursor/mcp.json)

```json
{
  "mcpServers": {
    "webperf-snippets": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "webperf-snippets"
      ],
      "env": {
        "CRUX_API_KEY": "your-value"
      }
    }
  }
}
```

Project file; use ~/.cursor/mcp.json to enable it in every project.

### VS Code (.vscode/mcp.json)

```json
{
  "inputs": [
    {
      "type": "promptString",
      "id": "crux_api_key",
      "description": "CRUX_API_KEY",
      "password": true
    }
  ],
  "servers": {
    "webperf-snippets": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "webperf-snippets"
      ],
      "env": {
        "CRUX_API_KEY": "${input:crux_api_key}"
      }
    }
  }
}
```

Config formats checked against the official docs on 2026-10-07.

## Environment variables

- `CRUX_API_KEY` (secret): Chrome UX Report API key for the field data of get_crux; the other tools work without it

## Similar MCP servers

- [Actionbook](https://appsgit.com/mcp-servers/actionbook): Let your AI agent operate any website through a real, logged-in browser session. (1,619 stars, Apache-2.0, official)
- [AutoTS](https://appsgit.com/mcp-servers/autots): Automated time series forecasting with model search, anomaly detection, and event risk analysis. (1,434 stars, MIT)
- [Jshookmcp](https://appsgit.com/mcp-servers/jshookmcp): Search-first MCP server for JavaScript reverse engineering: 735 tools across 36 domains. (2,062 stars, AGPL-3.0)
- [Bernstein](https://appsgit.com/mcp-servers/bernstein): The open-source governance layer for AI agents. (1,328 stars, Apache-2.0)
- [Webclaw](https://appsgit.com/mcp-servers/webclaw): Fast, local-first web content extraction for LLMs. (2,390 stars, AGPL-3.0)
- [CRW Web Scraper](https://appsgit.com/mcp-servers/crw-web-scraper): Open-source web scraper for AI agents with scrape, crawl, and map tools. (1,178 stars, AGPL-3.0)

---

Canonical page: https://appsgit.com/mcp-servers/webperf-snippets
Source: appsgit (https://appsgit.com), the app store for github. Data from the GitHub API, refreshed daily.
Machine access: JSON API https://appsgit.com/api/v1/apps (OpenAPI: https://appsgit.com/openapi.json), MCP server https://mcp.appsgit.com/mcp, full index https://appsgit.com/llms-full.txt.
