GoBuildWP

WordPress MCP

WordPress MCP vs the REST API: which one should an AI client use?

How WordPress MCP differs from the REST API for AI clients: tool discovery, permissions, review and undo, and when the REST API is still the right choice.

By GoBuildWPPublished Reviewed Reading time 4 min read

In this article 7 sections

Use the REST API when you are writing code that already knows which resource it wants and what shape the request takes. Use MCP when an AI client has to find out, at runtime, what it is allowed to do on a site and then do it under a real WordPress user's permissions. The two are not rivals. On a GoBuildWP site the MCP server is itself a REST route, /wp-json/mcp/wppilot, so MCP sits on top of the REST API rather than replacing it. WP-CLI is a third option for deliberate scripts run by someone with shell access.

See WordPress MCP server for how the server works.

What each one is for


REST API

WP-CLI

MCP

Who calls it

Code you wrote

A person or script with shell access

An AI client such as Claude, ChatGPT or Cursor

How the caller learns what exists

Docs, then hard-coded requests

wp help, then a script

The client lists typed tools and their input schemas when it connects

Who it runs as

Whatever user the credential belongs to

The user passed to --user, or none

The WordPress user who signed in, inside that user's capabilities

Extra limits on top of WordPress roles

None by default

None by default

Whatever the MCP server enforces: with GoBuildWP, the safety profile, enabled abilities and confirmation rules

What a change leaves behind

Nothing beyond WordPress's own revisions

Nothing beyond WordPress's own revisions

With GoBuildWP, an entry in the change ledger, with rollback for reversible changes

Why an AI client needs more than endpoints

A REST endpoint describes a resource. It does not tell a model which calls are safe on a live site, which ones change something site-wide, or which need a person to agree first. An agent given a REST credential and a list of routes has to guess those things, and the only guardrail is the user's role.

MCP moves those decisions to the server. When the client connects, the server lists the operations it allows, each with a typed input schema and a description written for the model. With GoBuildWP the list a client sees is the intersection of three things: the abilities registered on the site, the active safety profile, and the signed-in user's capabilities. Prompt text cannot widen it.

Where the Abilities API fits

WordPress 6.9 added the Abilities API to core: a way for WordPress and plugins to register named operations with input and output schemas and a permission check. MCP servers build on it. The WordPress MCP Adapter turns registered abilities into MCP tools, and plugin servers such as GoBuildWP ship their own abilities on the same foundation. The WordPress Abilities API guide shows how to register one.

What GoBuildWP adds on top of the REST API

  • Safety profiles. Read Only lets a client discover and read. Production Safe allows content and supported plugin edits while raw PHP, the filesystem, the database and plugin installs stay blocked. Developer Full Access is for staging. Calls marked destructive need explicit confirmation on every profile.
  • A preview before a write. preview-ability computes what another ability would change, returns a diff and a wp-admin link where a person can apply or discard it, and leaves the target untouched.
  • A change ledger. Supported writes are recorded. rollback-change puts back one reversible change and checks the result against the stored before-image; undo-session reverses everything one agent session did, newest first.
  • Sign-in built for clients. OAuth 2.1 with PKCE where the client supports it, so the client never holds a WordPress password, or an Application Password where it cannot run a browser flow.

Limits, stated plainly

  • MCP does not make a model correct. It narrows what the model can reach and records what it changed; you still review the output.
  • Rollback covers reversible changes the ledger recorded. It is not a site restore and does not undo database changes made outside GoBuildWP.
  • A REST integration you wrote yourself is still the better choice for fixed, high-volume jobs such as a sync between two systems. MCP's discovery step and per-call checks add nothing there.

Free and Pro

GoBuildWP Free includes the MCP server, OAuth and Application Password sign-in, the three safety profiles, the change ledger with session undo, and abilities for core WordPress work. GoBuildWP Pro adds full modules for supported plugins and an approval queue that holds an agent's writes for a person to approve. See Pro pricing.

Call to action

Start free: install GoBuildWP Free, connect one client in Read Only, and compare its tool list with what your REST credential can reach.

Frequently asked questions

Is MCP a replacement for the WordPress REST API?

No. MCP is a protocol for AI clients, and on a GoBuildWP site it runs as a REST route. Code that already knows the request it needs should keep calling the REST API directly.

Can I give an AI agent an Application Password and let it use the REST API?

You can, but the agent then has every permission the user has, with no list of safe operations, no preview and no ledger. If you do it, use a dedicated low-privilege user and revoke the password when the work ends.

What is MCP in WordPress?

A server on your site that lists what the site can do as typed tools, so an AI client can discover and call them. Each call runs as a real WordPress user, inside that user's capabilities.

When should I use WP-CLI instead?

For deliberate maintenance scripts run by someone with shell access, such as search-replace after a migration. GoBuildWP's own `run-wp-cli` ability is critical and only available under Developer Full Access.

Does MCP need Node.js on the server?

No. GoBuildWP runs inside WordPress's PHP process. Node is needed only on the machine running a client entry that starts `npx`.

Start in Read Only. Expand when it has earned it.

Install the free plugin, connect your AI client, and see exactly what it can reach before it changes anything.