# wordpress-mcp [Health: Active]

**Category:** 💻 Developer Tools  
**Repository:** https://github.com/wpmcp/wordpress-mcp  
**GitHub Stars:** 7  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/wordpress-mcp-3

## Description
WordPress MCP server plugin (WP MCP): connect Claude, ChatGPT, Cursor or any AI agent to WordPress and WooCommerce, and undo any supported AI write. Elementor MCP, Bricks, Divi and Gutenberg tools included. Free WordPress MCP plugin, Pro at wpmcp-pro.com.

## Claude Desktop Quick Installation
No confirmed install details yet, so no config is published. Follow the setup steps in the repository above.

## Documentation & README

<div align="center">

<picture>
  <source media="(prefers-color-scheme: dark)" srcset="assets/readme/wpmcp-logo-horizontal-dark-bg.svg">
  <img src="https://raw.githubusercontent.com/wpmcp/wordpress-mcp/HEAD/assets/readme/wpmcp-logo-horizontal-light-bg.svg" width="420" alt="WPMCP, the WordPress MCP server plugin, logo">
</picture>

# WordPress MCP Server Plugin (WPMCP)

### AI agents can break a live WordPress or WooCommerce site. WPMCP lets you take the change back.

WPMCP is a free, self-hosted WordPress MCP plugin for Claude, ChatGPT, Cursor and other AI agents. It takes a snapshot before each supported write, rolls the change back on its own when the check after it fails, and lets you undo one change or a whole AI session, free.

<img src="https://raw.githubusercontent.com/wpmcp/wordpress-mcp/HEAD/assets/readme/undo-demo.gif" width="900" alt="WordPress MCP server demo: an AI agent changes a page heading over MCP, then one click on Restore in the WPMCP History screen puts the original back">

