WSP WordPress MCP 标志

WSP WordPress MCP

社区
bilalnaseer

WSP MCP - Free WordPress MCP For Connecting AI Coding Agents

发布者bilalnaseer
代码仓库wsp-wordpress-mcp
语言PHP
复刻数
16
星标数
36
可用工具
0
传输类型stdio
分类
许可协议GPL-2.0
链接
  • 将工具接入 AI 工作流

    WSP WordPress MCP 提供 MCP 功能,可供兼容的 AI 客户端和智能体使用。

  • 0 个可用工具

    浏览下方可调用的操作;如果服务器提供了名称和描述,也会一并显示。

  • 可直接复制的配置

    使用安装配置片段,在您首选的 MCP 客户端中配置此服务器。

  • 开源社区热度

    关联的代码仓库有 36 个星标和 16 个复刻。

WSP WordPress MCP — Connect AI Agents to WordPress

By WebSensePro — Official Shopify Partner & WordPress Agency

Version YouTube License

Turn any WordPress site into a Model Context Protocol (MCP) server so AI agents — Claude, Cursor, Codex, Antigravity, OpenClaw, OpenCode — can read and edit your posts, pages, media, menus, WooCommerce store, forms, SEO meta, and Elementor layouts. The MCP server is built in: no companion plugin, no MCP Adapter, no Node.js bridge for natively-supported clients. Every ability is an individual on/off switch in wp-admin, write abilities are off by default, and every call is recorded in a self-hosted audit log.


🎬 Watch the Tutorial

WSP WordPress MCP — Full Tutorial


🚀 Quick Start

Prerequisites: WordPress 6.9+ (7.0.3 or 6.9.6+ recommended), PHP 7.4+ — that's it. Claude Desktop and OpenClaw use the mcp-remote bridge, which needs Node.js 18+; Cursor, Codex, Antigravity, and OpenCode connect natively.

  1. Install & activate this plugin
  2. Go to MCP > Settings in wp-admin and enable the abilities you need
  3. Go to MCP > Connection and pick your client:
    • Claude (claude.ai, Desktop, or mobile): enable the OAuth server on the Claude Connectors tab, then paste just the server URL into Customize > Connectors > Add custom connector and sign in with your WordPress account
    • Everything else (Cursor, Codex, Antigravity, OpenClaw, OpenCode): use the Configuration Generator, then Copy or Download the snippet — the endpoint URL and credentials are already filled in — and paste it into your client's config (Cursor also gets a one-click Connect Cursor Automatically button)
  4. Reconnect / restart the client and start prompting your AI agent
  5. Review what your agent actually did under MCP > Audit Log, and check usage and response times under MCP > Analytics

Upgrading from before v2.0? The legacy MCP-Adapter / Abilities-API path and the MCP > Config Files page were removed in v2.2. Re-create your connection using the native endpoint on MCP > Connection.

Connection guides by client

ClientGuide
Claude (claude.ai / Desktop / mobile)Full tutorial
OpenClawVideo
Google AntigravityVideo
CodexVideo
All tutorials & abilities directoryfreewordpressmcp.com

✨ What's New in v2.9.0

  • 🧭 Navigation Menus tool group — nine new tools to list menus and their items, create and delete menus, add / update / remove menu items (custom links, posts, pages, categories), list your theme's menu locations, and assign or unassign a menu to a location. Require edit_theme_options; off by default. Contributed by @dulaj44 in #41.
  • 📄 Read Post tool — fetch a single post by ID in any status (draft, pending, private, trash) with its full content, so an agent can review a draft before updating it. Enforces per-post read permission; off by default. Closes #38.
  • 🐛 Audit Log accuracy — permission-denied results from the new Read Post tool are now logged as denied, not success.
  • 🐛 Add Menu Item validation — an object_id whose post type doesn't match the requested type is now rejected instead of silently stored.

Recent releases: v2.8.0 — one-click Claude Connector sign-in (OAuth 2.1) + Analytics dashboard · v2.7.1 — object-level authorization on write tools (Patchstack) · v2.7.0 — Audit Log · v2.6.x — WPForms, Contact Form 7, Gravity Forms, UAE, Elementor design tools.

📋 Full history: see CHANGELOG.md.


🔐 Security model

  • Off by default — every write ability is disabled until an administrator enables it in MCP > Settings.
  • Per-tool capability checks — each tool declares the WordPress capability it requires (edit_posts, manage_options, manage_woocommerce, …) and runs as the connected WordPress user, so an agent can only do what that account can do.
  • Per-object guards — tools that take a post/page/media ID additionally enforce ownership (edit_post / delete_post / read_post) and post type, matching WordPress core's own REST checks.
  • Three auth methods — OAuth 2.1 (one-click Claude Connector, off by default), WordPress Application Passwords, or a plugin-generated API key.
  • Audit Log — every tools/call is stored in wp_wsp_mcp_audit_log with user, IP, outcome (success / denied / error), and duration. Nothing leaves your server. Auto-pruned after 90 days.

