Skip to content

WordPress MCP: Connect Claude, ChatGPT and Cursor to Your Site

How to connect WordPress to Claude, ChatGPT, Cursor and Codex with MCP.

The words "WordPress MCP" in large black type above the MCP Adapter page in the WordPress.org plugin directory.

Which WordPress MCP route fits your site

Pick the route by where your site lives.

  1. WordPress.com: built-in server
  2. Self-hosted: MCP Adapter plugin
  3. Jetpack site: WordPress.com server
  4. Web Claude or ChatGPT: an OAuth plugin

Better Design

Direct answer

WordPress MCP is how AI agents such as Claude, ChatGPT and Cursor read and edit a WordPress site over the Model Context Protocol. WordPress.com has a built-in MCP server on every plan, free included. A self-hosted site uses the official WordPress MCP Adapter plugin, or a plugin such as AI Engine.

Published 26 November 2026 by the Better Design team. Checked that day on WordPress.org, WordPress.com, GitHub and npm.

Summary

WordPress.com
A built-in MCP server at https://public-api.wordpress.com/wpcom/v2/mcp/v1, on every plan including Free. You sign in with OAuth, and one connection reaches every site on your account.
Self-hosted WordPress
Install the MCP Adapter plugin, version 0.7.2 on WordPress.org, which needs WordPress 6.9 and PHP 7.4. Clients connect to /wp-json/mcp/mcp-adapter-default-server with an Application Password.
Jetpack
A self-hosted site connected through Jetpack can use the WordPress.com server with no Jetpack plan until 30 November 2026. After that it needs Jetpack AI or Jetpack Complete.
Plugins
AI Engine ships its own MCP server with OAuth for claude.ai and ChatGPT, so it does not need the MCP Adapter.
Cost
The WordPress.com server, the MCP Adapter and AI Engine's MCP server cost nothing. Your AI tool is billed by its own provider.
In core
Not yet. A 28 October 2026 proposal targets WordPress 7.3 for MCP, core abilities and OAuth sign-in, with no commitment.

What is WordPress MCP?

WordPress MCP is the use of the Model Context Protocol to connect an AI agent to a WordPress site. MCP is the open standard that lets Claude, ChatGPT, Cursor and Codex call outside tools. Once connected, you can ask the agent to write a draft, list your latest posts, reply to comments or check your plugins.

The agent acts as the WordPress user it signs in as. It can do only what that user's role allows, so an agent connected as an Editor cannot change plugins or site settings.

On a self-hosted site, what the agent can do comes from the Abilities API, in WordPress core since 6.9. An ability is one named action, such as "get site info" or "create a draft", with an input schema and a permission check. The MCP Adapter turns public abilities into MCP tools.

Read the WordPress Developer Blog post that introduced the MCP Adapter.

Which WordPress MCP server should you use?

Pick by where your site lives. The three routes connect to different servers and sign in in different ways.

  • "My site is on WordPress.com." Use the WordPress.com MCP server. It is built in, needs no plugin, and signs in with OAuth.
  • "My site is self-hosted and uses Jetpack." The same WordPress.com server works, free until 30 November 2026 and then with Jetpack AI or Jetpack Complete.
  • "My site is self-hosted, and I want the official route." Install the MCP Adapter. It is the WordPress AI Team's plugin, and it exposes the abilities your plugins register.
  • "I want to connect from claude.ai or ChatGPT on the web." Use WordPress.com, or a plugin with its own OAuth sign-in such as AI Engine. The MCP Adapter has no OAuth server.
  • "I want the agent to edit page builder layouts, WooCommerce or SEO fields today." Look at a plugin such as AI Engine. The MCP Adapter only shows the abilities your installed plugins provide.

Read Better Design's WordPress pricing guide for the WordPress.com plans.

How do you connect WordPress.com MCP to Claude, ChatGPT, Cursor and Codex?

