MCP server for WordPress. Manage posts, users, comments, terms, metadata, and settings.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
We haven't yet run this listing's install command through our automated sandbox check. This isn't a red flag β we're steadily working through the catalog.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
@rnaga/wp-mcp is a Model Context Protocol (MCP) server for WordPress that turns your site into an AI-operable surface. By exposing WordPress CRUD primitives to clients like Claude Desktop, an assistant can draft a post on demand, refine it collaboratively, and publish it straight into your databaseβno trip through wp-admin required.
Here are a few common scenarios this unlocks:
Built on top of @rnaga/wp-node, the server ships with a curated MCP toolset covering posts, users, comments, terms, revisions, metadata, options, and site settings. The MCP server can manage the following database tables/resources:
| Resource | What you can do |
|---|---|
| Posts | Create, update, read, or delete posts and their revisions. |
| Comments | Moderate discussion threads or inject generated replies. |
| Users | Onboard contributors, adjust roles, or disable accounts with native capability checks. |
| Terms | Manage categories, tags, and custom taxonomies. |
| Metadata | Inspect, create, update, or delete post, user, comment, term, and site meta fields. |
| Settings & Options | Toggle site-level configuration safely. |
You can spin up a STDIO server for direct database access or host a Streamable HTTP MCP server for remote access. For convenience, layer on the CLI proxy whenever your MCP client needs a local bridge to the HTTP server. The proxy behaves like a local MCP server while relaying requests to the HTTP endpointβperfect for clients that lack OAuth or WordPress Application Password supportβso you can fit MCP workflows into existing editorial pipelines without re-implementing WordPress business logic.
The project includes a CLI (wp-mcp) that helps you:
~/.wp-mcp.Run this command to list the available CLI commands:
Together, the server, CLI utilities, and proxy tooling let you CRUD WordPress content, manage users, and sync settings through the MCP standard without re-implementing WordPress logic.
Run the STDIO server when you can reach the database directly. The CLI launches an MCP process that assumes a WordPress user locally and exposes your site's tools over STDIO to the MCP client.
Run the CLI to set up the database connection:
The CLI prompts you for host, port, database name, user, and password. If your database requires SSL, you can provide CA, cert, and key file paths to secure remote access. Run npx @rnaga/wp-mcp local config anytime to review the saved values.
Configure your MCP client to launch the server. For Claude Desktop, open Settings β Developer β Edit Config and add this to your claude_desktop_config.json:
Activate the server: Save the config file, then quit and restart your MCP client (for example, Claude Desktop). The WordPress tools will now appear in the MCP indicator at the bottom right of the chat input.
Important: Replace wp-admin with your WordPress username. The server uses this to determine which MCP primitives are available based on the user's WordPress capabilities. For example, administrator roles get full access to all primitives (create, update, delete posts, manage users, etc.), while subscriber roles see only limited tools. This capability-based filtering prevents accidental execution of privileged operations. To see which primitives are available and the required capabilities and roles for each:
This displays a table showing the primitive name, title, description, required capabilities, and allowed roles.
Optional: Provide a WordPress config manifest if your project defines one (e.g., src/_wp/config/wp.json). Set LOCAL_CONFIG in the env object above to the absolute path of your config file. If you don't have a custom config, omit this environment variable entirely. For the configuration manifest schema, see https://rnaga.github.io/wp-node/docs/getting-started/configuration.
Testing the MCP server:
Use the MCP Inspector for interactive testing and debugging:
This opens a visual interface at http://localhost:6274 where you can explore available tools, test them with different arguments, and inspect server responses.
Note: Inspector persists its "Environment Variables" panel in browser storage across sessions. If you previously added a PATH entry there while troubleshooting, delete it manually in the UI β a stale value can shadow the environment the server actually needs and won't be overridden by CLI flags or script changes.
Usage reference for CLI flags and environment variables:
| Environment variable | CLI flag | Purpose | When it is read |
|---|---|---|---|
LOCAL_USERNAME | --username <value> / -u <value> | WordPress username to assume | Used by local start to pick the WP user whose roles and capabilities determine available MCP primitives. |
LOCAL_CONFIG | --file <path> / -f <path> | WordPress config manifest location | Used by local start to point the init hook at a custom WP config JSON. |
DB_ENVIRONMENT, WP_DB_HOST, WP_DB_PORT, WP_DB_NAME, WP_DB_USER, WP_DB_PASSWORD, LOCAL_MULTISITE, LOCAL_DEFAULT_BLOG_ID, LOCAL_DEFAULT_SITE_ID, LOCAL_SSL_ENABLED, LOCAL_SSL_CA_FILEPATH, LOCAL_SSL_CERT_FILEPATH, LOCAL_SSL_KEY_FILEPATH | (wizard via local config-set) | Local database connection details | Loaded by the secret store before local start; populate them with local config-set or export them ahead of time. |
Use the HTTP server when you need to expose MCP over the Internet or let remote teammates connect. The CLI scaffolds an Express app (see src/http/express/index.ts) that exposes both the MCP streaming HTTP transport and the SSE fallback while reusing the same primitive registry.
Scaffold a project
The wizard prompts for database connection details, creates a wp-node project, and seeds Express boilerplate plus TypeScript configuration for the HTTP transport.
Resulting layout:
Populate .env with the values requested by the scaffolder and any HTTP-specific environment variables listed later in this document.
Run the server in development
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/wordpress-mcp-server)<a href="https://allmcps.com/mcp/wordpress-mcp-server"><img src="https://allmcps.com/api/badge/wordpress-mcp-server?style=directory" alt="WordPress MCP Server on AllMCPs" /></a>