WP-CLI as an MCP Host
Enabling AI-Powered WordPress Development
Project Description
WordPress development workflows currently lack seamless integration with AI capabilities, particularly during local development. While REST API endpoints enable AI interactions with live sites, developers working with local WordPress installations have limited options for AI-assisted content creation and site management. This project aims to bridge this gap by implementing 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
Target Audience
- WordPress developers working with local environments
- DevOps teams managing multiple WordPress installations
- Content creators using WP-CLI in their workflow
- Plugin and theme developers requiring testing data
Hackathon Goals
- Core Implementation
- Functional WP-CLI MCP Host package
- Basic WordPress MCP Server implementation
- Example commands for content generation
- Developer Experience
- Documentation and setup guides
- Debug tooling integration
- Example workflows and use cases
- Demo Scenarios
- Content generation with context awareness
- Media handling and featured image generation
- Bulk operations with AI assistance
Project Lead

Pascal Birchler
Software Engineer at Google
WP-CLI Maintainer
#AI
#MCP
#LLM
#WP-CLI
#WordPress