An MCP server lets an AI assistant like Claude, ChatGPT or Cursor work directly in your WordPress site. Instead of you copying text back and forth, the assistant can look up your posts, check your settings and, if you let it, write drafts and make changes, all from a conversation. MCP, short for Model Context Protocol, is the open standard that makes this work across different AI apps and services.
This is the opposite direction from the AI features built into WordPress 7.0, where your site calls an AI provider. If that’s what you’re after, see How to connect an AI provider to WordPress with Connectors instead. In this tutorial, we’ll set up an MCP server, so that an AI assistant can work in your site.
How you do that depends on where your site is hosted, and the options are very different from each other, so let’s start there.
Pick your route
| Your site | Route | Works with |
|---|---|---|
| On WordPress.com, or self-hosted with Jetpack | The WordPress.com MCP server | Claude, ChatGPT, Claude Code, Cursor, VS Code, Codex and others |
| Self-hosted, and you’re comfortable with the command line | The official MCP Adapter plugin | Claude Code, Claude Desktop, Cursor, VS Code |
| Self-hosted, and you want to use Claude or ChatGPT in the browser | A third-party MCP plugin | Depends on the plugin |
The two official routes are both called WordPress MCP, but they do very different things today. The WordPress.com server comes with hundreds of tools for managing posts, pages, media, comments and settings. The MCP Adapter is a building block that, on its own, can only read information from your site. We’ll go through both.
On WordPress.com and Jetpack sites
If your site is on WordPress.com, it already has an MCP server, and there’s nothing to install. Self-hosted sites connected with Jetpack can use the same server. This site runs on WordPress.com, and I’ve been managing it through Claude this way for weeks: quickly updating old content with links to new tutorials, editing glossary entries and checking stats.
When I moved WP Glossary to its new home in the WordPress glossary here on andersnoren.se, I had Claude use the WordPress.com MCP server to read through every entry on the old site, flag anything incorrect or outdated, and write the scripts that imported the entries and their images.
MCP access is included on all paid WordPress.com plans. Self-hosted Jetpack sites need a Jetpack AI or Jetpack Complete plan. Free sites, and Jetpack sites without one of those plans, can use it through November 30, 2026.
Connect Claude or ChatGPT
- In Claude, go to “Settings” → “Connectors”, find WordPress.com in the directory and click “Connect”. In ChatGPT, install the WordPress plugin instead.
- A WordPress.com window opens. Log in with the account that manages your site.
- Choose “Full access” or “Read only”, and click “Allow”. If MCP isn’t turned on for your account yet, the button says “Allow & turn on agent access”, and turns it on for you.
That’s it. Start a new chat and ask something like “What are my five most recent posts?” to check that it works.
Sign-in uses OAuth, so you never paste a password into the AI app, and you can revoke access at any time under “Security” → “Connected applications” in your WordPress.com account.
From there, you just ask. A few things I’ve asked Claude to do on this site:
- “Which posts got the most views this week?”
- “I’ve renamed my Connectors tutorial. Give me a list of every post that links to it, with the link text.”
- “Check that all the plugin entries in the glossary link back to their related terms.”
- “Create a glossary entry for ZIP file with an outline, and save it as a draft.”
Connect Claude Code, Cursor or Codex
Coding tools connect to the same server, at https://public-api.wordpress.com/wpcom/v2/mcp/v1. In Claude Code, run:
claude mcp add --transport http wpcom-mcp https://public-api.wordpress.com/wpcom/v2/mcp/v1
Then start Claude Code, run /mcp, select wpcom-mcp and choose “Authenticate” to log in. In Cursor, type /add-plugin wordpress-com in the chat. In Codex, run codex mcp add wpcom-mcp --url https://public-api.wordpress.com/wpcom/v2/mcp/v1. For other apps, add the server URL in the app’s MCP settings, and log in when the browser opens.
Choose what the assistant can do
Under “Preferences” → “AI and MCP” in your WordPress.com account, you can turn individual tools on and off, limit MCP to specific sites, or keep the assistant to read-only tools. Every change it makes shows up in your site’s Activity Log, so you can see what it did. Depending on your settings and the app, the assistant will also ask you before it makes changes. I recommend keeping that on, and reading what it’s about to do before you say yes.
The assistant can only do what your WordPress user can do, so an editor can manage posts and comments, but not plugins or settings.
On self-hosted sites, with the MCP Adapter
For self-hosted sites, the official route is the MCP Adapter plugin, made by the WordPress AI team. It turns your site into an MCP server, and makes the site’s “abilities” available to AI apps. Abilities are a WordPress feature, added in 6.9, that lets WordPress and plugins describe the things they can do in a standard way.
Before you start, you’ll need:
- WordPress 6.9 or later.
- HTTPS. Application Passwords, which we’ll use to log in, only work over HTTPS. Local development sites are the exception, as long as their environment type is set to “local”, which tools like WordPress Studio do for you.
- An AI app that supports MCP with custom headers, like Claude Code, Claude Desktop, Cursor or VS Code. Claude and ChatGPT in the browser sign in to custom servers with OAuth, which the MCP Adapter doesn’t support.
Install the plugin and create a password
- Go to “Plugins” → “Add New Plugin”, search for “MCP Adapter”, and install and activate it. The plugin creates an MCP server at
https://example.com/wp-json/mcp/mcp-adapter-default-server, with your own domain in place of example.com. - Go to “Users” → “Profile”, and scroll down to “Application Passwords”.
- Enter a name for the app you’re connecting, like “Claude Code”, and click “Add New Application Password”.
- Copy the password. It’s only shown once.
The AI app will act as the user you create the password for, with that user’s permissions. More on picking the right user below.
Connect Claude Code
In your terminal, run this command, with your site’s address, your username and the password you copied (spaces included):
claude mcp add --transport http my-wordpress-site \ https://example.com/wp-json/mcp/mcp-adapter-default-server \ --header "Authorization: Basic $(printf 'username:application-password' | base64 | tr -d '\n')"
The last line turns your username and password into the format WordPress expects. It works in the macOS and Linux terminals. On Windows, run it in Git Bash, which comes with Git for Windows. Then start Claude Code and run /mcp. Your site should be listed as connected, with three tools.

