Start now

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

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.

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

1

Install NotFair Ads

Open the NotFair Ads plugin page and select Install plugin. Follow the connection prompts in ChatGPT or Codex.Open NotFair Ads
Use Codex CLI instead
codex mcp add NotFair-WordPress --url https://notfair.co/api/mcp/notfair codex mcp login NotFair-WordPress
2

Connect your workspace and verify

Sign in to NotFair, choose your workspace, and connect the integrations you want to use. Start a new chat and ask NotFair Ads to list your connected platforms and accounts. Then try: List my connected WordPress websites and show me the homepage content.

How it works

From plugin install to an approved WordPress change

01

Install NotFair Ads

Open Plugins in Codex, find NotFair Ads, and install it. Follow the connection prompts to sign in to your NotFair workspace.

02

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.

03

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.

ToolType
listSitesread
getResourceread
uploadMediawrite
publishHtmlwrite
getChangeread
restoreChangewrite

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.

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.

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.