NotFairNotFair
Start now

Codex · WordPress

Manage WordPress from Codex CLI with the same hosted MCP Claude uses

NotFair is a hosted WordPress MCP for OpenAI's Codex CLI. One terminal command registers the server. Codex then reads live WordPress data and stages writes for approval. 86 WordPress tools.

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 the MCP

Run this in your terminal:
codex mcp add NotFair-WordPress --url https://notfair.co/api/mcp/notfair
2

Sign in and start asking

After running the command, Codex auto-opens a sign-in link in your browser. Sign in with NotFair and you are all set. Try: List my connected WordPress websites and show me the homepage content.

How it works

From install to an approved WordPress change

01

Connect WordPress

NotFair uses the installed WordPress plugin and a workspace integration token. There is no user-facing token rotation.

02

Add Codex

From any shell where Codex CLI is installed: `codex mcp add NotFair-WordPress --url https://notfair.co/api/mcp/notfair`. Codex walks through OAuth and registers the MCP.

03

Ask, then approve writes

Codex can inspect Connected sites, posts, pages, media, settings, and change receipts. Writes wait for your confirmation. 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.

WordPress + Codex FAQ

Direct answers for operators connecting WordPress to OpenAI Codex CLI through NotFair.

Connect WordPress at notfair.co, run `codex mcp add NotFair-WordPress --url https://notfair.co/api/mcp/notfair`, then ask Codex to inspect live data. Writes stay staged until you approve them.

Same hosted MCP endpoint, different client. Codex CLI calls NotFair using OpenAI's MCP support. Claude's connector and Claude Code call the same server from Anthropic's clients.

Only with explicit approval. 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.

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.