wpagent-mcp

v1.1.4
dev.wpagent/wpagent-mcp Checked 1 day ago Published 3 months ago

Manage 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.

ParameterTypeDescription
query *stringSearch query (e.g. "woocommerce", "seo", "contact form")
per_pagenumberNumber of results (default: 10)

wp_install_plugin

Install a plugin from the WordPress.org repository by its slug. Optionally activate it immediately after installation.

ParameterTypeDescription
slug *stringPlugin slug from WordPress.org (e.g. "woocommerce", "yoast-seo")
activatebooleanActivate 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.

ParameterTypeDescription
plugin *stringPlugin file path, slug, or name

wp_deactivate_plugin

Deactivate an active WordPress plugin.

ParameterTypeDescription
plugin *stringPlugin file path, slug, or name

wp_delete_plugin

Delete a WordPress plugin (deactivates it first if active). This permanently removes the plugin files.

ParameterTypeDescription
plugin *stringPlugin file path, slug, or name

wp_update_plugin

Update a WordPress plugin to the latest version from WordPress.org.

ParameterTypeDescription
plugin *stringPlugin 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.

ParameterTypeDescription
type *stringPost type: "post", "page", "product", or any custom post type
categorystringFilter by category slug
orderstring"ASC" or "DESC" (default: "DESC")
orderbystringOrder by: "date", "title", "modified", "menu_order" (default: "date")
pagenumberPage number (default: 1)
per_pagenumberItems per page (default: 20)
searchstringSearch query to filter content
statusstringFilter 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.

ParameterTypeDescription
id *numberPost ID
type *stringPost 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.

ParameterTypeDescription
title *stringContent title
type *stringPost type: "post", "page", "product"
categoriesarrayCategory IDs
contentstringHTML content body
downloadablebooleanWooCommerce: downloadable product
excerptstringShort excerpt/summary
featured_image_idnumberMedia ID for featured image
menu_ordernumberMenu order (for pages)
metaobjectCustom meta fields as key-value pairs
parentnumberParent page/post ID
product_categoriesarrayWooCommerce: product category names
regular_pricestringWooCommerce: regular price
sale_pricestringWooCommerce: sale price
skustringWooCommerce: product SKU
slugstringURL slug
statusstring"draft", "publish", "pending", "private" (default: "draft")
stock_quantitynumberWooCommerce: stock quantity
stock_statusstringWooCommerce: "instock", "outofstock", "onbackorder"
tagsarrayTag names
virtualbooleanWooCommerce: virtual product
weightstringWooCommerce: product weight

wp_update_content

Update an existing WordPress post, page, or product. Only provide the fields you want to change.

ParameterTypeDescription
id *numberPost ID to update
type *stringPost type
categoriesarrayCategory IDs
contentstringNew HTML content
excerptstringNew excerpt
featured_image_idnumberMedia ID for featured image
metaobjectMeta fields to update
regular_pricestringWooCommerce: regular price
sale_pricestringWooCommerce: sale price
skustringWooCommerce: SKU
slugstringNew URL slug
statusstringNew status
stock_quantitynumberWooCommerce: stock quantity
tagsarrayTag names
titlestringNew title

wp_delete_content

Delete a WordPress post, page, or product. By default moves to trash; use force=true to permanently delete.

ParameterTypeDescription
id *numberPost ID to delete
type *stringPost type
forcebooleanPermanently 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.

ParameterTypeDescription
key *stringOption 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.

ParameterTypeDescription
keys *stringComma-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.

ParameterTypeDescription
options *objectKey-value pairs of options to set (e.g. {"blogname": "My Site", "timezone_string": "Europe/Paris"})

wp_delete_option

Delete a WordPress option by key.

ParameterTypeDescription
key *stringOption 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.

ParameterTypeDescription
query *stringSearch query
per_pagenumberNumber of results (default: 10)

wp_install_theme

Install a theme from WordPress.org by its slug. Optionally activate it after installation.

ParameterTypeDescription
slug *stringTheme slug (e.g. "astra", "flavor")
activatebooleanActivate after install

wp_activate_theme

Switch the active WordPress theme. Provide the theme slug (directory name).

ParameterTypeDescription
slug *stringTheme 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.

ParameterTypeDescription
mime_typestringFilter by MIME type (e.g. "image", "image/jpeg", "video", "application/pdf")
pagenumberPage number (default: 1)
per_pagenumberItems per page (default: 20)
searchstringSearch by filename or title

wp_get_media

Get detailed information about a single media file including all available sizes and URLs.

ParameterTypeDescription
id *numberMedia attachment ID

wp_upload_media

