Skip to content

WordPress.com MCP Server

WordPress.com includes a built-in MCP (Model Context Protocol) server that connects your WordPress.com account and sites to MCP-enabled AI agents, such as Claude Desktop, VS Code, and Cursor.

How WordPress.com MCP works

WordPress.com exposes an MCP server for AI agents, at https://public-api.wordpress.com/wpcom/v2/mcp/v1. One connection reaches every site on your account, and one catalog of tools serves all of them. For what MCP is and how your data is handled during a request, see Connect an external AI agent to WordPress.com.

Self-hosted WordPress sites connected through the Jetpack plugin use this same server. There is no separate Jetpack MCP server to set up—a Jetpack-connected site gets the same catalog of MCP tools as a site hosted on WordPress.com. Learn how to enable MCP on a Jetpack-connected WordPress.org site.

Requirements

To connect your AI agent application to WordPress.com, you need:

The WordPress.com MCP server uses OAuth 2.1 for authentication, which handles the connection and authorization through your web browser; no additional software installation is required.

Connect your AI client

There is no account setting to change before you connect. If MCP is off for your account, it switches on when you approve the connection in your browser.

Connect any MCP-enabled AI client with the WordPress.com MCP server URL:

https://public-api.wordpress.com/wpcom/v2/mcp/v1

Claude Desktop

Claude Desktop connects to WordPress.com through the built-in Connectors Directory. For step-by-step setup instructions, see Edit your site with Claude.

Claude Code

Claude Code connects by adding the WordPress.com MCP server to your local config file.

Run the following command in your terminal to add the MCP server:

claude mcp add --transport http wpcom-mcp https://public-api.wordpress.com/wpcom/v2/mcp/v1

Then, when using Claude Code, run the /mcp slash command to authenticate the wpcom-mcp server with your WordPress.com account.

ChatGPT

ChatGPT connects to WordPress.com through the WordPress plugin in ChatGPT. For step-by-step instructions, see Edit your site with ChatGPT.

Codex

Codex connects by adding the WordPress.com MCP server to your local config file.

Run the following command in your terminal to add the MCP server:

codex mcp add wpcom-mcp --url https://public-api.wordpress.com/wpcom/v2/mcp/v1

Codex will auto-detect that the WordPress.com MCP server needs to be authenticated, and trigger the OAuth authentication flow.

To authenticate manually, run the following command:

codex mcp login wpcom-mcp

Cursor

Cursor connects to WordPress.com through the WordPress plugin on the Cursor Marketplace.

Run the following command in the Cursor chat to install it:

/add-plugin wordpress-com

You can also click the “Add to Cursor” button on the plugin’s Marketplace page. The first time Cursor calls the WordPress.com MCP server, the OAuth 2.1 flow opens the WordPress.com authorization page in your browser.

Microsoft 365 Copilot Cowork

Microsoft 365 Copilot Cowork connects to WordPress.com through the WordPress.com plugin, listed in the Microsoft 365 App Store. Cowork users need a Microsoft 365 Copilot license, and a tenant admin may need to approve the plugin before it appears for them.

To find and add the plugin, follow the Cowork steps in the support guide. Microsoft covers installation in Use plugins with Cowork and tenant-wide deployment in Manage plugins for Cowork.

Other clients

For other MCP-enabled clients, consult your client’s documentation for how to add an MCP server, then use the URL:

https://public-api.wordpress.com/wpcom/v2/mcp/v1

The first time your client connects, it opens the WordPress.com authorization page in your browser.

If you are building a custom MCP client, see Connect a custom MCP client to WordPress.com.

Available MCP tools

All WordPress.com MCP tools are listed in the WordPress.com MCP tools reference.

Authentication

The WordPress.com MCP server uses OAuth 2.1 for secure authentication. OAuth 2.1 builds in these security practices:

  • PKCE (Proof Key for Code Exchange): Protects against authorization code interception
  • Dynamic client registration: Your AI client can register automatically
  • Token rotation: Enhanced security through automatic token refresh
  • No client secrets required: Secure authentication without storing sensitive credentials

How it works

  1. When you add the WordPress.com MCP server to your AI client, the client will attempt to connect.
  2. Your web browser will automatically open to the WordPress.com authorization page.
  3. Log in to your WordPress.com account (if you aren’t already logged in).
  4. Choose an access level, then click Allow. If MCP is off for the account, the button is “Allow & turn on agent access“, and consenting switches MCP on.
  5. You’ll be redirected back to your AI client, which can now access your WordPress.com sites.

The access level rewrites your account-level MCP tool settings, which every connected client shares:

  • Full access turns on every Read and Write tool.
  • Read only turns off every Write tool and turns on every Read tool, including any you switched off.
  • Keep existing access appears only when MCP is on and your tool settings are customized. It is preselected and leaves them unchanged. When MCP is off, the client’s default access level is preselected. Otherwise, the option that matches your current settings is preselected.

To change individual tools afterwards, see Customize your account-level tools.

The WordPress.com authorization screen with the Allow button to grant ChatGPT access.

Manage connections

You can disconnect your AI client at any time through your WordPress.com account:

  1. Go to Security → Connected applications.
  2. Find your AI client in the list (it may appear as “MCP Client” or with your client’s name).
  3. Click the Disconnect button to revoke access.

Disconnecting from inside your AI client does not remove its entry here. A client can appear more than once, so disconnect each entry for it.

The OAuth 2.1 flow ensures your WordPress.com credentials are never stored on your computer or shared with your AI client; only secure, expiring access tokens are used.

FAQ

What is the best WordPress MCP server?

WordPress.com has a built-in MCP server at https://public-api.wordpress.com/wpcom/v2/mcp/v1. It uses OAuth 2.1 for secure authentication, requires no additional software installation, and connects to every site on your account through a single endpoint. It supports Claude, Cursor, ChatGPT, Codex, and any other MCP-enabled AI client.

Which WordPress host supports MCP

WordPress.com includes native MCP support on every site, including free sites. Self-hosted WordPress sites connected through Jetpack also connect to the same WordPress.com MCP server — there is no separate Jetpack MCP endpoint. Your data is never used to train AI models.

How do I connect Claude to WordPress?

Claude Desktop connects through the built-in Connectors Directory. Claude Code connects via the command line:

claude mcp add --transport http wpcom-mcp https://public-api.wordpress.com/wpcom/v2/mcp/v1

Then run /mcp in Claude Code to authenticate. Full setup instructions are in the Connect your AI client section above.

How do I set up WordPress MCP for development?

Add the server URL to your AI client: https://public-api.wordpress.com/wpcom/v2/mcp/v1. OAuth 2.1 handles authentication automatically through your browser — no client secrets or manual token management required — and approving the connection switches MCP on for your WordPress.com account if it’s off. See the full tools reference for everything available once connected.

Troubleshooting

When a connected client stops responding or doesn’t list the WordPress.com tools, follow Troubleshoot MCP connection problems in the support guide. If the connection fails before your browser opens the WordPress.com authorization page, check that your client uses the server URL https://public-api.wordpress.com/wpcom/v2/mcp/v1.

Automattic also runs MCP servers for its other products.

Last updated: November 30, 2026