MCP server

WP-CLI MCP Server: Manage WordPress Through WP-CLI With AI

wp-cli-mcp is an MIT licensed Node.js server that lets an AI tool manage themes, plugins, posts, menus, users and the database on a WordPress site through WP-CLI.

Run
npm install -g wp-cli-mcp
View on GitHub

Stars, license and last push from GitHub. Install count as reported by the open skills directory.

What is the WP-CLI MCP server?

wp-cli-mcp is a Node.js MCP server that wraps WP-CLI so an AI tool can manage a WordPress install. Its tool table covers core, plugins, themes, posts, menus, users, options, media, database export and search replace, scaffolding for themes, plugins and blocks, and a raw command. It runs locally or over SSH.

wp-cli-mcp is a small Node.js server that exposes WP-CLI commands as MCP tools. Instead of typing wp commands, you describe the job and the AI tool picks the matching tool, such as listing plugins or creating a page.

Because it sits on WP-CLI, it needs no WordPress plugin on the site. It works against a local install through a path, or against a remote server through an SSH connection string.

What an agent can do with it

  • Install, activate, deactivate and delete plugins and themes, and read or write theme files.
  • Create, read, update and delete posts and post meta, terms, users, menus and menu items.
  • Export the database, run a query, and run a dry run search and replace before applying it for a domain migration.
  • Scaffold a theme, plugin or Gutenberg block.
  • Run any other WP-CLI command through the raw tool.

Who it is for

Best for

  • Developers who already live in WP-CLI and want a conversational layer on top.
  • Agencies that manage remote servers over SSH and repeat the same maintenance steps.

Not for

  • Shared hosts without WP-CLI or SSH access.
  • Anyone who wants guardrails. The tool list includes wp_eval, a raw command tool and delete tools, and the README describes no confirmation or undo step.

Check the details before you trust it

The README headline says 45+ tools while its heading says 30+, and it does not state supported WordPress or WP-CLI versions. Read the tool table against your own needs and test on a staging copy first.

Use it with UiChemy

This server handles maintenance and scaffolding. UiChemy Composer writes HTML, CSS and JS for WordPress pages, and WP Block Theme Converter covers turning HTML into a block theme. Click Get Started on uichemy.com.