{"id":50222355,"url":"https://github.com/mvtandas/wp-cli-mcp","last_synced_at":"2026-06-12T04:00:58.344Z","repository":{"id":351328236,"uuid":"1210455953","full_name":"mvtandas/wp-cli-mcp","owner":"mvtandas","description":"MCP server that gives AI tools full WordPress management via WP-CLI — 30+ tools for themes, plugins, posts, menus, users, database, and scaffolding","archived":false,"fork":false,"pushed_at":"2026-04-14T14:30:46.000Z","size":30,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-14T16:09:31.843Z","etag":null,"topics":["ai","claude-code","cursor","gutenberg","mcp","model-context-protocol","php","woocommerce","wordpress","wp-cli"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mvtandas.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-04-14T12:41:01.000Z","updated_at":"2026-04-14T14:30:50.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/mvtandas/wp-cli-mcp","commit_stats":null,"previous_names":["mvtandas/wp-cli-mcp"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/mvtandas/wp-cli-mcp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mvtandas%2Fwp-cli-mcp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mvtandas%2Fwp-cli-mcp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mvtandas%2Fwp-cli-mcp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mvtandas%2Fwp-cli-mcp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mvtandas","download_url":"https://codeload.github.com/mvtandas/wp-cli-mcp/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mvtandas%2Fwp-cli-mcp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34228097,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-12T02:00:06.859Z","response_time":109,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai","claude-code","cursor","gutenberg","mcp","model-context-protocol","php","woocommerce","wordpress","wp-cli"],"created_at":"2026-05-26T13:00:18.258Z","updated_at":"2026-06-12T04:00:58.328Z","avatar_url":"https://github.com/mvtandas.png","language":"JavaScript","funding_links":[],"categories":["Project \u0026 Service Management"],"sub_categories":["🌐 CMS \u0026 Web Platforms"],"readme":"# wp-cli-mcp\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://img.shields.io/badge/WordPress-21759B?style=for-the-badge\u0026logo=wordpress\u0026logoColor=white\" /\u003e\n  \u003cimg src=\"https://img.shields.io/badge/WP--CLI-0073AA?style=for-the-badge\u0026logo=windowsterminal\u0026logoColor=white\" /\u003e\n  \u003cimg src=\"https://img.shields.io/badge/MCP-000?style=for-the-badge\" /\u003e\n  \u003cimg src=\"https://img.shields.io/badge/Claude_Code-D97757?style=for-the-badge\u0026logo=anthropic\u0026logoColor=white\" /\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cb\u003eMCP server that gives AI tools full WordPress management via WP-CLI.\u003c/b\u003e\u003cbr/\u003e\n  Themes, plugins, posts, menus, users, database, scaffolding — 45+ tools.\n\u003c/p\u003e\n\n---\n\n## What can Claude do with this?\n\n```\n\"Install WooCommerce and activate it\"\n\"Create a new page called About Us with this content...\"\n\"List all plugins and deactivate the ones I'm not using\"\n\"Scaffold a new child theme called my-theme\"\n\"Create a navigation menu with Home, About, Contact links\"\n\"Search and replace old domain with new domain in database\"\n\"Export the database before I make changes\"\n\"Generate a custom Gutenberg block for testimonials\"\n```\n\nAll powered by WP-CLI under the hood. Works locally or over SSH to remote servers.\n\n## Tools (30+)\n\n| Category | Tools |\n|----------|-------|\n| **Core** | `wp_core_version`, `wp_core_check_update` |\n| **Plugins** | `wp_plugin_list`, `wp_plugin_install`, `wp_plugin_activate`, `wp_plugin_deactivate`, `wp_plugin_delete`, `wp_plugin_search` |\n| **Themes** | `wp_theme_list`, `wp_theme_install`, `wp_theme_activate`, `wp_theme_delete` |\n| **Theme Files** | `wp_theme_file_list`, `wp_theme_file_read`, `wp_theme_file_write`, `wp_theme_file_delete` |\n| **Posts** | `wp_post_list`, `wp_post_get`, `wp_post_create`, `wp_post_update`, `wp_post_delete` |\n| **Post Meta** | `wp_post_meta_get`, `wp_post_meta_update`, `wp_post_meta_list` |\n| **Taxonomies** | `wp_term_list`, `wp_term_create` |\n| **Users** | `wp_user_list`, `wp_user_create` |\n| **Options** | `wp_option_get`, `wp_option_update` |\n| **Menus** | `wp_menu_list`, `wp_menu_create`, `wp_menu_item_add`, `wp_menu_location_assign` |\n| **Widgets** | `wp_sidebar_list`, `wp_widget_list` |\n| **Media** | `wp_media_import` |\n| **Database** | `wp_db_query`, `wp_db_export`, `wp_search_replace` |\n| **Scaffold** | `wp_scaffold_theme`, `wp_scaffold_plugin`, `wp_scaffold_block` |\n| **Cache** | `wp_rewrite_flush`, `wp_cache_flush` |\n| **PHP** | `wp_eval` — execute any PHP in WordPress context |\n| **Site** | `wp_site_info` — full site overview |\n| **Raw** | `wp_cli_raw` — run any WP-CLI command |\n\n## Requirements\n\n- [WP-CLI](https://wp-cli.org/) installed and in PATH\n- WordPress installation (local or accessible via SSH)\n- Node.js 18+\n\n## Setup\n\n### Install\n\n```bash\nnpm install -g wp-cli-mcp\n```\n\n### Configure with Claude Code\n\nAdd to your Claude Code MCP settings (`~/.claude/claude_desktop_config.json`):\n\n```json\n{\n  \"mcpServers\": {\n    \"wordpress\": {\n      \"command\": \"wp-cli-mcp\",\n      \"env\": {\n        \"WP_PATH\": \"/path/to/your/wordpress\"\n      }\n    }\n  }\n}\n```\n\n### Remote server via SSH\n\n```json\n{\n  \"mcpServers\": {\n    \"wordpress\": {\n      \"command\": \"wp-cli-mcp\",\n      \"env\": {\n        \"WP_SSH\": \"user@yourserver.com:/var/www/html\"\n      }\n    }\n  }\n}\n```\n\n### Environment Variables\n\n| Variable | Description | Example |\n|----------|-------------|---------|\n| `WP_PATH` | Local WordPress path | `/var/www/html` |\n| `WP_SSH` | SSH connection string | `user@host:/path/to/wp` |\n| `WP_URL` | Site URL (multisite) | `https://example.com` |\n\n## Examples\n\n### Theme Development Workflow\n\n```\nYou: \"Scaffold a child theme based on twentytwentyfour\"\nClaude: Uses wp_scaffold_theme → creates child theme files\n\nYou: \"Install and activate it\"\nClaude: Uses wp_theme_activate → theme is live\n\nYou: \"Create the homepage with a hero section and 3 feature cards\"\nClaude: Uses wp_post_create → creates page with HTML content\n```\n\n### Plugin Management\n\n```\nYou: \"What plugins do I have installed?\"\nClaude: Uses wp_plugin_list → shows all plugins with status\n\nYou: \"Install Contact Form 7 and WooCommerce\"\nClaude: Uses wp_plugin_install twice → both installed and activated\n```\n\n### Database Operations\n\n```\nYou: \"I'm migrating from staging.example.com to example.com\"\nClaude: Uses wp_db_export → backup first\n       Uses wp_search_replace (dry_run) → preview changes\n       Uses wp_search_replace → apply changes\n       Uses wp_cache_flush → clear cache\n```\n\n## Pairs well with\n\n- **[Elementor MCP](https://github.com/msrbuilds/elementor-mcp)** — 97 tools for Elementor page building\n- **[WordPress MCP](https://github.com/Automattic/wordpress-mcp)** — Official Automattic REST API tools\n- **[wordpress-claude-stack](https://github.com/mvtandas/wordpress-claude-stack)** — CLAUDE.md + Cursor rules for WordPress\n\nUse all three together for complete AI-powered WordPress development.\n\n## License\n\nMIT — [Mustafa Vatandas](https://github.com/mvtandas)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmvtandas%2Fwp-cli-mcp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmvtandas%2Fwp-cli-mcp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmvtandas%2Fwp-cli-mcp/lists"}