原始内容
Claude + Elementor Kit
Build WordPress sites with AI — design with Claude Code, then have Claude build it directly inside your Elementor site. No more rebuilding mockups by hand.
The short version: This kit teaches Claude (Anthropic's AI) how to talk to your WordPress site through the Elementor MCP server. You design pages in Claude Code, then Claude places sections, widgets, colors, and typography directly into Elementor for you. Works on local sites (Local-by-Flywheel) and live hosts.
What's inside
claude-elementor-kit/
├── INSTALL.sh ← Installer for Mac & Linux
├── INSTALL.bat ← Installer for Windows (double-click)
├── INSTALL.ps1 ← Windows installer (PowerShell)
├── files/
│ ├── SKILL.md ← The cheat sheet Claude reads
│ └── setup-elementor-mcp.sh ← The robot that connects Claude to WordPress
├── docs/
│ ├── QUICKSTART.md ← Short "how to use this" guide
│ └── LESSONS.md ← Deep-dive on why it works the way it does
├── LICENSE ← MIT — free for any use
└── README.md ← You are here
How it works (in 30 seconds)
There are two pieces:
The skill (
SKILL.md) — a guide Claude reads every time you ask it to work on Elementor. It encodes every quirk and gotcha learned the hard way (correct widget parameter names, when to use HTML vs native widgets, the auth gotchas, etc.).The setup script (
setup-elementor-mcp.sh) — a wizard that connects Claude to one specific WordPress site. It installs the MCP plugins, wires up authentication, and writes a.mcp.jsonfile in your project directory.
After running both, you can tell Claude "build me a hero section with this design" and watch it appear on your WordPress site in real time.
Prerequisites
The kit touches five layers of stuff. Some you install yourself, some the wizard handles for you. Here's the full picture so nothing surprises you mid-setup.
Layer 1 — On your computer (install once, ever)
- ☐ Claude Code — the AI assistant the kit plugs into
- ☐ Local by Flywheel (only if you want offline WordPress — skip if you have a live site)
- ☐ Git Bash (Windows only — gives you
bash,curl,python,zipthat the setup script needs. Mac and Linux users already have these.)
Layer 2 — Inside Local (or your hosting panel)
- ☐ A WordPress site. Create a fresh one in Local, or have admin access to a live host.
- ☐ An Application Password. WP Admin → Users → Profile → scroll to Application Passwords → click Add. Copy the password — that's the credential the wizard uses. (WordPress docs)
Layer 3 — WordPress plugins + theme
You can install these yourself OR let the setup wizard auto-install them for you (it asks). All are free, on the WordPress.org plugin directory.
Required:
| Plugin / Theme | What it does |
|---|---|
| Elementor (free) | The page builder — Claude builds pages inside this |
| Hello Elementor (theme) | Blank canvas theme that doesn't fight Elementor's styling |
| Ultimate Addons for Elementor (UAE) | Lets you build site-wide headers and footers (Theme Builder is Pro-only) plus a free Nav Menu widget |
Optional but useful:
| Plugin | What it does |
|---|---|
| Essential Addons for Elementor (lite) | Free widgets like Post Grid that aren't in Elementor base |
| Fluent Forms | Real working contact forms (Elementor's Form widget is Pro) |
Layer 4 — The MCP plugins (automatic — wizard handles these)
You don't install these yourself. The setup wizard downloads them from GitHub and installs them automatically.
| Plugin | What it does |
|---|---|
| MCP Adapter | The "phone line" that lets any AI talk to WordPress |
| MCP Tools for Elementor | The Elementor-specific MCP server — the magic |
Layer 5 — This kit (handled by INSTALL.sh / INSTALL.bat)
The two files in this repo's files/ folder get copied to:
~/.claude/skills/elementor-mcp/SKILL.md— the cheat sheet Claude reads each session~/.claude/scripts/setup-elementor-mcp.sh— the wizard you run per WordPress site
📋 Want a one-page reference of every file/plugin the kit touches? See
docs/WHATS_INSTALLED.md.
Install
Mac / Linux
# 1. Clone or download this repo
git clone https://github.com/emersimeon/claude-elementor-kit.git
cd claude-elementor-kit
# 2. Run the installer
bash INSTALL.sh
Windows
1. Download this repo as a ZIP (green "Code" button → Download ZIP)
2. Unzip it anywhere
3. Double-click INSTALL.bat
The installer copies two files into your ~/.claude/ folder:
~/.claude/skills/elementor-mcp/SKILL.md~/.claude/scripts/setup-elementor-mcp.sh
Safe to re-run — it'll ask before overwriting existing files.
Use it
One-time per WordPress site
# In your project folder (anywhere you want .mcp.json to live)
bash ~/.claude/scripts/setup-elementor-mcp.sh
The wizard walks you through 8 steps:
- Local or live host?
- Site URL or Local site name
- Connectivity check
- WordPress username + Application password
- Reports which baseline plugins/theme are already active
- Offers to auto-install missing ones (Elementor, UAE, Hello Elementor, optionally Essential Addons + Fluent Forms)
- Installs the two MCP plugins from GitHub
- Writes
.mcp.jsonto the current folder
If you say "yes" at step 6, the wizard installs the required plugins from wordpress.org for you. If you say "no" — say if you're using an existing site you don't want auto-modified — install them manually via WP Admin → Plugins → Add New.
Every session
- Restart Claude Code in the project folder so it picks up
.mcp.json - Approve the new MCP server when prompted
- Tell Claude what to build:
- "Use the Elementor MCP to build a homepage based on the design in this folder"
- "Add a hero section with a video background"
- "Set my global colors to navy and gold"
The skill auto-loads, and Claude already knows how to drive Elementor correctly.
What this can and can't do
Can do:
- Create pages, set them as the homepage
- Build sections — heroes, listings grids, neighborhoods, stats, journals, contact
- Set Elementor global colors and typography
- Add containers, headings, images, buttons, tabs, accordions, dividers
- Drop in custom HTML/CSS for things native widgets can't do
- Edit existing pages, find elements by ID, update settings, restructure layouts
- Work on local AND live WordPress sites
Can't do:
- Install plugins on live hosts (you upload the two MCP plugin zips manually — the script tells you when)
- Drive Elementor Pro features (Theme Builder, Loop Grid, Form widget, Sticky/Motion, Popups). It's free Elementor only.
- Pixel-perfect translation from arbitrary HTML — Elementor's flexbox container model is the ceiling
- Build Custom headers/footers without Header Footer Elementor plugin (free)
Troubleshooting
"Auth failed" — The Application Password's name (e.g. "ClaudeMCP") is just a label. The username is your actual WordPress login. The setup script will list public users on auth failure.
"Could not find MySQL socket" — Your Local site isn't running. Open Local, click Start Site, re-run the setup script.
"MCP namespace doesn't appear after install" — The elementor-mcp plugin requires Elementor v3.20+. Check the plugin row in WP Admin → Plugins for any error.
"Live host returns 403 from /wp-json/" — Some hosts block non-browser User-Agents on the REST API. Add WP-CLI or the curl IP to your security plugin's allowlist.
Windows: "bash: command not found" — Install Git Bash first.
For more details, see docs/LESSONS.md.
Credits
This kit wraps two existing open-source projects:
- elementor-mcp by @msrbuilds — the actual MCP server that exposes Elementor to AI agents (GPL-3.0)
- WordPress MCP Adapter — the WP-side plumbing for any MCP server (GPL-2.0)
Both plugins are GPL-licensed and are downloaded from GitHub Releases by the setup script.
The skill, setup script, installers, and docs in this kit are MIT-licensed (see LICENSE).
Questions?
Open an issue on this repo. Don't promise me you'll wait for an answer, but I read everything.