有官方的 WordPress MCP 服务器吗?
有。WordPress GitHub 组织中的 MCP Adapter 在其 README 中自称是 WordPress 官方的 MCP 集成包,并已收录在 WordPress.org。
@WordPress
基本信息
版本
0.7.0
许可证
GPL-2.0-or-later
传输方式
streamable-http, stdio
认证方式
api_key
作者
WordPress
WordPress 官方插件,将 Abilities API 中的能力作为 MCP 工具、资源和提示词提供给 AI 智能体。
使用下面的配置,将此服务器添加到你的 MCP 客户端。
{
"mcpServers": {
"wordpress": {
"command": "npx",
"args": [
"-y",
"@automattic/mcp-wordpress-remote@latest"
],
"env": {
"WP_API_URL": "${WP_API_URL}",
"WP_API_USERNAME": "${WP_API_USERNAME}",
"WP_API_PASSWORD": "${WP_API_PASSWORD}"
}
}
}
}Lists all WordPress abilities that are publicly available via MCP (name, label, description).
Retrieves the full input/output schema and metadata for a specific ability (ability_name).
Executes a public ability with the provided parameters after checking the ability's own permission callback.
WordPress MCP Adapter (Official) 是 WordPress 项目官方的 wordpress mcp 插件:它把通过 WordPress Abilities API 注册的能力(abilities)转换为 MCP 工具、资源和提示词,供 Claude、Cursor、VS Code 等 AI 客户端调用。
该适配器属于 AI Building Blocks for WordPress 计划,代码位于 WordPress/mcp-adapter,采用 GPL-2.0-or-later 许可,同时以 “MCP Adapter” 之名收录在 WordPress.org 插件目录中。它要求 WordPress 6.9 或更高版本(Abilities API 已并入核心)。它取代了 Automattic 早先的 wordpress-mcp 插件,后者现已归档,并引导用户转到本仓库。
前提条件:WordPress 6.9+、PHP 7.4+;如果用 Application Password 连接,站点需要启用 HTTPS(除本地站点外,WordPress 只在 HTTPS 下提供 Application Password)。使用代理的桌面客户端还需要安装 Node.js。
wp plugin install https://github.com/WordPress/mcp-adapter/releases/latest/download/mcp-adapter.zip --activate
插件会在 /wp-json/mcp/mcp-adapter-default-server 创建一个默认的 WordPress MCP 服务器,路径拼接在站点地址之后(例如 https://example.com/wp-json/mcp/mcp-adapter-default-server)。
大多数桌面客户端会启动 @automattic/mcp-wordpress-remote 代理,它把 STDIO 消息通过 HTTP 转发到你的站点。在 Claude Desktop 中打开 Settings > Developer > Edit Config;在 Cursor 中编辑 ~/.cursor/mcp.json:
{
"mcpServers": {
"my-wordpress-site": {
"command": "npx",
"args": ["-y", "@automattic/mcp-wordpress-remote@latest"],
"env": {
"WP_API_URL": "https://example.com/wp-json/mcp/mcp-adapter-default-server",
"WP_API_USERNAME": "your-username",
"WP_API_PASSWORD": "xxxx xxxx xxxx xxxx xxxx xxxx"
}
}
}
}
保存后重启应用。对于提供相应机制的站点,该代理还支持 OAuth(OAUTH_ENABLED=true)和 JWT 令牌(JWT_TOKEN)。
Claude Code 可以通过 HTTP 直接连接,并携带 Basic 认证头。把 username:application-password 编码为一行 base64,然后添加服务器:
printf 'your-username:xxxx xxxx xxxx xxxx xxxx xxxx' | base64 | tr -d '\n'
claude mcp add --transport http my-wordpress-site \
https://example.com/wp-json/mcp/mcp-adapter-default-server \
--header "Authorization: Basic PASTE_THE_BASE64_HERE"
如果 WordPress 运行在你自己的电脑上,客户端可以通过 WP-CLI 直接启动适配器,无需密码:
{
"mcpServers": {
"wordpress": {
"command": "wp",
"args": [
"--path=/path/to/your/wordpress/site",
"mcp-adapter",
"serve",
"--server=mcp-adapter-default-server",
"--user=admin"
]
}
}
}
wp mcp-adapter list 可列出已注册的服务器。
可以用这样的提示词测试连接:“List the WordPress abilities you can use on my site.”(列出你在我站点上可以使用的 WordPress 能力。)
Mcp-Session-Id 会话)以及通过 wp mcp-adapter serve 的 STDIO 传输meta.public(或 meta.mcp.public)的能力才能被访问Requires Plugins: mcp-adapter 声明依赖;也可使用 composer require wordpress/mcp-adapter,但官方不建议打包内置无论站点上有多少能力,默认服务器都只暴露三个元工具,使 tools/list 保持精简:
mcp-adapter-discover-abilities 列出公开能力的名称、标签和描述。mcp-adapter-get-ability-info 返回单个能力的输入和输出 schema。mcp-adapter-execute-ability 在确认能力为公开并运行其自身权限回调后,带参数执行该能力。助手实际能做什么(创建草稿、读取站点信息等)取决于 WordPress 核心和你的插件注册了哪些能力。希望每个能力对应一个独立 MCP 工具的开发者,可以通过 mcp_adapter_init 钩子创建自定义服务器。
Authorization 头传递给 PHP。rest_no_route: 确认插件已启用。如果使用“朴素”固定链接,请改用 https://example.com/?rest_route=/mcp/mcp-adapter-default-server。npx: command not found: 安装 Node.js 后重启客户端。Missing Mcp-Session-Id header: HTTP 客户端必须先发送 initialize,并在后续请求中带上返回的会话 ID。有。WordPress GitHub 组织中的 MCP Adapter 在其 README 中自称是 WordPress 官方的 MCP 集成包,并已收录在 WordPress.org。
免费。它以 GPL-2.0-or-later 开源,可从 GitHub 或 WordPress.org 免费安装。
远程连接需要 WordPress 用户名和 Application Password。本地 WP-CLI 连接无需密码,`--user` 参数决定服务器以哪个用户身份运行。
支持。文档为 Claude Code 提供了直接 HTTP 连接命令,并为 Claude Desktop、Cursor、VS Code、Windsurf 等桌面客户端提供了代理配置。
目前单靠它还不行。这些网页应用通过 OAuth 添加连接器,而 WordPress 和该适配器都不包含 OAuth 服务器,因此请使用桌面客户端,或安装为站点添加 OAuth 登录的插件。
它运行在你的 WordPress 站点内部,在 `/wp-json/mcp/mcp-adapter-default-server` 提供 HTTP 服务,本地站点还可通过 WP-CLI 使用 STDIO。
能力默认是私有的,每个操作都以所连接用户的角色执行。请使用低权限用户、每个客户端单独一个 Application Password,并先在测试站点上试用。
`Automattic/wordpress-mcp` 是早先的 WordPress MCP 插件,现已归档;MCP Adapter 是基于 Abilities API、持续维护的继任者。
Let your agents read, send and react to email autonomously, without human involvement
The Datris Data Platform - Open Source Version

Catch intent conflicts before code conflicts. The open-source coordination protocol for coding agents, built above Git.
Local MCP server and CLI that keeps a Git-versioned, model-written index of a codebase and its database schema, so coding agents start each task with the whole system in view.
Open-source Node.js FHIR MCP server with SMART Backend Services, metadata-aware search/CRUD tools, compact responses, FHIRPath filtering, safe pagination, audit events, and terminology lookup.
评论