Add the server to your AI tool, then sign in to WordPress.com in the browser window that opens. On the approval page, choose Full access or Read only.

  1. Claude: open Settings, then Connectors, then Browse connectors. Search for WordPress.com and connect it.
  2. ChatGPT: install the WordPress plugin for ChatGPT from the AI and MCP page in your WordPress.com account. A custom app in Developer Mode also works, on Plus, Pro, Team or Enterprise.
  3. Claude Code: run claude mcp add --transport http wpcom-mcp https://public-api.wordpress.com/wpcom/v2/mcp/v1, then type /mcp and sign in.
  4. Codex: run codex mcp add wpcom-mcp --url https://public-api.wordpress.com/wpcom/v2/mcp/v1. If the sign-in does not open, run codex mcp login wpcom-mcp.
  5. Cursor: type /add-plugin wordpress-com in the Cursor chat, or select Add to Cursor on the plugin's Marketplace page.
  6. VS Code and other clients: add the server URL in the client's MCP settings. The OAuth 2.1 flow opens in your browser.
  7. Test it: ask "List my WordPress.com sites" and check the answer.

Read and Write tools are grouped as Content Authoring, Site Editing, Site Editor Context, Site, Account, User Management, Plugin Management and Other. You can switch whole groups or single tools on or off under Preferences, then AI and MCP. Changes the agent makes show in your site's Activity Log.

Read the WordPress.com MCP developer docs.

How do you install the WordPress MCP Adapter on a self-hosted site?

Install the plugin, create an Application Password for the user the agent will act as, and add your site's MCP address to the client. The site-owner guide puts it at about ten minutes.

  1. Check the site runs WordPress 6.9 or newer, PHP 7.4 or newer, and HTTPS. WordPress hides Application Passwords on sites without HTTPS, except local ones.
  2. In wp-admin, go to Plugins, then Add New Plugin, search for MCP Adapter by WordPress.org, and activate it. With WP-CLI, run wp plugin install mcp-adapter --activate.
  3. Create a user for the agent with the lowest role that can do the job, such as Editor rather than Administrator.
  4. Go to Users, then Profile for that user. Under Application Passwords, add a name such as "Claude on my laptop" and copy the password. WordPress shows it once.
  5. Your server address is the Site Address from Settings, then General, followed by /wp-json/mcp/mcp-adapter-default-server.
  6. Add the server to your client, as in the next section.
  7. Test it: ask "List the WordPress abilities you can use on my site." An empty list still means the connection works.

Read the MCP Adapter site-owner guide on GitHub.

How do you connect the MCP Adapter to Claude Code, Claude Desktop and Cursor?

Claude Code and other clients that accept a URL and a header connect over HTTP. Claude Desktop, Cursor, VS Code and Windsurf use a small helper on your computer, started with npx.

Claude Code
Join your username and Application Password with a colon and encode them in base64. Then run claude mcp add --transport http my-wordpress-site https://example.com/wp-json/mcp/mcp-adapter-default-server --header "Authorization: Basic <base64>".
Claude Desktop and Cursor
Add an mcpServers entry that runs npx -y @automattic/mcp-wordpress-remote@latest. Set WP_API_URL to your server address, and WP_API_USERNAME and WP_API_PASSWORD to the user and the Application Password. The helper is at version 0.5.5 on npm.
A local site with WP-CLI
Point the client at wp mcp-adapter serve --user=admin --server=mcp-adapter-default-server --path=<your site folder>. This route needs no password and keeps the site private.
A local site and a remote agent
Open a tunnel, for example with ngrok or Cloudflare Tunnel, and use its public address.

The npx helper needs Node.js. If the client says "npx: command not found", install Node.js and restart the app.

Read Better Design's Claude Code MCP configuration guide.

Why does the agent connect but find nothing to do?

The WordPress MCP Adapter adds no features on its own. It shows three tools, to discover, describe and run abilities, and only abilities marked public reach them. WordPress 6.9 ships three: core/get-site-info, core/get-user-info and core/get-environment-info.

  • Install a plugin that makes abilities available for the job, or ask your plugin's developer whether it supports the Abilities API.
  • The AI plugin's content abilities, such as core/read-content, are off by default since its version 1.3.0. Turn on the Custom Abilities experiment under Settings, then AI, then Admin Experiments.
  • A permission error means the connected user's role cannot do that action. Connect as a user with the right role.
  • Developers: register the ability on the wp_abilities_api_init hook with a registered category, and set meta.public to true. Without a category the ability does not register, and with WP_DEBUG off WordPress shows no notice, per the adapter docs.

