Show HN: WP-MCP – An MCP server to control WordPress (github.com)

🤖 AI Summary
WP‑MCP is a new Model Context Protocol (MCP) server for WordPress (by @rnaga) that exposes WordPress CRUD primitives to MCP-capable assistants (e.g., Claude Desktop), turning sites into AI-operable surfaces. An assistant can now draft, iterate, and publish posts, moderate comments, manage users, taxonomies, meta and site options, or audit roles directly without touching wp-admin. Because the toolset is capability-aware — it assumes a specific WordPress user and filters available primitives by that user’s roles — it preserves native permission checks and reduces accidental privileged actions. Technically, WP‑MCP is built on wp-node and ships a curated primitive registry covering posts, revisions, comments, users, terms, metadata, and settings. It supports a local STDIO MCP server (direct DB access), a Streamable HTTP server (Express + streaming and SSE fallback), and a CLI proxy that handles OAuth device flows or WordPress Application Passwords and stores credentials in ~/.wp-mcp. The HTTP server behaves as an OAuth 2.0 resource server (discovery at /.well-known/oauth-protected-resource) and returns RFC‑6750 WWW-Authenticate headers on failures; the proxy refreshes tokens and relays MCP calls for clients that lack OAuth support. CLI helpers scaffold projects, launch servers, and include an interactive Inspector for testing. For AI/ML teams, WP‑MCP simplifies integrating generative assistants into editorial pipelines while preserving WordPress business logic and role-based security.
Loading comments...
loading comments...