Royal Mcp

com.royalplugins由 royalplugins.com 發布官方發布者v1.4.34更新於 Oct 26, 2026

Security-first WordPress MCP server. 129 tools for Claude, ChatGPT, Gemini. Free on wp.org.

已驗證Streamable HTTP可網頁執行開發者工具安全與監控商業與電商

概覽

AI 產生的概覽

自架式的 WordPress MCP 外掛,讓 AI 助理讀取與修改網站內容、商店、SEO、備份與安全設定,並可復原變更。

可以做什麼
  • 建立、讀取、更新、刪除與複製文章、頁面與自訂文章類型,以及分類法、留言、選單與版本修訂
  • 瀏覽、上傳與編輯媒體,讀取或編輯區塊、同步樣式與全域樣式
  • 讀寫 Yoast、Rank Math、AIOSEO、SEOPress 與 SEObolt 的 SEO 中繼資料,並跨內容搜尋
  • 管理 WooCommerce 商品、變體、優惠券、訂單、客戶與商店統計
  • 編輯 Elementor 與 Divi 頁面,讀寫 ACF 欄位、重新導向、表格與表單
  • 檢視網站診斷、備份、安全掃描與快取,並在 72 小時內復原破壞性寫入
適用情境
適合想讓 Claude、ChatGPT 或 Cursor 等 AI 用戶端直接操作自有 WordPress 網站的場合:起草與編輯內容、更新 SEO、處理商店工作,或不必開啟 wp-admin 就能檢查備份、安全與效能。
執行需求
需要已安裝並啟用 Royal MCP 外掛的自架 WordPress 網站,以及網站的 MCP 伺服器網址。驗證方式為在網站上以 OAuth 登入,或使用以 Authorization Bearer 標頭傳送的 API 金鑰。網站必須能讓 AI 用戶端透過 HTTPS 連線。
安裝前請注意
工具可寫入、發佈、刪除與變更網站資料,包括商店訂單、優惠券與網站選項;建議啟用唯讀或僅草稿模式,並設定每個連線的存取層級。API 金鑰可存取網站,外洩時應輪替。復原僅在 72 小時內有效。部分整合會揭露客戶、表單送出或授權金鑰資料,Pro 版本需付費升級。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Royal Mcp,將其新增到工作區。
  2. 連接 所需的 憑證。它們會被私密儲存,絕不會在公開頁面上展示。
  3. 為需要使用其工具的對話啟用該服務。

Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。

交給代理程式安裝

把這段提示詞貼上到 Claude Code、Codex、Cursor 等代理程式,或 SourceWeft 對話中。代理程式會讀取該伺服器的安裝指南,先向你展示發布者、端點和登入方式,經你同意後再把它新增到你的客戶端。金鑰不會寫進任何命令。

閱讀 https://sourceweft.com/mcp/com.royalplugins%2Froyal-mcp/install.md,並按其中說明把這個 MCP 伺服器接入我的客戶端。修改任何設定之前,先告訴我它的發布者、端點和登入方式,等我確認。不要把 API 金鑰寫進命令或我會提交的檔案;問我金鑰應從哪裡取得。

檢視代理程式所依據的安裝指南

其他 MCP 客戶端

把它新增到你客戶端的 mcpServers 設定中。 客戶端會在首次連接時完成 OAuth 登入。

{
  "mcpServers": {
    "royal": {
      "type": "http",
      "url": "https://demo.royalplugins.com/wp-json/royal-mcp/v1/mcp"
    }
  }
}

README

Royal MCP

Run your WordPress site from Claude, ChatGPT or any AI app: write and edit content, manage your store, fix SEO and undo any change. Works alongside Elementor's and WooCommerce's own MCP tools. 100% self-hosted.

[WordPress] [PHP] [License] [Version]

Download on WordPress.org · Documentation · Royal MCP Pro · Royal Plugins


Royal MCP is an open-source WordPress plugin that turns your site into a Model Context Protocol server. Connect it once, and your AI app can read and change your site the way you would from wp-admin: posts, pages, media, menus, your WooCommerce store, Elementor and Divi pages, SEO, backups and security. Every call runs as a WordPress user, is checked against that user's capabilities, and lands in an activity log, and every destructive change can be undone.