Read the MCP Adapter guide to creating abilities.

Can claude.ai or ChatGPT connect to a self-hosted WordPress site?

Not through the MCP Adapter alone. The web versions of Claude and ChatGPT add connectors with an OAuth sign-in and have no field for an Application Password. WordPress has no OAuth server, and the adapter does not add one.

Use a desktop client or Claude Code instead, connect the site through Jetpack to the WordPress.com server, or install a plugin that adds OAuth. AI Engine's MCP server, for example, signs in with OAuth and is listed in Claude's connectors directory.

Is WordPress MCP free?

Yes, the servers are. WordPress.com includes MCP on the Free, Personal, Premium, Business and Commerce plans at no extra cost. The MCP Adapter is a free plugin under GPL-2.0-or-later.

AI Engine's MCP server is part of its free plugin, and its Pro version adds tools for plugins, themes, the database, WooCommerce and page builders. For Jetpack sites the free window ends 30 November 2026. Claude, ChatGPT, Cursor or Codex still bill you on their own plans; ChatGPT custom apps need a paid plan.

Read the WordPress MCP pricing table on WordPress.com.

Why does WordPress MCP fail with 401, rest_no_route or "Authorization failed"?

Most failures are a password, a permalink or a firewall problem on the site, not a fault in the client. These come from the MCP Adapter guide and 2026 WordPress.org support threads.

401 Unauthorized
Use the login name or email, not the display name, and check the Application Password was copied in full. Some Apache setups strip the Authorization header; the standard WordPress .htaccess passes it through.
No Application Passwords section
The site is not on HTTPS, or a security plugin or host turned them off.
rest_no_route or a 404 page
With plain permalinks, use https://example.com/?rest_route=/mcp/mcp-adapter-default-server. Otherwise, save Settings, then Permalinks again, and check the plugin is active.
"Authorization with the MCP server failed" in Claude
In one thread, Cloudflare's "Manage AI bots" rule blocked Claude's requests despite an Allow rule. In another, the host answered every /.well-known/ address itself, so Claude could not find the OAuth details.
A caching plugin breaks the sign-in
Exclude your MCP addresses from the page cache.
An old mcp.js or /sse entry in your config
AI Engine removed that bridge in version 3.6. Reconnect over Streamable HTTP.

Read the WordPress.org thread on a Cloudflare rule blocking Claude.

Is MCP coming to WordPress core?

It is proposed, not decided. On 28 October 2026 the WordPress AI team proposed bringing MCP, a set of core abilities and OAuth sign-in for agents into WordPress 7.3, using the 7.2 cycle to lay the groundwork. The post says inclusion depends on technical readiness, security and normal core review.

WordPress.org's version API returned 7.1.5 as the current release on 26 November 2026. Until MCP is in core, self-hosted sites need the MCP Adapter or another plugin.

Read the "WordPress for the Agentic Web" proposal.

Is it safe to let an AI agent edit your WordPress site?

  • Connect as a dedicated user with the lowest role that can do the job, rather than your own administrator account.
  • Create one Application Password per client and device, so you can revoke one without breaking the others.
  • Start with Read only on WordPress.com, or with read-only abilities on a self-hosted site.
  • Try write actions on a staging copy first and keep backups. On WordPress.com, deleted posts and pages stay in the trash for 30 days, but deleted media, categories and tags are gone.
  • Disconnect the client under Security, then Connected applications on WordPress.com, or revoke its Application Password under Users, then Profile.

How we checked this guide

On 26 November 2026 we read the MCP Adapter README, its site-owner and abilities guides, and its WordPress.org page through the plugin API. We also read the WordPress.com MCP docs and support pages, the npm entry for the helper, and the October proposal. The errors come from WordPress.org support threads. We did not connect a live WordPress site for this guide.

Want the pages your agent builds to match your brand?

An MCP connection lets an agent write and publish. It does not tell the agent how your brand looks. Better Design is an MCP server we make. It gives Claude Code, Cursor or Codex your colors, type and components before they build a page or theme. A free account gets 300 tool calls in 30 days.

See how Better Design works with coding agents.

Frequently asked questions