Introduction
This projected originally kicked off during the CloudFest Hackathon 2025 to implement the Model Context Protocol (MCP) in the WordPress ecosystem, specifically integrating it with WP-CLI.
The core innovation is transforming WordPress into an MCP Server and WP-CLI into an MCP Host through a new package, enabling direct AI interactions with WordPress installations during development. This approach provides developers with powerful AI capabilities without requiring a live site or REST API endpoints.
WordPress MCP Server Layer:
- Implementation of MCP Server interfaces in WordPress
- Resource providers for posts, pages, media, and other WordPress content types
- Tool definitions for common WordPress actions (content creation, media handling)
- Context providers for WordPress configuration and site state
WP-CLI MCP Host Package:
- MCP Host implementation within WP-CLI framework
- New command namespace for AI operations
- Integration with (local and remote) LLM providers
- Transport layer for local WordPress communication
You can think of MCP as the "USB port for LLMs", a standard way for LLMs to interact with any third-party system using things like function calling.
While the Hackathon project focused on WP-CLI, the MCP Server is usage-agnostic and can also be exposed via HTTP.
The MCP Host, gets information (such as list of available tools) from the server and passes it on to the LLM (e.g. Gemini).
Contributors
Original CloudFest Hackathon Contributors:
- Pascal Birchler - @swissspidy
- Jan-Willem Oostendorp - @janw-me
- Joost de Valk - @jdevalk
- Marco Chiesi - @marcochiesi
- Matt Biscay - @skyminds
- Moritz Bappert - @moritzbappert
- James Hunt - @thetwopct
- Tome Pajkovski - @tomepajk
- David Mosterd - @davidmosterd
- Milana Cap - @zzap