WPGuard MCP logo

WPGuard MCP

WordPress MCP server for previewing edits, enforcing scoped corrections, and recording approved changes.

Install WPGuard MCP

Run the project’s own setup commands, in order.

Setup steps from the project

WPGuard MCP installs with its own steps rather than a config we can generate, so these are copied as-is. Follow them in order and run the commands in a terminal. Source: github.com

  1. 1. Install
    git clone https://github.com/cgallic/wpguard-mcp.git
    
  2. 2. Run
    cd wpguard-mcp
    
  3. 3. Configure
    python -m venv .venv
    
  4. 4. Install
    python -m pip install ".[browser]"
    
  5. 5. Install
    playwright install chromium
    
  6. 6. Start the server
    wpguard-mcp
    

Overview

WPGuard MCP MCP server connects MCP clients to WordPress for site inspection, content and settings changes, previews, and change records. It runs locally or on a server over Streamable HTTP, with WordPress connections made through SSH or a companion plugin. Mutation tools preview proposed changes, check applicable protections, capture snapshots, and require approval before writes. Reach for it when WordPress edits need reviewable diffs, bounded correction rules, staging tests, or recoverable history.

Use cases

  • Preview a full WordPress page replacement before approval
  • Protect approved copy or links during later edits
  • Test a change on staging with desktop and mobile evidence
  • Update a Gutenberg block while checking its revision
  • Review change packets and imported operator history

Key features

  • WordPress site inspection and schema discovery
  • Reviewable content, setting, block, and file edit previews
  • Scoped correction checks with blocking behavior
  • Staging tests with rendered evidence
  • Snapshots, change packets, revisions, and rollback support
  • Plugin and theme updates with health checks

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

13/13 checks healthy over the last 62d

How WPGuard MCP works

What WPGuard MCP MCP server does

WPGuard MCP MCP server gives an MCP client controlled access to WordPress sites. It can inspect themes, plugins, content types, fields, settings, pages, blocks, files, revisions, and design context before an operator changes anything. The server also supports content and settings mutations, component updates, revision recovery, rendered page checks, and change-packet review.

The main workflow is preview first, then approve an exact change. Page replacement, post content, post meta, option, block, and supported file operations can return a bounded proposal before applying it. Approved writes record prior values or snapshots and read the resulting WordPress state back where the tool supports that behavior.

How it works

Run the server on a workstation or server and connect an MCP client using Streamable HTTP. The endpoint shown in the repository is http://127.0.0.1:8642/mcp, and requests use a bearer token supplied in the Authorization header. Sites are registered before use; registration stores connection details but does not import or modify site content.

Correction records are scoped to a registered site and exact target. A record can require text, scalar values, JSON Pointer values, or an HTML anchor with a specified destination and label. WPGuard MCP checks applicable corrections during supported mutation previews and blocks a write when a check fails or cannot be evaluated. A link check examines HTML structure; it does not verify that the destination works or that a browser displays the link.

For staging workflows, registered staging and production peers can be previewed together. The staging tool applies only to the separately approved staging site, captures rendered evidence, and returns a new production preview. It does not promote changes automatically.

Setup and configuration

The repository requires Python 3.10 or newer. Installation is from source rather than a published package or container image. A typical setup creates a virtual environment, installs the optional browser dependencies, installs Chromium through Playwright, sets WPGUARD_TOKEN_ADMIN, and starts wpguard-mcp.

The token should be retained for client configuration as a bearer credential. The setup guide also covers Windows, Docker builds, the available WordPress connection methods, and a first edit with a reviewable preview. After startup, register each site and then use wp_site_context to inspect its context.

Tools and capabilities

WPGuard MCP MCP server includes tools for:

  • Site inventory and configuration through wp_site_context, wp_recon, wp_schema_recon, and wp_design_context.
  • Page discovery, retrieval, comparison, replacement previews, and desktop/mobile render verification.
  • Post content, post meta, option, Gutenberg block, and supported file operations.
  • Vulnerability findings plus exact plugin or theme updates for SSH-connected sites, with health checks and restoration after failed updates.
  • Native revision inspection and approved reversion with resulting-content hash verification.
  • Narrow preapproval policies tied to a site, source, verbs, target pattern, and risk limit.
  • Correction recording, listing, retirement, history imports, packet queries, and local audit display.

The server also exposes advanced PHP, SQL, CLI, snippet, and access tools. Their permissions and side effects differ from the supported correction-checked mutation tools.

Limitations and notes

Correction coverage is not universal. The documented checks apply to option, post-meta, post-content, full-page, block, and native-revision content writes. Raw PHP, SQL, file edits, new posts, component updates, and changes made outside WPGuard are outside that coverage.

Plugin recognition does not guarantee a complete native integration. Vulnerability results are cached and may be clean, vulnerable, or unknown. Imported history preserves records, hashes, and provenance, but imported acceptance labels are historical reports rather than independently authenticated approvals. Keep private histories out of public repositories and other publishable artifacts.

WPGuard MCP MCP server does not turn a correction into a site-wide rule: each active requirement is tied to its registered site and target. Retiring one preserves its history and retirement reason.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about WPGuard MCP

WPGuard MCP is an MCP server that connects MCP clients to WordPress over SSH or a companion plugin. Its main tools inspect sites, preview and apply content or settings changes, check scoped corrections, render pages, manage revisions, update components, and record change packets for review.

Install it from source with Python 3.10 or newer, create a virtual environment, install the repository with the browser extra, install Chromium through Playwright, set WPGUARD_TOKEN_ADMIN, and run wpguard-mcp. The server then listens on its documented local Streamable HTTP endpoint.

Connect an MCP client to http://127.0.0.1:8642/mcp using Streamable HTTP and an Authorization: Bearer token header. Use the value of WPGUARD_TOKEN_ADMIN, then register a WordPress site before calling site-context or mutation tools.

Yes, for applicable supported mutations. Scoped correction checks evaluate relevant post content, post meta, options, full-page, block, and native-revision writes; a failed or unevaluable check blocks the affected mutation. Raw PHP, SQL, file edits, new posts, updates, and external changes are not covered by these checks.

No. The staging workflow applies changes only to a separately approved staging site, captures rendered evidence, and returns a fresh production preview. It never promotes a staging change automatically.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewWPGuard MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/wpguard-mcp?style=directory)](https://allmcps.com/mcp/wpguard-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/wpguard-mcp"><img src="https://allmcps.com/api/badge/wpguard-mcp?style=directory" alt="WPGuard MCP on AllMCPs" /></a>