wp-cli-mcp
wp-cli-mcp
Что Claude может делать с этим?
"Install WooCommerce and activate it"
"Create a new page called About Us with this content..."
"List all plugins and deactivate the ones I'm not using"
"Scaffold a new child theme called my-theme"
"Create a navigation menu with Home, About, Contact links"
"Search and replace old domain with new domain in database"
"Export the database before I make changes"
"Generate a custom Gutenberg block for testimonials"Все это работает на базе WP-CLI. Поддерживается локальная работа или подключение к удаленным серверам по SSH.
Инструменты (30+)
Категория | Инструменты |
Ядро |
|
Плагины |
|
Темы |
|
Записи |
|
Пользователи |
|
Опции |
|
Меню |
|
Медиа |
|
База данных |
|
Каркас |
|
Кэш |
|
Raw |
|
Требования
Установленный WP-CLI, добавленный в PATH
Установка WordPress (локальная или доступная по SSH)
Node.js 18+
Установка
Установка
npm install -g wp-cli-mcpНастройка с Claude Code
Добавьте в настройки MCP Claude Code (~/.claude/claude_desktop_config.json):
{
"mcpServers": {
"wordpress": {
"command": "wp-cli-mcp",
"env": {
"WP_PATH": "/path/to/your/wordpress"
}
}
}
}Удаленный сервер через SSH
{
"mcpServers": {
"wordpress": {
"command": "wp-cli-mcp",
"env": {
"WP_SSH": "user@yourserver.com:/var/www/html"
}
}
}
}Переменные окружения
Переменная | Описание | Пример |
| Локальный путь к WordPress |
|
| Строка подключения SSH |
|
| URL сайта (мультисайт) |
|
Примеры
Рабочий процесс разработки тем
You: "Scaffold a child theme based on twentytwentyfour"
Claude: Uses wp_scaffold_theme → creates child theme files
You: "Install and activate it"
Claude: Uses wp_theme_activate → theme is live
You: "Create the homepage with a hero section and 3 feature cards"
Claude: Uses wp_post_create → creates page with HTML contentУправление плагинами
You: "What plugins do I have installed?"
Claude: Uses wp_plugin_list → shows all plugins with status
You: "Install Contact Form 7 and WooCommerce"
Claude: Uses wp_plugin_install twice → both installed and activatedОперации с базой данных
You: "I'm migrating from staging.example.com to example.com"
Claude: Uses wp_db_export → backup first
Uses wp_search_replace (dry_run) → preview changes
Uses wp_search_replace → apply changes
Uses wp_cache_flush → clear cacheХорошо сочетается с
Elementor MCP — 97 инструментов для создания страниц в Elementor
WordPress MCP — Официальные инструменты REST API от Automattic
wordpress-claude-stack — CLAUDE.md + правила Cursor для WordPress
Используйте все три вместе для полноценной разработки на WordPress с помощью ИИ.
Лицензия
MIT — Mustafa Vatandas
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/mvtandas/wp-cli-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server