Codex · WordPress
Use WordPress in Codex with the NotFair Ads plugin
Install NotFair Ads from the shared ChatGPT and Codex plugin directory, then connect WordPress in your NotFair workspace. Codex can read live data and prepare supported changes for your review. 86 WordPress tools. Prefer the terminal? Connect the same hosted MCP with Codex CLI.
86 WordPress tools
Turn Codex Into Your Marketing Engine
Bring ads, search, analytics, CRM, and WordPress into your AI client. Explore each integration to see its supported actions.
Choose a platform
Choose your AI client
Install NotFair Ads
Use Codex CLI instead
codex mcp add NotFair-WordPress --url https://notfair.co/api/mcp/notfair
codex mcp login NotFair-WordPressConnect your workspace and verify
List my connected WordPress websites and show me the homepage content.How it works
From plugin install to an approved WordPress change
Install NotFair Ads
Open Plugins in Codex, find NotFair Ads, and install it. Follow the connection prompts to sign in to your NotFair workspace.
Connect WordPress
NotFair uses the installed WordPress plugin and a workspace integration token. There is no user-facing token rotation. For manual Codex CLI setup, run `codex mcp add NotFair-WordPress --url https://notfair.co/api/mcp/notfair`, then `codex mcp login NotFair-WordPress` to complete OAuth.
Verify, then review changes
Start a new Codex chat and ask NotFair Ads to list your connected platforms and accounts. Inspect WordPress data, then review the target and proposed edit before approving a supported write. HTML is sanitized and does not execute scripts. restoreChange does not undo external hook side effects. MCP and SEO tokens can be removed independently.
What the client can do
Posts, pages, media, and exact-path HTML
WordPress.com has an official hosted MCP. NotFair is the plugin-connected option with counted tools, sanitized publishHtml at exact paths, and restoreChange.
Site routing
listSites returns explicit siteIds. Every website operation requires one.
Versioned edits
Read getResource or readFile first and pass expectedVersion on updates.
Exact-path HTML
publishHtml writes sanitized standalone HTML at a path such as test/t1.html (rootId site-pages).
Restore when unchanged
getChange then restoreChange undoes a supported mutation if the resource has not changed since. External hook side effects are not undone.
WordPress tools
86 WordPress tools the client can call
The advertised count is measured from registerWordPressTools() and guarded by a drift test. The table below is a representative subset.
| Tool | Type | Description |
|---|---|---|
listSites | read | Connected WordPress websites and siteIds. |
getResource | read | Read a post, page, or other resource including its version. |
uploadMedia | write | Bounded base64 media upload. |
publishHtml | write | Sanitized HTML at an exact path. Scripts are rejected. |
getChange | read | Change receipt and restore eligibility. |
restoreChange | write | Reverse a supported mutation if the resource is still unchanged. |
Full tool surface: /wordpress-mcp.
Example prompts
Prompts that lead to real account work
Site inventory
“List connected WordPress sites and their siteIds.”
Explicit routing before any publish.
Read before edit
“Read the homepage page, including its version, before proposing an edit.”
expectedVersion in hand.
Publish preview
“Preview publishing sanitized HTML at /test/t1.html. Do not execute until I approve.”
A staged publishHtml. restoreChange only works while the resource is unchanged.
WordPress + Codex FAQ
Using the NotFair Ads plugin or hosted MCP with WordPress in Codex.
Install NotFair Ads from Plugins in Codex, sign in to NotFair, and connect WordPress. Start a new chat and verify your connected accounts. For manual CLI setup, run `codex mcp add NotFair-WordPress --url https://notfair.co/api/mcp/notfair`, then `codex mcp login NotFair-WordPress`.
ChatGPT and Codex share a plugin directory. NotFair Ads connects to the same NotFair workspace and supported tools. Complete the connection prompts in the client you use, then verify the selected accounts in a new chat.
Updates use expectedVersion. Writes wait for workspace-role permission and a stable requestId. restoreChange reverses a supported mutation when getChange says the resource is unchanged. HTML is sanitized and does not execute scripts. restoreChange does not undo external hook side effects. MCP and SEO tokens can be removed independently. Review the exact change before approving a supported action.
WordPress.com documents a hosted MCP for paid plans / Jetpack AI or Complete. Automattic also publishes remote MCP repositories.
Related pages
Keep evaluating the same connection.
WordPress MCP
Tool surface, endpoint, and 86 WordPress tools.
WordPress Codex setup guide
Plugin installation and manual Codex CLI setup.
WordPress for Claude
Same hosted MCP endpoint on Claude's first-class landing.
WordPress for ChatGPT
Install the NotFair Ads plugin and use live platform data in ChatGPT.
WordPress for Grok Bot
Marketplace install for the same hosted MCP tools.
Compare WordPress MCP servers
Sourced benchmark with public verification prompts.
WordPress write safety
Updates use expectedVersion. Writes wait for workspace-role permission and a stable requestId. restoreChange reverses a supported mutation when getChange says the resource is unchanged.
Connect WordPress to Codex
Updates use expectedVersion. Writes wait for workspace-role permission and a stable requestId. restoreChange reverses a supported mutation when getChange says the resource is unchanged.