# royal-mcp

Turns WordPress into an MCP endpoint for AI assistants to edit posts, WooCommerce items and SEO settings.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · ★ 10
- Author: royalplugins
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/royalplugins/royal-mcp
- Updated: 2026-10-22
- HTML: https://affpapa.org/en/nevibecode/mcp/royal-mcp

## What it does

This plugin connects a WordPress site directly to AI assistants using the Model Context Protocol. The assistant modifies blog posts and WooCommerce store items through chat. There are no middleman servers. Everything runs strictly inside your own database.

The package contains 266 tools. 109 handle core CMS tasks, while 157 load alongside extensions like Elementor or Yoast. Dangerous modifications trigger an automatic snapshot. You can revert unwanted changes with `mcp_undo_last_operation` within 72 hours.

Operation requires PHP 7.4+ and WordPress 5.8+. The server strictly verifies capabilities for each WordPress user. Without proper administrative privileges, the assistant cannot touch system options.

## Requirements
- Remote server: `https://demo.royalplugins.com/wp-json/royal-mcp/v1/mcp`

## Install

### Claude Code (native platform)

**Platform CLI: remote server**
```bash
claude mcp add --transport http royal-mcp https://demo.royalplugins.com/wp-json/royal-mcp/v1/mcp
```

### Codex

**Platform CLI: remote server**
```bash
codex mcp add royal-mcp --url https://demo.royalplugins.com/wp-json/royal-mcp/v1/mcp
```

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "royal-mcp": {
            "url": "https://demo.royalplugins.com/wp-json/royal-mcp/v1/mcp"
        }
    }
}
```

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "royal-mcp": {
            "type": "http",
            "url": "https://demo.royalplugins.com/wp-json/royal-mcp/v1/mcp"
        }
    }
}
```

### Gemini CLI

**Platform CLI: remote server**
```bash
gemini mcp add -t http royal-mcp https://demo.royalplugins.com/wp-json/royal-mcp/v1/mcp
```

## When to use it
- generate draft posts with relevant SEO meta fields
- replace outdated contact details across published pages
- create WooCommerce discount coupons based on stock levels
- revert destructive database modifications within 72 hours

## Example prompts
- Search published pages for our previous address and update it everywhere.
- Review inventory levels in WooCommerce and add a 15% discount coupon.
- Undo the previous change made to the post.

## Similar
- [woocommerce-dev-cycle](https://affpapa.org/en/nevibecode/skills/woocommerce-dev-cycle.md) — skill · 361 installs
- [woocommerce-code-review](https://affpapa.org/en/nevibecode/skills/woocommerce-code-review.md) — skill · 1800 installs
- [wordpress](https://affpapa.org/en/nevibecode/skills/wordpress.md) — skill · 894 installs
- [woocommerce](https://affpapa.org/en/nevibecode/skills/woocommerce.md) — skill · 826 installs
- [wordpress-master](https://affpapa.org/en/nevibecode/agents/wordpress-master.md) — subagent · 763 installs
- [woocommerce-backend-dev](https://affpapa.org/en/nevibecode/skills/secondsky-woocommerce-backend-dev.md) — skill · 365 installs

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
