Easy MCP AI is a WordPress plugin that turns a site into an MCP server, so an AI tool such as Codex can read and edit it directly. I installed it on a throwaway WordPress site, connected Codex, and gave it the jobs an editor does in a week: drafts, edits, images, menus, block pages and a publish it wasn’t allowed to make.
What makes it easy is that nothing runs outside WordPress. The server is PHP inside the plugin, a token is one click, and Codex needs four lines of config. The second half is the layer around the tools: access levels, approvals, audit logs, and a set of hooks and constants that let a site owner write their own rules. I tested both halves.
Three steps to connected

The plugin comes from Themeisle and adds an Easy MCP AI menu to wp-admin. Its server lives at /wp-json/easy-mcp-ai/v1/mcp on the site and speaks streamable HTTP. You sign in with a hashed API token, or with OAuth for clients that support it. I used tokens: one with full access and one read-only, both made from the Tokens tab in the admin.
The dashboard has a Codex card that hands you an npx mcp-remote command. Codex also talks to streamable HTTP servers natively, so I pointed it straight at the site. This is the whole config, with the token held in an environment variable:
[features]
apps = false
[mcp_servers.wordpress]
url = "https://your-site.example/wp-json/easy-mcp-ai/v1/mcp"
bearer_token_env_var = "WP_MCP_TOKEN"
Codex adds its own approval step for some tools, including media upload from a URL, site settings and my custom writing ability below. For unattended runs I set approval_mode = "approve" on those tools in the config, which leaves the plugin’s checks in charge.

A fresh install lists 179 tools covering posts, pages, media, menus, blocks, comments, users, plugins, themes, site settings, revisions and an audit log, and it switches 131 of them on. Risky ones, such as changing site settings, start switched off. The plugin’s own pages quote anywhere from 170 to 300 tools depending on the page; the Tools screen on my install showed 179.
The test bench
Everything ran on a throwaway WordPress 7.1 site with Easy MCP AI 2.5.2, on a cloud box with 4 cores, 16 GB RAM, Ubuntu 24. Codex was the CLI at version 0.174.0 on its default model, GPT-6.2 Sol, signed in with a ChatGPT login. No live site was involved. Each task is one fresh Codex session with one prompt.
First, the interactive Codex, the way an editor would use it. The prompt, typed in:
Create a draft post called "Meet the roaster" with two short paragraphs about our Saturday launch, and give me the edit link.
The rest of the tasks ran headless. Here’s every prompt, word for word.
Using the wordpress MCP server, tell me the site title, the active theme and which plugins are installed. Reply in one short paragraph.
Write a draft blog post called "How we roast a small batch" for Kauri Coffee Roasters, about 150 words on small-batch roasting. Put it in a new category called "Roastery notes" and tag it "coffee" and "roasting". Keep it as a draft and tell me its ID.
Find the draft post "How we roast a small batch". Change the second paragraph so it mentions the first crack, add a short heading before the last paragraph, and tell me exactly what you changed.
Upload https://www.gstatic.com/webp/gallery/1.jpg to the media library, set its alt text to "Roasted coffee beans in a scoop" and its caption to "Fresh out of the roaster", then make it the featured image of the draft "How we roast a small batch".
Create three pages (About, Shop, Contact) as drafts with one sentence of placeholder text each. Then create a menu called "Main" with links to Home, About, Shop and Contact, in that order.
Build a page called "Visit the roastery" as a draft using Gutenberg blocks: a cover block with a heading and a one-line subheading, a three-column section about opening hours, beans and brewing classes, and a button that links to the Contact page. Then read the page back and confirm the block structure is valid.
Show me what changed in the post "How we roast a small batch" since it was created, then undo the last change.
Show me the last ten entries in the audit log: which tool, which client, and whether each call worked.
| Task | Time | Tokens | Result |
|---|---|---|---|
| Site look-up | 13 s | 28,325 | Title, theme and three plugins, all correct |
| Create a draft | 24 s | 30,029 | Post ID 7 with new category and two tags |
| Edit the draft | 26 s | 31,448 | Paragraph rewritten, H2 added, reported exactly |
| Media and featured image | 29 s | 28,550 | Uploaded, alt text and caption set, attached |
| Pages and a menu | 22 s | 25,488 | Three drafts, menu in the order asked |
| Block page | 35 s | 40,660 | Cover, three columns and a button, read back |
| History and undo | 42 s | 83,990 | Two changes listed, featured image removed |
| Audit log | 14 s | 37,838 | Ten entries with tool and outcome |
All eight finished. The block page is the one worth looking at, because Codex had to produce valid Gutenberg markup and then read it back through the plugin’s block tools. This is the saved draft, rendered:

