1. Conduid
  2. Data
  3. mvtandas/wp-cli-mcp
MCP server · Data

mvtandas/wp-cli-mcp

CLI with 30+ tools for themes, plugins, posts, menus, users, database, scaffolding, and cache. Works locally or over SSH to remote servers.

34Low

Scored 6 months ago · breakdown

About mvtandas/wp-cli-mcp

mvtandas/wp-cli-mcp is an MCP server in the Data category: cLI with 30+ tools for themes, plugins, posts, menus, users, database, scaffolding, and cache. Works locally or over SSH to remote servers.

Install

From source
git clone https://github.com/mvtandas/wp-cli-mcp

This server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.

Tools (58)

wc_coupon_createCreate a WooCommerce discount coupon.

Parameters not published.

wc_order_getGet detailed WooCommerce order info including total, currency, billing email, and payment method.

Parameters not published.

wc_order_listList WooCommerce orders with ID, status, and date.

Parameters not published.

wc_product_createCreate a new WooCommerce product with price and type. Sets up all required product meta automatically.

Parameters not published.

wc_product_getGet detailed WooCommerce product info including price, sale price, SKU, and stock status.

Parameters not published.

wc_product_listList WooCommerce products with ID, title, status, and date. Requires WooCommerce to be installed and active.

Parameters not published.

wc_product_update_priceUpdate WooCommerce product pricing. Set regular price and optional sale price.

Parameters not published.

wp_cache_flushFlush the WordPress object cache

Parameters not published.

wp_cli_rawExecute any WP-CLI command directly

Parameters not published.

wp_core_check_updateCheck if WordPress core updates are available. Returns a list of available versions with download URLs. Use this before running updates to see what

Parameters not published.