Connect Claude Desktop, Cursor or VS Code
Apps that are set up with a JSON configuration file connect through a small helper, @automattic/mcp-wordpress-remote, which needs Node.js 22 or later on your computer. In Claude Desktop, open the file from “Settings” → “Developer” → “Edit Config”. In Cursor, it’s ~/.cursor/mcp.json. Add your site:
{ "mcpServers": { "my-wordpress-site": { "command": "npx", "args": [ "-y", "@automattic/mcp-wordpress-remote@latest" ], "env": { "WP_API_URL": "https://example.com/wp-json/mcp/mcp-adapter-default-server", "WP_API_USERNAME": "username", "WP_API_PASSWORD": "application-password", "OAUTH_ENABLED": "false" } } }}
VS Code uses the same settings in a .vscode/mcp.json file, but with "servers" in place of "mcpServers", and "type": "stdio" added above "command". Save the file and restart the app.
What you get out of the box
Ask the assistant which WordPress abilities it can use, and you’ll probably be a little underwhelmed. On WordPress 7.2, which comes out on December 8, there are six, and all of them only read information: the site’s details and settings, users, posts and pages, and the server environment. On 7.1, you’ll only see the first three.

Frustrating as this might be, it’s by design. Abilities are private until whoever registered them marks them as public, and WordPress itself doesn’t include any abilities for writing or editing content yet. The MCP Adapter is the door, and plugins decide what goes through it. As more plugins register abilities, the assistant will be able to do more, and you can register your own, which I’ll probably cover in a future tutorial.
So if you want an assistant to write and edit content on a self-hosted site today, the MCP Adapter alone won’t get you there.
Troubleshooting
If your site doesn’t show up as connected, it’s usually one of these:
- 401 Unauthorized. WordPress didn’t accept the login. Check that you used your username and an Application Password, not your regular password. If both are right, your server might be removing the login details before they reach WordPress, which happens on some servers running PHP in CGI or FastCGI mode. “Tools” → “Site Health” checks for this, and your host can fix it.
- 404 Not Found. Check that the MCP Adapter plugin is activated. If your site uses plain permalinks, under “Settings” → “Permalinks”, the
/wp-json/address doesn’t work. Usehttps://example.com/?rest_route=/mcp/mcp-adapter-default-serverinstead. - No “Application Passwords” section on your profile. The site isn’t using HTTPS, or a plugin has turned Application Passwords off. Wordfence, for example, has a setting for it.
- The app shows old tools, or none at all. Apps remember the list of tools from when they connected. Restart the app, or reconnect from
/mcpin Claude Code.
Third-party MCP plugins
Search the plugin directory for “MCP”, and you’ll find plenty of plugins that fill the gaps: hundreds of tools for content, media and settings, OAuth so that Claude and ChatGPT can connect in the browser, and admin screens with logs of what the assistant did. Some are built on the MCP Adapter, others run their own server.
I obviously haven’t tested them all, so I won’t recommend one. But since these plugins give an AI app access to your site, look closely before you install one. Check who makes it, how recently it was updated, whether it keeps a log of what the assistant does, and whether you can limit which tools are available.
Staying safe
Whichever route you choose, you’re giving software the keys to your site. A few habits go a long way:
- Use the lowest role that works. If the assistant only needs to write drafts, connect it as an author or editor, not an administrator.
- One password per app. Create a separate Application Password for each app, so you can revoke one without breaking the others. You’ll find a “Revoke” button next to each one under “Users” → “Profile”.
- Try it on a staging site first. Especially before you give an assistant write access to a live site.
- Treat your content as untrusted. An assistant reads whatever is on your site, including comments and form submissions, and text in them can try to give it instructions. Keep confirmations on, and read what the assistant is about to do.
What’s next?
AI is moving quickly, and WordPress is no exception. Next to the hundreds of tools on WordPress.com, the MCP Adapter might seem a bit underwhelming for now. But it’s the foundation that WordPress and its plugins will build on, and there’s no telling where we’ll be six months from now.