The @wp-playground/mcp package connects AI coding agents to WordPress Playground running in the browser via the Model Context Protocol (MCP). A local Node.js MCP server communicates with the browser-based Playground instance over WebSocket, enabling agents to read/write files, execute PHP, manage sites, and navigate pages through natural language commands. Setup is a single command for Claude Code or Gemini CLI. Three practical workflows are demonstrated: installing and testing plugins, debugging site options via direct PHP/SQL queries, and scaffolding child themes. The server exposes tools across four categories: site management, code execution, navigation, and filesystem operations. The connection is local-only with token-based authentication for security.

4m read timeFrom make.wordpress.org
Post cover image
Table of contents
How it worksSet up the MCP serverThree practical workflowsAvailable toolsShare your feedback
875 Impressions