🛠️ Available Abilities

Core WordPress

AbilityAccess
Read / Get / Create / Update / Delete Postsread / write
Read / Create / Update / Delete Pagesread / write
Read Categories & Tags / Createread / write
Read / Approve / Delete Commentsread / write
List / Get / Count Mediaread
Update / Delete / Upload Media (from URL or base64)write
Read Usersread
Search Contentread
Read Site Info & Active Pluginsread
Read Menus / Menu Items / Menu Locationsread
Create / Delete Menu, Add / Update / Delete Menu Item, Assign Locationwrite

Yoast SEO (requires Yoast SEO plugin)

AbilityAccess
Get Yoast SEO Meta (title, meta description, focus keyphrase)read
Update Yoast SEO Metawrite

Rank Math SEO (requires Rank Math plugin)

AbilityAccess
Get Rank Math SEO Meta (title, description, focus keyword, score)read
Update Rank Math SEO Metawrite

Elementor (requires Elementor plugin)

AbilityAccess
List Elementor Pages / Templatesread
Get Page Structure / Element Settings / Find Elementread
Update Element, Add Widget, Add Container / Section, Remove Elementwrite
Duplicate / Move Element, Copy Element Styleswrite
Get / Update Active Kit (global colors, fonts, layout)read / write
Get / Update Page Settingsread / write
Get Widget Schema / Breakpointsread
Convert CSS to Elementor Settingswrite
Regenerate CSSwrite

20 tools. update-active-kit and regenerate-css require manage_options; the rest require edit_posts. All writes run through wsp_elementor_sanitize_settings().

Ultimate Addons for Elementor (requires UAE plugin)

AbilityAccess
List UAE Widgets / Check Widget Usageread
Activate / Deactivate / Bulk Toggle Widgetswrite
List / Get Header, Footer & Blocks Templatesread
Create / Duplicate / Update / Trash / Restore Templatewrite
Add Section / Add Column / Move Element / Build Layout from JSONwrite
Get UAE Settings / Theme Info / Extensions / Design Tokensread
Update UAE Settings / Design Tokenswrite

45 tools, off by default. Writes require edit_posts, publish_posts, or manage_options.

WooCommerce (requires WooCommerce plugin)

AbilityAccess
List / Get Productsread
Create Product / Create Variation / Update Productwrite
List Orders / Update Order Statusread / write
Refund Order (requires manage_woocommerce)write
Create / List Coupons (requires manage_woocommerce)write / read
Create Order Notewrite
List Customers (requires manage_woocommerce)read
Sales Report / Low-Stock Alertsread
Moderate Product Reviewswrite

Advanced Custom Fields (requires ACF plugin)

AbilityAccess
List / Get Field Groupsread
Create / Update / Delete / Import Field Groupwrite
List / Get Fieldsread
Create / Update / Delete / Duplicate Field, Force Syncwrite
Get / Get-All / Get Field Object (values)read
Update Deep (dot-notation) / Bulk Update / Delete Valuewrite
List Post Types / Taxonomiesread
Create Custom Post Type / Taxonomy (ACF 6.1+)write
List / Create Options Page (create needs ACF Pro)read / write
Get / Update Option Valueread / write

27 tools. Value reads/writes accept a post/page ID, user_<id>, term_<id>, or options and enforce per-object capabilities. Structural changes require manage_options.

Gravity Forms (requires Gravity Forms plugin)

AbilityAccess
List / Get Formsread
Create / Update / Delete Form, Update Form Settingswrite
List / Get Entriesread
Update / Delete Entrywrite
Get / Create / Update / Delete Notificationsread / write
Get / Create / Update / Delete Confirmationsread / write

18 tools. List Forms and Get Form are ON by default. Uses Gravity Forms' own capabilities.

Contact Form 7 (requires Contact Form 7 plugin)

AbilityAccess
List / Get Formsread
Create / Update / Delete Formwrite
List / Get Entries (requires Flamingo)read
Validate Formread
Get Integrations (modules, reCAPTCHA status)read
Moderate Entry (spam / unspam / trash / untrash)write

10 tools. List Forms and Get Form are ON by default. Uses CF7's own capabilities; get-integrations requires manage_options.

WPForms (requires WPForms Lite or Pro)

AbilityAccess
List / Get Forms, Describe Schema, Get Form Statsread
Create Form, Update Form Settings, Add / Update Field, Delete Formwrite
List / Get / Delete Entries (WPForms Pro)read / write

12 tools. List Forms, Get Form, Describe Schema, and Get Form Stats are ON by default. Uses WPForms' own capabilities.


🏢 About WebSensePro

Built by WebSensePro — WordPress & Shopify agency from Queens, NY.


⭐ Star this repo · 🍴 Fork it · 🐛 Report a bug

将 WSP WordPress MCP MCP 与多个 AI 模型配合使用

