Elementor MCP — Edit Elementor with an AI Agent (7 Tools)
What is Elementor MCP?
Elementor MCP means editing your Elementor templates and styles by describing the change to an AI assistant instead of dragging widgets on a canvas. Cowboy MCP's Elementor integration gives an AI agent 7 tools over the Model Context Protocol whenever Elementor is active, so your assistant can read your templates and any Elementor page's content, rewrite a template's structure, and update the global colors and typography — every write previewed and reversible.
MCP is the open standard an AI client uses to discover and call those tools, and the same Cowboy MCP plugin that manages your posts, users, and plugins surfaces the Elementor tools automatically whenever Elementor is active. Instead of you opening the editor and clicking through panels, the agent reads the underlying element data, changes exactly the values you name, and reads the result back.
What can an AI agent do with Elementor?
An agent can handle the structural edits you would otherwise click through in the Elementor editor: list and read your templates, rewrite a template's element tree, pull any Elementor page's content, read and update the global colors and typography in your active kit, and list the available widget types. Each of the 7 tools maps to one real Elementor operation, so the assistant fills in the details rather than guessing.
Here are all 7 tools. The names below are the real tool identifiers the agent sees.
| Tool | What it does |
|---|---|
wp_elementor_list_templates |
List your saved templates — pages, sections, popups, headers, footers — optionally filtered by type |
wp_elementor_get_template |
Read one template's full element structure, or a simplified summary |
wp_elementor_update_template |
Rewrite a template's element tree; raw HTML and custom-code settings are blocked unless you opt in |
wp_elementor_get_page_content |
Read the Elementor content of any post or page built with the editor |
wp_elementor_get_global_styles |
Read the global colors and typography from your active Elementor kit |
wp_elementor_update_global_styles |
Update the global colors and/or typography in the active kit |
wp_elementor_list_widgets |
List every available Elementor widget type and its category |
Three real prompts, to make it concrete:
- "List every Elementor template, then show me the element structure of the one titled 'Global Footer'."
- "Read the global styles in my active kit and change the primary brand color to a deeper green — show me the change before you save it."
- "Open the 'Global Footer' template and rewrite its heading text to 'Ride with us', leaving the rest of the structure as it is."
How do template and style edits stay safe?
Letting an agent rewrite a page's structure is only reasonable if you can preview it and take it back. Cowboy MCP wraps the two Elementor write tools in the same guardrails it applies across the whole site: a dry-run preview, a confirmation gate on the destructive one, a per-change undo entry, a full audit trail, and an extra guard against raw HTML.
- Dry run — both write tools,
wp_elementor_update_templateandwp_elementor_update_global_styles, can report exactly what they would change without saving, so you preview a structural rewrite before it lands. - Safe mode — rewriting a template is flagged destructive, so
wp_elementor_update_templatewill not run until you confirm; it is on by default. Updating global styles is a write but is not flagged destructive, so it runs without a prompt — while still being previewable and reversible. - Undo journal — every template and global-style write is captured as its own entry, so a bad edit rolls back from the Activity tab without touching the rest of the site.
- Raw HTML is blocked by default —
wp_elementor_update_templaterefuses element settings that carry raw HTML or custom code — the kind that could smuggle a script onto your front end — unless you explicitly passallow_unfiltered_html.
Every call is also written to the audit log, and your MCP client asks you to approve each tool call, so a human stays in the loop at both layers. The full guardrail model lives on the security page.
What are Elementor MCP's limits?
Cowboy MCP works with Elementor's data, not its canvas. It reads and rewrites your saved templates, reads the content of any Elementor page, and reads and updates the global kit's colors and typography — but it is not a visual, drag-and-drop designer. It cannot render a live preview, position elements by eye, or judge how a layout looks; it changes the values you name inside the structure that already exists.
That boundary is deliberate and worth understanding. An agent is excellent at mechanical, repetitive edits — swapping a heading across templates, updating a brand color everywhere it is defined, or auditing which templates exist — because those are data operations. Designing a new section from scratch, choosing a layout, or fine-tuning spacing by eye is still work for the Elementor editor. Think of the agent as a fast, careful assistant for the structured parts, not a replacement for the builder itself: new widgets and page designs still start in Elementor, and the tools then read and adjust what is there.
How do I set it up?
Setup takes about five minutes and needs no code. Install the Cowboy MCP plugin, make sure Elementor is active so the tools register, then connect your AI assistant and start with a read-only request like listing your templates. The Elementor tools appear automatically once both plugins are running — there is nothing extra to switch on.
- Install the plugin. In wp-admin, go to Plugins → Add New, search for "Cowboy MCP", and click Install then Activate. It is free on the WordPress.org plugin directory (opens in new tab) and needs WordPress 6.2+ and PHP 8.0+.
- Connect your AI. Open Settings → Cowboy MCP and follow the guided setup. See how to connect WordPress to Claude or how to connect WordPress to ChatGPT for the full walkthrough.
- Ask for something real. Start read-only — "list all my Elementor templates and their types" — then let it act. Safe mode checks with you before it rewrites a template.
FAQ
Can Elementor MCP design a page for me visually?
No — it works with Elementor's data, not its canvas. It rewrites your saved templates' element structure, reads any Elementor page's content, and updates the global kit's colors and typography, but it cannot drag widgets on a live preview or judge how a layout looks. It is best at structured, repetitive edits; designing a new section from scratch still happens in the Elementor editor.
Will an AI edit break my Elementor layout?
It changes only what you ask, and you can preview and undo it. Every template and global-style write accepts a dry run, so you see the change before it saves, and each one is captured in the undo journal to roll back from the Activity tab. Rewriting a template is flagged destructive, so safe mode confirms it first, and raw HTML or custom-code settings are refused unless you explicitly allow them.
Do I need Elementor installed for these tools to appear?
Yes. The Elementor tools register only when Elementor is active on the site. If Elementor is not installed, the agent simply does not see them, and Cowboy MCP's other WordPress tools work as normal. Activate Elementor and the tools light up automatically — no extra configuration.