Connect Codex to WordPress Studio

Install the WordPress Studio plugin in Codex, in the ChatGPT app or the Codex CLI, and Codex can create, run, and change your local WordPress sites.

On this page

The plugin adds WordPress Studio’s Model Context Protocol (MCP) server, named wordpress-studio, and the WordPress Studio skills to Codex. It carries its own WordPress Studio CLI. In the ChatGPT app, the plugin also adds a WordPress tab to the sidebar and shows design options you can click.

Applies to: Codex in the ChatGPT desktop app or in the Codex CLI, on a ChatGPT plan that includes Codex. The steps match WordPress Studio 2.5.0, and the WordPress Studio app is optional. You don’t need a WordPress.com account for local sites. To work on WordPress.com sites, create previews, or publish, log in to WordPress.com when the agent asks.

Before you start

  • The ChatGPT desktop app or the Codex CLI, signed in.
  • For a standalone Codex CLI install, Node.js 22 or later on your PATH, or an installed studio command. The plugin bundles the WordPress Studio CLI, but not Node.js. The ChatGPT app supplies its own Node.js; a plugin installed from the WordPress Studio app uses that app’s Node.js instead.

Install the plugin from WordPress Studio

  1. In WordPress Studio, open Settings from the account menu at the bottom of the sidebar, or press ⌘, (Ctrl+, on Windows and Linux).
  2. Select Agents.
  3. Next to ChatGPT (Codex), click Install. The row shows Installed when the plugin is in place.
  4. Restart the ChatGPT app, or start a new Codex CLI session.

A plugin installed this way updates itself when WordPress Studio updates.

Install the plugin from the terminal

Run these commands in your terminal:

codex plugin marketplace add Automattic/studio-plugins
codex plugin add wp-studio@studio

Then restart the ChatGPT app, or start a new Codex CLI session.

On a Mac without codex on your PATH, use the Codex that the ChatGPT app ships, at /Applications/ChatGPT.app/Contents/Resources/codex-cli/bin/codex.

To update the plugin later, run:

codex plugin marketplace upgrade studio
codex plugin add wp-studio@studio

Add only the MCP server

If you already have the WordPress Studio CLI on your PATH, you can add the MCP server without the plugin’s skills:

codex mcp add wordpress-studio -- studio mcp

The agent still gets WordPress Studio’s skills and rules, over the MCP Skills extension when the agent supports it, or through the studio_instructions tool.

Check that Codex is connected

  1. In the ChatGPT app, open WordPress in the sidebar. It lists your local WordPress Studio sites, and your WordPress.com sites once you log in.
  2. Ask Codex: “List my WordPress Studio sites.” Codex calls WordPress Studio’s site_list tool, then lists your sites or says you don’t have any yet.

An answer without a WordPress Studio tool call doesn’t confirm the connection. Expand the tool call in the conversation to check which tool ran.

Try these prompts

  • “Build a WordPress site for my bakery, with a menu page and opening hours.”
  • “Start my site Coffee Shop and take a screenshot of its home page.”
  • “Install WooCommerce on Coffee Shop and add three sample products.”
  • “Run an SEO audit on the home page of Coffee Shop.”
  • “Pull my WordPress.com site into WordPress Studio so I can work on it locally.”
  • “Create a preview link of Coffee Shop that I can share.”

Replace Coffee Shop with the name of one of your sites. Pulling a site and creating a preview need a WordPress.com login.

In the ChatGPT app, when you start a new site, Codex shows rendered design options for its look and layout, and you click the one you want. Codex in the ChatGPT app makes site images with its own image tool, on your ChatGPT plan, rather than through WordPress Studio.

Troubleshooting

Why does the Agents page say Not installed next to ChatGPT (Codex)?

WordPress Studio didn’t find Codex. On a Mac, it looks for the Codex inside the ChatGPT app in /Applications or ~/Applications, then for codex on the PATH of your login shell. On Windows and Linux, it looks only on the PATH. Install the ChatGPT app or the Codex CLI, then open the Agents page again.

Why doesn’t Codex see WordPress Studio after I install the plugin?

Codex loads plugins when it starts. Restart the ChatGPT app, or start a new Codex CLI session.

Why does the WordPress Studio server fail to start in the Codex CLI?

The standalone Codex CLI doesn’t supply Node.js. Run node --version and check that it is version 22 or later, or make sure studio --help works in your terminal. Install Node.js or the WordPress Studio CLI, then start a new Codex CLI session. You can also install the plugin from the WordPress Studio app to use the app’s own Node.js and CLI.

Why doesn’t the WordPress tab appear in the ChatGPT app?

The WordPress tab appears after the plugin is installed and the ChatGPT app restarts. Check that the Agents page shows Installed next to ChatGPT (Codex), then restart the ChatGPT app.

Why does Codex ask for approval before some WordPress Studio calls?

WordPress Studio marks each tool that only reads, or only changes this computer, so Codex can run it without asking. Codex can still ask before a call that can delete or overwrite data, or that reaches outside this computer, such as running a WP-CLI command, publishing, or pulling a site.

Edit this page on GitHub Updated