Show all 58 tools
wp_core_versionGet the currently installed WordPress core version. Returns the version string (e.g.

Parameters not published.

wp_cron_listList all scheduled WordPress cron events with hook name, next run time, and recurrence.

Parameters not published.

wp_cron_runManually trigger a specific WordPress cron event by its hook name.

Parameters not published.

wp_db_exportExport database to SQL file

Parameters not published.

wp_db_queryExecute a raw SQL query against the WordPress database. Use for read-only SELECT queries. WARNING: Write queries (INSERT, UPDATE, DELETE) can damage the database — use with caution.

Parameters not published.

wp_evalExecute arbitrary PHP code in the WordPress environment. Has access to all WordPress functions, hooks, and the database. Use for custom queries, data manipulation, or anything not covered by other tools.

Parameters not published.

wp_maintenance_modeEnable or disable WordPress maintenance mode. When enabled, visitors see a

Parameters not published.

wp_media_importImport media from URL

Parameters not published.

wp_menu_createCreate a new navigation menu

Parameters not published.

wp_menu_item_addAdd a custom link to a menu

Parameters not published.

wp_menu_listList all navigation menus

Parameters not published.

wp_option_getGet a WordPress option value

Parameters not published.

wp_option_updateUpdate a WordPress option

Parameters not published.

wp_plugin_activateActivate an installed but inactive WordPress plugin. The plugin must already be installed.

Parameters not published.

wp_plugin_deactivateDeactivate an active WordPress plugin without removing it. The plugin files remain on disk and can be reactivated later.

Parameters not published.

wp_plugin_deletePermanently delete a WordPress plugin from the filesystem. The plugin must be deactivated first. This cannot be undone.

Parameters not published.

wp_plugin_installInstall a WordPress plugin from the official wordpress.org plugin directory. Optionally activate it immediately after installation.

Parameters not published.

wp_plugin_listList all installed WordPress plugins with their name, status (active/inactive/must-use), version, and update availability. Returns a JSON array of plugin objects.

Parameters not published.

wp_plugin_searchSearch the official wordpress.org plugin directory for plugins matching a search term. Returns top 10 results with name, slug, rating, and active install count.

Parameters not published.

wp_post_createCreate a new WordPress post, page, or custom post type entry. Returns the new post ID. Content supports full HTML.

Parameters not published.

wp_post_deleteDelete a post

Parameters not published.

wp_post_getGet a single post by ID

Parameters not published.

wp_post_listList WordPress posts, pages, or any custom post type. Returns ID, title, status, date, and type for each item.

Parameters not published.

wp_post_meta_getGet a specific meta value for a post. Used for custom fields, ACF fields, WooCommerce product data, etc.

Parameters not published.

wp_post_meta_listList all meta key-value pairs for a post. Shows custom fields, ACF data, WooCommerce product meta, SEO meta, etc.

Parameters not published.

wp_post_meta_updateSet or update a meta value for a post. Used for custom fields, featured images, WooCommerce data, etc.

Parameters not published.

wp_post_updateUpdate an existing post

Parameters not published.

wp_rewrite_flushFlush rewrite rules (fix permalink issues)

Parameters not published.

wp_scaffold_blockGenerate a Gutenberg block skeleton

Parameters not published.

wp_scaffold_pluginGenerate a plugin skeleton

Parameters not published.

wp_scaffold_themeGenerate a child theme skeleton

Parameters not published.

wp_search_replaceSearch and replace strings across all WordPress database tables. Essential for domain migrations (e.g. staging to production). Handles serialized data correctly.

Parameters not published.

wp_sidebar_listList all registered widget areas (sidebars) in the active theme.

Parameters not published.

wp_site_infoGet a comprehensive overview of the WordPress installation including version, site URL, site name, active theme, and active plugin count. Great starting point for understanding a site.

Parameters not published.

wp_term_createCreate a new term in a taxonomy (category, tag, or custom taxonomy).

Parameters not published.

wp_term_listList all terms in a taxonomy (categories, tags, or custom taxonomies). Returns term ID, name, slug, and post count.

Parameters not published.

wp_theme_activateActivate a theme

Parameters not published.

wp_theme_deleteDelete a theme

Parameters not published.

wp_theme_file_deleteDelete a file from a WordPress theme. Cannot be undone.

Parameters not published.

wp_theme_file_listList all files in a WordPress theme directory. Returns file paths and sizes. Defaults to the active theme if no theme specified.

Parameters not published.

wp_theme_file_readRead the contents of a file in a WordPress theme. Use this to inspect template files, functions.php, style.css, or any theme file.

Parameters not published.

wp_theme_file_writeCreate or overwrite a file in a WordPress theme. Use this to edit templates, add new PHP files, modify CSS/JS, or create entirely new theme files. Directories are created automatically.

Parameters not published.

wp_theme_installInstall a WordPress theme from the official wordpress.org theme directory. Optionally activate it immediately.

Parameters not published.

wp_theme_listList all installed WordPress themes with their name, status (active/inactive), version, and update availability. Returns a JSON array.

Parameters not published.

wp_transient_delete_allDelete all WordPress transients (cached temporary data). Useful for clearing stale caches.

Parameters not published.

wp_user_createCreate a new user

Parameters not published.

wp_user_listList all users

Parameters not published.

wp_widget_listList all widgets in a specific sidebar or all sidebars.

Parameters not published.

Ask AI

✦

Ask AI about mvtandas/wp-cli-mcp

Powered by Claude · Grounded in docs

I know everything about mvtandas/wp-cli-mcp. Ask me about installation, configuration, usage, or troubleshooting.

Security checks

  • ✓README presentThe repository ships documentation.

5 checks have not been run yet.

README

wp-cli-mcp


What can Claude do with this?

"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"

All powered by WP-CLI under the hood. Works locally or over SSH to remote servers.

Tools (30+)

Category Tools
Core wp_core_version, wp_core_check_update
Plugins wp_plugin_list, wp_plugin_install, wp_plugin_activate, wp_plugin_deactivate, wp_plugin_delete, wp_plugin_search
Themes wp_theme_list, wp_theme_install, wp_theme_activate, wp_theme_delete
Theme Files wp_theme_file_list, wp_theme_file_read, wp_theme_file_write, wp_theme_file_delete
Posts wp_post_list, wp_post_get, wp_post_create, wp_post_update, wp_post_delete
Post Meta wp_post_meta_get, wp_post_meta_update, wp_post_meta_list
Taxonomies wp_term_list, wp_term_create
Users wp_user_list, wp_user_create
Options wp_option_get, wp_option_update
Menus wp_menu_list, wp_menu_create, wp_menu_item_add, wp_menu_location_assign
Widgets wp_sidebar_list, wp_widget_list
Media wp_media_import
Database wp_db_query, wp_db_export, wp_search_replace
Scaffold wp_scaffold_theme, wp_scaffold_plugin, wp_scaffold_block
Cache wp_rewrite_flush, wp_cache_flush
PHP wp_eval — execute any PHP in WordPress context
Site wp_site_info — full site overview
Raw wp_cli_raw — run any WP-CLI command

Requirements

  • WP-CLI installed and in PATH
  • WordPress installation (local or accessible via SSH)
  • Node.js 18+

Setup

Install

npm install -g wp-cli-mcp

Configure with Claude Code

Add to your Claude Code MCP settings (~/.claude/claude_desktop_config.json):

{
  "mcpServers": {
    "wordpress": {
      "command": "wp-cli-mcp",
      "env": {
        "WP_PATH": "/path/to/your/wordpress"
      }
    }
  }
}

Remote server via SSH

{
  "mcpServers": {
    "wordpress": {
      "command": "wp-cli-mcp",
      "env": {
        "WP_SSH": "user@yourserver.com:/var/www/html"
      }
    }
  }
}

Environment Variables

Variable Description Example
WP_PATH Local WordPress path /var/www/html
WP_SSH SSH connection string user@host:/path/to/wp
WP_URL Site URL (multisite) https://example.com

Examples

Theme Development Workflow

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

Plugin Management

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

Database Operations

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

Pairs well with

Use all three together for complete AI-powered WordPress development.

License

MIT — Mustafa Vatandas

README copy captured when this server was indexed; it may lag the repository. The original is authoritative.

Questions

About mvtandas/wp-cli-mcp

How do I install mvtandas/wp-cli-mcp?

No package has been published for this server, so install it from source: clone the repository and follow its README.

Is mvtandas/wp-cli-mcp safe to use with an AI agent?

Its trust score is 34 out of 100 (low). It passes 1 of the 1 static security checks run so far. It has no ConduID identity yet, so agent calls to it are not receipted.

Is mvtandas/wp-cli-mcp still maintained?

Conduid hasn't recorded a commit date for this repository yet. Check the repository directly for recent activity.