Nothing is relayed through a third-party service. Your API keys, sign-in tokens and logs stay in your own WordPress database.

What you can do with it

Ask in plain language. These all work on the free plugin:

Ask your AI to...What happens
"Draft a post about our spring sale, use this image as the featured image and write the SEO title and description."Creates a draft, uploads the image to your media library, sets the featured image and writes the meta for Yoast, Rank Math, AIOSEO or SEOPress. Nothing goes live until you publish.
"Find the pages that still mention our old phone number and update them."Searches your content and replaces the text page by page, with an undo token for each change.
"Which products are low on stock? Create a 15% coupon for orders over $100."Reads products filtered by stock status and creates the WooCommerce coupon.
"Clone the Services page as a new landing page, change the headline and swap the hero image."Clones the Elementor page and edits the copy and image in place, keeping the layout intact.
"Show me this month's top pages and search queries."Reads the overview, top pages, traffic sources and Search Console queries from MonsterInsights.
"Take a backup, then check for vulnerable plugins and failed logins this week."Starts a backup (SiteVault or UpdraftPlus) and reads scan results and login activity (GuardPress, Wordfence or Solid Security).
"The site feels slow. What's wrong?"Reads site status, the PHP error log and the cron schedule, and purges the cache once the issue is fixed (ForgeCache, LiteSpeed Cache or W3 Total Cache).
"Undo that last change."Reverses the last destructive write from its stored snapshot, within 72 hours.

Built to work alongside other MCP tools

Royal MCP is designed to run next to the MCP tools other plugins ship, so your AI can reach for the best tool for each part of a job.

  • Elementor. When Elementor's own MCP is switched on, Royal MCP detects it and tells your AI that Elementor's builder is there for designing new layouts. Royal MCP's Elementor tools keep handling edits to the pages you already have: text and image swaps, widgets, cloning and templates.
  • WooCommerce. WooCommerce's own MCP abilities keep working. Royal MCP adds the rest of the store: coupons, variations, attributes, customers and store stats.
  • WordPress Abilities API. Royal MCP's tools also register as WordPress abilities. With the MCP Adapter installed they are served on Royal MCP's own adapter server, royal-mcp-server, with the same permission checks, switches and logging as the native endpoint.

Royal MCP answers on its own endpoint and never switches off another plugin's tools, so together they cover more of your site than any one of them alone.

Safety

  • Your AI app asks first. Claude, ChatGPT and other clients ask you to approve each destructive tool call by default.
  • Drafts first. New posts and pages start as drafts.
  • Read-only and drafts-only modes. One switch refuses every tool that changes the site, or every tool that would publish.
  • An access level per connection. Give each connected AI app Full, Read-only or Drafts-only access from the Connected Clients screen, and revoke any of them.
  • Recent Changes with undo. Every destructive write stores a snapshot first. The Recent Changes screen shows the before, after and current values, and one mcp_undo_last_operation call reverses a change within 72 hours.
  • Activity log. Every tool call is logged with the tool name, argument keys, IP and user agent. Argument values are never stored.
  • Dry runs. High-impact writes such as site options and permalink structure can be previewed before they are applied.

Capabilities

270 tools: 113 core tools that are always available, plus 157 integration tools that load only when the matching plugin is active.

