原型 · 预览版:收录官方注册中心里的全部服务器,每 30 分钟同步一次。评价和账户功能将在后续阶段推出。
PopNx MCP为使用 AI 的人准备的 MCP 服务器 · 用大白话讲清楚

WSG Check

作者:ivanoats版本 0.6.2i★ –i在你的电脑上运行
注册名称io.github.ivanoats/wsg-check

安装

概览

作者提供的说明(英文原文)

Check websites against the W3C Web Sustainability Guidelines and look up the guidelines

PopNx MCP 的三大支柱

这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。

它能帮你做什么

我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。

  • 连接方式: 在你的电脑上运行
  • 传输方式: stdio
  • 分类: 网页与浏览器

安装

选择你使用的 AI 应用,然后复制设置。

安装之前

  • 基础检查:1 项中通过 1 项
  • 在你的电脑上运行,拥有你的用户账户的权限(文件、网络、应用)。
  • 需要你自己填写: WSG_CHECK_NO_LOCAL, WSG_CHECK_ALLOW_PRIVATE

你需要

  • npm已安装 Node.js(用于 npx 命令)

你用的是哪个应用?

在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。

打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json

{
  "mcpServers": {
    "wsg-check": {
      "command": "npx",
      "args": [
        "-y",
        "@sustainablewebsites/wsg-check",
        "--mcp"
      ],
      "env": {
        "WSG_CHECK_NO_LOCAL": "your-value",
        "WSG_CHECK_ALLOW_PRIVATE": "your-value"
      }
    }
  }
}

在终端中运行这条命令

claude mcp add wsg-check --env WSG_CHECK_NO_LOCAL=your-value --env WSG_CHECK_ALLOW_PRIVATE=your-value -- npx -y @sustainablewebsites/wsg-check --mcp

运行前请先填写空着的值。

在 Cursor 中打开

或者自己复制设置

粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json

{
  "mcpServers": {
    "wsg-check": {
      "command": "npx",
      "args": [
        "-y",
        "@sustainablewebsites/wsg-check",
        "--mcp"
      ],
      "env": {
        "WSG_CHECK_NO_LOCAL": "your-value",
        "WSG_CHECK_ALLOW_PRIVATE": "your-value"
      }
    }
  }
}

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

在 VS Code 中打开

或者自己复制设置

粘贴到项目中的 .vscode/mcp.json

{
  "servers": {
    "wsg-check": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@sustainablewebsites/wsg-check",
        "--mcp"
      ],
      "env": {
        "WSG_CHECK_NO_LOCAL": "your-value",
        "WSG_CHECK_ALLOW_PRIVATE": "your-value"
      }
    }
  }
}

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。

你的选择通过 Cookie 保存在这台设备上,无需账户。

需要你填写的值

  • WSG_CHECK_NO_LOCAL env
    Set to 1 to block localhost and other loopback URLs, which are allowed by default
  • WSG_CHECK_ALLOW_PRIVATE env
    Set to 1 to allow private network URLs (10/8, 172.16/12, 192.168/16)

这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。

它能做什么

它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。

基础检查i

我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月8日

  • ✓ 通过

    作者与仓库一致

    注册名称已通过 GitHub 账户 ivanoats 验证,该账户拥有此仓库

  • … 尚未检查

    仍在维护

    我们还没有从 GitHub 读取这个仓库

  • … 尚未检查

    有许可证

    我们还没有从 GitHub 读取这个仓库

  • – 不适用

    端点有响应

    它在你的电脑上运行,没有互联网端点

  • – 不适用

    使用 OAuth 登录

    在你的电脑上运行,改用本地设置

  • … 尚未检查

    工具描述中没有隐藏指令

    它在你的电脑上运行;我们只能读取互联网端点的工具列表

与“网页与浏览器”中的其他服务器比较i

  • 星标数多于此分类中其他 1380 个服务器的 0%
  • 发布到注册中心的时间比此分类中其他 1380 个服务器的 57% 更新
  • 基础检查结果等于或优于此分类中其他 1380 个服务器的 100%

与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。

常见问题

WSG Check 安全吗?

它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。

它需要哪些密钥或代码?

注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。

它在我的电脑上运行还是在云端?

它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。

它还在维护吗?

GitHub 仓库最后更新于–,最新版本(0.6.2)于25天前进入注册中心。

哪些应用可以使用它?

支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Node.js。

有什么可以替代它?

