
WordPress MCP Adapter
MCPWordPress 官方插件,把站点通过 Abilities API 注册的能力转换为 MCP 工具、资源与提示词,支持 WP-CLI 本地(STDIO)与 HTTP 两种接入。需要 WordPress 6.9+,能力默认不公开,需手动开放。
MCP Adapter
Part of the AI Building Blocks for WordPress initiative
The official WordPress package for MCP integration that exposes WordPress abilities as Model Context Protocol (MCP) tools, resources, and prompts for AI agents.
Overview
MCP Adapter bridges WordPress's Abilities API with the MCP specification, giving AI agents a standardized way to interact with WordPress functionality. It includes HTTP and STDIO transport support, comprehensive error handling, and an extensible architecture for custom integrations.
Features
- Ability-to-MCP conversion — WordPress abilities automatically become MCP tools, resources, and prompts
- Multi-server management — run multiple MCP servers, each with its own transports, abilities, and handlers
- HTTP and STDIO transports, plus a
McpTransportInterfacefor custom protocols — see Custom Transports - Pluggable error handling and observability — swap in your own logging or monitoring via
McpErrorHandlerInterfaceandMcpObservabilityHandlerInterface— see Error Handling and Observability - Granular permissions — per-server transport authentication and per-ability permission checks — see Transport Permissions
Architecture
See the Architecture Overview for the full component breakdown.
Getting Started
Follow the Quick Start Guide to register your first ability and expose it via MCP, or jump straight to the Basic Examples for complete tool, resource, and prompt samples.
WordPress abilities are private by default. Set meta.public (or meta.mcp.public) to true to expose one, then reach it through the default server's three meta-tools (mcp-adapter/discover-abilities, mcp-adapter/get-ability-info, mcp-adapter/execute-ability) — see Creating Abilities for the full opt-in model.
Connecting MCP Clients
Connect via WP-CLI over STDIO, or point an HTTP client at /wp-json/mcp/mcp-adapter-default-server. Configuration examples for Claude Desktop and other MCP clients — both direct STDIO and HTTP-via-proxy — are in the CLI Usage Guide.
Migration
- Compatibility notes: ability input preparation (v0.7.2)
- Migration Guide: v0.7.0
- Migration Guide: v0.5.0
- Migration Guide: v0.3.0
Contributing
See CONTRIBUTING.md for local setup, coding standards, and the contribution workflow, and the Testing Guide for running the test suite.
Attribution
Model Context Protocol, MCP, and the MCP logo are trademarks of LF Projects, LLC, and are used here solely for informational purposes.
License
相關資源

WP-CLI
CLIWordPress 官方命令行工具,在终端里安装和更新插件主题、管理文章与用户、导入导出内容、执行数据库搜索替换、配置多站点,无需打开后台。需要 PHP 7.2.24 以上环境。
wp-cli/wp-cli5.2k
Agent Skills for WordPress
SkillWordPress 官方技能合集:区块开发、区块主题、插件架构、REST API、Interactivity API、WP-CLI、性能分析与 Playground 等,让 agent 按现代 WordPress 规范写代码、少踩安全坑。
WordPress/agent-skills2.4k
Deno
CLIJavaScript、TypeScript 与 WebAssembly 运行时,自带格式化、lint、测试与编译等工具;默认禁止脚本访问文件、网络与环境变量,需用 --allow-* 显式授权,便于较安全地运行 agent 生成的脚本。
denoland/deno109k
Bun
CLI一体化的 JavaScript/TypeScript 工具链:单个 bun 可执行文件同时是 Node.js 兼容运行时、包管理器、测试运行器与脚本运行器,安装依赖与跑测明显更快。
oven-sh/bun97.1k
PHP LSP
Plugin为 Claude Code 接入 PHP 语言服务器 Intelephense,提供代码智能与诊断。需先用 npm 全局安装 intelephense。Anthropic 官方插件。
anthropics/claude-plugins-official48.8k
JavaScript TypeScript
PluginJS/TS 开发插件:内置 javascript-pro、typescript-pro 两个子代理和 TypeScript 项目脚手架命令,外加现代 JS 写法、TS 高级类型、Node.js 后端、JS 测试 4 个技能。收录在 wshobson/agents 插件市场。
wshobson/agents43.1k