wpagent-mcp
v1.1.4Manage WordPress & WooCommerce from any MCP client — 58 tools over a signed REST API.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
wp_site_info
Get comprehensive WordPress site information including version, plugins, theme, post types, WooCommerce status, and server details.
wp_site_health
Check if the WordPress site is reachable and the WP AI Assistant plugin is active.
wp_list_plugins
List all installed WordPress plugins with their status (active/inactive), version, and update availability.
wp_search_plugins
Search the WordPress.org plugin directory. Use this to find plugins by name or keyword before installing them.
| Parameter | Type | Description |
|---|---|---|
query * | string | Search query (e.g. "woocommerce", "seo", "contact form") |
per_page | number | Number of results (default: 10) |
wp_install_plugin
Install a plugin from the WordPress.org repository by its slug. Optionally activate it immediately after installation.
| Parameter | Type | Description |
|---|---|---|
slug * | string | Plugin slug from WordPress.org (e.g. "woocommerce", "yoast-seo") |
activate | boolean | Activate the plugin after installation (default: false) |
wp_activate_plugin
Activate an installed WordPress plugin. You can provide the plugin file path (e.g. "woocommerce/woocommerce.php"), slug (e.g. "woocommerce"), or name.
| Parameter | Type | Description |
|---|---|---|
plugin * | string | Plugin file path, slug, or name |
wp_deactivate_plugin
Deactivate an active WordPress plugin.
| Parameter | Type | Description |
|---|---|---|
plugin * | string | Plugin file path, slug, or name |
wp_delete_plugin
Delete a WordPress plugin (deactivates it first if active). This permanently removes the plugin files.
| Parameter | Type | Description |
|---|---|---|
plugin * | string | Plugin file path, slug, or name |
wp_update_plugin
Update a WordPress plugin to the latest version from WordPress.org.
| Parameter | Type | Description |
|---|---|---|
plugin * | string | Plugin file path, slug, or name |
wp_list_content
List WordPress content (posts, pages, products, or any custom post type). Supports search, pagination, and filtering by status.
| Parameter | Type | Description |
|---|---|---|
type * | string | Post type: "post", "page", "product", or any custom post type |
category | string | Filter by category slug |
order | string | "ASC" or "DESC" (default: "DESC") |
orderby | string | Order by: "date", "title", "modified", "menu_order" (default: "date") |
page | number | Page number (default: 1) |
per_page | number | Items per page (default: 20) |
search | string | Search query to filter content |
status | string | Filter by status: "publish", "draft", "pending", "private", "trash", "any" (default: "any") |
wp_get_content
Get a single WordPress content item by ID with full details including content, meta fields, categories, tags, and WooCommerce product data if applicable.
| Parameter | Type | Description |
|---|---|---|
id * | number | Post ID |
type * | string | Post type: "post", "page", "product" |
wp_create_content
Create a new WordPress post, page, or product. For WooCommerce products, you can set prices, SKU, stock, etc.
| Parameter | Type | Description |
|---|---|---|
title * | string | Content title |
type * | string | Post type: "post", "page", "product" |
categories | array | Category IDs |
content | string | HTML content body |
downloadable | boolean | WooCommerce: downloadable product |
excerpt | string | Short excerpt/summary |
featured_image_id | number | Media ID for featured image |
menu_order | number | Menu order (for pages) |
meta | object | Custom meta fields as key-value pairs |
parent | number | Parent page/post ID |
product_categories | array | WooCommerce: product category names |
regular_price | string | WooCommerce: regular price |
sale_price | string | WooCommerce: sale price |
sku | string | WooCommerce: product SKU |
slug | string | URL slug |
status | string | "draft", "publish", "pending", "private" (default: "draft") |
stock_quantity | number | WooCommerce: stock quantity |
stock_status | string | WooCommerce: "instock", "outofstock", "onbackorder" |
tags | array | Tag names |
virtual | boolean | WooCommerce: virtual product |
weight | string | WooCommerce: product weight |
wp_update_content
Update an existing WordPress post, page, or product. Only provide the fields you want to change.
| Parameter | Type | Description |
|---|---|---|
id * | number | Post ID to update |
type * | string | Post type |
categories | array | Category IDs |
content | string | New HTML content |
excerpt | string | New excerpt |
featured_image_id | number | Media ID for featured image |
meta | object | Meta fields to update |
regular_price | string | WooCommerce: regular price |
sale_price | string | WooCommerce: sale price |
sku | string | WooCommerce: SKU |
slug | string | New URL slug |
status | string | New status |
stock_quantity | number | WooCommerce: stock quantity |
tags | array | Tag names |
title | string | New title |
wp_delete_content
Delete a WordPress post, page, or product. By default moves to trash; use force=true to permanently delete.
| Parameter | Type | Description |
|---|---|---|
id * | number | Post ID to delete |
type * | string | Post type |
force | boolean | Permanently delete instead of trashing (default: false) |
wp_get_option
Get a single WordPress option value by key. Common options: blogname, blogdescription, timezone_string, date_format, time_format, permalink_structure, posts_per_page, etc.
| Parameter | Type | Description |
|---|---|---|
key * | string | Option key (e.g. "blogname", "timezone_string", "permalink_structure") |
wp_get_options_batch
Get multiple WordPress options at once. Provide a comma-separated list of option keys.
| Parameter | Type | Description |
|---|---|---|
keys * | string | Comma-separated option keys (e.g. "blogname,blogdescription,timezone_string") |
wp_set_options
Set one or more WordPress options. Provide an object of key-value pairs. Note: some sensitive options (siteurl, admin_email, etc.) are blocked for security.
| Parameter | Type | Description |
|---|---|---|
options * | object | Key-value pairs of options to set (e.g. {"blogname": "My Site", "timezone_string": "Europe/Paris"}) |
wp_delete_option
Delete a WordPress option by key.
| Parameter | Type | Description |
|---|---|---|
key * | string | Option key to delete |
wp_list_themes
List all installed WordPress themes with their status (active/inactive), version, and parent theme info.
wp_search_themes
Search the WordPress.org theme directory for themes matching a query.
| Parameter | Type | Description |
|---|---|---|
query * | string | Search query |
per_page | number | Number of results (default: 10) |
wp_install_theme
Install a theme from WordPress.org by its slug. Optionally activate it after installation.
| Parameter | Type | Description |
|---|---|---|
slug * | string | Theme slug (e.g. "astra", "flavor") |
activate | boolean | Activate after install |
wp_activate_theme
Switch the active WordPress theme. Provide the theme slug (directory name).
| Parameter | Type | Description |
|---|---|---|
slug * | string | Theme slug/directory name (e.g. "twentytwentyfour", "astra") |
wp_list_media
List media files in the WordPress media library. Can filter by MIME type (image/jpeg, video/mp4, etc.) and search by name.
| Parameter | Type | Description |
|---|---|---|
mime_type | string | Filter by MIME type (e.g. "image", "image/jpeg", "video", "application/pdf") |
page | number | Page number (default: 1) |
per_page | number | Items per page (default: 20) |
search | string | Search by filename or title |
wp_get_media
Get detailed information about a single media file including all available sizes and URLs.
| Parameter | Type | Description |
|---|---|---|
id * | number | Media attachment ID |
wp_upload_media
Upload a file to the WordPress media library using base64-encoded data. Maximum file size: 10MB.
| Parameter | Type | Description |
|---|---|---|
data * | string | Base64-encoded file data |
filename * | string | Filename with extension (e.g. "photo.jpg", "document.pdf") |
alt | string | Alt text for images (for SEO and accessibility) |
title | string | Media title (defaults to filename) |
wp_delete_media
Delete a media file from the WordPress media library.
| Parameter | Type | Description |
|---|---|---|
id * | number | Media attachment ID |
force | boolean | Permanently delete (default: false) |
wp_woocommerce_status
Check if WooCommerce is installed and active. Returns store details: currency, address, product/order counts, and enabled features.
wp_woocommerce_get_settings
Get WooCommerce settings by group. Available groups: "general" (store address, currency), "products" (weights, stock), "shipping", "checkout" (guest checkout, etc.), "emails".
| Parameter | Type | Description |
|---|---|---|
group | string | Settings group: "general", "products", "shipping", "checkout", "emails". Omit to get all. |
wp_woocommerce_update_settings
Update WooCommerce settings. Provide key-value pairs of woocommerce_ prefixed options. For example: {"woocommerce_currency": "EUR", "woocommerce_default_country": "FR"}.
| Parameter | Type | Description |
|---|---|---|
settings * | object | WooCommerce settings as key-value pairs. Keys must start with "woocommerce_". |
wp_woocommerce_list_orders
List WooCommerce orders with customer info, totals, and status. Supports filtering by status and pagination.
| Parameter | Type | Description |
|---|---|---|
page | number | Page number (default: 1) |
per_page | number | Items per page (default: 20) |
status | string | Filter by status: "pending", "processing", "on-hold", "completed", "cancelled", "refunded", "failed" |
wp_woocommerce_get_order
Get full details of a single WooCommerce order including line items, billing/shipping addresses, and payment info.
| Parameter | Type | Description |
|---|---|---|
id * | number | Order ID |
wp_woocommerce_list_coupons
List all WooCommerce coupons with their discount types, amounts, and usage stats.
| Parameter | Type | Description |
|---|---|---|
per_page | number | Items per page (default: 20) |
wp_woocommerce_create_coupon
Create a new WooCommerce coupon with discount rules.
| Parameter | Type | Description |
|---|---|---|
amount * | number | Discount amount (percentage or fixed amount) |
code * | string | Coupon code (e.g. "SUMMER2024") |
discount_type | string | "percent" (default), "fixed_cart", or "fixed_product" |
expiry_date | string | Expiry date (YYYY-MM-DD) |
free_shipping | boolean | Grant free shipping (default: false) |
individual_use | boolean | Cannot be combined with other coupons |
maximum_amount | number | Maximum cart total allowed |
minimum_amount | number | Minimum cart total required |
product_ids | array | Restrict to specific product IDs |
usage_limit | number | Maximum number of times this coupon can be used |
wp_woocommerce_stats
Get WooCommerce sales statistics for a given period: total revenue, order count, average order value, and customer count.
| Parameter | Type | Description |
|---|---|---|
period | string | "week", "month" (default), or "year" |
wp_woocommerce_shipping_zones
List WooCommerce shipping zones with their configured shipping methods.
wp_woocommerce_payment_gateways
List all available WooCommerce payment gateways with their enabled/disabled status.
wp_woocommerce_update_payment_gateway
Enable/disable or configure a WooCommerce payment gateway.
| Parameter | Type | Description |
|---|---|---|
id * | string | Gateway ID (e.g. "bacs", "cheque", "cod", "paypal", "stripe") |
description | string | Customer-facing description |
enabled | boolean | Enable or disable the gateway |
options | object | Additional gateway-specific options |
title | string | Customer-facing title |
wp_woocommerce_list_tax_rates
List all WooCommerce tax rates configured on the site.
wp_woocommerce_create_tax_rate
Create a new WooCommerce tax rate for a specific country/state.
| Parameter | Type | Description |
|---|---|---|
country * | string | Country code (e.g. "FR", "US", "GB") |
name * | string | Tax rate name (e.g. "TVA", "VAT", "Sales Tax") |
rate * | string | Tax rate percentage (e.g. "20.0000" for 20%) |
cities | string | Semicolon-separated cities (optional) |
postcodes | string | Semicolon-separated postcodes (optional) |
shipping | number | Apply to shipping? 1=yes, 0=no (default: 1) |
state | string | State/province code (optional) |
wp_audit_best_practices
Audit the WordPress site for best practices. Returns a checklist covering security (SSL, debug mode, file editing, admin user, XML-RPC, spam protection, security plugin), SEO (permalinks, SEO plugin), performance (caching plugin), maintenance (backups, auto-updates, WP/plugin updates), and theme (child theme). Each check includes a status (pass/fail/warning) and whether it can be auto-fixed.
wp_fix_best_practices
Apply auto-fixes for best practice issues. Currently supports fixing: "permalinks" (sets to /%postname%/) and "xmlrpc" (disables via mu-plugin). Pass an array of fix IDs to apply.
| Parameter | Type | Description |
|---|---|---|
fixes * | array | Array of check IDs to fix (e.g. ["permalinks", "xmlrpc"]) |
wp_elementor_status
Check if Elementor is active and get its version.
wp_elementor_get_page
Get the Elementor data for a page/post by its ID. Returns the full element tree (sections > columns > widgets), page settings, and metadata. Use this to understand the current structure before making modifications.
| Parameter | Type | Description |
|---|---|---|
id * | number | The WordPress post/page ID |
wp_elementor_update_page
Update the Elementor data for a page/post. Send the full element tree as JSON. The structure follows Elementor's hierarchy: sections (elType: "section") contain columns (elType: "column") which contain widgets (elType: "widget", widgetType: "heading"|"text-editor"|"image"|etc.). Each element has an "id" (8-char hex), "settings" object, and "elements" array for children. Always read the page first with wp_elementor_get_page to understand the current structure.
| Parameter | Type | Description |
|---|---|---|
elements * | array | The full Elementor element tree (array of sections) |
id * | number | The WordPress post/page ID |
page_settings | object | Optional page-level settings (layout, background, etc.) |
wp_elementor_list_templates
List all saved Elementor templates (sections, pages, headers, footers, etc.).
wp_elementor_widget_types
List all available Elementor widget types with their names, titles, icons, and categories. Use this to know which widgets you can use when building pages.
wp_cli_execute
Execute a WP-CLI command. Deny by default: only allowlisted commands run (cache, comment, core, cron, language, media, menu, option, plugin, post, rewrite, role, sidebar, site, term, theme, transient, user, widget). db, eval, eval-file, shell, server, config and package are refused, as are the --require, --exec, --ssh, --http and --path flags. Quote any value containing shell metacharacters. The feature is off unless the site owner set WPAIA_ENABLE_WPCLI in wp-config.php — call wp_cli_status first. Do NOT include the "wp" prefix (e.g., "plugin list", "cache flush").
| Parameter | Type | Description |
|---|---|---|
command * | string | The WP-CLI command to execute without the "wp" prefix (e.g., "plugin list", "cache flush", "rewrite flush") |
wp_cli_list_commands
List the allowlisted WP-CLI commands and their permitted subcommands, plus the refused global flags. Anything absent from the list is refused.
wp_cli_status
Check WP-CLI availability. Returns whether the feature is enabled in wp-config.php, whether proc_open is available, the WP-CLI path and version. Call this before any WP-CLI command.
wp_list_users
List WordPress users with optional filtering by role, search query, and pagination.
| Parameter | Type | Description |
|---|---|---|
order | string | asc or desc |
orderby | string | Order by field |
page | number | Page number |
per_page | number | Items per page (default: 20) |
role | string | Filter by role (administrator, editor, author, contributor, subscriber) |
search | string | Search by name, email, or username |
wp_get_user
Get detailed information about a specific WordPress user by ID.
| Parameter | Type | Description |
|---|---|---|
id * | number | User ID |
wp_create_user
Create a new WordPress user with username, email, and optional role/name fields.
| Parameter | Type | Description |
|---|---|---|
email * | string | Email address |
username * | string | Username |
display_name | string | Display name |
first_name | string | First name |
last_name | string | Last name |
password | string | Password (auto-generated if omitted) |
role | string | Role (default: subscriber) |
wp_update_user
Update an existing WordPress user (email, role, name fields).
| Parameter | Type | Description |
|---|---|---|
id * | number | User ID |
display_name | string | Display name |
email | string | New email |
first_name | string | First name |
last_name | string | Last name |
role | string | New role |
wp_list_comments
List comments with optional filtering by status (approve, hold, spam, trash, all), post ID, and search.
| Parameter | Type | Description |
|---|---|---|
page | number | Page number |
per_page | number | Items per page (default: 20) |
post_id | number | Filter by post ID |
search | string | Search in comment content or author |
status | string | Filter by status: approve, hold, spam, trash, all (default: all) |
wp_get_comment
Get a single comment with full details by its ID.
| Parameter | Type | Description |
|---|---|---|
id * | number | Comment ID |
wp_update_comment_status
Change a comment status: approve, hold (unapprove), spam, or trash.
| Parameter | Type | Description |
|---|---|---|
id * | number | Comment ID |
status * | string | New status: approve, hold, spam, trash |
wp_reply_comment
Reply to a comment as the site administrator.
| Parameter | Type | Description |
|---|---|---|
content * | string | Reply content |
parent_id * | number | Parent comment ID to reply to |
post_id * | number | Post ID |
wp_delete_comment
Permanently delete a comment.
| Parameter | Type | Description |
|---|---|---|
id * | number | Comment ID |