同一分类中有:Browser Use, Chrome DevTools MCP, MCP Server Browser

替代选择

同一分类中其他作者的服务器,按星标数排序。

如何看卡片:↓ 每周下载量i★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i

Browser Use

Browser agents and stealth cloud browsers for AI: run web tasks, fill forms, extract data.

作者:browser-use广泛使用↓ 155.2万/周★ 12万18天前更新

电脑或云端✓ browser-use.com

Chrome DevTools MCP

MCP server for Chrome DevTools

作者:ChromeDevTools广泛使用↓ 188.4万/周★ 5.5万17天前更新

在你的电脑上运行

MCP Server Browser

MCP server for browser use access

作者:bytedance广泛使用↓ 792/周★ 4万14个月前更新

在你的电脑上运行

作者的 README

打开 README

按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。

WSG-Check

Check a website against automated heuristics based on the W3C Web Sustainability Guidelines. Get a weighted score, recommendations, and reports in terminal, JSON, Markdown, or HTML format through a CLI or a Next.js web app.

Release status

The latest release is v0.7.0.

Source on main targets WSG September-2026, the 24 September 2026 Group Note Draft; v0.6.1 and earlier target July-2026. It includes an MCP server for AI assistants, with the check_url, list_guidelines, and get_guideline tools, listed in the MCP Registry as io.github.ivanoats/wsg-check. The server first shipped in v0.4.0; v0.3.0 was tagged on GitHub but not published to npm. See the changelog and spec versioning policy.

Scores from different spec versions should not be treated as directly comparable. The package version and check selection also matter when comparing reports.

Quick start

Requires Node.js 22 or later. Pin the released CLI for reproducible usage:

npx @sustainablewebsites/wsg-check@0.7.0 https://example.com # x-release-please-version

Or install globally

npm install -g @sustainablewebsites/wsg-check@0.7.0 # x-release-please-version wsg-check https://example.com --format json --output report.json

To run the current source, including unreleased features, use Node.js 22.22.1 or later (required by development tooling):

git clone https://github.com/ivanoats/wsg-check.git

cd wsg-check npm ci # prepare also generates Panda CSS tokens npm run dev # http://localhost:3000

Build and run the CLI from this checkout

npm run build:cli node dist/cli/index.js https://example.com

See CONTRIBUTING.md for environment configuration and development commands.

What the results mean

  • Checks cover web development, UX, and hosting. The business category has no automated checks.
  • Analysis uses fetched HTML and HTTP metadata; it does not render JavaScript, measure Core Web Vitals, or download every referenced asset.
  • Results describe one page, but most checks read the server or content shared by a site template, so pages on one site usually score alike. Scores differ mainly on page-specific content such as images and inline styles or scripts.
  • CO₂ estimates use the HTML transfer size and the SWD v4 model, not measured full-page energy consumption. Failed green-hosting lookups fall back to false.
  • Report page weight is the HTML transfer size: the bytes received over the network, compressed when the server compressed them. Resource and third-party counts come from references in the HTML. Referenced assets are not downloaded or measured.
  • Security headers, form validation, native form features, and image alternative text remain visible as related checks, excluded from WSG scores.

CLI Usage

WSG-Check ships with a command-line tool that lets you check any website directly from your terminal or integrate checks into CI pipelines.

Basic usage
# Check a website with default (terminal) output

npx @sustainablewebsites/wsg-check https://example.com

Output as JSON

npx @sustainablewebsites/wsg-check https://example.com --format json

Save the report to a file

npx @sustainablewebsites/wsg-check https://example.com --format markdown --output report.md

Fail the process (exit 1) if the score is below 70

npx @sustainablewebsites/wsg-check https://example.com --fail-threshold 70

Options
OptionAliasDescriptionDefault
--format -fOutput format: terminal, json, markdown, htmlterminal
--output -oWrite report to a file instead of stdout_(stdout)_
--categories -cComma-separated categories: ux,web-dev,hosting (business planned — no automated checks yet)all
--guidelines -gComma-separated guideline slugs to run, e.g. minify-and-remove-unused-code (numeric IDs such as 3.3 are deprecated)all
--fail-threshold Exit code 1 if overall score < _n_ (0–100)0
--verbose-vEnable verbose loggingfalse
--ignore-robotsSkip robots.txt for a site you operate; adds (ignore-robots) to the User-Agentfalse
--config Path to wsg-check.config.json or .wsgcheckrc.json_(auto-discover)_
--header -HSend a request header (Name: value, repeatable) to the start URL's host only; never to robots.txt or other hosts_(none)_
--versionPrint version and exit
--helpPrint help and exit

