WE

wpcursor/elementor-mcp

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

24 stars 7 forks 质量 52 趋势 10

一个WordPress插件,为Elementor提供模型上下文协议(MCP)服务器接口,使像Claude这样的AI助手能够与Elementor的页面构建功能交互。

概览

一个WordPress插件,为Elementor提供模型上下文协议(MCP)服务器接口,使像Claude这样的AI助手能够与Elementor的页面构建功能交互。 Elementor MCP 弥合了 AI 助手与 Elementor(WordPress 领先的页面构建器)之间的鸿沟。它实现了模型上下文协议(MCP),以提供: - :查询和探索可用的 Elementor 控件 - :访问和分析 Elementor 模板 - 检查页面布局和控件配置 - 获取控件和控件设置 - 访问 Elementor 的数据模式和结构 这使得AI助手能够通过标准化协议理解并与Elementor网站合作。 - : 7.4 或更高 - : 6.6 或更高 - : 3.0.0 或更高(必须安装并激活) - : 无需(使用 PHP 标准) - : 最新版本(用于 AI 助手集成) 1. 下载或克隆此仓库 2.将 elementor-mcp 文件夹放入你的 WordPress wp-content/plugins/ 目录中 3.

概述(AI 翻译)

一个WordPress插件,为Elementor提供模型上下文协议(MCP)服务器接口,使像Claude这样的AI助手能够与Elementor的页面构建功能交互。

这个插件的作用

Elementor MCP 弥合了 AI 助手与 Elementor(WordPress 领先的页面构建器)之间的鸿沟。它实现了模型上下文协议(MCP),以提供:

  • Widget Discovery:查询并探索可用的 Elementor 控件
  • 模板管理:访问和分析Elementor模板
  • 页面结构分析:检查页面布局和控件配置
  • 设置检索:获取小部件和控制设置
  • 模式信息:访问Elementor的数据模式和结构

这使得AI助手能够通过标准化协议理解并与Elementor网站合作。

要求

WordPress 环境

  • PHP:7.4或更高
  • WordPress:6.6及以上
  • Elementor:3.0.0及以上(必须安装并激活)

用于MCP服务器运营

  • Node.js:非必需(使用 PHP 标准)
  • Claude Desktop:最新版本(用于 AI 助手集成)

安装

1.手动安装

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

Elementor MCP - Model Context Protocol Server for Elementor

A WordPress plugin that provides a Model Context Protocol (MCP) server interface for Elementor, enabling AI assistants like Claude to interact with Elementor’s page builder functionality.

What This Plugin Does

Elementor MCP bridges the gap between AI assistants and Elementor, WordPress’s leading page builder. It implements the Model Context Protocol (MCP) to provide:

  • Widget Discovery: Query and explore available Elementor widgets
  • Template Management: Access and analyze Elementor templates
  • Page Structure Analysis: Inspect page layouts and widget configurations
  • Settings Retrieval: Get widget and control settings
  • Schema Information: Access Elementor’s data schemas and structures

This enables AI assistants to understand and work with Elementor sites through a standardized protocol.

Requirements

WordPress Environment

  • PHP: 7.4 or higher
  • WordPress: 6.6 or higher
  • Elementor: 3.0.0 or higher (must be installed and activated)

For MCP Server Operation

  • Node.js: Not required (uses PHP stdio)
  • Claude Desktop: Latest version (for AI assistant integration)

Installation

1. Manual Installation

  1. Download or clone this repository
  2. Place the elementor-mcp folder in your WordPress wp-content/plugins/ directory
  3. Run composer install in the plugin directory (if using Composer dependencies)
  4. Activate the plugin through the WordPress admin panel

2. Composer Installation (Development)

cd wp-content/plugins
git clone https://github.com/yourusername/elementor-mcp.git
cd elementor-mcp
composer install

3. Claude Code Installation

claude mcp add wpcursor-elementor --transport http https://your-wpsite.com/wp-json/elementor-mcp/v1/rpc

Then activate through WordPress admin.

Configuration

Claude Desktop Integration

Add this configuration to your Claude Desktop config file:

macOS: ~/Library/Application Support/Claude/claude_desktop_config.json

Windows: %APPDATA%\Claude\claude_desktop_config.json

{
  "mcpServers": {
    "elementor": {
      "command": "php",
      "args": [
        "/path/to/wordpress/wp-content/plugins/elementor-mcp/server.php",
        "--site-url=https://yoursite.com"
      ]
    }
  }
}

Replace /path/to/wordpress/ and https://yoursite.com with your actual paths.

Basic Usage

From Claude Desktop

Once configured, you can interact with Elementor through natural language:

"Show me all available Elementor widgets"
"What widgets are used on the homepage?"
"Get the settings for the heading widget"
"List all Elementor templates"

Available MCP Tools

The plugin exposes these MCP tools (to be implemented):

  • get_widgets - List all registered Elementor widgets
  • get_widget_controls - Get controls for a specific widget
  • get_templates - List Elementor templates
在 GitHub 查看完整 README

安装

This server does not publish a one-line install command.

Open the repository installation guide 新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "elementor": { "command": "php", "args": [ "/path/to/wordpress/wp-content/plugins/elementor-mcp/server.php", "--site-url=https://yoursite.com" ] } } }