The history task used the plugin’s undo. It keeps a change history for every post it touches, with diff and apply tools. Codex listed both edits, matched each to its time and removed the featured image it had set a minute earlier.
Four checks on every call

Every call runs as the WordPress user the token belongs to, so it can never do more than that user can. On top of that, a token has an access level: full, read-only, or a custom list of allowed tools. Each tool then has its own switch, and tools that can’t be undone can be held for approval. The plugin also has draft mode, a rate limit, an IP allowlist and an audit log.
I tested the refusals on purpose. Two prompts, each against a different lock:
Change the site tagline to "Small batches, roasted weekly".
Publish the draft post "How we roast a small batch".
The tagline tool ships switched off. Codex tried, saw the tool was disabled, left the tagline blank and told me where in the admin to turn it on. The publish prompt ran on the read-only token. Codex found the draft, saw that its grant excluded wp_update_post, left the post as a draft and pointed me at the editor. In both cases the plugin refused plainly and Codex relayed the reason.
Switching the tagline tool on is two clicks in the Tools page. The plugin also ticks Require approval for it automatically, because changing site settings can’t be undone from inside the tool.
I ran the tagline prompt again. This time Codex got back a link and a message: WordPress needed approval for that exact change, and would accept it for 15 minutes.
I clicked Approve, then told Codex to apply it. It changed the tagline and read the settings back to confirm. The approval is single-use and tied to the exact arguments, so Codex can’t reuse it for a different change. The round trip took 27 seconds of Codex time across the two prompts, plus my click.
I approved the tagline change in WordPress. Apply it now: change the site tagline to "Small batches, roasted weekly", then read the site settings back and confirm.

The audit log task showed one gap. Every entry was marked as made with an API key, and the client column read “unrecorded” for all ten. You can see which tool ran and whether it worked, but a token-based call doesn’t say which AI client made it.
Extending it

