royal-mcp — Claude Code MCP server: what it does, how to install
Turns WordPress into an MCP endpoint for AI assistants to edit posts, WooCommerce items and SEO settings.
claude mcp add --transport http royal-mcp https://demo.royalplugins.com/wp-json/royal-mcp/v1/mcpWhat royal-mcp 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.
What it helps with
- 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 for the agent
- 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.
How to install royal-mcp
Platform CLI: remote server
claude mcp add --transport http royal-mcp https://demo.royalplugins.com/wp-json/royal-mcp/v1/mcpPlatform CLI: remote server
codex mcp add royal-mcp --url https://demo.royalplugins.com/wp-json/royal-mcp/v1/mcpConfig file
{
"mcpServers": {
"royal-mcp": {
"url": "https://demo.royalplugins.com/wp-json/royal-mcp/v1/mcp"
}
}
}Config file
{
"servers": {
"royal-mcp": {
"type": "http",
"url": "https://demo.royalplugins.com/wp-json/royal-mcp/v1/mcp"
}
}
}Platform CLI: remote server
gemini mcp add -t http royal-mcp https://demo.royalplugins.com/wp-json/royal-mcp/v1/mcpStep by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more
Questions about royal-mcp
How to install royal-mcp in Claude Code?
Run claude mcp add --transport http royal-mcp https://demo.royalplugins.com/wp-json/royal-mcp/v1/mcp in your terminal.
What does royal-mcp do?
It provides an HTTP MCP endpoint inside WordPress, letting AI tools edit pages, manage media files and adjust store settings.
Can accidental edits made by AI be reversed?
Yes, the built-in mcp_undo_last_operation tool restores the previous snapshot if executed within 72 hours.