Claude WordPress MCP — Documentation

.mcp-doc{max-width:820px;margin:40px auto;padding:0 24px;font-family:-apple-system,BlinkMacSystemFont,’Segoe UI’,Roboto,sans-serif;color:#1e293b;line-height:1.65;font-size:16px}
.mcp-doc h1{font-size:40px;line-height:1.15;margin:0 0 12px;color:#0f172a;font-weight:800}
.mcp-doc .mcp-sub{font-size:18px;color:#64748b;margin:0 0 36px}
.mcp-doc h2{font-size:28px;margin:48px 0 12px;color:#0f172a;font-weight:700;border-bottom:1px solid #e2e8f0;padding-bottom:8px}
.mcp-doc h3{font-size:20px;margin:28px 0 10px;color:#0f172a;font-weight:700}
.mcp-doc p{margin:0 0 14px}
.mcp-doc ul,.mcp-doc ol{margin:0 0 14px;padding-left:24px}
.mcp-doc li{margin-bottom:6px}
.mcp-doc code{background:#f1f5f9;padding:2px 6px;border-radius:4px;font-family:Menlo,Monaco,Consolas,monospace;font-size:14px;color:#0f172a}
.mcp-doc pre{background:#0f172a;color:#e2e8f0;padding:16px 20px;border-radius:8px;overflow-x:auto;font-size:13px;line-height:1.5;margin:14px 0}
.mcp-doc pre code{background:transparent;color:inherit;padding:0}
.mcp-doc a{color:#2563eb;text-decoration:none}
.mcp-doc a:hover{text-decoration:underline}
.mcp-doc .mcp-nav{background:#f8fafc;border:1px solid #e2e8f0;border-radius:10px;padding:20px 24px;margin:0 0 36px}
.mcp-doc .mcp-nav h3{margin:0 0 10px;font-size:14px;color:#64748b;text-transform:uppercase;letter-spacing:1px;font-weight:600}
.mcp-doc .mcp-nav ul{margin:0;padding:0;list-style:none}
.mcp-doc .mcp-nav li{margin-bottom:4px}
.mcp-doc table{width:100%;border-collapse:collapse;margin:14px 0;font-size:14px}
.mcp-doc th,.mcp-doc td{text-align:left;padding:10px 12px;border-bottom:1px solid #e2e8f0}
.mcp-doc th{background:#f8fafc;font-weight:600;color:#0f172a}
.mcp-doc .mcp-card{background:#f8fafc;border:1px solid #e2e8f0;border-radius:10px;padding:20px 24px;margin:14px 0}
.mcp-doc .mcp-warn{background:#fef3c7;border:1px solid #fbbf24;border-radius:10px;padding:16px 20px;margin:14px 0;color:#78350f}
.mcp-doc .mcp-danger{background:#fee2e2;border:1px solid #ef4444;border-radius:10px;padding:16px 20px;margin:14px 0;color:#7f1d1d}
.mcp-doc .mcp-ok{background:#dcfce7;border:1px solid #22c55e;border-radius:10px;padding:16px 20px;margin:14px 0;color:#14532d}
.mcp-doc .mcp-meta{font-size:13px;color:#64748b;margin:0 0 36px;padding-bottom:14px;border-bottom:1px solid #e2e8f0}

Claude WordPress MCP

Technical documentation for the plugin that connects Claude AI to WordPress via the Model Context Protocol.

Version: 30.4.0 · Last updated: October 2026 · License: GPL v2

Documentation

What this plugin is

Claude WordPress MCP is a WordPress plugin that exposes a WordPress site to Claude AI through the Model Context Protocol (MCP). Once installed and authenticated, Claude can read and write to the site: create pages, apply Elementor templates, upload media, edit content, manage plugins, and more.

It is purpose-built for Elementor-based sites. Its template library, widget-schema introspection, and page-building tools all assume Elementor as the primary page builder. Non-Elementor sites can still use the generic post/page/media tools but will not benefit from the template library.

What makes it different

  • Native Elementor integration. Not a translation layer. Templates are stored as Elementor JSON and applied directly to _elementor_data, so pages render identically to anything built in the editor.
  • 41 bundled starter templates covering heroes, features, pricing, testimonials, team, CTAs, FAQ, gallery, contact, and footer sections.
  • HTML-widget safety guard. The server rejects any attempt to inject raw HTML or shortcode widgets unless the user explicitly allows it, preventing Claude from falling back to unstructured markup.
  • Live preview pages. Every template gets a companion preview page that renders it live for visual review.
  • Export / Import. Templates are portable across sites via JSON bundles.

Who it’s for

Agencies & freelancers

Build client sites faster by maintaining a central template library. Mine good sections from past projects, bundle them, and reuse on new builds. Claude handles page assembly; you handle creative decisions.

Developers

Delegate repetitive WordPress work — content migrations, bulk edits, SEO audits, plugin management — to Claude. The tool set is designed to be composable so complex multi-step workflows work from a single prompt.

Content teams

Draft, publish, and update pages conversationally. “Add a testimonials section to the pricing page” or “Export all draft posts as a backup” become one-line requests.

High-level architecture

The plugin sits on a single WordPress site and exposes two main endpoints:

  • /wp-json/claude-mcp/v1/mcp — the MCP server endpoint. Accepts JSON-RPC requests from Claude.
  • /.well-known/oauth-authorization-server and /oauth/token — OAuth 2.0 endpoints used by Claude to obtain and refresh access tokens.

When a user adds the site as a connector in Claude, Claude initiates an OAuth flow. The site owner clicks “Allow” on an authorization screen, Claude receives an access token, and from that point on Claude can call tools on the site. Every tool call is authenticated with the bearer token, routed through a dispatcher, and executed against the WordPress database or filesystem.

See Architecture for the full request flow, class structure, data model, and extension points.

Feature overview

MCP tools

Roughly 70 tools covering: post & page CRUD, media upload, Elementor data read/write (full-page, by section, by widget), the template library (list / get / apply / save), categories & tags, menus, comments, options, user management, theme & plugin install / activate / read / write, customizer settings, ACF fields (when ACF is active), SEO audits, broken-link scanning, and SEO metadata through Rank Math or Yoast when installed.

Full list: MCP Tools Reference.

Template library

Templates are stored as a custom post type (claude_mcp_template) with a custom taxonomy for categories. The plugin ships 41 generic templates on activation and lets users save new ones from existing pages. Each template gets a live preview page auto-generated from its JSON. Export and import work via JSON bundles.

Full guide: Template Library.

Security guards

  • HTML widget block. Any Elementor data containing widgetType: "html", "raw-html", or "shortcode" is rejected at the server before writing to the database.
  • Path traversal protection. File-read and file-write tools resolve paths with realpath() and verify they stay within wp-content/plugins or wp-content/themes.
  • Rate limiting. 120 tool calls per minute per token, configurable via CLAUDE_MCP_RATE_LIMIT.
  • Response truncation. Tool responses larger than 30 KB are truncated to protect Claude’s context budget.
  • SHA-256 token hashing. Access tokens are stored hashed, not in plaintext.

Full threat model: Security Model.

Admin interface

A top-level admin menu (Claude MCP) with two main screens: Dashboard (status, token management, API key, template management) and Templates (CPT list with inline previews, export, import, bulk operations). Live preview pages are auto-generated and hidden from site menus.

Setup in 60 seconds

  1. Upload the plugin ZIP via Plugins → Add New → Upload Plugin
  2. Activate it. The 41 starter templates install automatically.
  3. Navigate to Claude MCP → Dashboard and copy the MCP endpoint URL.
  4. In Claude, go to Settings → Connectors → Add Custom Connector, paste the URL, authenticate.
  5. Test by asking Claude “list my pages” or “show me available templates”.
Default state is safe. On a fresh install, the plugin is active but no tool call will succeed until an admin completes the OAuth flow from Claude. There is no public read access and no default API key that would allow anyone to use the endpoint.

System requirements

Requirement Minimum Recommended
WordPress 6.0 6.4+
PHP 7.4 8.1+
Elementor 3.6 (for Container support) 3.20+ or 4.x
HTTPS Required for OAuth Required
REST API Must be enabled —
Memory 128 MB 256 MB+

Project status

Active development. Current version 30.4.0. Changes ship frequently and are tested on a dedicated lab site before being pushed to production sites. Known limitations and the roadmap are documented in the Architecture and Security pages.

— End of overview. Continue to Architecture →