Get the plugin
WP MCP/Docs/ChatGPT and WordPress

ChatGPT and WordPress · connection guide

ChatGPT and WordPress: connect ChatGPT to your site over MCP.

ChatGPT can work on a WordPress site through an MCP server on the site. WP MCP is a free WordPress plugin that provides one. ChatGPT signs in with OAuth only, and WP MCP ships OAuth switched off, so this route takes one extra step that the Claude and Cursor routes do not. This guide says what works best today and how to set ChatGPT up.

Free and GPL-2.0 · self-hosted · snapshot before every write

Before you start

What you need.

  • A WordPress 6.9 or newer site on PHP 8.1 or newer, with the free WP MCP plugin installed and active.
  • A site that ChatGPT can reach: a public address served over HTTPS. A site that only runs on your own computer cannot be reached by ChatGPT.
  • Access to wp-config.php, or the ability to add a small plugin or mu-plugin, to switch OAuth on. This is a job for a site administrator.
  • A ChatGPT account that is allowed to add a custom MCP server. OpenAI decides which plans and modes can do this and changes it over time, so check OpenAI's current requirements before you start.
  • A WordPress user for the agent with at least the edit_posts capability (Editor or Administrator). You sign in as this user when you approve ChatGPT.

Read this first

What works best today.

  • The Claude clients are the most tested path. Claude Code and the Claude Desktop bundle sign in with an application password and work on a default install, with nothing to switch on. If you can choose your client, start there.
  • ChatGPT works through OAuth once OAuth is enabled on the site. WP MCP ships a full OAuth 2.1 server with PKCE, but it is off by default, and today a site administrator turns it on with one line in wp-config.php. There is no switch for it in wp-admin yet.
  • We have not fully tested ChatGPT against every tool. If something misbehaves in ChatGPT, please report it; the same site will work from a Claude client meanwhile.
  • A one-click switch for OAuth on the Connection screen, with a ChatGPT card next to it, is planned. We do not promise a date.

Connect

One way to connect ChatGPT to WordPress.

01 / Needs OAuth

ChatGPT: a custom MCP server, signed in with OAuth

Signs in with OAuth 2.1. ChatGPT cannot send an application password, so the config snippets on the Connection screen do not apply to it.

  1. Switch OAuth on. Add the constant below to wp-config.php, or return true from the wpmcp_oauth_enabled filter in a plugin or mu-plugin. Either one is enough.
  2. Reload WP MCP, Connection in wp-admin. It now reports that OAuth is on and lists the discovery addresses clients use for this site.
  3. In ChatGPT, add a custom MCP server (ChatGPT also calls this a connector or an app, depending on the version) and enter your endpoint as the server URL. Choose OAuth as the sign-in method. You do not need to enter a client ID or secret: ChatGPT registers itself with the site. OpenAI's documentation has the current menu path.
  4. ChatGPT opens your site in a browser window. Sign in to WordPress as the user the agent should act as and approve the request. You choose full access or read-only at this step.
  5. Back in ChatGPT, start a chat with the WP MCP server enabled and ask it to list your post types.

switch OAuth on

// wp-config.php, above "That's all, stop editing!"
define('WPMCP_OAUTH_ENABLED', true);

// or, from a plugin or mu-plugin
add_filter('wpmcp_oauth_enabled', '__return_true');

the server URL to enter in ChatGPT

https://your-site.com/wp-json/mcp/wpmcp-server

With OAuth off, the site's sign-in discovery addresses return 404 and ChatGPT cannot register or sign in. That is the default state, not a fault. Read-only is a sensible first choice: the token can list and read, and is refused anything that changes the site. You can raise or lower a connection's access later on the Connection screen without reconnecting.

Which client

What works best today, client by client.

The Claude clients are the most tested path and work on a default install with an application password. Clients that can only sign in with OAuth, ChatGPT among them, need OAuth switched on first: it ships off.

ClientHow it signs inSetup it needsHow well tested
Claude CodeApplication passwordOne command, or one .mcp.json entry. Works on a default install.Most tested, alongside Claude Desktop.
Claude DesktopApplication password (desktop bundle or config file). OAuth for the custom connector.Download the bundle from the Connection screen and enter the password. The custom connector needs OAuth switched on first.Most tested, alongside Claude Code.
CursorApplication passwordOne entry in .cursor/mcp.json. Works on a default install.Supported through the standard MCP config. Our own testing is done mostly with Claude clients.
ChatGPTOAuth only. It cannot send an application password.A site administrator switches OAuth on in wp-config.php (it ships off), then adds the site in ChatGPT as a custom MCP server.Works through OAuth once it is enabled. Not fully tested yet. A one-click switch is planned.

Check it

Verify the connection.

Ask ChatGPT to call list-post-types or list-posts. A result means the sign-in and the connection work. If ChatGPT cannot connect at all, OAuth is still off or the site is not reachable from the internet. A 401 or 403 after sign-in means the WordPress user lacks edit_posts, or the connection was approved as read-only and the request was a write.

If it does not work

Common snags.

ChatGPT cannot register or sign in
OAuth is off. Add the WPMCP_OAUTH_ENABLED line to wp-config.php, reload the Connection screen and check that it reports OAuth as on.
There is no option to add a custom MCP server
That is decided by your ChatGPT plan, workspace policy and mode, not by WP MCP. Check OpenAI's current documentation for what your account can add.
A write is refused
The connection may have been approved as read-only, or the tool is one of the risky ones that ship off (database writes, file writes, package updates). The refusal names the exact setting.
A tool behaves differently than in Claude
ChatGPT is not fully tested yet. Please open an issue with the tool name and what ChatGPT showed; a Claude client is the working route meanwhile.

Frequently asked

ChatGPT and WordPress: questions, answered.

Is there a ChatGPT WordPress plugin?

ChatGPT connects to WordPress through an MCP server rather than a plugin made by OpenAI. WP MCP is an independent WordPress plugin that provides that server: install it on your site, switch OAuth on, and add the site in ChatGPT as a custom MCP server.

Can ChatGPT connect to WordPress over MCP?

Yes, through OAuth. WP MCP includes an OAuth 2.1 server, which ships off. Once a site administrator turns it on with one line in wp-config.php, ChatGPT can sign in and call the site's tools. The Claude clients are the most tested path; ChatGPT is not fully tested yet.

Why does ChatGPT need OAuth when Claude Code and Cursor do not?

Claude Code, Cursor and the Claude Desktop bundle can send a WordPress application password in a header. ChatGPT signs in to a custom MCP server with OAuth and cannot send that header, so OAuth has to be on for it.

Which ChatGPT plan do I need?

OpenAI decides which plans and modes can add a custom MCP server, and whether they may run tools that write. It has changed more than once, so check OpenAI's current requirements instead of relying on a number printed here.

Is it safe to let ChatGPT edit a live WordPress site?

Every write made through WP MCP is snapshotted first, whichever client makes it, so a change or a whole session can be restored in one click from wp-admin. You can also approve ChatGPT as read-only, and risky tools such as raw database writes and file edits are off by default.

Will there be a simpler way to turn OAuth on?

Yes, a switch on the Connection screen is planned, so a site owner will not need to edit wp-config.php. We do not give a date for it. Until then the constant or the filter is the way.

Is it free?

The WP MCP plugin is free and GPL, including OAuth and the undo engine. You need your own ChatGPT account. WP MCP Pro adds deep page builder editing and unlimited undo history.

Connect ChatGPT to your WordPress site.