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

WPGuard MCP

作者:cgallic版本 0.4.0i★ –i在你的电脑上运行
注册名称io.github.cgallic/wpguard-mcp

安装

概览

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

WordPress edit previews, scoped correction checks, and change records for trusted operators.

PopNx MCP 的三大支柱

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

它能帮你做什么

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

  • 连接方式: 在你的电脑上运行
  • 传输方式: Streamable HTTP
  • 分类: 其他
  • 你需要填写:WPGUARD_MCP_TOKEN

安装

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

安装之前

标为机密的值是你账户的钥匙。千万不要分享给别人,也不要粘贴到聊天里。

你需要

你用的是哪个应用?

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

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

{
  "mcpServers": {
    "wpguard": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "WPGUARD_MCP_TOKEN",
        "ghcr.io/cgallic/wpguard-mcp:0.4.0"
      ],
      "env": {
        "WPGUARD_MCP_TOKEN": "your-value"
      }
    }
  }
}

在终端中运行这条命令

claude mcp add wpguard --env WPGUARD_MCP_TOKEN=your-value -- docker run -i --rm -e WPGUARD_MCP_TOKEN ghcr.io/cgallic/wpguard-mcp:0.4.0

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

在 Cursor 中打开

或者自己复制设置

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

{
  "mcpServers": {
    "wpguard": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "WPGUARD_MCP_TOKEN",
        "ghcr.io/cgallic/wpguard-mcp:0.4.0"
      ],
      "env": {
        "WPGUARD_MCP_TOKEN": "your-value"
      }
    }
  }
}

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

在 VS Code 中打开

或者自己复制设置

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

{
  "servers": {
    "wpguard": {
      "type": "stdio",
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "WPGUARD_MCP_TOKEN",
        "ghcr.io/cgallic/wpguard-mcp:0.4.0"
      ],
      "env": {
        "WPGUARD_MCP_TOKEN": "your-value"
      }
    }
  }
}

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

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

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

需要你填写的值

  • WPGUARD_MCP_TOKEN 机密 必填 env
    Generate a strong secret for trusted operators. This token grants admin tool access.

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

它能做什么

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

基础检查i

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

  • ✓ 通过

    作者与仓库一致

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

  • … 尚未检查

    仍在维护

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

  • … 尚未检查

    有许可证

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

  • – 不适用

    端点有响应

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

  • – 不适用

    使用 OAuth 登录

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

  • … 尚未检查

    工具描述中没有隐藏指令

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

与“其他”中的其他服务器比较i

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

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

常见问题

WPGuard MCP 安全吗?

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

它需要哪些密钥或代码?

你需要填写:WPGUARD_MCP_TOKEN

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

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

它还在维护吗?

GitHub 仓库最后更新于–,最新版本(0.4.0)于2个月前进入注册中心。

哪些应用可以使用它?

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

有什么可以替代它?

同一分类中有:Spec Driven Development, Remote Desktop Commander, Starreel

替代选择

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

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

Spec Driven Development

作者:formulahendry

MCP Server that facilitates spec-driven development workflows, not just Vibe Coding.

在你的电脑上运行★ 440MIT14个月前更新
安装

Remote Desktop Commander

作者:desktop-commander

Remote Desktop Commander: use files, terminal and processes on your own computers from any AI app.

在云端运行★ 211前天更新
安装

Starreel

作者:starreel

Turn a script into a finished, downloadable short-drama episode — via MCP or REST.

在你的电脑上运行今天更新
安装

作者的 README

打开 README

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

WPGuard

Put your AI assistant to work on WordPress. Preview the edit. Keep the corrections that matter.

WPGuard connects an MCP client to WordPress so it can inspect a site, update content and settings, and return a record of its changes. When you teach it a supported correction, future edits to that exact target are checked before they are applied.

It is the open-source server behind WP MCP Server. Run it on your own machine or server and connect your WordPress sites over SSH or the companion plugin.

Get started · Product website · Security · MIT license

