PHPackages                             mcp-wp/ai-command - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [CLI &amp; Console](/categories/cli)
4. /
5. mcp-wp/ai-command

Abandoned → [wp-cli/ai-command](/?search=wp-cli%2Fai-command)ArchivedWp-cli-package[CLI &amp; Console](/categories/cli)

mcp-wp/ai-command
=================

1203126[1 issues](https://github.com/mcp-wp/ai-command/issues)PHPCI passing

Since Jul 28Pushed 6mo ago13 watchersCompare

[ Source](https://github.com/mcp-wp/ai-command)[ Packagist](https://packagist.org/packages/mcp-wp/ai-command)[ RSS](/packages/mcp-wp-ai-command/feed)WikiDiscussions main Synced 2w ago

READMEChangelogDependenciesVersions (2)Used By (0)

WP-CLI AI Command with MCP support
==================================

[](#wp-cli-ai-command-with-mcp-support)

[![Commit activity](https://camo.githubusercontent.com/e56947f231bc578ce7b9c6700012dbb965735dcae4b567f901399d5928d607ec/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f636f6d6d69742d61637469766974792f6d2f6d63702d77702f61692d636f6d6d616e64)](https://github.com/mcp-wp/ai-command/pulse/monthly)[![Code Coverage](https://camo.githubusercontent.com/352cd7f310e09601792ae09f235c5b147df5eadef02e14d239cc633c4f275696/68747470733a2f2f636f6465636f762e696f2f67682f6d63702d77702f61692d636f6d6d616e642f6272616e63682f6d61696e2f67726170682f62616467652e737667)](https://codecov.io/gh/mcp-wp/ai-command)[![License](https://camo.githubusercontent.com/b62f17e393ca30337d9ec2fa2d71f352112603e91abefed9b808dceef56461f0/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6d63702d77702f61692d636f6d6d616e64)](https://github.com/mcp-wp/ai-command/blob/main/LICENSE)

This WP-CLI command enables direct AI interactions with WordPress installations during development by implementing the [Model Context Protocol](https://modelcontextprotocol.io/) (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](https://camo.githubusercontent.com/022b8f9416888398b4dd09f537e6ea94bdeef312b9338c01bf3e731d083bf6fe/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f52656164253230646f63756d656e746174696f6e2d3234323832443f7374796c653d666f722d7468652d6261646765266c6f676f3d46696c6573266c6f676f436f6c6f723d666666666666)](https://mcp-wp.github.io/)

Installing
----------

[](#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](https://wordpress.org/plugins/ai-services) installed.

### Reporting a bug

[](#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](https://github.com/mcp-wp/ai-command/issues?q=label%3Abug%20) 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](https://github.com/mcp-wp/ai-command/issues/new). Include as much detail as you can, and clear steps to reproduce if possible. For more guidance, [review our bug report documentation](https://make.wordpress.org/cli/handbook/bug-reports/).

### Creating a pull request

[](#creating-a-pull-request)

Want to contribute a new feature? Please first [open a new issue](https://github.com/mcp-wp/ai-command/issues/new) 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](https://make.wordpress.org/cli/handbook/pull-requests/) to make sure it's a pleasant experience.

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance46

Moderate activity, may be stable

Popularity24

Limited adoption so far

Community23

Small or concentrated contributor base

Maturity16

Early-stage or recently created project

 Bus Factor2

2 contributors hold 50%+ of commits

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/841956?v=4)[Pascal Birchler](/maintainers/swissspidy)[@swissspidy](https://github.com/swissspidy)

---

Top Contributors

[![swissspidy](https://avatars.githubusercontent.com/u/841956?v=4)](https://github.com/swissspidy "swissspidy (69 commits)")[![davidmosterd](https://avatars.githubusercontent.com/u/182192?v=4)](https://github.com/davidmosterd "davidmosterd (35 commits)")[![janw-me](https://avatars.githubusercontent.com/u/1026882?v=4)](https://github.com/janw-me "janw-me (28 commits)")[![jdevalk](https://avatars.githubusercontent.com/u/487629?v=4)](https://github.com/jdevalk "jdevalk (28 commits)")[![moritzbappert](https://avatars.githubusercontent.com/u/6773669?v=4)](https://github.com/moritzbappert "moritzbappert (9 commits)")[![tomepajk](https://avatars.githubusercontent.com/u/16779157?v=4)](https://github.com/tomepajk "tomepajk (9 commits)")[![zzap](https://avatars.githubusercontent.com/u/1508963?v=4)](https://github.com/zzap "zzap (3 commits)")[![marcochiesi](https://avatars.githubusercontent.com/u/2298248?v=4)](https://github.com/marcochiesi "marcochiesi (1 commits)")[![skyminds](https://avatars.githubusercontent.com/u/762187?v=4)](https://github.com/skyminds "skyminds (1 commits)")

---

Tags

mcpmcp-clientmcp-hostmcp-serverwordpress

### Embed Badge

![Health badge](/badges/mcp-wp-ai-command/health.svg)

```
[![Health](https://phpackages.com/badges/mcp-wp-ai-command/health.svg)](https://phpackages.com/packages/mcp-wp-ai-command)
```

###  Alternatives

[seld/cli-prompt

Allows you to prompt for user input on the command line, and optionally hide the characters they type

24726.4M22](/packages/seld-cli-prompt)[illuminate/console

The Illuminate Console package.

13045.3M6.2k](/packages/illuminate-console)[styleci/cli

The CLI tool for StyleCI

71464.1k9](/packages/styleci-cli)[winbox/args

Windows command-line formatter

20718.9k21](/packages/winbox-args)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
