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
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 the MCP
codex mcp add NotFair-WordPress --url https://notfair.co/api/mcp/notfairSign in and start asking
List my connected WordPress websites and show me the homepage content.How it works
From install to an approved WordPress change
Connect WordPress
NotFair uses the installed WordPress plugin and a workspace integration token. There is no user-facing token rotation.
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.
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.
| 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.
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.
Related pages
Keep evaluating the same connection.
WordPress MCP
Tool surface, endpoint, and 86 WordPress tools.
WordPress Codex setup guide
One-liner install for OpenAI Codex CLI.
WordPress for Claude
Same hosted MCP endpoint on Claude's first-class landing.
WordPress for ChatGPT
ChatGPT-style workflows through an MCP-capable OpenAI client.
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.