SDK / infra · #286 trending MCP repo · ↗ +14 stars this week

MCP Adapter

WordPress/mcp-adapter

An MCP adapter that bridges the Abilities API to the Model Context Protocol, enabling MCP clients to discover and invoke WordPress plugin, theme, and core abilities programmatically.

Stars
1.9k
This week
+14
Forks
231
Open issues
100
Latest release
v0.4.2
Star trend · last 9 days+20 ★
Oct 29, 2026: 1,888 starsOct 30, 2026: 1,893 starsOct 31, 2026: 1,894 starsNov 1, 2026: 1,897 starsNov 2, 2026: 1,900 starsNov 3, 2026: 1,902 starsNov 4, 2026: 1,903 starsNov 5, 2026: 1,905 starsNov 6, 2026: 1,907 starsNov 7, 2026: 1,908 stars

Documentation

README

View on GitHub ↗

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.

WordPress Playground Demo

Test Plugin Check Dependency Review

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 McpTransportInterface for custom protocols — see Custom Transports
  • Pluggable error handling and observability — swap in your own logging or monitoring via McpErrorHandlerInterface and McpObservabilityHandlerInterface — 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

GPL-2.0-or-later

Releases

Recent versions

All releases ↗
  1. v0.4.2
  2. v0.3.1
  3. v0.7.1
  4. v0.6.2MCP Adapter 0.6.2: Security release
  5. v0.7.0
  6. ci-artifactsCI Artifactspre-release