WordPress core (113 tools)

  • Content - Posts, pages and custom post types (create, read, update, delete, clone as a draft, revisions, featured images)
  • Taxonomies - Categories, tags, custom taxonomies, term meta, post-term linking
  • Media - Browse; upload images, PDFs and other allowed files (by URL, base64 or a file handed over by ChatGPT); convert, resize and compress images on upload; find a file already in the library by address or content and reuse it instead of uploading a copy; update metadata; delete
  • Blocks - Read a post's block tree; insert, replace, move or delete single blocks; replace text across blocks; read and edit synced patterns; read global styles and Site Editor templates
  • Comments - Create and moderate (approve, spam, trash)
  • Users - Display names, roles, registration dates and any capabilities granted beyond a user's roles. Emails and usernames are not exposed unless a site owner opts in with the royal_mcp_user_fields filter
  • Menus - Read, create items, reorder, update
  • Theme - Custom CSS, theme mods, active theme
  • Site - Permalink structure, allowlisted options, site info
  • Search - Search across content
  • SEO - Meta read and write for Yoast, Rank Math, AIOSEO, SEOPress and SEObolt
  • Safety - Read-only mode, drafts-only mode, per-connection access levels, Recent Changes and 72-hour undo
  • Plugins and themes - Every installed plugin, including must-use plugins and drop-ins, with versions, active status and last-modified dates; installed themes
  • Diagnostics - Site status (WordPress, PHP, MySQL, plugins, themes and cron in one call), PHP error-log tail, cron schedule, and royal_mcp_connection_health

Plugin integrations (157 tools)

PluginToolsWhat's covered
WooCommerce29Products, variations, attributes, coupons, orders (create, update, notes), customers, store stats; paged lists with totals; product filters by ID, SKU and stock status; order filters by date
Elementor14Clone pages, replace text, swap images, page outline, widget settings, add widgets, templates (list, import, apply), widget schema, dynamic tags, rebuild post content
Divi9Format detection (Divi 4 or Divi 5), page outline, layout validation, library list and read, find and replace, clone, image swap, apply a library item
Wordfence8Security status, firewall mode and scan findings, blocked IPs, block or unblock an IP, failed logins, blocked requests, start a scan
GuardPress7Security score, failed logins, blocked IPs, vulnerability scans, audit log
SiteVault6Start backups, monitor progress, list backups and schedules
Royal AI Firewall6Dashboard stats, recent bot hits, per-bot policies (allow, block, challenge), daily rollups
TablePress6List, read, create, copy and export tables, change cells, with undo
Yoast SEO5Meta read and write, JSON-LD schema graph, indexed internal links, Premium redirects
Code Snippets5List and read snippets (credentials in code are masked), recent deactivations, deactivate a snippet, edit its name, description and tags
Redirection4List, create and update redirects; list groups
Royal Ledger4Software costs, renewal dates, license keys (values never exposed)
Advanced Custom Fields4Read and write fields with each field's Return Format respected; list field groups
UpdraftPlus4Backup history, per-backup status, start a backup, schedule
WPForms4Forms, a form's fields, entries (WPForms Pro)
Solid Security4Security status, locked-out IPs, security log, ban an IP
MonsterInsights4Analytics overview, top pages, traffic sources, top Search Console queries
BuddyPress4Members, a member profile, groups, activity feed (BuddyBoss Platform too)
LiteSpeed Cache4Cache status and settings, purge everything or specific pages
ForgeCache4Cache stats, clear cache, purge a URL, real-user Core Web Vitals
Contact Form 73Forms, a form's fields, submissions (with Flamingo)
W3 Total Cache3Cache configuration, purge (all, by URL or by post), usage statistics
Duplicator3Migration packages, package status, installer URL
Complianz7Consent setup status, cookies, services, banner texts and legal documents; change banner texts and cookie descriptions, with undo
WPCode3Read only: snippets, a snippet (credentials masked), its status and last error
Royal Links3Branded short links, click stats

Not seeing your plugin? The core tools still cover posts on any custom post type, any plugin's custom fields through post meta, and any plugin's comments. Request an integration on the WordPress.org support forum. If you build that plugin, you can add its tools to Royal MCP yourself or partner with us.

Connect

Install

  1. Install from WordPress.org (recommended, updates through wp-admin) or upload the zip from the latest GitHub release.
  2. Go to Royal MCP → Settings, switch Royal MCP on and copy the MCP Server URL. For clients that use an API key, generate one on the same screen.
  3. Pick a client below.

Your MCP Server URL is https://yoursite.com/wp-json/royal-mcp/v1/mcp.