Upload a file to the WordPress media library using base64-encoded data. Maximum file size: 10MB.

ParameterTypeDescription
data *stringBase64-encoded file data
filename *stringFilename with extension (e.g. "photo.jpg", "document.pdf")
altstringAlt text for images (for SEO and accessibility)
titlestringMedia title (defaults to filename)

wp_delete_media

Delete a media file from the WordPress media library.

ParameterTypeDescription
id *numberMedia attachment ID
forcebooleanPermanently 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".

ParameterTypeDescription
groupstringSettings 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"}.

ParameterTypeDescription
settings *objectWooCommerce 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.

ParameterTypeDescription
pagenumberPage number (default: 1)
per_pagenumberItems per page (default: 20)
statusstringFilter 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.

ParameterTypeDescription
id *numberOrder ID

wp_woocommerce_list_coupons

List all WooCommerce coupons with their discount types, amounts, and usage stats.

ParameterTypeDescription
per_pagenumberItems per page (default: 20)

wp_woocommerce_create_coupon

Create a new WooCommerce coupon with discount rules.

ParameterTypeDescription
amount *numberDiscount amount (percentage or fixed amount)
code *stringCoupon code (e.g. "SUMMER2024")
discount_typestring"percent" (default), "fixed_cart", or "fixed_product"
expiry_datestringExpiry date (YYYY-MM-DD)
free_shippingbooleanGrant free shipping (default: false)
individual_usebooleanCannot be combined with other coupons
maximum_amountnumberMaximum cart total allowed
minimum_amountnumberMinimum cart total required
product_idsarrayRestrict to specific product IDs
usage_limitnumberMaximum 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.

ParameterTypeDescription
periodstring"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.

ParameterTypeDescription
id *stringGateway ID (e.g. "bacs", "cheque", "cod", "paypal", "stripe")
descriptionstringCustomer-facing description
enabledbooleanEnable or disable the gateway
optionsobjectAdditional gateway-specific options
titlestringCustomer-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.

ParameterTypeDescription
country *stringCountry code (e.g. "FR", "US", "GB")
name *stringTax rate name (e.g. "TVA", "VAT", "Sales Tax")
rate *stringTax rate percentage (e.g. "20.0000" for 20%)
citiesstringSemicolon-separated cities (optional)
postcodesstringSemicolon-separated postcodes (optional)
shippingnumberApply to shipping? 1=yes, 0=no (default: 1)
statestringState/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.

ParameterTypeDescription
fixes *arrayArray 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.

ParameterTypeDescription
id *numberThe 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.

ParameterTypeDescription
elements *arrayThe full Elementor element tree (array of sections)
id *numberThe WordPress post/page ID
page_settingsobjectOptional 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").

ParameterTypeDescription
command *stringThe 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.

ParameterTypeDescription
orderstringasc or desc
orderbystringOrder by field
pagenumberPage number
per_pagenumberItems per page (default: 20)
rolestringFilter by role (administrator, editor, author, contributor, subscriber)
searchstringSearch by name, email, or username

wp_get_user

Get detailed information about a specific WordPress user by ID.

ParameterTypeDescription
id *numberUser ID

wp_create_user

Create a new WordPress user with username, email, and optional role/name fields.

ParameterTypeDescription
email *stringEmail address
username *stringUsername
display_namestringDisplay name
first_namestringFirst name
last_namestringLast name
passwordstringPassword (auto-generated if omitted)
rolestringRole (default: subscriber)

wp_update_user

Update an existing WordPress user (email, role, name fields).

ParameterTypeDescription
id *numberUser ID
display_namestringDisplay name
emailstringNew email
first_namestringFirst name
last_namestringLast name
rolestringNew role

wp_list_comments

List comments with optional filtering by status (approve, hold, spam, trash, all), post ID, and search.

ParameterTypeDescription
pagenumberPage number
per_pagenumberItems per page (default: 20)
post_idnumberFilter by post ID
searchstringSearch in comment content or author
statusstringFilter by status: approve, hold, spam, trash, all (default: all)

wp_get_comment

Get a single comment with full details by its ID.

ParameterTypeDescription
id *numberComment ID

wp_update_comment_status

Change a comment status: approve, hold (unapprove), spam, or trash.

ParameterTypeDescription
id *numberComment ID
status *stringNew status: approve, hold, spam, trash

wp_reply_comment

Reply to a comment as the site administrator.

ParameterTypeDescription
content *stringReply content
parent_id *numberParent comment ID to reply to
post_id *numberPost ID

wp_delete_comment

Permanently delete a comment.

ParameterTypeDescription
id *numberComment ID