--header values land in shell history and CI logs, and a malformed one is echoed in the error. For a secret, set "headers": {"Cookie": "..."} in a wsg-check.config.json kept out of version control. Header names in the config file are checked when it loads, and an error names the bad header without printing its value. --header replaces the config file's headers entirely. Headers are not sent over plain http after an https hop. To change the user agent, use WSG_USER_AGENT or the config's userAgent. The web API and MCP server do not accept request headers.

CI integration

Use --fail-threshold to fail your pipeline when a site's sustainability score drops:

# .github/workflows/sustainability.yml
  • name: Check sustainability run: npx @sustainablewebsites/wsg-check https://example.com --fail-threshold 60 --format json --output wsg-report.json
  • name: Upload report uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 with: name: wsg-report path: wsg-report.json
Exit codes
CodeMeaning
0Check completed and score is at or above --fail-threshold
1Fetch/parse error, or score is below --fail-threshold

Use with AI assistants (MCP)

The package includes wsg-check-mcp, a Model Context Protocol server for Claude Code, Claude Desktop, VS Code, Cursor, and other MCP clients. It runs on your machine over stdio, with no account, port, or hosted service. Your assistant can then check a deployed site or your local dev server, look up guidelines, and fix what it finds.

# Claude Code

claude mcp add wsg-check -- npx -y -p @sustainablewebsites/wsg-check wsg-check-mcp

Claude Desktop (claude_desktop_config.json) and Cursor (.cursor/mcp.json):

{

"mcpServers": { "wsg-check": { "command": "npx", "args": ["-y", "-p", "@sustainablewebsites/wsg-check", "wsg-check-mcp"] } } }

npx -y @sustainablewebsites/wsg-check --mcp starts the same server; it's the command the MCP Registry listing, io.github.ivanoats/wsg-check, uses.

VS Code (.vscode/mcp.json) uses a servers key:

{

"servers": { "wsg-check": { "type": "stdio", "command": "npx", "args": ["-y", "-p", "@sustainablewebsites/wsg-check", "wsg-check-mcp"] } } }

Try prompts such as "Check http://localhost:3000 against the WSG and fix the top three issues" or "Which WSG guidelines cover web fonts?"

ToolWhat it does
check_urlChecks a page and returns the score, grade, and each failed or warned check with a recommended fix. detail: "full" adds the complete report.
list_guidelinesLists the WSG guidelines, filtered by category, testability, or text, with how many automated checks implement each one.
get_guidelineReturns one guideline's description and W3C specification link.
Network access
  • Local URLs are allowed by default, so http://localhost:3000 and other loopback addresses work without setup. The trade-off: text the assistant reads, such as a web page or a file in your project, could try to steer it into requesting a service on your machine. Requests are GET-only and the results go back to the assistant. If you don't check a local dev server, add --no-local after wsg-check-mcp in the arguments, or set WSG_CHECK_NO_LOCAL=1.
  • Private networks (10/8, 172.16/12, 192.168/16) are blocked unless you add --allow-private-network or set WSG_CHECK_ALLOW_PRIVATE=1.
  • The only other request check_url makes is a green-hosting lookup: it sends the hostname to the Green Web Foundation. Local hostnames are never sent.
  • Cloud metadata and other reserved addresses are always blocked. Redirects from a public site into your machine or network are refused, and each connection is pinned to the address that was checked.
Agent skill

The repository also ships an Agent Skill, wsg-sustainability-review. It walks an assistant through checking a site, fixing the issues in your codebase in priority order, and checking again. It uses the MCP tools when they are configured and falls back to the CLI otherwise. Install it into Claude Code, Cursor, Copilot, and other agents with:

npx skills add ivanoats/wsg-check

REST API

The web app exposes Next.js Route Handlers:

EndpointPurpose
POST /api/checkRun a check and return the completed report and ID
GET /api/check/:idRetrieve a report from the process-local result store
GET /api/guidelinesList guidelines; current source includes pinned spec provenance in spec
GET /api/guidelines/:idLook up a guideline; current source accepts slugs and legacy numeric aliases

| GET /api/health | Health st

只显示了开头部分;其余内容请在仓库中阅读

问 PopNx