What royal-mcp does
royal-mcp is an open-source WordPress plugin that makes a WordPress installation available as a Model Context Protocol server. It lets connected AI applications work with site content and administration tasks through WordPress permissions rather than a separate hosted service. The plugin is self-hosted: API keys, sign-in tokens, and logs remain in the WordPress database.
The core tool set covers posts, pages, custom post types, taxonomies, media, blocks, comments, users, menus, themes, site settings, search, SEO metadata, plugins, themes, and diagnostics. It also exposes safety controls, including connection access levels, read-only and drafts-only modes, activity logging, change snapshots, and undo for destructive operations within 72 hours.
How it works
A connected AI client sends MCP tool calls to the WordPress site. Calls execute as a WordPress user and are checked against that user's capabilities. Destructive operations can require approval in the client, and new posts and pages begin as drafts. High-impact changes such as site options and permalink settings can be previewed with a dry run.
The plugin records the tool name, argument keys, IP address, and user agent for each call without storing argument values. Before destructive writes, it stores a snapshot that can be reviewed from Recent Changes and reversed with the undo operation.
Royal MCP can operate alongside MCP tools supplied by Elementor and WooCommerce. When the WordPress MCP Adapter is installed, its tools also register as WordPress abilities and are served through the royal-mcp-server adapter server while retaining the same permissions, switches, and logging.
Setup and configuration
Install the plugin from WordPress.org and connect an MCP-capable AI application to the site endpoint. The listed platform requirements are WordPress 5.8 or newer and PHP 7.4 or newer.
The Connected Clients screen assigns each connection Full, Read-only, or Drafts-only access and allows connections to be revoked. Site-wide switches can refuse all changes or prevent publishing. Integration tools become available when their corresponding WordPress plugins are active, including WooCommerce, Elementor, Divi, Wordfence, GuardPress, SiteVault, and others.
The optional WordPress MCP Adapter exposes the registered abilities through royal-mcp-server. Native Royal MCP tools continue to use their own endpoint, and installing the adapter does not disable tools supplied by other plugins.
Tools and capabilities
Core capabilities include:
- Creating, reading, updating, deleting, and cloning content as drafts
- Uploading, converting, resizing, compressing, searching, and managing media
- Reading and editing block trees, synced patterns, global styles, and Site Editor templates
- Managing comments, menus, taxonomies, custom fields, theme settings, and allowlisted site options
- Reading and writing SEO metadata for Yoast, Rank Math, AIOSEO, SEOPress, and SEObolt
- Inspecting installed plugins and themes, WordPress health, PHP error logs, and cron schedules
- Managing WooCommerce products, variations, attributes, coupons, orders, customers, and store statistics
- Editing existing Elementor and Divi pages, including cloning, text replacement, image swaps, and templates
- Reviewing security findings and login activity through supported security plugins
- Starting and monitoring backups through SiteVault or UpdraftPlus
The integration tool count depends on which matching plugins are active. Supported integrations also include Royal AI Firewall, TablePress, Code Snippets, Redirection, Royal Ledger, Advanced Custom Fields, and several SEO and caching plugins.
Limitations and notes
Royal MCP requires WordPress and PHP versions supported by the plugin, and integration-specific tools require the relevant plugin to be active. User emails and usernames are not exposed by default; a site owner can opt in through the royal_mcp_user_fields filter. Undo applies to stored destructive changes for up to 72 hours, rather than providing unlimited revision history.
The server is licensed under GPLv2. Its integration model complements rather than replaces the MCP tools provided by Elementor and WooCommerce.