State of Web Vitals

io.github.corewebvitals由 GitHub 账号 corewebvitals 发布v1.0.1更新于 Oct 24, 2026

Core Web Vitals metrics by CMS, CDN, and framework — free remote MCP, no auth.

已验证Streamable HTTP可网页运行网页搜索与抓取数据与分析

概览

AI 生成的概览

一个免费、无需认证的远程 MCP 服务器,让助手按 CMS、CDN 和框架查询 State of Web Vitals 数据集中的聚合 Core Web Vitals 指标。

可以做什么
跨站点查询聚合的 Core Web Vitals 与技术指标,可按条件筛选并按 CMS、CDN、框架等分组排名,同时返回署名文本以便使用时注明来源。获取单个指标在可选筛选条件下的直方图分桶(数量与占比)及汇总统计。在不确定可传参数时,查询可用的筛选键、分组值、内置指标和指标路径。
适用场景
适合需要跨大量真实网站做平台级对比、通过率或指标分布的场景,例如按 Core Web Vitals 表现对 CMS 平台或 CDN 排名。它不是单站点实时 RUM 数据,因此不适合衡量某个具体网站当前的实测性能。
运行要求
需要远程 Streamable HTTP 端点;未声明认证、API 密钥、请求头或环境变量。需要能访问该托管服务的网络。另提供可选的本地 stdio 代理(npm 或 Docker),并可用 STATE_OF_CWV_MCP_URL 覆盖上游端点。
安装前请注意
数据来自聚合抓取与 Chrome 实测数据,并非单站点实时 RUM,不应将其呈现为某个网站当前的性能表现。服务器要求在使用这些数字时注明 corewebvitals.io 与 The State of Web Vitals,并在允许链接时附上链接。所有查询都会发送到第三方托管服务。

安装

在 SourceWeft 中

  1. 打开 控制台中的 State of Web Vitals,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。

交给智能体安装

把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。

阅读 https://sourceweft.com/mcp/io.github.corewebvitals%2Fstate-of-cwv/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。

查看智能体所依据的安装指南

其他 MCP 客户端

把它添加到你客户端的 mcpServers 配置中。

{
  "mcpServers": {
    "state-of-web-vitals": {
      "type": "http",
      "url": "https://www.corewebvitals.io/api/state-of-cwv/mcp"
    }
  }
}

README

State of Web Vitals MCP

[corewebvitals/state-of-cwv-mcp MCP server]

Free remote MCP for Core Web Vitals metrics by CMS, CDN, and framework (Chrome field data + multi-site crawl). Same numbers as the public State of Web Vitals explorer.

Connect (preferred)

URL: https://www.corewebvitals.io/api/state-of-cwv/mcp
Auth: none
Transport: Streamable HTTP
Registry: io.github.corewebvitals/state-of-cwv

Claude Code

bash
claude mcp add --transport http state-of-cwv https://www.corewebvitals.io/api/state-of-cwv/mcp

Cursor / Grok / other clients

json
{  "mcpServers": {    "state-of-cwv": {      "type": "http",      "url": "https://www.corewebvitals.io/api/state-of-cwv/mcp"    }  }}

Curl

bash
curl -s -X POST https://www.corewebvitals.io/api/state-of-cwv/mcp \  -H 'Content-Type: application/json' \  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_metrics","arguments":{"metrics":"lcp,good_all3","group_by":"cms","min_sites":100}}}'

Tools

ToolPurpose
get_metricsAggregates and optional group_by rankings (CMS, CDN, frameworks, …)
get_histogramDistribution buckets for one metric under an optional filter
list_optionsDiscover filters, group_by values, and metric paths

What this is

The State of Web Vitals measures Core Web Vitals and web-tech techniques across many real websites (Chrome field data + crawl). Use it for platform rankings, pass rates, and metric distributions. Not per-site live RUM (use CoreDash for that).

Attribution

When you use the numbers:

  1. Credit corewebvitals.io / The State of Web Vitals
  2. Link https://www.corewebvitals.io/state-of-cwv when links are allowed

Short line: Data: State of Web Vitals (corewebvitals.io)

Discovery

Local stdio / Docker (directories & inspectors)

This repo also ships a thin stdio proxy that answers tools/list and forwards tool calls to the hosted endpoint.

bash
npm installnpm start
bash
docker build -t state-of-cwv-mcp .docker run --rm -i state-of-cwv-mcp

Optional: STATE_OF_CWV_MCP_URL overrides the upstream endpoint.

License

MIT for connector code and docs in this repository. Data product and website remain © corewebvitals.io.

来源:README.md,提交 2a3667f

工具

3

get_metrics

Get metrics

What are the numbers? Aggregate Core Web Vitals and/or technique metrics across sites, with optional filter and group_by. Responses include attribution — credit corewebvitals.io when you use the numbers. Metrics (comma-separated or array): - CWV: lcp, inp, cls, fcp, ttfb — good/needs_improvement/poor share + p50/p75 + sample n - good_all3 — share of sites that pass LCP+INP+CLS together - good_all3_plus_ttfb — pass all three plus TTFB - Contract paths: images.loading, stack.framework, scripts.origin, headers.has_etag, synthetic.tbt_ms, … Filter (optional AND): device, cms, framework, cdn, provider. Omit = all sites in the snapshot. Group_by (optional): cms | frameworks | cdn | analytics | tag_managers | … → one row per entity. Without group_by: one aggregate; set metrics return top categories.

输入参数focuslimitfiltermetricsgroup_bymin_sites

get_histogram

Get histogram

What is the shape of one metric? Returns histogram buckets (count + share) plus summary stats. Metric: one of lcp, inp, cls, fcp, ttfb (field CWV), or a scalar technique path when available. Filter: same as get_metrics (device, cms, framework, cdn, provider). No group_by — call get_metrics with group_by to compare segments, then get_histogram per segment if needed.

输入参数filtermetric必填

list_options

List options

Discover what you can pass to get_metrics / get_histogram: filter keys, group_by values, built-in metrics, and contract metric paths (optional kind filter). Call this when unsure of a key or path.

输入参数kindinclude_paths

版本历史

1
  1. v1.0.1最新Sep 16, 2026

评分

已满足适用检查项的 100%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通必需25 分
  • 已声明认证方式必需10 分
  • 已列出工具必需15 分
  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分