Skip to main content
ClaudeWave

AI-powered bridge between WordPress and MCP (Model Context Protocol). Write, publish, and manage WordPress posts directly from your AI assistant — TypeScript, Node.js, and pure MCP.

MCP ServersRegistry oficial9 estrellas1 forksTypeScriptActualizado today
ClaudeWave Trust Score
57/100
· OK
Passed
  • Recently active
  • Clear description
  • Topics declared
Flags
  • !No standard license detected
Last scanned: 6/11/2026
Install in Claude Code / Claude Desktop
Method: NPX · @rnaga/wp-mcp
Claude Code CLI
claude mcp add wp-mcp -- npx -y @rnaga/wp-mcp
claude_desktop_config.json (Claude Desktop)
{
  "mcpServers": {
    "wp-mcp": {
      "command": "npx",
      "args": ["-y", "@rnaga/wp-mcp"]
    }
  }
}
1. Run the command above in your terminal (Claude Code), or paste the JSON config into claude_desktop_config.json (Claude Desktop).
2. Replace any <placeholder> values with your API keys or paths.
3. Restart Claude. The MCP server and its tools appear automatically.
Casos de uso

Resumen de MCP Servers

# wp-mcp

`@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:

- Draft, revise, and publish posts directly from MCP clients such as Claude Desktop.
- Inspect WordPress users, their roles, and capabilities to audit site permissions or generate access reports.

Built on top of [`@rnaga/wp-node`](https://github.com/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:

- configure and launch a local STDIO MCP server that connects straight to your WordPress database;
- scaffold and initialize an Express-based Streamable HTTP MCP server (with env/TS boilerplate);
- authenticate against a remote WordPress environment (OAuth or Application Password) and run a JSON-RPC proxy so MCP clients can reach it securely;
- inspect available MCP primitives and manage the credentials stored under `~/.wp-mcp`.

Run this command to list the available CLI commands:

```
npx @rnaga/wp-mcp -- --help
```

```
Usage: <command> <subcommand> [options]

Commands:
   local            Local MCP (stdio) server commands
   utils            Utility commands for configuration, debugging, and MCP inspection
   http             Scaffold a TypeScript project for the MCP streamable HTTP server and related tooling.
   remote           Remote MCP server 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.

## Getting Started

### Local STDIO server

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.

```mermaid
flowchart LR
  client(["MCP Client<br/>(e.g. Claude Desktop)"])
  stdio(["Local STDIO MCP Server<br/>(wp-mcp CLI)"])
  db(["WordPress Database"])

  client <--> stdio
  stdio <--> db
```

1. Run the CLI to set up the database connection:
   ```sh
   npx @rnaga/wp-mcp -- local config-set
   ```
   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.
2. 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`:

   ```json
   {
     "mcpServers": {
       "wp-mcp": {
         "command": "npx",
         "args": ["-y", "@rnaga/wp-mcp", "--", "local", "start"],
         "env": {
           "LOCAL_USERNAME": "wp-admin"
         }
       }
     }
   }
   ```

   **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:

   ```sh
   npx @rnaga/wp-mcp -- utils list-prims
   ```

   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:

   ```sh
   npx -y @modelcontextprotocol/inspector npx @rnaga/wp-mcp local start -u wp-admin
   ```

   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. |

### MCP Streamable HTTP server

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.

1. **Scaffold a project**

   ```sh
   npx @rnaga/wp-mcp -- http init
   ```

   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:

   ```
   ├── _wp
   │   ├── config
   │   │   ├── index.d.ts
   │   │   └── wp.json
   │   └── settings.ts
   ├── .env
   ├── .gitignore
   ├── index.ts
   ├── package-lock.json
   ├── package.json
   ├── src
   │   └── index.ts
   └── tsconfig.json
   ```

   Populate `.env` with the values requested by the scaffolder and any HTTP-specific environment variables listed later in this document.

2. **Run the server in development**

   ```sh
   npm run dev
   ```

   This
ai-assistantmcpnodejstypescriptwordpress

Lo que la gente pregunta sobre wp-mcp

¿Qué es rnaga/wp-mcp?

+

rnaga/wp-mcp es mcp servers para el ecosistema de Claude AI. AI-powered bridge between WordPress and MCP (Model Context Protocol). Write, publish, and manage WordPress posts directly from your AI assistant — TypeScript, Node.js, and pure MCP. Tiene 9 estrellas en GitHub y se actualizó por última vez today.

¿Cómo se instala wp-mcp?

+

Puedes instalar wp-mcp clonando el repositorio (https://github.com/rnaga/wp-mcp) o siguiendo las instrucciones del README en GitHub. ClaudeWave también te ofrece bloques de instalación rápida en esta misma página.

¿Es seguro usar rnaga/wp-mcp?

+

Nuestro agente de seguridad ha analizado rnaga/wp-mcp y le ha asignado un Trust Score de 57/100 (tier: OK). Revisa el desglose completo de comprobaciones superadas y flags en esta página.

¿Quién mantiene rnaga/wp-mcp?

+

rnaga/wp-mcp es mantenido por rnaga. La última actividad registrada en GitHub es de today, con 0 issues abiertos.

¿Hay alternativas a wp-mcp?

+

Sí. En ClaudeWave puedes explorar mcp servers similares en /categories/mcp, ordenados por popularidad o actividad reciente.

Despliega wp-mcp en tu cloud

Lleva este repo a producción en minutos. Cada plataforma genera su propio entorno con variables de entorno editables.

¿Mantienes este repo? Añade un badge a tu README

Pega el badge en tu README de GitHub para mostrar que está auditado por ClaudeWave. Cada badge enlaza de vuelta a esta página y muestra el Trust Score actual.

Featured on ClaudeWave: rnaga/wp-mcp
[![Featured on ClaudeWave](https://claudewave.com/api/badge/rnaga-wp-mcp)](https://claudewave.com/repo/rnaga-wp-mcp)
<a href="https://claudewave.com/repo/rnaga-wp-mcp"><img src="https://claudewave.com/api/badge/rnaga-wp-mcp" alt="Featured on ClaudeWave: rnaga/wp-mcp" width="320" height="64" /></a>

Más MCP Servers

Alternativas a wp-mcp