# Mogacode-ma/elementor-mcp-agent [Health: Active]

**Category:** 💰 Finance & Fintech  
**Repository:** https://github.com/Mogacode-ma/elementor-mcp-agent  
**GitHub Stars:** 3  
**npm Downloads (last month):** 399  
**Views:** 3  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/mogacode-ma-elementor-mcp-agent

## Description
/🏠 - Agency-grade MCP server for WordPress Elementor — multi-site management for 120+ WordPress sites with safe edits (backup + auto-rollback + post-write verification), template export/import, global widget detection, CSS flush, WP-CLI escape hatch, headless Chrome screenshots. 34 tools across pages, widgets, templates, bulk find/replace, and fleet operations.

## Tools
Capabilities this server exposes over MCP:

- **list_sites** — enumerate the pool
- **ping_site** — auth + version probe
- **site_health** — multi-call health snapshot
- **list_elementor_pages** — pages in builder mode
- **read_page_elementor** — parsed summary + optional full tree
- **list_widgets_in_page** — flat widget inventory with excerpts
- **list_global_widgets** — shared widgets (edit one → affects every page using it)
- **preflight_check** — validate a page is safe to edit
- **elementor_find_replace** — text replace with **dry-run → token → apply → backup → validate → rollback if invalid**
- **duplicate_elementor_page** — clone within a site (data + page_settings + edit_mode)
- **list_elementor_templates** — Theme Builder distinguished from regular library
- **export_elementor_template** — portable JSON
- **import_elementor_template** — drop into target site
- **apply_template_to_page** — push template data onto an existing page
- **wp_cli_run** — arbitrary wp-cli command with destructive-pattern detection + confirmation
- **wp_search_replace** — `wp search-replace` with mandatory dry-run
- **wp_elementor_flush_css** — 3-level fallback
- **screenshot_page** — headless Chrome PNG of any URL
- **compare_screenshots** — SHA-256 + byte-delta
- **read_widget** — fetch one widget by id (read-only)
- **update_widget_settings** — shallow-merge settings, with backup + validate + flush
- **delete_widget** — remove a widget from its parent container
- **duplicate_widget** — clone as sibling with fresh id
- **swap_widget_type** — replace widgetType + settings, preserve id + position
- **add_widget** — append a widget into a parent container
- **move_widget** — move a widget between containers (with position)
- **bulk_find_replace_site** — find/replace across every Elementor page of one site, per-page backup + validate + flush
- **fleet_find_replace** — same across **every site in the pool** (sequential, dry-run mandatory)
- **restore_from_file** — restore `_elementor_data` from a JSON file backup, with pre-restore safety backup
- **check_elementor_versions** — flag outdated installs against wordpress.org latest

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "elementor-mcp-agent": {
    "command": "npx",
    "args": ["-y","elementor-mcp-agent"],
    "env": {
      "ELEMENTOR_MCP_SITES": ""
    }
  }
}
```

**Requires environment variables:** `ELEMENTOR_MCP_SITES` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## What Mogacode-ma/elementor-mcp-agent MCP server does

Mogacode-ma/elementor-mcp-agent MCP server provides MCP tools for administering WordPress sites that use Elementor or Elementor Pro. It treats configured sites as a managed pool, allowing an agent to inspect site versions and health, enumerate Elementor pages, examine widget trees, and identify global widgets whose changes may affect multiple pages.

The server also covers page and template operations. Agents can duplicate Elementor pages, export templates as JSON, import templates into another site, or apply template data to an existing page. Widget-level operations include reading, updating, adding, deleting, duplicating, moving, and changing widget types.

## How it works

Sites are supplied through one JSON environment variable. Each entry includes an identifier, URL, WordPress username, and application password. The server communicates with WordPress using the configured credentials. An optional SSH configuration provides access to the site’s filesystem and WP-CLI installation.

Write workflows are designed around confirmation and recovery. Supported edits can create a backup before changing data, validate the resulting Elementor JSON, flush generated CSS, and re-read the canonical WordPress state after the write. If validation fails, the server can roll back. Global widget writes are blocked by default, and destructive operations require confirmation within a limited time window. Certain destructive WP-CLI patterns are blocked regardless of confirmation.

Bulk replacement can run across all Elementor pages on one site or sequentially across the configured site pool. These operations require a dry run before application. Screenshot tools use headless Chrome to capture a URL and compare images using SHA-256 and byte differences.

## Setup and configuration

Install the package through npx:

```bash
npx -y elementor-mcp-agent
```

Set `ELEMENTOR_MCP_SITES` to a JSON array of site definitions. WordPress application passwords are used for authentication. SSH is optional: without it, backups use local JSON files; with it, the server can use WP-CLI for additional operations and custom postmeta backups. If `wp_cli_path` is omitted, the server attempts several common WP-CLI locations.

The package can be launched from an MCP client using a command such as `npx` with `-y elementor-mcp-agent` and the environment variable in the client configuration.

## Tools and capabilities

Mogacode-ma/elementor-mcp-agent MCP server includes capabilities for:

- Site enumeration, authentication probes, health snapshots, and Elementor version checks.
- Page inspection, widget inventory, global-widget discovery, preflight checks, and page duplication.
- Template listing, export, import, and application to existing pages.
- Widget CRUD and repositioning with persisted-state verification.
- Site-wide and fleet-wide find-and-replace workflows with dry-run support.
- Screenshots, image comparison, CSS flushing, backup restoration, and guarded WP-CLI commands.

## Limitations and notes

The server is specifically oriented toward WordPress Elementor data, not general WordPress administration. SSH-dependent WP-CLI tools and reliable custom-postmeta backups are unavailable when SSH is not configured. Changes to global widgets can affect every page that references them, so the server warns about or blocks those writes by default. The documented hard limit for Elementor data is 5,000,000 bytes, and fleet operations run sequentially rather than concurrently.

_Full upstream README: https://allmcps.com/mcp/mogacode-ma-elementor-mcp-agent/readme_

