WordPress Developers
Expose structured WordPress tools to MCP clients, contribute custom tools through filters and create safer AI-assisted development workflows.
LemonX MCP is the Model Context Protocol gateway for the LemonX suite. It gives Claude, Codex and other MCP-compatible clients a single secure endpoint to read WordPress context, discover available tools, prepare changes and apply approved updates.
Instead of giving AI uncontrolled access to your website, LemonX MCP uses bearer-token authentication, WordPress user permissions, tool-level capabilities, LemonX Pro write gates and a preview-before-apply staging workflow.
Built for AI agents, WordPress developers, agencies, technical SEO teams and advanced website automation workflows.
// POST /wp-json/lemonx-mcp/v1/mcp // Authorization: Bearer lxm_ak_39fa1c7… { "jsonrpc": "2.0", "id": 3, "method": "tools/call", "params": { "name": "replace_text", "arguments": { "page_id": 128, "target": "hero.headline", "new_text": "Grow WordPress with AI-native workflows" } } } // 200 · staged (not written yet) { "result": { "status": "staged", "staging_id": "stg_7f2c", "preview": "- Grow your business…n+ Grow WordPress with AI-native…", "expires_in": 900, "site_identity": "acme.com" } }
apply_change with stg_7f2c after human review.LemonX MCP gives AI clients a structured way to communicate with WordPress through the Model Context Protocol.
It does not try to replace WordPress. It does not contain page, SEO or translation business logic by itself. It acts as a thin gateway that exposes tools contributed by other LemonX products such as LemonX Code and LemonX AEO.
The gateway owns the protocol, authentication and tool registry. Other LemonX plugins contribute the actual tools. This makes LemonX MCP the connection layer between your WordPress website and external AI clients.
How can AI agents work with my WordPress website without bypassing permissions, breaking content or making unreviewed changes?
Most AI workflows still live outside WordPress — or worse, they get raw access with no review layer. LemonX MCP creates a safer middle path.
AI becomes closer to real WordPress execution without removing human control.
Expose structured WordPress tools to MCP clients, contribute custom tools through filters and create safer AI-assisted development workflows.
Use AI clients to inspect client sites, prepare page edits, stage content updates, review previews and apply approved changes with clearer accountability.
Let AI read site content, inspect page structures, review AEO-ready content and support optimization workflows without jumping between disconnected tools.
Use AI agents to find pages, inspect existing content, prepare updates, rewrite sections, update links and stage changes for human review.
Connect Claude, Codex and MCP-compatible clients to WordPress through one controlled gateway.
Use MCP as the agent-access layer for LemonX Code, AEO and future LemonX product tools.
Evaluate AI agent access through authentication, token management, rate limits, audit logs, capability checks and staged write control.
AI agents need structured access to become truly useful. Without MCP, AI may only see copied snippets, screenshots, partial HTML or manually pasted content. That limits what it can understand.
But direct access to WordPress APIs can create another problem. Generic API access may not respect the workflow your team needs. It may expose too much, bypass review or fail to separate read actions from write actions.
A safer AI-to-WordPress workflow needs the ingredients on the right — which is exactly what LemonX MCP provides.
LemonX MCP lets AI clients connect to WordPress through a controlled gateway.
LemonX MCP is intentionally small. It owns three things — protocol, authentication and the tool registry. Business logic stays with the products that contribute the tools.
Speaks JSON-RPC 2.0 over HTTP using MCP Streamable HTTP transport patterns. Supports methods like initialize, tools/list, tools/call and ping.
Bearer-token authentication. Each token is bound to a WordPress user. After authentication, tool calls run as that user and remain subject to WordPress capability checks.
Tools are registered through the LemonX MCP tool registry. Other LemonX plugins contribute their own tools while keeping implementation inside their own codebase.
Contributes page, media and template tools — the ones that make MCP useful for real WordPress editing.
Contributes read tools for AI-exposable content search and SEO research workflows.
Gates write-capable tools with feature keys such as mcp.write and code.mcp.
Protocol support, authentication, tool discovery, read access, staged write actions, site identity, client configuration, diagnostics, stats and audit-friendly workflow controls — twenty features in one small plugin.
Expose a single Streamable HTTP endpoint that speaks JSON-RPC 2.0. It handles initialize, tools/list, tools/call, ping and resource methods — plus SSE-formatted responses when the client asks for them.
Create labeled tokens from the admin screen, download the client config that carries the token, and revoke tokens anytime. Every request runs as the token’s user, respecting capability checks.
Write tools do not commit on the first call. They validate arguments, generate a preview and stage an opaque payload for 15 minutes. AI can only apply the change after the human approves with apply_change.
Download a ready-made Claude Desktop config JSON from the admin screen. Use the built-in Node stdio bridge when needed. Tool discovery, read tools, staged writes and site identity — all through one gateway.
A capped ring buffer keeps recent MCP activity: user, tool name, write flag, source plugin, Pro feature key, staging ID, target, site and short notes. Perfect for debugging, accountability and client reporting.
Keep every MCP call inside normal WordPress permission boundaries.
Other LemonX products contribute their own MCP tools through one filter.
lemonx_mcp_tools filterLet AI clients read site context through approved, permissioned tools only.
Prepare WordPress edits through controlled tool calls — never direct writes.
Make sure AI knows which WordPress site it is working on before writing.
Downloadable config for Claude Desktop, Codex and other MCP clients.
Connect Codex to WordPress through the same MCP gateway.
Manage MCP access from a focused WordPress admin screen.
Protect the gateway from excessive requests, per-IP and per-token.
Control browser-based MCP client access with an origin allow-list.
Understand how your MCP gateway is being used — no external analytics.
Keep write-capable tools under commercial and permission control.
mcp.write gatecode.mcpExpose content resources where LemonX products contribute them.
Avoid hidden tool collisions and unsafe tool registration mistakes.
Connect local stdio-only MCP clients to a remote HTTP endpoint.
LemonX MCP adds a focused admin screen for the gateway. From there, administrators can enable or disable the endpoint, generate tokens, download client configs, set rate limits, configure CORS, review tools and inspect gateway usage.
Ten small steps — from turning the gateway on, to seeing a change appear on your site after human approval.
initialize and receives server info, capabilities and instructions.tools/list to see available tools contributed by LemonX plugins.site_identity, get_page, inspect_page_structure, list_template_records or AEO research tools.replace_text, patch_page, update_page_meta or publish_html_post. Nothing is written yet.apply_change. If the user rejects the change, the client calls discard_change.A good AI workflow starts with context. LemonX MCP encourages AI agents to read the right WordPress content before making recommendations.
LemonX MCP uses a two-phase write pattern. The first call prepares the change. The second call applies it only after approval.
LemonX Code contributes many of the page and template tools that make LemonX MCP useful for real WordPress editing.
With LemonX Code installed, AI clients can list pages, get page source, inspect structures, export pages, read template records, stage page edits, update metadata, publish pages, duplicate pages, import HTML, publish HTML posts and set featured images.
list_pages
list_media
get_front_page
get_page
inspect_page_structure
export_page
list_template_records
get_template_record
inspect_template_record_structure
edit_page_code
patch_page
replace_text
replace_link
replace_image_url
insert_module
update_page_meta
publish_page
duplicate_page
import_html
publish_html_post
set_featured_image
edit_template_record
patch_template_record
aeo_search
aeo_recent
aeo_get_content
LemonX AEO contributes read tools that allow AI agents to search and read AI-exposable WordPress content for research and SEO workflows.
These tools are designed for reading and research. Before editing content, the agent should fetch the editable target again through LemonX Code tools.
LemonX MCP is designed with a read-only fallback and Pro-gated write workflows. Read tools remain available based on authentication and capability checks. Write tools are gated through LemonX Pro feature keys.
The default write feature is mcp.write, while LemonX Code write tools can use the code.mcp feature gate.
pro_feature keys allow product-level control.A normal API connection can expose raw endpoints. LemonX MCP exposes structured tools with instructions, schemas, permissions, Pro gates, staged writes and site identity.
LemonX MCP is built around controlled access rather than blind automation. Requests must authenticate. Tools require capabilities. Writes are gated by Pro. Every write goes through preview-before-apply. Actions are recorded.
site_identity before site-specific workLemonX MCP is built for extensibility. Other LemonX plugins contribute tools through the lemonx_mcp_tools filter — and developers can follow the same pattern for custom workflows.
name
description
input_schema
required
capability
write: true/false
pro_feature
prepare()
apply()
source
A read tool receives decoded arguments, checks permissions and returns data as structured output.
A write tool uses a two-step process. Prepare returns a preview + payload. Apply commits the staged payload.
The admin screen provides endpoint information, tokens and configuration snippets so setup is a copy-paste, not a research project.
site_identityTen workflow patterns spanning inspection, editing, publishing and safe automation — all through one authenticated gateway.
Ask an AI client to inspect the homepage, understand its structure and suggest improvements before any edits are staged.
Use AI to rewrite a section, stage the update, review the preview and apply only after approval.
Ask AI to find and replace outdated links across a target page through a staged write action.
Let an AI client prepare a new HTML blog post, set metadata and stage the publish action for confirmation.
Use template record tools to inspect global templates and stage safer header or footer edits.
Use AEO read tools to search AI-exposable content, summarize context and prepare optimization suggestions.
Give agency operators a controlled way to ask AI to inspect, update and document client website changes.
Build custom tools that expose specific WordPress workflows to AI agents without exposing raw site internals.
Use Code tools to list media, set featured images and prepare content updates involving images.
Use site identity, permission checks, staging, Pro gates and audit logs to make AI-assisted actions reviewable.
LemonX MCP installs as a WordPress plugin and adds a dedicated settings screen for the MCP gateway.
site_identity first.The gateway can expose read tools based on authentication and WordPress permissions. Write-capable tools can require LemonX Pro feature access.
mcp.write.code.mcp.LemonX MCP is the gateway layer for LemonX products and external AI clients.
LemonX MCP makes AI-to-WordPress workflows more structured and safer, but it does not remove the need for human judgment. AI-generated changes should be reviewed for accuracy, brand voice, formatting, compliance, SEO impact, technical correctness and user experience before applying them to important content.
Eighteen short answers to the most common questions we hear.
/wp-json/lemonx-mcp/v1/mcp.apply_change tool is called with the staging ID.aeo_search, aeo_recent and aeo_get_content.text/event-stream, but it does not provide a long-lived standalone GET push stream in the current version.lemonx_mcp_tools filter.site_identity, verify the domain, list tools and start with read-only workflows before trying staged write actions.Use LemonX MCP to connect Claude, Codex and other MCP-compatible clients to WordPress through one authenticated gateway with tool discovery, site identity, read tools, staged write actions, Pro gates and audit-friendly workflows.
Built for WordPress · MCP gateway · Preview before apply · Powered by LemonX Code, AEO and Pro