The Wordpress MCP Server

MCP server for WordPress integration

Local serverstdio

What is the The Wordpress MCP server?

MCP server for WordPress integration. Exposed over MCP by the the wordpress mcp server, that capability becomes something an assistant can invoke while it works, not something you go and do afterwards.

What it actually does

A Model Context Protocol (MCP) server for WordPress integration, compatible with Windows, macOS, and Linux.

This MCP server enables interaction with WordPress sites through the WordPress REST API. It provides tools for creating, retrieving, and updating posts using JSON-RPC 2.0 protocol.

Adding it to your client

Setup follows the usual MCP pattern — install or clone the server, register it in your client's configuration file, restart the client. The configuration blocks on this page cover the common clients.

Its toolset

Everything the assistant can do here goes through one of these:

  • create_post — Parameters: - siteUrl: (optional if set in env) WordPress site URL - username: (optional if set in env) WordPress username - password: (optional if
  • get_posts — Parameters: - siteUrl: (optional if set in env) WordPress site URL - username: (optional if set in env) WordPress username - password: (optional if
  • update_post — Parameters: - siteUrl: (optional if set in env) WordPress site URL - username: (optional if set in env) WordPress username - password: (optional if

Configuration

You will need 3 environment variables: WORDPRESS_SITE_URL, WORDPRESS_USERNAME, WORDPRESS_PASSWORD. The server will not start without them, which is usually why the tools fail to appear on a first run. Keep credentials in your client's env block or a secrets manager rather than in a file you might commit.

  • Node.js 20.0.0 or higher - WordPress site with REST API enabled - WordPress application password for authentication

Caveats

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • Missing credentials fail quietly in some clients — if no tools show up, check the environment block first.
  • MCP clients confirm each tool call by default. Leave that on until you have watched what the the wordpress mcp server does with a few real requests.

When to reach for it

This sits in the developer tooling group, where several servers overlap in what they claim to do but differ sharply once you actually set them up. The Wordpress's toolset — create_post, get_posts, update_post — is a fair guide to whether it matches your workflow. It is maintained by Leonelberio; worth a glance at recent repository activity before you build anything load-bearing on it.

We check each listing at SyncDev against the project's documentation before it goes live — if something here drifts out of date, it is a bug worth reporting.

Available tools

ToolWhat it does
create_postParameters: - siteUrl: (optional if set in env) WordPress site URL - username: (optional if set in env) WordPress username - password: (optional if set in env) WordPress application password - title: Post title - content
get_postsParameters: - siteUrl: (optional if set in env) WordPress site URL - username: (optional if set in env) WordPress username - password: (optional if set in env) WordPress application password - perPage: (optional) Number
update_postParameters: - siteUrl: (optional if set in env) WordPress site URL - username: (optional if set in env) WordPress username - password: (optional if set in env) WordPress application password - postId: ID of the post to u

How to install the The Wordpress MCP server

{
  "mcpServers": {
    "wordpress": {
      "command": "node",
      "args": ["path/to/build/index.js"],
      "env": {
        "WORDPRESS_SITE_URL": "https://your-wordpress-site.com",
        "WORDPRESS_USERNAME": "your-username",
        "WORDPRESS_PASSWORD": "your-app-password"
      }
    }
  }
}

Configuration as documented by the project. Restart the client after saving.

Configuration

  • Node.js 20.0.0 or higher - WordPress site with REST API enabled - WordPress application password for authentication
VariableDescriptionRequired
WORDPRESS_SITE_URLEndpoint or connection string the server talks to.Yes
WORDPRESS_USERNAMEConfiguration value read at startup.Optional
WORDPRESS_PASSWORDConfiguration value read at startup.Optional

Example prompts to try

  • Use The Wordpress to create post.
  • Use The Wordpress to get posts.
  • Use The Wordpress to update post.

Frequently asked questions

It connects The Wordpress to MCP-compatible AI assistants such as Claude and Cursor, exposing 3 tools (create_post, get_posts, update_post) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with The Wordpress directly.