
內容簡介
Royal MCP 是一個完整的 WordPress MCP 伺服器,提供超過 200 種工具,支援 OAuth 2.0 和 WebMCP,讓 Claude、ChatGPT 等 AI 以結構化方式訪問您的網站,確保資料安全且不外流。
【主要功能】
• 直接連接 Claude 和 ChatGPT
• 支援 109 種 WordPress 核心工具
• 自動加載 136 種整合工具
• 兼容 WooCommerce、Elementor 等外掛
• 提供工具發現和頁面驗證助手
外掛標籤
開發者團隊
② 後台搜尋「Royal MCP – Secure AI Connector for Claude, ChatGPT & any LLM via MCP」→ 直接安裝(推薦)
📦 歷史版本下載
原文外掛簡介
The most complete WordPress MCP server — 200+ tools, OAuth 2.0, WebMCP-ready, and nothing leaves your site.
Royal MCP gives Claude, ChatGPT, Google Gemini, Perplexity, DeepSeek, Mistral, and every other MCP-compatible AI structured access to your WordPress site: 109 WordPress core tools, 136 integration tools that auto-load for WooCommerce, Elementor, Divi, ACF, Yoast SEO, UpdraftPlus, WPForms, Solid Security, Wordfence, Contact Form 7, MonsterInsights, W3 Total Cache, LiteSpeed Cache, Duplicator, BuddyPress, and more, plus 4 tool-discovery and page-verification helpers.
Connect Claude to WordPress
Royal MCP connects your WordPress site directly to Claude Code, Claude Desktop, or Claude.ai. Setup takes a minute or less: install the connector, authorize, and start your chat.
Edit Elementor with Claude
First-time setup walkthrough: royalplugins.com/support/royal-mcp/connecting-to-claude/
Connect ChatGPT to WordPress
ChatGPT on the web, desktop, and iOS supports MCP servers natively. Add Royal MCP in ChatGPT’s Plugins panel, authorize once, and ChatGPT can read your posts, publish drafts, update product prices, moderate comments, and audit SEO across your site — all through ordinary conversation.
First-time setup walkthrough: royalplugins.com/support/royal-mcp/connecting-to-chatgpt/
Plugins with dedicated MCP tools
WooCommerce, Elementor, Divi, Advanced Custom Fields, Yoast SEO, UpdraftPlus, WPForms, Solid Security, Wordfence, Contact Form 7, MonsterInsights, W3 Total Cache, LiteSpeed Cache, Duplicator, BuddyPress, Redirection — plus every Royal Plugin (Royal AI Firewall, GuardPress, SiteVault, ForgeCache, Royal Ledger, Royal Links).
Not seeing yours? MCP still works. WordPress core operations (posts, pages, media, users, taxonomies, custom fields, menus, options) cover most day-to-day AI workflows for any plugin — read/write ACF via wp_get_post_meta even without ACF-specific tools, edit posts on any custom post type, moderate any plugin’s comments. Shared SEO meta tools automatically work with Rank Math, AIOSEO, SEOPress, and SEObolt. A dedicated integration layers specialized tools on top when that plugin exposes its own data model, request features/plugins support here on the wp.org support forum.
Works with every MCP-compatible AI client
Royal MCP is not vendor-locked. Claude/Anthropic, ChatGPT/OpenAI, Gemini/Google, Grok/xAI, Llama/Meta, Mistral, DeepSeek, Qwen/Alibaba, Cohere, and Perplexity all work through MCP-compatible clients like Cursor, Windsurf, Cline, Continue, Zed, JetBrains AI Assistant, OpenCode, Warp, Ollama, and LM Studio, all connecting through the same endpoint. Switch AI vendors without rewriting a single connection.
Ready for browser-based AI agents (WebMCP)
Royal MCP supports the W3C WebMCP browser-agent standard on the server side. When a visitor is signed into your site, browser-based AI agents from any WebMCP-compatible bridge (Cloudflare’s WebMCP is the first shipping today) can call the same MCP tools that Claude Desktop and ChatGPT already use, authenticated with the visitor’s existing WordPress login. Turn it on with one toggle in the Browser Agents section of the Royal MCP settings. External clients like Claude Desktop, ChatGPT, and Cursor continue to use OAuth Bearer tokens as before.
How Royal MCP handles authorization
Royal MCP speaks full OAuth 2.0 with PKCE and Dynamic Client Registration (RFC 7591) for Claude Desktop, Claude Code, ChatGPT web, and every modern MCP client. Sessions expire, refresh automatically, and can be revoked globally with one button in wp-admin. Clients that don’t speak OAuth get timing-safe API-key auth, per-IP rate limits (60 requests per minute), and the same activity log for every tool call. Every credential (API key, OAuth token, session, audit-log entry) stays inside your own WordPress database with no hosted middleman, no license check, and no telemetry; local models work too, through any MCP-capable client such as LM Studio, if you want fully-local AI inference.
Is there a preview/dry-run before writes?
Yes. High-blast writes like site options and your permalink structure accept a dry-run flag, so the AI can preview the exact change before committing. The response reports the current value, the proposed value, the size delta in bytes, and whether the option is autoloaded; for permalink changes, it also lists which public post types are affected and shows current-URL vs proposed-URL samples so you can spot the blast radius before rewrite rules flush. Pair that with the 72-hour undo token on every destructive write and you get preview, approve, commit, undo: a full safety loop that lets fully-autonomous agents work on a live production site without wiping it out.
Can I undo what the AI does?
Yes. Every MCP client (Claude Desktop, ChatGPT, and the rest) asks you to approve or deny each destructive tool call by default, until you flip that setting in your connector. Royal MCP also captures a reverse-state snapshot before every destructive write and hands back a 72-hour undo token. One mcp_undo_last_operation call reverses the change, whether Claude deleted a post, replaced text on an Elementor page, updated a WooCommerce product, or reordered menu items. New posts and pages start as drafts, so nothing the AI writes appears on your live site until you approve publishing. Every tool call also lands in an activity log you can review from wp-admin.
Does Royal MCP work with the WordPress Abilities API?
Yes. Royal MCP surfaces every AI-callable operation through one endpoint, from three sources: the 109 native tools Royal MCP ships, the 136 integration tools that auto-load when WooCommerce, Elementor, Divi, ACF, Yoast SEO, UpdraftPlus, WPForms, Solid Security, Wordfence, Contact Form 7, MonsterInsights, W3 Total Cache, LiteSpeed Cache, Duplicator, BuddyPress, and other supported plugins activate, and every ability any plugin registers through WordPress 6.9’s Abilities API. Your AI sees them all as MCP tools — one connector, no per-plugin setup, no per-vendor rewrite.
See what AI agents do to your site
The free Royal AI Firewall companion shows every AI agent hitting your site at the HTTP layer (training crawlers, retrieval bots, AI search engines), not just the ones connected through Royal MCP. Install both for a unified view across MCP tool calls and HTTP-layer bot hits.
Discoverable by every AI agent scanner (Agent Readiness)
Royal MCP publishes machine-readable MCP Server Card, Skills Index, and OAuth Protected Resource metadata at the standard well-known locations. Cloudflare’s Agent Readiness scanner, Vercel’s is-agentic, and Chrome Lighthouse’s Agentic Browsing audit all recognize your site as agent-ready with zero configuration. Every request to your MCP endpoint carries a Link header pointing agent runtimes at these discovery documents.
109 Core Tools + 136 Integration Tools
WordPress Core (109 tools):
Posts – create, read, update, delete, search, count (any registered public post type, featured images supported)
Pages – full CRUD with parent page support
Blocks – read a post’s block tree; insert, replace, move and delete blocks by path; replace text inside blocks; change attributes of server-rendered blocks; check markup before writing. Works with core blocks and plugin blocks such as GenerateBlocks, Stackable, Spectra and GreenShift, keeps them valid in the editor, and every write has a revision and an undo token
Patterns and Site Editor – list, read, create and update synced patterns; read global styles and block templates
Post Types – discover all registered public post types on the site
Post Revisions – list revision history and roll a post back to any prior version
Media – browse; upload images, PDFs and any other file type the site allows from a URL, base64 or a file handed over by ChatGPT; convert, resize and compress images on upload; find files already in the library by source URL or SHA-256 and reuse them instead of uploading twice; update alt text/caption/title/description, set as featured image, delete
Comments – create, read, delete; full moderation suite (list pending, approve, mark spam, trash)
Users – display names and roles (emails and usernames are not exposed)
Categories, Tags & Custom Taxonomies – full CRUD, assign, count, discover registered taxonomies
Term Meta – read/update/delete (most useful for term-level SEO fields on categories and tags)
Menus – create menus, list, and full CRUD + reorder on menu items
Publish and Promote – publish a draft and insert into a menu in one call
Preview Links – generate a shareable draft-preview URL without a WP login
Post Meta – read/update/delete custom fields (works with ACF, MetaBox, JetEngine, Pods, CPT UI)
SEO Meta – read/write Yoast, Rank Math, AIOSEO, or SEObolt title/description/focus keyword/robots/OG (auto-detects active plugin)
SEO Audit – fetch a post’s rendered HTML and report title, meta description, canonical, viewport, OG, Twitter Card
Widgets – list, list sidebars, update content (writes gated by theme-appearance admin toggle)
Find and Replace – literal replace with dry-run preview, expected-count safety, read-after-write verification
Undo and Recent Changes – reverse a tracked change within 72 hours via mcp_undo_last_operation; list recent changes and see each one’s value before, the value written and the value now, in the tools and in WP Admin
Site Info + Site Status – name, WP/PHP versions, active theme + plugins, cron activity — for AI-driven pre-write validation
Error Log + Cron Schedule – read recent PHP errors and scheduled WP cron events
Connection Health – MCP session diagnostic (route, auth method, session ID, plugin version)
Plugins & Themes – list installed with active status
Theme Appearance – get theme, read/write theme mods (gated), read/write Custom CSS
Search + Permalink Structure – full-text content search; read/write permalinks (gated)
Options – read allowlisted core options, read plugin settings (sensitive keys redacted), write to allowlisted options when enabled
Third-Party Plugin Integrations (auto-detected)
If the plugin is active on your WordPress site, it’s tools auto-register with no additional configuration needed.
WooCommerce (29 tools) — full store CRUD: products (simple + variable), variations, global attributes (pa_*), coupons with bulk-trash purge, orders + notes, customers, and store statistics
Elementor (14 tools, free + Pro) — clone a page with fresh element IDs, bulk text/image replacement across 12+ widget types, add widgets, compact page outlines, widget-level settings reads, widget schema and dynamic-tag discovery, template library import/insert, post_content restoration on damaged pages (72-hour undo per write)
Divi (9 tools, Divi 4 + Divi 5) — format detection, page outlines, layout validation, library reads, dry-run find-and-replace with active-editor-session detection, page cloning (D5 clientIds regenerated), image swaps, library-to-page apply in merge or replace mode (72-hour undo per write)
Advanced Custom Fields (4 tools, free + Pro) — type-aware field reads (each field’s Return Format respected: hydrated post objects, parsed repeater rows, image arrays), bulk-read all fields on a post, type-aware writes, field-group enumeration
Yoast SEO (5 tools) — read/write Yoast meta (raw + resolved), capture the JSON-LD schema graph, list indexed internal links, list Yoast Premium redirects
UpdraftPlus (4 tools) — list backups, read status, trigger async backups with per-entity filtering (DB, plugins, themes, uploads), read the backup schedule
WPForms (4 tools, free + Pro) — list forms, read a form’s field schema; submission access (list + read) requires WPForms Pro
Solid Security (4 tools) — read the security dashboard, list currently locked-out IPs, read the security event log, add an IP to the ban list (also detects iThemes Security and Kadence Security Basic)
Wordfence (8 tools) — read the security status, firewall mode and scan findings, list blocked IPs, block or unblock an IP, read failed logins and blocked requests, start a scan
Contact Form 7 (3 tools) — list forms, read a single form’s parsed field schema; submission access requires the Flamingo companion plugin
MonsterInsights (4 tools) — read the analytics overview, top pages, traffic sources, and top Search Console queries
W3 Total Cache (3 tools) — read cache config across every module, purge (all / by URL / by post), read cache usage stats
LiteSpeed Cache (4 tools) — read cache status and the settings that shape caching, purge everything, purge specific pages by URL or post
Duplicator (3 tools) — list migration packages, read per-package status, get the installer URL for any completed package
BuddyPress (4 tools) — list community members, read a single member profile, list groups, read the activity feed
Redirection (4 tools) — list/create/update 301/302/307 redirects (with regex + group + status), list redirect groups
Royal Plugins Integrations (auto-detected)
Every Royal Plugin auto-exposes MCP tools alongside Royal MCP:
Royal AI Firewall (6 tools) — review AI bot traffic, dashboard stats, and set allow/block/challenge policies per bot signature
GuardPress (7 tools) — review your security score, run vulnerability scans, inspect failed logins and blocked IPs
SiteVault (6 tools) — list backups, trigger new ones, check progress, review schedules
ForgeCache (4 tools) — purge and inspect your page cache, and read real-user Core Web Vitals
Royal Ledger (4 tools) — review recurring software costs and masked license entries
Royal Links (3 tools) — manage branded short links and click stats
Supported AI Clients
Claude – claude.ai, Claude Desktop and Claude Code, signing in with OAuth or the API key
ChatGPT – as a custom connector, signing in with OAuth
Codex – from the terminal, with OAuth or the API key
Cursor, VS Code and other MCP-capable editors – with the MCP Server URL and API key
Gemini CLI and LM Studio – and any other client that speaks MCP over HTTP
Compatible Clients & Frameworks
Royal MCP works with any MCP-compliant client, IDE, or AI agent framework — no per-tool configuration required. Each entry below describes the specific integration path Royal MCP provides for that target, so customers can answer “will this work with the tool I already use?”:
Desktop AI apps – Claude Desktop (native MCP connector via OAuth 2.0), ChatGPT Desktop, Gemini Advanced.
AI code IDEs – Claude Code, VS Code (with MCP extension), Cursor, Windsurf, Continue, Cline, Zed, JetBrains AI Assistant.
API testing tools – Postman, Bruno, Insomnia (use the API key in the X-Royal-MCP-API-Key header).
Custom field plugins – Advanced Custom Fields (ACF) has dedicated acf_* tools that return values formatted per each field’s Return Format setting (the same way the ACF UI shows them). MetaBox, JetEngine, Pods, CPT UI, and Custom Field Suite are supported through the wp_get_post_meta / wp_update_post_meta tools, so AI agents can populate custom fields just like a human editor.
Page builders – Elementor and Divi have dedicated tools for safe clone-and-customize workflows (Elementor: clone a page, find/replace text, swap images, get an outline, import templates; Divi: format detection, layout validation, page outline, library read, find/replace with builder-format awareness) – see the Tools list. Widget-level creation from scratch is intentionally out of scope. Beaver Builder, Bricks, Gutenberg, Spectra, and Stackable store standard post content that is readable and writable by AI; page-builder-specific JSON storage is opaque unless covered by a dedicated tool.
Multilingual – WPML, Polylang, TranslatePress: translated posts appear as separate posts and can be read/written via the standard post tools.
AI agent frameworks – Any MCP-compatible framework (LangChain, AutoGen, CrewAI, LlamaIndex, Haystack, etc.).
MCP Spec Compliance
Royal MCP implements the MCP Streamable HTTP transport across every published spec revision — 2024-11-05, 2025-06-18, …
