
WordPress MCP Adapter
MCPWordPress's official plugin that turns abilities registered through the Abilities API into MCP tools, resources and prompts, reachable locally over WP-CLI (STDIO) or over HTTP. Needs WordPress 6.9+; abilities are private by default and must be exposed manually.
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
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
Recursos relacionados

WP-CLI
CLIWordPress's official CLI: install and update plugins and themes, manage posts and users, import and export content, run database search-replace and configure multisite from the terminal, without opening wp-admin. Requires PHP 7.2.24 or later.
wp-cli/wp-cli5.2k
Agent Skills for WordPress
SkillWordPress's official skill collection: block development, block themes, plugin architecture, REST API, Interactivity API, WP-CLI, performance profiling and Playground, so agents write code to modern WordPress standards and avoid common security pitfalls.
WordPress/agent-skills2.2k
Deno
CLIJavaScript, TypeScript and WebAssembly runtime with built-in formatting, linting, testing and compilation. Scripts get no file, network or environment access unless granted with --allow-* flags, making agent-generated scripts safer to run.
denoland/deno109k
Bun
CLIAll-in-one JavaScript and TypeScript toolchain: a single bun binary is a Node.js-compatible runtime, package manager, test runner and script runner, with noticeably faster installs and test runs.
oven-sh/bun96.3k
JavaScript TypeScript
PluginJS/TS development plugin with javascript-pro and typescript-pro subagents, a TypeScript project scaffolding command, and 4 skills on modern JavaScript, advanced TypeScript types, Node.js backends and JS testing. Part of the wshobson/agents marketplace.
wshobson/agents40.9k
PHP LSP
PluginConnects Claude Code to the Intelephense PHP language server for code intelligence and diagnostics. Install intelephense globally with npm first. Official Anthropic plugin.
anthropics/claude-plugins-official40k