OpenAI Codex + WordPress via MCP
OpenAI Codex supports MCP natively — which means you can give it access to your WordPress site the same way you give it access to your codebase. Install mumcp, add the connection to your Codex config, and your AI coding agent can manage WordPress content right alongside the code it writes.
Why Connect Codex to WordPress?
Codex is built for developers. So is mumcp — in the sense that its MCP interface is clean, well-documented, and designed to be called by AI agents programmatically. When you’re working in Codex on a WordPress theme, plugin, or custom functionality, being able to test, preview, and publish content through the same agent saves constant context switching.
Codex can write a plugin feature and create the documentation page for it. It can refactor your theme and update the features page to reflect what changed. Code and content, same conversation.
What Codex Can Do Through mumcp
Content Operations
Create posts and pages, update existing content, publish drafts, manage categories and tags, and schedule content — all available as MCP tools Codex can call directly.
SEO Management
Read and write Yoast SEO metadata including titles, descriptions, focus keywords, canonical URLs, and noindex flags. Run bulk updates across multiple posts in a single agent action.
Theme and Design Control
Update Elementor global settings (colors, typography, button styles), manage page templates, and regenerate CSS — useful when Codex is making theme or design-related code changes that need to reflect visually.
Media and Assets
Upload images by URL or base64, set featured images, and list the media library — handy when Codex is generating or processing assets as part of a workflow.
Webhooks and Automation
Create, update, and test webhooks — useful for building event-driven publishing pipelines where Codex is the orchestrator.
Codex MCP Configuration
Codex stores MCP config in ~/.codex/config.toml (global) or .codex/config.toml (project-level). Add your mumcp connection like this:
[mcp_servers.wordpress]
type = "http"
url = "https://yoursite.com/wp-json/site-pilot-ai/v1/mcp"
[mcp_servers.wordpress.headers]
X-API-Key = "your-api-key-here"
Restart Codex after saving. Your WordPress site will appear as an available MCP server on the next session.
Multiple Sites, Multiple Configs
Add as many mumcp connections as you have WordPress sites. Each gets its own config block, its own API key, and its own scope. Codex will route operations to the right site based on context in your instruction.
Get Started
Install mumcp free with 200+ tools. Generate your API key, drop the config into Codex, and tell your agent to list your draft posts. It’ll work on the first try.
Full MCP tool reference: MCP Tools Documentation.