wordpress-mcp
WordPress MCP Server
一个用于跨多个客户端站点进行日常 WordPress 维护的 MCP 服务器。
它能做什么
列出已配置的站点
检查站点健康状况和待处理的更新
列出插件和主题
更新插件
更新主题
更新 WordPress 核心
通过 SSH + WP-CLI 创建远程备份
Related MCP server: wp-cli-mcp
要求
Python 3.11+
mcppydanticPyYAML对每个 WordPress 主机的 SSH 访问权限
在每个远程主机上安装 WP-CLI
安装
选项 A — 从仓库安装
git clone https://github.com/nextestudios/wordpress-mcp.git
cd wordpress-mcp
uv tool install .选项 B — 使用 pipx 安装
git clone https://github.com/nextestudios/wordpress-mcp.git
cd wordpress-mcp
pipx install .两种方式都会安装 wordpress-mcp 命令。
配置
创建 ~/.hermes/wordpress-mcp.yaml:
sites:
client-a:
label: Client A
ssh:
host: your-server.example.com
user: deploy
port: 22
key_path: ~/.ssh/id_ed25519
path: /var/www/client-a/public_html
wp_bin: wp
shell: bash你也可以通过 WORDPRESS_MCP_CONFIG 让服务器指向另一个文件。
本地运行
wordpress-mcpHermes 配置
将此添加到 ~/.hermes/config.yaml:
mcp_servers:
wordpress:
command: wordpress-mcp或者以交互方式添加:
hermes mcp add wordpress --command wordpress-mcp重启 Hermes 后,工具将以 mcp_wordpress_* 前缀出现。
建议的工作流程
wordpress_list_siteswordpress_site_statuswordpress_site_backupwordpress_site_update_pluginswordpress_site_update_themeswordpress_site_update_core重新检查
wordpress_site_status
This server cannot be deployed
Maintenance
Related MCP Connectors
WordPress MCP server: publish posts, AI images, SEO and full site management, self-hosted
A hosted MCP server for planning, scheduling, media, analytics, and social publishing.
WordPress MCP server: generate SEO posts, AI images, autoblog & WooCommerce on your self-hosted site
Security-first WordPress MCP server. 129 tools for Claude, ChatGPT, Gemini. Free on wp.org.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceA 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.60 npm1ISC
- 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.3418 npm5MIT
- FlicenseCqualityAmaintenanceMCP server that connects AI clients to WordPress for content management, site settings, Elementor editing, and more via a secure API.149-
- AlicenseNot gradedqualityDmaintenanceMCP server for WordPress content management that provides a secure interface for AI assistants to interact with WordPress sites, enabling content creation, editing, and media management without destructive operations.MIT