Codex can turn a WordPress publishing task into a conversation: find an article, revise its introduction, prepare a new draft, or upload a featured image. With a WordPress MCP connection, the result can be saved directly to the website.
This guide explains how to set up that connection with WSP MCP, configure the ChatGPT app on a Mac, and use the available tools through practical prompts.
How the connection works
MCP stands for Model Context Protocol. An MCP server exposes tools that an AI application can call. In this setup, WSP MCP provides the WordPress tools, while Codex interprets the request and selects the appropriate actions.
The flow is: your request → Codex → WSP MCP → WordPress. WordPress stores the posts and images, and the active theme determines their presentation.
1. Set up WordPress
You need access to install plugins on the WordPress site and a Mac running the ChatGPT desktop app.
- In WordPress, open Plugins → Add New, search for WSP MCP, and install and activate it.
- Open MCP → Settings. Enable the tools needed for the workflow, such as creating posts, uploading media, and setting featured images. Write tools are disabled by default.
- Open MCP → Connection. Choose the Codex configuration for a Codex connection and copy the generated connection details.
- Use the endpoint and authentication supplied by that page. WSP provides a private connection key; it also supports WordPress Application Passwords as an alternative.
WSP MCP includes its own server, so a separate WordPress MCP Adapter plugin is not required. Tool access also depends on the permissions of the connected WordPress user. See the WSP MCP installation instructions.
2. Configure the ChatGPT app on Mac
In the ChatGPT Mac app, MCP connections are managed inside Plugins. The path is Settings → Plugins → MCPs.
- Open the ChatGPT app on your Mac and go to Settings.
- Under Integrations, select Plugins.
- Select the MCPs tab. This lists configured servers, with an on/off switch and a settings gear beside each one.
- To create a connection, open the Add menu at the top right and choose its MCP server option. Give the server a recognizable name, such as WordPress.
- Use the connection details generated under MCP → Connection in WordPress. For a direct Codex connection, select the Codex setup there. When it supplies a remote HTTP endpoint, choose Streamable HTTP in the server configuration and paste the complete endpoint, including its path.
- Configure authentication exactly as specified by the generated WSP setup. If that setup requires fields not available in the form, use its generated Codex configuration in
~/.codex/config.toml. Keep the connection key private. - Save the connection and follow any restart prompt. Back in the MCPs tab, make sure the WordPress server’s switch is on. Use its gear icon to review or change the configuration later.
- Start a new Codex chat and ask it to retrieve the WordPress site name and latest posts. This confirms that the tools are available and the connection reaches the correct site.
An existing WordPress server only needs to be enabled and tested; there is no need to add it again. The name in the server list is the name assigned during configuration.
This is a direct MCP server connection in the Mac app. The Apps and Skills tabs sit alongside MCPs, but the server itself is managed under MCPs. OpenAI’s MCP guide covers the underlying transports and Codex configuration. Menu labels can differ between app versions; the path above matches the Mac interface shown here.
3. Test the connection before editing
Start with a small request that reads the site:
Use the WordPress connection to show the site name and URL, then list the latest three published posts.
Check that the response refers to the intended website. Then test writing with a disposable draft:
Create a draft titled “Connection test” with one short paragraph. Return its post ID and edit link. Do not publish it.
If the server connects but a requested action is unavailable, check the enabled tools in WordPress and the connected user’s permissions. After enabling additional WSP tools, fully quit and reopen the AI app so it reloads the tool list.
Create an article from a brief
A useful prompt specifies the topic, audience, style, and desired status:
Write a practical, 700-word introduction to choosing a WordPress hosting provider for a small business. Use plain English, include a short checklist, and save it as a draft. Return the edit link.
Follow-up requests can revise the same article:
Update draft 123 with a shorter opening and a clearer conclusion. Keep the other sections unchanged.
The number is an example: use the actual post ID returned by the connector. Referring to that ID helps identify the existing draft instead of creating another copy.
Add images and manage the media library
Image generation and WordPress uploading are separate capabilities. When an image-generation tool is available, Codex can create artwork and then use the WordPress connector to upload it and assign it to a post.
Create a landscape illustration for draft 123. Upload it to WordPress with descriptive alt text, set it as the featured image, and keep the article as a draft.
Existing images can also be reused:
Search the media library for images related to remote work. Show the matching image titles and IDs so a featured image can be selected.
Media tools can update titles, captions, and alt text. A featured-image assignment determines which image WordPress associates with the post; the theme controls how that image is displayed and cropped.
More useful requests
- Find content: “Search posts and pages for ‘accessibility’ and return their titles and links.”
- Review drafts: “List draft posts so the next article to finish can be selected.”
- Edit a page: “Update page 456 with this revised contact information.”
- Organize content: “Show the existing categories and tags, then suggest suitable ones for draft 123.”
- Improve image details: “Set this image’s alt text to ‘A laptop displaying a WordPress article editor’.”
The exact capabilities depend on the tools exposed by the connection. Posts, pages, categories, tags, and media form a useful editorial toolkit. Additional integrations may offer more, but a request can only run when the corresponding tool and permissions are available.
Preview, refine, and publish
After saving a draft, open its preview in WordPress. Check the wording, links, heading structure, and featured-image crop. A successful tool response confirms that an action completed; the preview shows how the result looks in the theme.
Once the draft is ready, publishing can be a separate, explicit request:
Publish draft 123 and return the public article link.
With the connection in place, a brief can become a WordPress draft with an image, and later revisions can happen in the same conversation. Clear prompts and specific post IDs keep that workflow easy to follow.