Claude (claude.ai, Claude Desktop) - sign in with OAuth

  1. Settings → Connectors → Add custom connector.
  2. Paste your MCP Server URL.
  3. Approve the sign-in screen on your site. No API key needed.

ChatGPT

Add a custom connector with your MCP Server URL and follow the sign-in flow.

Claude Desktop with an API key

json
{
  "mcpServers": {
    "my-wordpress": {
      "command": "npx",
      "args": [
        "-y", "mcp-remote",
        "https://yoursite.com/wp-json/royal-mcp/v1/mcp",
        "--header", "Authorization:${AUTH_HEADER}"
      ],
      "env": {
        "AUTH_HEADER": "Bearer YOUR_API_KEY"
      }
    }
  }
}

Config file: ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows).

Cursor, VS Code, Claude Code and other MCP clients

Add an HTTP MCP server with your MCP Server URL and an Authorization header set to Bearer YOUR_API_KEY, or use OAuth where the client supports it.

Raw HTTP

bash
# 1. Start a session. -i prints the headers so you can copy Mcp-Session-Id.
curl -i -X POST https://yoursite.com/wp-json/royal-mcp/v1/mcp \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -d '{
    "jsonrpc": "2.0",
    "method": "initialize",
    "id": 1,
    "params": {
      "protocolVersion": "2025-11-25",
      "capabilities": {},
      "clientInfo": {"name": "my-app", "version": "1.0"}
    }
  }'

# 2. List the tools, using the session id from the response headers.
curl -X POST https://yoursite.com/wp-json/royal-mcp/v1/mcp \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Mcp-Session-Id: <session_id>" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -d '{"jsonrpc": "2.0", "method": "tools/list", "id": 2}'

The older X-Royal-MCP-API-Key header no longer signs in. Send the key as Authorization: Bearer instead.

Security model

LayerWhat it does
API key32 hex characters from a cryptographically secure generator, stored only as a SHA-256 hash and compared in constant time. Sent as Authorization: Bearer. Rotate it from wp-admin or with wp royal-mcp rotate-api-key.
OAuth 2.1Dynamic Client Registration (RFC 7591), authorization server metadata (RFC 8414), PKCE S256 required, refresh tokens. No implicit grant, no client-credentials grant.
Capability checksEvery tool checks the WordPress capability it needs, for example edit_posts to create or update content, edit_post for a specific post and manage_options for site settings.
Rate limitingPer IP, per minute: 60 requests without credentials, 300 with. Calls through the WordPress Abilities API and other MCP servers: 300 per minute per user.
SessionsCryptographically random session IDs with a sliding 24-hour lifetime.
Activity logOne row per tool call: tool name, argument keys, IP, user agent, errors. Argument values are never stored.
Connected ClientsSee every signed-in AI app, set its access level, and revoke one or all. A one-click reset clears OAuth clients and tokens without touching your API key or settings.
Discovery.well-known/oauth-authorization-server and .well-known/oauth-protected-resource at the site root (RFC 8414, RFC 9728).

Found a security issue? Report it privately through royalplugins.com/contact, not in a public issue.

Royal MCP Pro

Royal MCP gives one site owner a safe AI connection. Royal MCP Pro is for running AI across real client work: 400+ tools, bulk operations across many pages and products, deeper Elementor, Divi, WooCommerce and ACF authoring, cross-plugin workflows that run a whole job in one call, and a full audit trail.

Pro is one plugin that includes everything in Royal MCP. When Pro is active, you run Pro on its own.