Useful work, with something to review

Ask your assistant to:

  • Inspect the active theme, plugins, content types, and available fields before changing a page.
  • Find a target page and approved reference, compare their complete stored content, and preview a bounded full-page diff.
  • Replace a Gutenberg or classic page body while proving named copy survives and refusing to overwrite a later human edit.
  • Update one Gutenberg block structurally, then verify the native WordPress revision created by the write.
  • Test a page change on a registered staging site and capture desktop/mobile evidence before opening production approval.
  • Update one plugin or theme with version pinning, health checks, and automatic restoration after a failed update.
  • Preview a content replacement, setting update, or file edit before applying it.
  • Preserve an approved text fragment, field value, or link during later edits to the same target.
  • Retrieve earlier work for an exact client and show the originating evidence.
  • Review a change packet and the snapshots captured by supported mutation tools.

The tools provide the WordPress access and change records. Your MCP client supplies the assistant and its reasoning.

Teach it once. Check the next edit.

Suppose a restaurant's reservations page must keep the link labeled Reserve a table pointing to /reserve.

You record that requirement with a rejected example, an accepted example, and its source. WPGuard first proves the check distinguishes those examples. A later content edit that removes the link fails its preview check and is blocked when the assistant tries to apply it.

This synthetic example uses the wp_correction_record MCP tool after registering the site:

wp_correction_record(

site="restaurant-staging", target="post:84:content", human_correction="Keep the reservations link on this page.", source_ref="review:reservation-link-example", human_requested_basis="The site owner requested this link in the example review.", kind="html_link", expected={"href": "/reserve", "text": "Reserve a table"}, rejected_value=" Contact us to book. ", accepted_value=' Reserve a table ', )

The requirement applies to this registered site and this post body. It does not become a rule for every page or another client. Retiring a correction preserves its history and the reason it was retired.

Supported checks cover exact text presence or absence, scalar equality, a value at a JSON Pointer, and an HTML anchor's destination and text. The link check examines HTML structure; it does not prove the destination works or the link is visible in a browser.

Start from source

Requires Python 3.10 or newer. These commands install this repository; they do not depend on a published package or container image.

git clone https://github.com/cgallic/wpguard-mcp.git

cd wpguard-mcp python -m venv .venv source .venv/bin/activate python -m pip install ".[browser]" playwright install chromium export WPGUARD_TOKEN_ADMIN="$(python -c 'import secrets; print(secrets.token_hex(32))')" wpguard-mcp

The server listens at http://127.0.0.1:8642/mcp. Connect a client that supports MCP Streamable HTTP and an Authorization: Bearer header, using the value of WPGUARD_TOKEN_ADMIN from the server's environment.

Then register your site and call wp_site_context. Registration stores connection details; it does not import or modify your site's content.

The setup guide includes Windows, Docker builds, both WordPress connections, and a first edit with a reviewable preview.

What is included

WorkTools and behavior
Understand the sitewp_site_context, wp_recon, wp_schema_recon, and wp_design_context expose inventory and configuration. Plugin recognition does not imply a complete native integration.
Finish one pagewp_page_list, wp_page_get, and wp_page_compare resolve the target and reference. wp_page_replace_content previews a complete replacement, checks protected copy and corrections, requires the reviewed etag and exact packet, captures a snapshot, then reads the stored result back. wp_page_render_verify captures desktop and mobile screenshots with hashes and DOM checks without changing WordPress.
Test before productionwp_page_stage_and_test previews both registered peers, applies only to the separately approved staging site, captures rendered evidence, and returns a fresh production preview. It never promotes automatically.
Edit content and settingswp_mutate_post_content, wp_mutate_post_meta, and wp_mutate_option preview by default, check applicable corrections, and capture previous values before approved writes.
Work with files and blocksFile tools expose reads and edit previews. wp_mutate_block selects and patches one parsed Gutenberg block under the same digest, ETag, correction, snapshot, and packet controls. Post creation defaults to draft.
Update componentswp_vulnerability_scan returns cached clean, vulnerable, or unknown findings. SSH sites can preview and apply exact plugin/theme updates with post-update health checks and automatic prior-version restoration on failure.
Recover contentList and inspect native WordPress revisions, or preview and approve wp_revert_to_revision. WPGuard verifies the resulting revision by its complete content hash.
Run unattended workAdmins can create narrow preapproval policies bound to a site, source, exact verbs, target pattern, and maximum risk. A matching run receives one exact packet; unmatched work remains blocked.
Remember correctionsRecord, list, and retire exact-target checks. Failed or unevaluable applicable checks block the three mutation tools above.
Consult previous workImport packet CSVs or correction-episode JSONL and retrieve their source records without turning imported prose into executable instructions.
Review changesChange packets record proposals, approvals, and outcomes. wpguard audit displays the local ledger; supported snapshots can be used with rollback tools.