Abilities are only one way in. The plugin has six extension points, and I built and ran three of them with Codex: abilities, hooks and a wp-config constant. The other three I checked in the plugin’s source: filters, REST route control and the built-in integrations.
Abilities: your own tools
WordPress has an Abilities API where any plugin can register a named action with a schema and a permission check. Easy MCP AI bridges those into MCP tools, named wp_ability_ plus the ability’s name. So a small plugin is all it takes to give Codex a new tool. This one belongs to the fictional Kauri Coffee Roasters, and it answers from the roast schedule:
add_action( 'wp_abilities_api_init', function () {
wp_register_ability( 'kauri/roast-schedule', array(
'label' => 'Get roast schedule',
'description' => 'Returns which beans are roasted on which weekday, and the next roast day.',
'category' => 'kauri',
'input_schema' => array(
'type' => 'object',
'properties' => array( 'weekday' => array( 'type' => 'string' ) ),
),
'execute_callback' => function ( $input ) {
$schedule = array(
'Tuesday' => 'Ethiopia Guji (light)',
'Thursday' => 'Colombia Huila (medium)',
'Saturday' => 'Kauri Blend (dark)',
);
return array( 'schedule' => $schedule, 'next' => 'Tuesday' );
},
'permission_callback' => function () {
return current_user_can( 'edit_posts' );
},
'meta' => array(
'annotations' => array( 'readonly' => true, 'destructive' => false ),
'show_in_rest' => true,
),
) );
} );
I added a second ability that writes, kauri/log-tasting-note, which saves a bean, a score and a note. Once the plugin was active, both showed up in the Tools page under Kauri. The read-only ability arrived switched on and the writing one arrived off, because the plugin sorts tools into Read, Write and Destructive from the annotations. I switched the writing one on from the page.
What is on the Kauri roast schedule for Friday? Use the roastery tool, not the posts.
Log a tasting note for the Huehue Colombian bean: score 88, note "Red apple, brown sugar, clean finish". Then show me the saved notes.
Codex called the schedule ability. The full version returns a plain “No roast on Friday” error for days without a roast, and Codex read that, asked again for the whole schedule and told me Saturday is Kauri Blend. On the second prompt it logged the note, and the saved option held exactly the bean, the score of 88 and my wording.
Hooks: block or log a call
The plugin fires actions before and after every tool call, and any exception thrown in the before-hook stops the call and sends its message back to the AI. I put three rules in a must-use plugin: a publishing freeze, a marker on anything an AI saved, and a one-line log of every call. This is the freeze:
add_action( 'easy_mcp_ai_before_tool_call', function ( $tool, $args, $context ) {
if ( get_option( 'kauri_launch_freeze' )
&& in_array( $tool, array( 'wp_create_post', 'wp_update_post', 'wp_create_page', 'wp_update_page' ), true )
&& isset( $args['status'] ) && 'publish' === $args['status'] ) {
throw new RuntimeException( 'Publishing is frozen until the roastery launch on Saturday. Save as a draft instead.' );
}
}, 10, 3 );
Publish the draft post "How we roast a small batch".
Edit the draft post "How we roast a small batch": add one sentence at the end about resting the beans for a day. Keep it as a draft.
With the freeze on, Codex tried to publish and got the exact message I wrote. It told me publishing was frozen until Saturday and left the post as a draft. The draft edit went through, WordPress stamped the post with an AI-edited time, and the log file recorded the failed update, the successful one and every read between them. About ten lines of site code changed what the same token could do.
Constants: rules nobody can click away
Settings in the admin can be changed by any administrator. Constants in wp-config.php can’t. The plugin reads a family of them, such as EASY_MCP_AI_TOOLS for tool switches, EASY_MCP_AI_REST_NAMESPACES for which REST areas can be reached, and others for draft mode, rate limits, the IP allowlist, token handling and branding. A WP-CLI command exports the current configuration so you can copy it between sites. I locked delete off:
define( 'EASY_MCP_AI_TOOLS', 'wp_delete_post=off,wp_trash_comment=off' );
Permanently delete the draft post "Scrap me".
Codex found the post, saw that wp_delete_post was disabled, and left it in Drafts. The post was still there afterwards.
Filters, REST routes and built-ins
Beyond what I ran, the plugin exposes filters for the approval rule, who may connect, rate limits, trusted proxies, allowed origins, OAuth lifetimes and how much noise comes back in responses. Four REST tools reach any REST route that a plugin registers, with a switch per namespace, so a plugin with its own API is reachable without writing an ability. And it ships integrations for WooCommerce, ACF, The Events Calendar, BuddyPress, several SEO plugins and analytics services, which show up as tools when those plugins are active.
Where it sits
WordPress now has an official MCP Adapter that exposes registered Abilities to MCP clients. Easy MCP AI covers that bridge and adds the built-in tool catalogue, token access levels and the approval pages on top. WordPress.com offers its own hosted MCP service for sites on its platform. The difference for a self-hosted site is where the server lives: here it’s in your own PHP, behind your own login, and your own rules sit beside it.
Set it up yourself
- Install Easy MCP AI from the WordPress plugin directory and activate it.
- Open Easy MCP AI, go to the Tokens tab and create a token. Pick read-only first if you want to look around.
- Put the token in an environment variable and add the four-line server entry to Codex’s config.toml.
- Open Tools and switch on only what you want. Tick Require approval on anything you couldn’t undo.
- Add a must-use plugin with your own hooks for any rule the settings page can’t express.
Keep experiments on a staging copy first. The plugin gives the AI the same power as the user behind the token, and a full-access token on an administrator can change a lot.
Sources
Disclosure: I’m an OpenAI, Firecrawl and Devin ambassador.




