elementor-mcp-agent
The Elementor MCP Agent is a Model Context Protocol server for managing multiple WordPress/Elementor sites with AI agents, featuring safety guardrails, automatic backups, validation, and rollback.
Site Management & Health
List and ping configured sites for connectivity and version info (WP/PHP/Elementor)
Get comprehensive health snapshots (disk, plugins, themes, page counts)
Fleet-wide Elementor version audit across all sites
Page Operations
List Elementor-built pages, read full element trees or parsed summaries
Preflight checks to validate a page is safe to edit
Find & replace text with dry-run → confirmation → apply → auto-rollback flow
Duplicate pages within a site
Widget-Level CRUD
Read, update, delete, duplicate, add, move, and swap widget types
Shallow-merge settings, post-write verification, and auto-backup on every mutation
Template Management
List, export, import, and apply Elementor templates (sections, pages, popups, headers/footers, global widgets)
Backup & Restore
List and restore timestamped backups; restore from JSON file backups with pre-restore safety backups
Bulk & Fleet Operations
Find/replace across all Elementor pages on a single site or all sites in the pool, with per-page backup and dry-run
WP-CLI Escape Hatch (SSH required)
Run arbitrary WP-CLI commands with destructive-pattern detection and confirmation gates
wp search-replacewith mandatory dry-run, Elementor CSS flush (3-level fallback), plugin list/update with confirmation
Visual Tools
Capture page screenshots via headless Chrome; compare screenshots by SHA-256 hash and byte delta
Safety Guarantees
Backup before every write; two-call confirmation with 60s TTL for destructive operations
JSON validation + auto-rollback on invalid data; post-write re-read verification
Hard-blocked WP-CLI patterns (
rm -rf,sudo,db drop --yes); global widget write protection by default
Allows managing Elementor page builder content, including page editing with backup/rollback, template import/export, widget CRUD, and global widget detection.
Provides site management capabilities including health checks, page listing, backups, and WP-CLI escape hatch across multiple WordPress sites.
elementor-mcp-agent
Agency-grade MCP server for WordPress Elementor. Multi-site management, safe Elementor edits with backup + auto-rollback + CSS flush, template export/import, global widget detection, screenshots, WP-CLI escape hatch.
Built for agencies running many client sites on Elementor / Elementor Pro who want Claude (or any MCP client) to drive the toil — without breaking pages.
How this was built
elementor-mcp-agent was built end-to-end with Claude Code over ~48 hours. The process is intentionally open:
Architecture, code, tests, docs — all generated through Claude Code pair-programming sessions
The 7 bugs documented in this post-mortem were caught in real E2E testing against a live WordPress + Elementor install, not after the fact
v1.2's post-write verification pattern was shipped 2 hours after a reader's comment (Mads Hansen on Dev.to) — the changelog credits the source
This isn't vibe-coded software thrown over the wall. Every release ran through lint + typecheck + 27 unit tests + (for v1.0) full E2E against a real WordPress install before publishing. The MCP itself hardcodes guardrails that prevent the model from making destructive WP-CLI calls.
I run a small WordPress agency and use this tool every day on client sites. If you're skeptical about agentic codegen for production infrastructure, the entire commit history is in the open — judge for yourself.
Related MCP server: TanukiMCP
Why this exists
There are 25+ WordPress MCP servers on GitHub today. None targets the agency multi-site workflow with:
Real backup before every edit (postmeta via WP-CLI when SSH available, JSON file fallback — never silently lost)
Two-call confirmation for any destructive op (TTL 60s)
JSON validation + auto-rollback if an edit produces invalid Elementor data
3-level CSS flush fallback (REST → wp-cli native → option/meta delete → re-save)
Global widget awareness — preflight check warns if a page references shared widgets
WP-CLI escape hatch for everything the REST API can't do safely
Screenshots via headless Chrome (no puppeteer dep)
Install
npx -y elementor-mcp-agentConfigure
export ELEMENTOR_MCP_SITES='[{
"id": "client-acme",
"url": "https://acme.example.com",
"username": "admin",
"application_password": "xxxx xxxx xxxx xxxx xxxx xxxx",
"ssh": {
"host": "host.example.com",
"user": "username",
"port": 22,
"path": "/path/to/wordpress",
"wp_cli_path": "wp"
}
}]'Generate the WordPress Application Password at https://{your-site}/wp-admin/profile.php#application-passwords-section.
The ssh block is optional but unlocks 8 additional tools (WP-CLI escape hatch + reliable custom-postmeta backups). The MCP works without SSH — backups go to local JSON files instead.
wp_cli_path auto-detects if omitted (tries wp, then ~/bin/wp.phar, then ~/wp-cli.phar).
Claude Desktop config
{
"mcpServers": {
"elementor": {
"command": "npx",
"args": ["-y", "elementor-mcp-agent"],
"env": {
"ELEMENTOR_MCP_SITES": "[{\"id\":\"acme\",\"url\":\"https://acme.com\",\"username\":\"admin\",\"application_password\":\"...\"}]"
}
}
}
}Tools (34)
Sites & health
list_sites— enumerate the poolping_site— auth + version probesite_health— multi-call health snapshot
Pages
list_elementor_pages— pages in builder moderead_page_elementor— parsed summary + optional full treelist_widgets_in_page— flat widget inventory with excerptslist_global_widgets— shared widgets (edit one → affects every page using it)preflight_check— validate a page is safe to editelementor_find_replace— text replace with dry-run → token → apply → backup → validate → rollback if invalidlist_elementor_backups/restore_elementor_backup— full restore chain with pre-restore safety backupduplicate_elementor_page— clone within a site (data + page_settings + edit_mode)
Templates
list_elementor_templates— Theme Builder distinguished from regular libraryexport_elementor_template— portable JSONimport_elementor_template— drop into target siteapply_template_to_page— push template data onto an existing page
WP-CLI escape hatch (require SSH)
wp_cli_run— arbitrary wp-cli command with destructive-pattern detection + confirmationwp_search_replace—wp search-replacewith mandatory dry-runwp_elementor_flush_css— 3-level fallbackwp_plugin_list/wp_plugin_update(with confirmation)
Visual
screenshot_page— headless Chrome PNG of any URLcompare_screenshots— SHA-256 + byte-delta
Widgets (v1.1 — widget-level CRUD)
read_widget— fetch one widget by id (read-only)update_widget_settings— shallow-merge settings, with backup + validate + flushdelete_widget— remove a widget from its parent containerduplicate_widget— clone as sibling with fresh idswap_widget_type— replace widgetType + settings, preserve id + positionadd_widget— append a widget into a parent containermove_widget— move a widget between containers (with position)
Bulk & fleet (v1.1)
bulk_find_replace_site— find/replace across every Elementor page of one site, per-page backup + validate + flushfleet_find_replace— same across every site in the pool (sequential, dry-run mandatory)restore_from_file— restore_elementor_datafrom a JSON file backup, with pre-restore safety backup
Fleet
check_elementor_versions— flag outdated installs against wordpress.org latest
Post-write verification (v1.2)
Every mutating widget tool re-reads the page from canonical WP after the write and surfaces persisted state to the model. The HTTP write API can lie — return 200 OK while plugin filters or REST quirks silently drop the payload. This contract makes that observable.
Every applied response carries:
{
"mutated": true, // false = no-op OR silent drop
"warnings": [], // non-fatal issues
"verification": {
"method": "Re-read /wp/v2/pages/42 and check widget abc settings…",
"reread_ok": true,
"matches_requested": true, // false = write API lied
"persisted": { /* canonical state */ },
"notes": "…explanation when something diverged"
}
}If verification.matches_requested === false, treat as a failure even if
the HTTP layer said OK. The original payload survives in
backup_meta_key — restore via restore_elementor_backup.
Safety guarantees
Hardcoded in src/elementor/policies.ts:
BACKUP_BEFORE_WRITE = true
BACKUP_PAGE_SETTINGS = true
VALIDATE_JSON_AFTER_EDIT = true
BLOCK_GLOBAL_WIDGET_WRITES_BY_DEFAULT = true
CONFIRMATION_TTL_SECONDS = 60
GLOBAL_WIDGET_CONFIRMATION_TTL_SECONDS = 30
FLUSH_CSS_AFTER_WRITE = true
MAX_ELEMENTOR_DATA_BYTES = 5_000_000And these wp-cli patterns are hard-blocked regardless of confirmation:
rm -rfsudo *db reset --yes/db drop --yes
End-to-end verified
v1.0.0 was tested in real conditions against a live WordPress install with Elementor 4.0.9:
✅ 21/24 tools validated end-to-end at the v1.0.0 baseline (the suite now exposes 34 — see Tools)
✅ find_replace → backup → restore round-trip preserves data
✅ duplicate_page copies data + page_settings + edit_mode
✅ apply_template_to_page with auto-backup
✅ wp_cli_run destructive flow (post delete) requires confirmation
✅ screenshots identical detection via SHA-256
✅ CSS flush uses
wp elementor flush-csswhen SSH available, falls back to option-delete otherwise
7 bugs found during testing, all fixed:
REST API silently drops unregistered postmeta writes → switched to WP-CLI primary for backups
wpnot in SSH PATH on managed hosts → auto-detection +wp_cli_pathconfigSSH post-quantum banner pollution → stderr filter
Default Kit returned as "widget" → client-side filter
_elementor_page_settingstype object/string mismatch → normalisationChrome cold-start screenshot timeout → bumped to 60s
Templates listing same filter bug → fixed
Roadmap
v1.1 ✅ shipped
Widget-level CRUD:
read_widget,update_widget_settings,delete_widget,duplicate_widget,swap_widget_type,add_widget,move_widgetbulk_find_replace_site(across all Elementor pages of one site)fleet_find_replace(across all sites in pool)restore_from_file
v1.2
Global styles read/write
Theme Builder template push across sites
Section/column-level operations
v2.0
WooCommerce-aware tools
Visual diff (pixel comparison)
Schedule + cron scheduling
If this saved you time
The fastest way to support the project is a ⭐ star on GitHub — it helps other agencies running Elementor sites find this and tells me what to keep building.
You can also:
Open an issue for bugs, edge cases, or missing tools
Start a discussion for design or workflow questions
Share what you built with it — I'd love to hear
License
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- -license-quality-maintenanceEnables comprehensive WordPress and Elementor management through 60 powerful tools with modular configuration modes. Supports content creation, page building, element manipulation, file operations, and template management with enterprise-grade security and debugging capabilities.Last updated
- Alicense-qualityDmaintenanceA comprehensive MCP server for WordPress automation that enables users to manage content, themes, and site configurations using AI-driven workflows and the WordPress REST API. It provides a wide array of tools for site planning, management, and optimization compatible with tools like Cursor and Claude.Last updated661ISC
- Alicense-qualityCmaintenanceMCP server for AI-assisted WordPress editing across 12 page builders. 172 tools for content management, page builder editing, WooCommerce, SEO analysis, accessibility scanning, and site intelligence. Edits native builder formats (Elementor, Bricks, Divi, Gutenberg, Beaver Builder, and 7 more) with duplicate-before-edit safety, optimistic locking, and surgical element-level operationsLast updated6MIT
- AlicenseBqualityDmaintenanceMCP server that gives AI tools full WordPress management via WP-CLI. 30+ tools for themes, plugins, posts, menus, users, database, scaffolding, and cache. Works locally or over SSH.Last updated34123MIT
Related MCP Connectors
WordPress MCP server: publish posts, AI images, SEO and full site management, self-hosted
Security-first WordPress MCP server. 129 tools for Claude, ChatGPT, Gemini. Free on wp.org.
WordPress MCP server: generate SEO posts, AI images, autoblog & WooCommerce on your self-hosted site
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Mogacode-ma/elementor-mcp-agent'
If you have feedback or need assistance with the MCP directory API, please join our Discord server