The server also exposes advanced PHP, SQL, CLI, snippet, and access tools. Their permissions and side effects differ. They are not covered by the correction checks above.

Bring your own history

Importing history preserves the original records, hashes, and provenance in the instance's state directory. Repeating an identical import is idempotent; changed records retain their earlier versions.

Packet exports use three CSV schemas:

packets:    id,client_slug,site,status,risk,created_at,summary

status: client_canonical,total_packets,verified,open,blocked,rolled_back categories: category,packets,distinct_clients,top_clients

python -m wpguard_mcp.history import \

--packets packets.csv --status status.csv --categories categories.csv \ --human-requested-basis "The operator confirmed these categories describe human-requested changes."

For richer session histories:

python -m wpguard_mcp.history import-episodes \

--episodes episodes.jsonl --lessons lessons.md --coverage coverage.md

Each JSONL record needs nonempty episode_id, client, and site strings; additional evidence fields are preserved. wp_history_episodes(client_slug=...) matches the original client value exactly. Packet queries match the packet export's client_slug exactly. No alias mapping is inferred between the two exports.

Imported status and acceptance labels remain historical reports. Recording an active correction is a separate operation that requires examples which fail and pass its check. Caller-supplied acceptance references are recorded as attestations, not independently authenticated approvals.

Imports stay on the instance until queried or otherwise shared by its operator. Queries send the selected records to the connected MCP client. Keep private histories out of public repositories and publishable artifacts.

Know the boundaries

  • Correction coverage is explicit: option, post-meta, post-content, full-page, block, and native-revision content writes evaluate applicable target rules. Raw PHP, SQL, file edits, new posts, component updates, and changes made outside WPGuard use different safeguards.
  • Rendered verification is bounded. wp_page_render_verify checks the resolved live page at desktop and mobile sizes for HTTP failures, horizontal overflow, broken rendered images, and optional expected text. It stores hashed screenshots and a JSON receipt under state/render-evidence/. It does not judge visual quality or exercise interactions and links.
  • Permissions are not human approval. A mutate-scoped caller can approve packets. An admin-scoped caller can record or retire corrections. Use your surrounding workflow to decide who may do each.
  • Snapshots are tool-specific. There is no guarantee that every exposed operation is reversible. Maintain your site's regular backups.
  • The companion plugin has administrative capabilities. Prefer a WordPress Application Password owned by a dedicated administrator. The legacy shared key remains available for existing installations. Server-side token tiers do not protect callers who contact the plugin directly.
  • Local ledgers assume a single writer. They are not a shared multi-writer database. A successful replay or test does not establish live production deployment.

The updated companion plugin is required for content correction checks. It returns the source content during preview and checks its digest before applying a content replacement. Older plugin responses cannot satisfy that capability check.

Development

python -m pip install -e ".[dev]"

ruff check . mypy pytest -q

CI runs lint, type checks, and tests on Python 3.10–3.12. PHP CLI is needed to run the companion-handler tests; without it those tests skip. All public test examples are synthetic.

WPGuard is MIT-licensed. See LICENSE.

问 PopNx