ai-command

MCP.Pizza Chef: mcp-wp

Built as an add-on to the WordPress command line, this runs a back-and-forth chat in your terminal: it collects the tools your site offers, hands them to a language model, and carries out whatever the model asks for. The project was archived in December 2025 and receives no further work. It also switches off WordPress's own permission checks while running, and tool calls happen without asking unless you turn on approval mode.

Archived · The author made this repository read-only on GitHub.
Coding
Writing

Use This MCP client To

Ask what my last few blog posts were called Draft a post from a text file on my computer Check which plugins on my site need updating Clear my site's cache without remembering the command Look up how many comments are awaiting review

README

WP-CLI AI Command with MCP support

Commit activity Code Coverage License

This WP-CLI command enables direct AI interactions with WordPress installations during development by implementing the Model Context Protocol (MCP). It not only provides its own MCP server for controlling WordPress sites, but also allows connecting to any other local or remote MCP server.

Read documentation

Installing

Installing this package requires WP-CLI v2.11 or greater. Update to the latest stable release with wp cli update.

Tip: for better support of the latest PHP versions, use the v2.12 nightly build with wp cli update --nightly.

To install the latest development version of this package, use the following command instead:

wp package install mcp-wp/ai-command:dev-main

Right now, the plugin requires a WordPress site with the AI Services plugin installed.

Reporting a bug

Think you’ve found a bug? We’d love for you to help us get it fixed.

Before you create a new issue, you should search existing issues to see if there’s an existing resolution to it, or if it’s already been fixed in a newer version.

Once you’ve done a bit of searching and discovered there isn’t an open or fixed issue for your bug, please create a new issue. Include as much detail as you can, and clear steps to reproduce if possible. For more guidance, review our bug report documentation.

Creating a pull request

Want to contribute a new feature? Please first open a new issue to discuss whether the feature is a good fit for the project.

Once you've decided to commit the time to seeing your pull request through, please follow our guidelines for creating a pull request to make sure it's a pleasant experience.

ai-command FAQ

Is this still maintained?
No. The project was archived in December 2025 and will get no further fixes or security updates. It does not point to any replacement, so treat it as an experiment rather than something to run against a live site.
Do I need an account key?
Yes. It cannot think on its own — it needs the AI Services plugin installed on the site and a paid model provider such as Google, Anthropic or OpenAI configured there, with that provider's key and billing.
Will it ask before changing my site?
Only if you add the approval option when you run it. Left at its default, it carries out whatever the model decides, including deleting things, with no prompt and no undo.
What exactly can it change?
Everything the WordPress command line can do on that site is offered as a tool — publishing and deleting posts, installing and removing plugins, editing users, even database commands. There is no read-only mode.
Does it respect who is allowed to do what?
No. While the command runs it overrides WordPress's permission checks so that every check passes, which is convenient for the tool and dangerous for a shared site.
Does it work straight out of the box?
Not quite. Because of a wiring mistake, the built-in WordPress and command-line tool sets are switched off unless you pass the skip option with a specific value — the opposite of what the documentation describes.
Can I use this to turn my notes into a blog post?
Yes, that is the flagship example — you point it at a file and ask for a post. You will need to add a file-reading server first, which the same command can install.
Which apps does it work in?
None — it is the app. You type into your own terminal rather than into Claude Desktop or Cursor. It can, however, connect out to other MCP servers you register with it.