Royal MCP (free)Royal MCP Pro
Tools270400+
Connect Claude, ChatGPT, Cursor and any MCP app (OAuth or API key)✅✅
Read-only and drafts-only modes, per-connection access levels✅✅
Recent Changes and 72-hour undo on destructive writes✅✅ Pro tools too
Activity log of every tool call✅✅
Universal audit log with filters, per-row undo, CSV export and 90-day retention—✅
Custom Endpoint Profiles: choose which tools each AI connection can call—✅
Bulk find and replace across posts, with a two-step commit—✅
Elementor: clone, edit text and images, add widgets, apply templates✅ 14 tools✅
Elementor Pro depth: widget, container and section CRUD by ID, Theme Builder and display conditions, bulk widget settings, global variables and classes—✅ +14 tools
WooCommerce: products, variations, attributes, coupons, orders, customers, stats✅ 29 tools✅
WooCommerce bulk: prices, stock, categories, order status, deletion with confirmation, grouped products, bulk coupons—✅ +12 tools
Divi: outline, validation, find and replace, clone, image swap✅ 9 tools✅
Divi Pro: library create, update and delete, Divi 4 to Divi 5 migrator, global preset bulk-apply—✅
ACF: read and write field values✅ 4 tools✅
ACF Setup Suite: field groups, fields, JSON import and export, options pages, post types and blocks—✅ +15 tools
SEO: meta read and write per post✅✅
SEO Agency Suite: site-wide SEO audit and bulk meta writers—✅
Cross-plugin workflows: launch-readiness check, monthly maintenance report, theme-swap asset migration, SEO launch in one call with rollback—✅
FormForge Pro entries, analytics and form creation—✅
Royal Affiliate Pro affiliates, referrals, campaigns and payouts—✅ +25 tools
SitesUnlimited1, 5 or 100
UpdatesWordPress.orgDirect from Royal Plugins
SupportWordPress.org forum and GitHub IssuesEmail support
PriceFree foreverFrom $99/year · 30-day money-back guarantee

See Royal MCP Pro → · Pricing · Full Free vs Pro comparison

Scope

What Royal MCP deliberately does not do:

  • No core file changes. It never writes to wp-content/themes, wp-includes or wp-admin.
  • No plugin installs or upgrades. It can list plugins, not install, activate or update them.
  • No raw SQL. Every query goes through WordPress APIs and prepared statements.
  • No Elementor Theme Builder templates in the free plugin. Theme Builder work is in Royal MCP Pro.
  • No Beaver Builder or Bricks layout JSON writes. Their standard post content is readable and writable; builder-specific layout data is left alone unless a dedicated tool covers it.

More from Royal Plugins

Royal MCP works with the rest of the Royal Plugins family. Each one adds its own tools to Royal MCP when it's active.

PluginWhat it does
Royal MCP Pro400+ tools for agencies: bulk operations, deep builder and store authoring, audit log
GuardPressSecurity: firewall, malware scanner, 2FA, login protection, activity log
SiteVaultAutomated backups, staging, encryption, migration (free version)
ForgeCachePage caching, CSS and JS optimization, lazy loading, CDN, Core Web Vitals
SEOboltSEO audit, rank tracking, schema, redirects, image SEO
FormForgeForm builder with conditional logic, payments, quizzes and PDF export
Royal AffiliatesRun your own affiliate program on WooCommerce
Royal LinksBranded links with geo-targeting, A/B tests and click analytics (free version)
Royal AI FirewallFree: see and control the AI bots that visit your site
Royal SMTPFree: reliable email delivery over SMTP
Royal AccessFree: role and permission management

Earn with Royal Plugins

Recommend Royal MCP Pro and the rest of the family to your audience and earn 30% on every first-year sale and 15% on every renewal, with a 60-day cookie and monthly payouts.

Join the Royal Plugins affiliate program →

Further reading

License

GPLv2 or later. See LICENSE or the GNU site.

Royal MCP is provided as-is. API keys protect your endpoint; guard them like any other credential. You are responsible for the content, commands and actions any AI platform is allowed to perform on your WordPress site.


Built by Royal Plugins
Lightweight, security-first WordPress plugins.
© 2026 Royal Plugins.

來源:README.md,提交 4adf4a6

工具

0
該伺服器需要登入,因此 SourceWeft 無法在沒有帳號的情況下讀取其工具,也未收錄。已連接帳號所能看到的內容可能因帳號及其權限而異。

版本歷史

1
  1. v1.4.34最新Sep 16, 2026

評分

已滿足適用檢查項的 75%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通必需25 分
  • 已宣告認證方式必需10 分
  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分

    請在儲存庫或註冊中心條目中宣告授權條款。