TypingMind 在工作区级别连接 MCP 工具,因此连接 WSP WordPress MCP 后,您就可以在 TypingMind 中搭配不同的 AI 模型使用,无需为每个模型单独设置。 此 MCP 通过您设备上的 TypingMind MCP 连接器在本地运行。

本地连接器设置指南

如果 MCP 服务器需要访问您电脑上的本地文件、应用或私有资源,请选择此方式。

1

打开 MCP 设置

在 TypingMind 中,依次前往“设置”、“高级设置”和“模型上下文协议”,然后选择“设置连接器”。

  1. 在您的浏览器中打开 TypingMind。
  2. 点击“设置”图标。
  3. 进入“高级设置”。
  4. 打开“模型上下文协议”部分。
  5. 点击“设置连接器”,然后选择“此设备”。
TypingMind MCP 连接器设置界面,已选择“此设备”
2

运行连接器命令

选择“此设备”,从 TypingMind 复制命令并在终端中运行。使用 MCP 时,请保持该进程运行。

  1. 复制 TypingMind 显示的设置命令。
  2. 在 macOS 上打开“终端”,或在 Windows 上打开 Windows Terminal。
  3. 粘贴并运行命令。
  4. 如果终端询问您是否继续,请确认安装软件包。
  5. 使用 MCP 工具时,请勿关闭终端窗口或停止其中的连接器进程。
3

将 WSP WordPress MCP 添加为服务器

当连接器状态为“就绪”时,点击“编辑服务器”,然后粘贴 MCP 服务器配置。

  1. 等待连接器状态显示为“就绪”。
  2. 点击“编辑服务器”。
  3. 粘贴 WSP WordPress MCP MCP 服务器配置。
  4. 保存服务器列表。
  5. 如需确认连接器是否仍处于就绪状态,请刷新。
TypingMind MCP 设置界面,显示正在运行的服务器和“编辑服务器”按钮
{
  "mcpServers": {
    "wsp-wordpress-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

在不同模型中使用同一连接

保存服务器列表,打开“插件”,启用 WSP WordPress MCP MCP 工具,然后在 TypingMind 中选择任意受支持的 AI 模型,即可在聊天中使用这些工具,或将其分配给智能体。

  1. 在 TypingMind 中打开“插件”页面。
  2. 启用 WSP WordPress MCP MCP 工具。
  3. 开始聊天并选择您想使用的 AI 模型。
  4. 在聊天中使用 MCP 工具,或将其分配给 AI 智能体。
  5. 根据需要随时切换到其他 AI 模型,无需重新连接 MCP。
在 TypingMind 聊天中使用已启用的 MCP 工具和选定的 AI 模型
您能使用 WSP WordPress MCP 帮我完成这项任务吗?
WSP WordPress MCP
当然,我看过了。
以下是我使用 WSP WordPress MCP 得到的结果。

常见问题

WSP WordPress MCP MCP 服务器有什么用途?

WSP WordPress MCP 是一个 MCP 服务器,可让兼容的 AI 客户端连接外部工具并获取上下文。在 TypingMind 中,只需添加一次此 MCP 服务器,即可在您的 AI 工作区中使用其工具。

可以在 TypingMind 中让多个 AI 模型使用 WSP WordPress MCP MCP 吗?

可以。TypingMind 在工作区层面连接 MCP 工具,因此您无需为每个模型单独配置 MCP 服务器,就能在 Claude、ChatGPT、Gemini 或您在 TypingMind 中配置的其他 AI 模型中使用 WSP WordPress MCP。

为什么在 TypingMind 中使用 WSP WordPress MCP MCP?

TypingMind 将多个 AI 模型、提示词、插件、AI 智能体、API 密钥和 MCP 工具整合到同一个工作区中,是最出色的大语言模型聊天前端之一。连接 WSP WordPress MCP 后,您可以在偏好的不同模型中使用其 MCP 工具,同时在 TypingMind 中井然有序地管理聊天工作流程。

如何将 WSP WordPress MCP MCP 连接到 TypingMind?

WSP WordPress MCP 通过 TypingMind 本地 MCP 连接器运行。当 MCP 服务器需要访问您计算机上的本地文件、桌面应用、命令行工具或私有资源时,这种方式最合适。

WSP WordPress MCP MCP 在 TypingMind 中提供哪些工具?

WSP WordPress MCP 提供 MCP 功能,您可以在 TypingMind 的插件页面启用这些功能,然后在聊天中使用,或将其分配给 AI 智能体。

使用 WSP WordPress MCP MCP 需要向 TypingMind 提供我的 API 密钥吗?

不需要。TypingMind 采用本地优先的设计,让您自行选择模型提供商,并自行管理 API 密钥、提示词和 MCP 配置。如果 WSP WordPress MCP 需要身份验证,请在创建连接时,为该 MCP 服务器添加所需的请求头、OAuth 设置或本地配置。

相关 MCP 服务器

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