mcp-woocommerce
v0.2.0Production-grade MCP server for the WooCommerce REST API — 73 tools for products, variations, attributes, orders, customers, coupons, reviews, reports…
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
ping
Validate WooCommerce connection and get store info (name, URL, currency, version, timezone).
list_products
List products. Filter by status (publish, draft, pending, private), category ID, search term, or on_sale flag. Orderby: date, id, title, price, popularity, rating.
| Parameter | Type | Description |
|---|---|---|
category | string | |
on_sale | boolean | |
order | string | |
orderby | string | |
page | integer | |
per_page | integer | |
search | string | |
status | string |
get_product
Get full details for a product including pricing, inventory, categories, images, and attributes.
| Parameter | Type | Description |
|---|---|---|
product_id * | integer |
create_product
Create a product. Type: simple, grouped, external, variable. Categories: comma-separated IDs.
| Parameter | Type | Description |
|---|---|---|
name * | string | |
categories | string | |
description | string | |
manage_stock | boolean | |
product_type | string | |
regular_price | string | |
short_description | string | |
sku | string | |
status | string | |
stock_quantity | integer |
update_product
Update a product. Only provide fields you want to change. Set sale_price to empty string to remove sale.
| Parameter | Type | Description |
|---|---|---|
product_id * | integer | |
description | string | |
name | string | |
regular_price | string | |
sale_price | ||
sku | string | |
status | string | |
stock_quantity | integer |
delete_product
Delete a product. Set force=True for permanent deletion (bypass trash).
| Parameter | Type | Description |
|---|---|---|
product_id * | integer | |
force | boolean |
search_products
Search products by name or SKU.
| Parameter | Type | Description |
|---|---|---|
query * | string | |
per_page | integer |
list_low_stock_products
List products by stock status for inventory management. stock_status: outofstock, onbackorder, instock. Use 'outofstock' to find items needing restocking.
| Parameter | Type | Description |
|---|---|---|
page | integer | |
per_page | integer | |
stock_status | string |
list_product_categories
List product categories. Set parent=0 for top-level only.
| Parameter | Type | Description |
|---|---|---|
page | integer | |
parent | integer | |
per_page | integer |
create_product_category
Create a product category. Set parent ID for subcategories.
| Parameter | Type | Description |
|---|---|---|
name * | string | |
description | string | |
parent | integer | |
slug | string |
update_product_category
Update a product category. Only provide fields to change.
| Parameter | Type | Description |
|---|---|---|
category_id * | integer | |
description | string | |
name | string | |
parent | integer | |
slug | string |
delete_product_category
Delete a product category. Products in this category are not deleted.
| Parameter | Type | Description |
|---|---|---|
category_id * | integer |
list_product_variations
List all variations for a variable product.
| Parameter | Type | Description |
|---|---|---|
product_id * | integer | |
page | integer | |
per_page | integer |
get_product_variation
Get full details for a specific product variation.
| Parameter | Type | Description |
|---|---|---|
product_id * | integer | |
variation_id * | integer |
create_product_variation
Create a product variation. attributes: JSON array of {name, option} objects. Example: '[{"name": "Color", "option": "Blue"}]'
| Parameter | Type | Description |
|---|---|---|
product_id * | integer | |
attributes | string | |
manage_stock | boolean | |
regular_price | string | |
sku | string | |
status | string | |
stock_quantity | integer |
update_product_variation
Update a product variation. Only provide fields to change.
| Parameter | Type | Description |
|---|---|---|
product_id * | integer | |
variation_id * | integer | |
regular_price | string | |
sale_price | ||
sku | string | |
status | string | |
stock_quantity | integer |
delete_product_variation
Delete a product variation.
| Parameter | Type | Description |
|---|---|---|
product_id * | integer | |
variation_id * | integer | |
force | boolean |
list_product_attributes
List all product attributes (e.g. Color, Size) defined in the store.
get_product_attribute
Get details for a product attribute including its terms/options.
| Parameter | Type | Description |
|---|---|---|
attribute_id * | integer |
create_product_attribute
Create a product attribute. type: select, text. order_by: menu_order, name, name_num, id.
| Parameter | Type | Description |
|---|---|---|
name * | string | |
attribute_type | string | |
has_archives | boolean | |
order_by | string | |
slug | string |
update_product_attribute
Update a product attribute. Only provide fields to change.
| Parameter | Type | Description |
|---|---|---|
attribute_id * | integer | |
name | string | |
order_by | string | |
slug | string |
delete_product_attribute
Delete a product attribute. This also removes it from all products.
| Parameter | Type | Description |
|---|---|---|
attribute_id * | integer |
list_attribute_terms
List terms for a product attribute (e.g. 'Red', 'Blue' for Color). Get attribute IDs from list_product_attributes.
| Parameter | Type | Description |
|---|---|---|
attribute_id * | integer | |
page | integer | |
per_page | integer |
create_attribute_term
Add a term to a product attribute (e.g. add 'Red' to Color). Get attribute IDs from list_product_attributes.
| Parameter | Type | Description |
|---|---|---|
attribute_id * | integer | |
name * | string | |
description | string | |
slug | string |
update_attribute_term
Update a product attribute term. Only provide fields to change.
| Parameter | Type | Description |
|---|---|---|
attribute_id * | integer | |
term_id * | integer | |
description | string | |
name | string | |
slug | string |
delete_attribute_term
Delete a product attribute term.
| Parameter | Type | Description |
|---|---|---|
attribute_id * | integer | |
term_id * | integer |
list_product_tags
List product tags. Optionally search by name.
| Parameter | Type | Description |
|---|---|---|
page | integer | |
per_page | integer | |
search | string |
create_product_tag
Create a product tag.
| Parameter | Type | Description |
|---|---|---|
name * | string | |
description | string | |
slug | string |
delete_product_tag
Delete a product tag.
| Parameter | Type | Description |
|---|---|---|
tag_id * | integer |
list_product_reviews
List product reviews. Optionally filter by product_id or status (approved, hold, spam, unspam, trash, untrash).
| Parameter | Type | Description |
|---|---|---|
page | integer | |
per_page | integer | |
product_id | integer | |
status | string |
get_product_review
Get full details for a product review.
| Parameter | Type | Description |
|---|---|---|
review_id * | integer |
create_product_review
Create a product review. Rating: 1-5.
| Parameter | Type | Description |
|---|---|---|
product_id * | integer | |
review * | string | |
reviewer * | string | |
reviewer_email * | string | |
rating | integer |
delete_product_review
Delete a product review.
| Parameter | Type | Description |
|---|---|---|
review_id * | integer | |
force | boolean |
list_orders
List orders. Filter by status (pending, processing, on-hold, completed, cancelled, refunded, failed), customer ID, or date range (ISO 8601).
| Parameter | Type | Description |
|---|---|---|
after | string | |
before | string | |
customer | integer | |
page | integer | |
per_page | integer | |
status | string |
get_order
Get full details for an order including line items, shipping, billing, and payment info.
| Parameter | Type | Description |
|---|---|---|
order_id * | integer |
create_order
Create an order. line_items: JSON array of {product_id, quantity} objects. Example: '[{"product_id": 42, "quantity": 2}]'
| Parameter | Type | Description |
|---|---|---|
billing_email | string | |
billing_first_name | string | |
billing_last_name | string | |
customer_id | integer | |
line_items | string | |
note | string | |
payment_method | string | |
status | string |
update_order_status
Update an order's status. Status: pending, processing, on-hold, completed, cancelled, refunded, failed.
| Parameter | Type | Description |
|---|---|---|
order_id * | integer | |
status * | string |
update_order
Update an order's billing/shipping addresses or customer note. billing/shipping: JSON objects with address fields. Example: '{"email": "new@email.com", "phone": "555-0123", "address_1": "123 Main St"}'
| Parameter | Type | Description |
|---|---|---|
order_id * | integer | |
billing | string | |
customer_note | string | |
shipping | string |
delete_order
Delete an order. Set force=True for permanent deletion (bypass trash).
| Parameter | Type | Description |
|---|---|---|
order_id * | integer | |
force | boolean |
list_order_notes
List all notes on an order (internal staff notes and customer-facing notes).
| Parameter | Type | Description |
|---|---|---|
order_id * | integer |
create_order_note
Add a note to an order. Set customer_note=True to make it visible to the customer.
| Parameter | Type | Description |
|---|---|---|
note * | string | |
order_id * | integer | |
customer_note | boolean |
create_refund
Create a refund for an order. Amount as string (e.g. '25.00').
| Parameter | Type | Description |
|---|---|---|
amount * | string | |
order_id * | integer | |
reason | string |
list_refunds
List all refunds for an order.
| Parameter | Type | Description |
|---|---|---|
order_id * | integer |
list_customers
List customers. Filter by role (all, administrator, customer) or search by name/email. Orderby: id, include, name, registered_date.
| Parameter | Type | Description |
|---|---|---|
order | string | |
orderby | string | |
page | integer | |
per_page | integer | |
role | string | |
search | string |
get_customer
Get full details for a customer including billing/shipping addresses and order stats.
| Parameter | Type | Description |
|---|---|---|
customer_id * | integer |
create_customer
Create a new customer. Only email is required.
| Parameter | Type | Description |
|---|---|---|
email * | string | |
first_name | string | |
last_name | string | |
username | string |
update_customer
Update a customer. billing/shipping: JSON objects with address fields. Example: '{"phone": "555-0123", "address_1": "123 Main St", "city": "Austin"}'
| Parameter | Type | Description |
|---|---|---|
customer_id * | integer | |
billing | string | |
email | string | |
first_name | string | |
last_name | string | |
shipping | string |
delete_customer
Delete a customer. Set reassign to another customer ID to transfer their orders.
| Parameter | Type | Description |
|---|---|---|
customer_id * | integer | |
reassign | integer |
search_customers
Search customers by name or email.
| Parameter | Type | Description |
|---|---|---|
query * | string | |
per_page | integer |
list_coupons
List coupons. Optionally search by code.
| Parameter | Type | Description |
|---|---|---|
page | integer | |
per_page | integer | |
search | string |
get_coupon
Get full details for a coupon.
| Parameter | Type | Description |
|---|---|---|
coupon_id * | integer |
create_coupon
Create a coupon. discount_type: percent, fixed_cart, fixed_product. Amount as string (e.g. '10' for 10% or $10).
| Parameter | Type | Description |
|---|---|---|
code * | string | |
amount | string | |
discount_type | string | |
expiry_date | string | |
free_shipping | boolean | |
individual_use | boolean | |
minimum_amount | string | |
usage_limit | integer |
update_coupon
Update a coupon. Only provide fields to change. Use this to extend expiry dates, change amounts, etc.
| Parameter | Type | Description |
|---|---|---|
coupon_id * | integer | |
amount | string | |
code | string | |
discount_type | string | |
expiry_date | string | |
free_shipping | ||
individual_use | ||
minimum_amount | string | |
usage_limit | integer |
delete_coupon
Delete a coupon. force=True for permanent deletion.
| Parameter | Type | Description |
|---|---|---|
coupon_id * | integer | |
force | boolean |
get_sales_report
Get sales report. Period: week, month, last_month, year. Or provide date_min/date_max (YYYY-MM-DD).
| Parameter | Type | Description |
|---|---|---|
date_max | string | |
date_min | string | |
period | string |
get_top_sellers
Get top-selling products. Period: week, month, last_month, year.
| Parameter | Type | Description |
|---|---|---|
period | string |
get_order_totals
Get order counts by status (pending, processing, completed, etc.).
get_product_totals
Get product counts by type (simple, variable, grouped, external).
get_store_settings
Read store settings by group. Groups: general, products, tax, shipping, checkout, account, email, advanced.
| Parameter | Type | Description |
|---|---|---|
group | string |
list_shipping_zones
List all shipping zones with their methods.
list_payment_gateways
List all payment gateways with their enabled status and settings.
list_tax_rates
List all tax rates.
| Parameter | Type | Description |
|---|---|---|
page | integer | |
per_page | integer |
list_tax_classes
List all tax classes (e.g. Standard, Reduced rate, Zero rate).
list_shipping_classes
List all product shipping classes (e.g. Bulky, Fragile, Standard).
list_webhooks
List all webhooks.
| Parameter | Type | Description |
|---|---|---|
page | integer | |
per_page | integer |
create_webhook
Create a webhook. Topics: order.created, order.updated, order.deleted, product.created, product.updated, product.deleted, customer.created, customer.updated, coupon.created, coupon.updated, etc.
| Parameter | Type | Description |
|---|---|---|
delivery_url * | string | |
name * | string | |
topic * | string | |
secret | string | |
status | string |
update_webhook
Update a webhook. Only provide fields to change. Status: active, paused, disabled.
| Parameter | Type | Description |
|---|---|---|
webhook_id * | integer | |
delivery_url | string | |
name | string | |
secret | string | |
status | string | |
topic | string |
delete_webhook
Delete a webhook.
| Parameter | Type | Description |
|---|---|---|
webhook_id * | integer | |
force | boolean |
batch_update_products
Bulk update products. updates: JSON array of objects with 'id' and fields to change. Example: '[{"id": 1, "regular_price": "19.99"}, {"id": 2, "status": "draft"}]'
| Parameter | Type | Description |
|---|---|---|
updates * | string |
batch_update_orders
Bulk update orders. updates: JSON array of objects with 'id' and fields to change. Example: '[{"id": 100, "status": "completed"}, {"id": 101, "status": "processing"}]'
| Parameter | Type | Description |
|---|---|---|
updates * | string |
list_currencies
List all currencies supported by WooCommerce with codes and symbols.
list_countries
List all countries with their states/provinces. Useful for configuring shipping zones and tax rates.
get_system_status
Get WooCommerce system status — versions, database, active plugins, server environment, and store diagnostics.