**Did WPMCP save you a rollback? [Star it on GitHub](https://github.com/wpmcp/wordpress-mcp) so other WordPress builders can find it.** It is a small project, and every star helps.

[Docs](https://wpmcp-pro.com/docs) · [Integrations](https://wpmcp-pro.com/integrations) · [Changelog](https://wpmcp-pro.com/changelog) · [Pricing](https://wpmcp-pro.com/pricing) · [WooCommerce edition](https://github.com/wpmcp/wordpress-mcp-for-woocommerce)

[![Latest release](https://img.shields.io/github/v/release/wpmcp/wordpress-mcp?label=release)](https://github.com/wpmcp/wordpress-mcp/releases/latest)
[![GitHub stars](https://img.shields.io/github/stars/wpmcp/wordpress-mcp?style=social)](https://github.com/wpmcp/wordpress-mcp/stargazers)
[![License: GPL v2+](https://img.shields.io/badge/License-GPL%20v2%2B-blue.svg)](LICENSE)
[![PHP](https://img.shields.io/badge/PHP-%3E%3D8.1-8892BF.svg)](https://php.net)
[![WordPress](https://img.shields.io/badge/WordPress-%3E%3D6.9-21759B.svg)](https://wordpress.org)

### [Download wpmcp.zip](https://wpmcp-pro.com/download?utm_source=github&utm_medium=referral&utm_campaign=readme&utm_content=hero)

</div>

**What you get**

- **Undo for AI edits:** a snapshot before each supported write, automatic rollback when the check after it fails, and undo of one change or a whole AI session, free.
- **Your own AI, no usage limits:** works with Claude, ChatGPT, Cursor, Antigravity or any MCP client. WPMCP adds no usage limits; only your AI plan's own limits apply.
- **Content and page builders:** posts, pages, media, menus and Gutenberg blocks in the free plugin; Elementor, Bricks, Divi and other builders with Pro.
- **WooCommerce:** products, variations, prices, stock, orders and coupons, each supported write with undo.
- **Self-hosted and free:** a GPL plugin that runs on your own WordPress site. 274 free abilities, 407 with Pro.

## Quick start

1. Download [wpmcp.zip](https://wpmcp-pro.com/download?utm_source=github&utm_medium=referral&utm_campaign=readme&utm_content=install).
2. In wp-admin, go to **Plugins > Add New > Upload Plugin**, choose the zip, click **Install Now**, then **Activate**.
3. Open **wpmcp > Connection** and follow its four steps: pick your app, create the connection, add it to your app (the config is filled in for you, or use one of the blocks below), and check that it signed in.

Then ask your AI something read-only to see it work, for example: "List my five latest posts and their status."

Requires WordPress 6.9+ and PHP 8.1+. Free installs update in one click from **Dashboard > Updates**.

The free plugin keeps your last 20 changes with no time limit. Pro keeps unlimited history while the licence is active. A few writes cannot be undone; they are [listed](https://github.com/wpmcp/wordpress-mcp/blob/HEAD/docs/reference/safety-model.md#what-cannot-be-undone), and each says so in its response.

## Copy-paste config

The endpoint is `https://your-site.com/wp-json/mcp/wpmcp-server`. Each block below signs in with a WordPress application password sent as HTTP Basic auth. The **wpmcp > Connection** screen fills in the block for the app you pick, with your site and credential, so pasting from there is the quickest route. To fill one in by hand, build the header value like this:

```bash
echo -n "your-username:xxxx xxxx xxxx xxxx xxxx xxxx" | base64
# Authorization value: Basic <that output>
```

<details open>
<summary><strong>Claude Code</strong></summary>

One command in your project:

```bash
claude mcp add --transport http wpmcp https://your-site.com/wp-json/mcp/wpmcp-server --header "Authorization: Basic BASE64_OF_username:application-password"
```

Or paste into `.mcp.json`:

```json
{
  "mcpServers": {
    "wpmcp": {
      "type": "http",
      "url": "https://your-site.com/wp-json/mcp/wpmcp-server",
      "headers": {
        "Authorization": "Basic BASE64_OF_username:application-password"
      }
    }
  }
}
```

</details>

<details>
<summary><strong>Claude Desktop</strong></summary>

Easiest: on **wpmcp > Connection**, pick Claude Desktop, click **Create connection**, download `wpmcp.mcpb` and double-click it, then enter the username and application password when asked.

Or merge this into `claude_desktop_config.json`, then fully quit and reopen Claude Desktop. The config file only runs local servers, so this entry starts the `mcp-remote` bridge, which needs Node.js:

```json
{
  "mcpServers": {
    "wpmcp": {
      "command": "npx",
      "args": ["-y", "mcp-remote", "https://your-site.com/wp-json/mcp/wpmcp-server", "--header", "Authorization:${WPMCP_AUTH_HEADER}"],
      "env": { "WPMCP_AUTH_HEADER": "Basic BASE64_OF_username:application-password" }
    }
  }
}
```

Keep `Authorization:${WPMCP_AUTH_HEADER}` without a space; the value with its space goes in `env`. The claude.ai and Claude Desktop custom connector signs in with OAuth instead, which is off by default: see the [client reference](https://github.com/wpmcp/wordpress-mcp/blob/HEAD/docs/reference/connecting-clients.md#oauth-and-the-custom-connector).

</details>

<details>
<summary><strong>Cursor</strong></summary>

Paste into `.cursor/mcp.json` (project) or `~/.cursor/mcp.json` (global):

```json
{
  "mcpServers": {
    "wpmcp": {
      "type": "http",
      "url": "https://your-site.com/wp-json/mcp/wpmcp-server",
      "headers": {
        "Authorization": "Basic BASE64_OF_username:application-password"
      }
    }
  }
}
```

</details>

<details>
<summary><strong>Antigravity</strong></summary>

In Antigravity, open **Customizations > Installed**, scroll to **MCP Servers** and click **Copy Config File Path**. Paste this into that file (`mcp_config.json`) and save, then quit and reopen Antigravity and start a new conversation so the tools load:

```json
{
  "mcpServers": {
    "wpmcp": {
      "type": "http",
      "url": "https://your-site.com/wp-json/mcp/wpmcp-server",
      "headers": {
        "Authorization": "Basic BASE64_OF_username:application-password"
      }
    }
  }
}
```

</details>

<details>
<summary><strong>Windsurf</strong></summary>

The Connection screen does not print a Windsurf block yet. Windsurf runs local (stdio) MCP servers from its `mcp_config.json` (open it from the MCP servers panel in Windsurf's settings), so the route that works with any stdio client is the same `mcp-remote` bridge Claude Desktop uses, which needs Node.js:

```json
{
  "mcpServers": {
    "wpmcp": {
      "command": "npx",
      "args": ["-y", "mcp-remote", "https://your-site.com/wp-json/mcp/wpmcp-server", "--header", "Authorization:${WPMCP_AUTH_HEADER}"],
      "env": { "WPMCP_AUTH_HEADER": "Basic BASE64_OF_username:application-password" }
    }
  }
}
```

Then refresh the MCP servers list in Windsurf.

</details>

ChatGPT, VS Code and other clients: see [Connect your AI client](#connect-your-ai-client-claude-code-claude-desktop-chatgpt-cursor) below.

> **WPMCP Pro, 10% off for GitHub users:** use code `WPMCPGIT` at [wpmcp-pro.com/pricing](https://wpmcp-pro.com/pricing?coupon=WPMCPGIT&utm_source=github&utm_medium=referral&utm_content=readme)

## What the WordPress MCP server does

**A WordPress AI agent with undo.** Each supported write is snapshotted before it runs, checked after, and rolled back on its own if the check fails. Undo one change or a whole agent session from the AI, or any single change with one click on the History screen in wp-admin. The free plugin keeps your last 20 undo points; Pro keeps unlimited history while the licence is active. The few things that cannot be undone are [listed](https://github.com/wpmcp/wordpress-mcp/blob/HEAD/docs/reference/safety-model.md#what-cannot-be-undone), and each says so in its response.

**Build pages in Gutenberg, Elementor and other builders.** The free plugin reads and edits Gutenberg blocks, inserts patterns and converts HTML to blocks, verifying the markup after every edit. Pro adds Elementor MCP editing of the full element tree, plus Bricks, Divi, Beaver Builder, Breakdance, Oxygen, WPBakery, Avada and other builders. [Builder details](https://github.com/wpmcp/wordpress-mcp/blob/HEAD/docs/reference/page-builders.md).

**Run the site.** Posts, pages, media, menus, users, settings, plugins and themes, plus cache clearing, performance and security scans and backups. Risky tools (raw database writes, file edits, package updates, code execution) ship switched off until you opt in.

**Run your store as a WooCommerce MCP server.** Products and variations, bulk price changes, orders, coupons and stock, with undo for each supported write. Pro adds WooCommerce Subscriptions, Bookings and Memberships. Prefer a store-only build? See the [WooCommerce edition](https://github.com/wpmcp/wordpress-mcp-for-woocommerce).

**Works with your plugins.** Integrations for ACF, Yoast SEO and Rank Math, form, LMS, membership and other plugins register only while that plugin is active, so your AI client sees tools for what your site actually runs. Built on the WordPress Abilities API and the official WordPress MCP Adapter. [All integrations](https://wpmcp-pro.com/integrations).

<p align="center">
  <img src="https://raw.githubusercontent.com/wpmcp/wordpress-mcp/HEAD/assets/readme/history.png" width="900" alt="WPMCP History screen in wp-admin listing WordPress MCP agent operations, each with a one-click Restore button">
</p>

## How undo works

```
snapshot (before)  ->  apply the change  ->  verify  ->  ok?
     |                                          |         |
 stored by                              on failure:    return
 operation and                          auto-rollback   operation id
 agent session                          + raise error
```

Snapshots are taken at the WordPress data layer (post content, meta, terms, options, users), so rollback works the same for every page builder.
Each write returns an operation id: `rollback-operation` undoes one, `rollback-session` unwinds a whole agent run, and the History screen restores any single operation with one click.
Free keeps the last 20 operations; Pro keeps every one while the licence is active. Read the full list of [what cannot be undone](https://github.com/wpmcp/wordpress-mcp/blob/HEAD/docs/reference/safety-model.md#what-cannot-be-undone).

## Connect your AI client: Claude Code, Claude Desktop, ChatGPT, Cursor, Antigravity

Open **wpmcp > Connection** in wp-admin and follow four steps: pick your app, create the connection, add it with the config filled in and ready to paste (Claude Desktop gets a one-click `wpmcp.mcpb` bundle), and check that it signed in. The endpoint is `https://your-site.com/wp-json/mcp/wpmcp-server`.

Step-by-step guides: [Claude Desktop and claude.ai](https://wpmcp-pro.com/wordpress-mcp-claude) · [Claude Code](https://wpmcp-pro.com/wordpress-mcp-claude-code) · [ChatGPT](https://wpmcp-pro.com/wordpress-mcp-chatgpt) · [Cursor](https://wpmcp-pro.com/wordpress-mcp-cursor) · [All clients](https://wpmcp-pro.com/docs/connecting-clients)

Stuck? Each guide ends with the common snags, and [Verifying the connection](https://wpmcp-pro.com/docs/connecting-clients#verifying-the-connection) shows how to check it end to end. OAuth sign-in (custom connectors, ChatGPT) is off by default; the [client reference](https://github.com/wpmcp/wordpress-mcp/blob/HEAD/docs/reference/connecting-clients.md) covers it.

## Sample prompts

Paste-once blueprints in [prompts/](https://github.com/wpmcp/wordpress-mcp/blob/HEAD/prompts/), each ending with an undo step:

- [Claude WordPress prompt: rebuild a homepage hero with undo](https://github.com/wpmcp/wordpress-mcp/blob/HEAD/prompts/claude-wordpress-homepage-hero-with-undo.md)
- [WordPress AI agent prompt: bulk-fix SEO titles, then review in History](https://github.com/wpmcp/wordpress-mcp/blob/HEAD/prompts/wordpress-ai-agent-bulk-seo-titles.md)
- [WooCommerce MCP prompt: update prices with a one-step rollback](https://github.com/wpmcp/wordpress-mcp/blob/HEAD/prompts/woocommerce-mcp-price-update-with-rollback.md)
- [WordPress MCP prompt: build a Gutenberg landing page, then undo it](https://github.com/wpmcp/wordpress-mcp/blob/HEAD/prompts/gutenberg-landing-page-wordpress-mcp.md)

## Free vs Pro

The free plugin is complete on its own: the safety engine and undo, Gutenberg editing, site management and the WooCommerce store tools.
Pro adds unlimited undo history, Elementor deep editing, the other page builders, WooCommerce Subscriptions, Bookings and Memberships, agent project memory and priority support.
Pro comes from the Freemius checkout on the [pricing page](https://wpmcp-pro.com/pricing): after checkout you get the licence key and the Pro download, which also stay in your Freemius account. GitHub releases carry the free plugin only. The detail is in [Free vs Pro](https://github.com/wpmcp/wordpress-mcp/blob/HEAD/docs/reference/free-vs-pro.md).

## Developer docs

Building on WPMCP or wiring it into your own agent? The full tool and protocol reference is in [docs/reference/](https://github.com/wpmcp/wordpress-mcp/blob/HEAD/docs/reference/README.md). Guides for site owners are at [wpmcp-pro.com/docs](https://wpmcp-pro.com/docs).

## Contributing

Issues and pull requests are welcome. See [CONTRIBUTING.md](https://github.com/wpmcp/wordpress-mcp/blob/HEAD/CONTRIBUTING.md), or open an issue to talk through a larger change first.

## Security

WPMCP edits live sites on an agent's instructions, so every admin action is capability-checked and nonce-protected, output is escaped and database access is parameterized. Found a vulnerability? Please open a private security advisory rather than a public issue.

## License

[GPL-2.0-or-later](https://github.com/wpmcp/wordpress-mcp/blob/HEAD/LICENSE). Study it, fork it, ship it. If it saves you a rollback, [star it on GitHub](https://github.com/wpmcp/wordpress-mcp) so other WordPress builders can find it.

