mcp-woocommerce

v0.2.0
mcp-woocommerce Checked 1 day ago Published 8 months ago

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

ParameterTypeDescription
categorystring
on_saleboolean
orderstring
orderbystring
pageinteger
per_pageinteger
searchstring
statusstring

get_product

Get full details for a product including pricing, inventory, categories, images, and attributes.

ParameterTypeDescription
product_id *integer

create_product

Create a product. Type: simple, grouped, external, variable. Categories: comma-separated IDs.

ParameterTypeDescription
name *string
categoriesstring
descriptionstring
manage_stockboolean
product_typestring
regular_pricestring
short_descriptionstring
skustring
statusstring
stock_quantityinteger

update_product

Update a product. Only provide fields you want to change. Set sale_price to empty string to remove sale.

ParameterTypeDescription
product_id *integer
descriptionstring
namestring
regular_pricestring
sale_price
skustring
statusstring
stock_quantityinteger

delete_product

Delete a product. Set force=True for permanent deletion (bypass trash).

ParameterTypeDescription
product_id *integer
forceboolean

search_products

Search products by name or SKU.

ParameterTypeDescription
query *string
per_pageinteger

list_low_stock_products

List products by stock status for inventory management. stock_status: outofstock, onbackorder, instock. Use 'outofstock' to find items needing restocking.

ParameterTypeDescription
pageinteger
per_pageinteger
stock_statusstring

list_product_categories

List product categories. Set parent=0 for top-level only.

ParameterTypeDescription
pageinteger
parentinteger
per_pageinteger

create_product_category

Create a product category. Set parent ID for subcategories.

ParameterTypeDescription
name *string
descriptionstring
parentinteger
slugstring

update_product_category

Update a product category. Only provide fields to change.

ParameterTypeDescription
category_id *integer
descriptionstring
namestring
parentinteger
slugstring

delete_product_category

Delete a product category. Products in this category are not deleted.

ParameterTypeDescription
category_id *integer

list_product_variations

List all variations for a variable product.

ParameterTypeDescription
product_id *integer
pageinteger
per_pageinteger

get_product_variation

Get full details for a specific product variation.

ParameterTypeDescription
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"}]'

ParameterTypeDescription
product_id *integer
attributesstring
manage_stockboolean
regular_pricestring
skustring
statusstring
stock_quantityinteger

update_product_variation

Update a product variation. Only provide fields to change.

ParameterTypeDescription
product_id *integer
variation_id *integer
regular_pricestring
sale_price
skustring
statusstring
stock_quantityinteger

delete_product_variation

Delete a product variation.

ParameterTypeDescription
product_id *integer
variation_id *integer
forceboolean

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.

ParameterTypeDescription
attribute_id *integer

create_product_attribute

Create a product attribute. type: select, text. order_by: menu_order, name, name_num, id.

ParameterTypeDescription
name *string
attribute_typestring
has_archivesboolean
order_bystring
slugstring

update_product_attribute

Update a product attribute. Only provide fields to change.

ParameterTypeDescription
attribute_id *integer
namestring
order_bystring
slugstring

delete_product_attribute

Delete a product attribute. This also removes it from all products.

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

ParameterTypeDescription
attribute_id *integer
pageinteger
per_pageinteger

create_attribute_term

Add a term to a product attribute (e.g. add 'Red' to Color). Get attribute IDs from list_product_attributes.

ParameterTypeDescription
attribute_id *integer
name *string
descriptionstring
slugstring

update_attribute_term

Update a product attribute term. Only provide fields to change.

ParameterTypeDescription
attribute_id *integer
term_id *integer
descriptionstring
namestring
slugstring

delete_attribute_term

Delete a product attribute term.

ParameterTypeDescription
attribute_id *integer
term_id *integer

list_product_tags

List product tags. Optionally search by name.

ParameterTypeDescription
pageinteger
per_pageinteger
searchstring

create_product_tag

Create a product tag.

ParameterTypeDescription
name *string
descriptionstring
slugstring

delete_product_tag

Delete a product tag.

ParameterTypeDescription
tag_id *integer

list_product_reviews

List product reviews. Optionally filter by product_id or status (approved, hold, spam, unspam, trash, untrash).

ParameterTypeDescription
pageinteger
per_pageinteger
product_idinteger
statusstring

get_product_review

Get full details for a product review.

ParameterTypeDescription
review_id *integer

create_product_review

Create a product review. Rating: 1-5.

ParameterTypeDescription
product_id *integer
review *string
reviewer *string
reviewer_email *string
ratinginteger

delete_product_review

Delete a product review.

ParameterTypeDescription
review_id *integer
forceboolean

list_orders

List orders. Filter by status (pending, processing, on-hold, completed, cancelled, refunded, failed), customer ID, or date range (ISO 8601).

ParameterTypeDescription
afterstring
beforestring
customerinteger
pageinteger
per_pageinteger
statusstring

get_order

Get full details for an order including line items, shipping, billing, and payment info.

ParameterTypeDescription
order_id *integer

create_order

Create an order. line_items: JSON array of {product_id, quantity} objects. Example: '[{"product_id": 42, "quantity": 2}]'

ParameterTypeDescription
billing_emailstring
billing_first_namestring
billing_last_namestring
customer_idinteger
line_itemsstring
notestring
payment_methodstring
statusstring

update_order_status

Update an order's status. Status: pending, processing, on-hold, completed, cancelled, refunded, failed.

ParameterTypeDescription
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"}'

ParameterTypeDescription
order_id *integer
billingstring
customer_notestring
shippingstring

delete_order

Delete an order. Set force=True for permanent deletion (bypass trash).

ParameterTypeDescription
order_id *integer
forceboolean

list_order_notes

List all notes on an order (internal staff notes and customer-facing notes).

ParameterTypeDescription
order_id *integer

create_order_note

Add a note to an order. Set customer_note=True to make it visible to the customer.

ParameterTypeDescription
note *string
order_id *integer
customer_noteboolean

create_refund

Create a refund for an order. Amount as string (e.g. '25.00').

ParameterTypeDescription
amount *string
order_id *integer
reasonstring

list_refunds

List all refunds for an order.

ParameterTypeDescription
order_id *integer

list_customers

List customers. Filter by role (all, administrator, customer) or search by name/email. Orderby: id, include, name, registered_date.

ParameterTypeDescription
orderstring
orderbystring
pageinteger
per_pageinteger
rolestring
searchstring

get_customer

Get full details for a customer including billing/shipping addresses and order stats.

ParameterTypeDescription
customer_id *integer

create_customer

Create a new customer. Only email is required.

ParameterTypeDescription
email *string
first_namestring
last_namestring
usernamestring

update_customer

Update a customer. billing/shipping: JSON objects with address fields. Example: '{"phone": "555-0123", "address_1": "123 Main St", "city": "Austin"}'

ParameterTypeDescription
customer_id *integer
billingstring
emailstring
first_namestring
last_namestring
shippingstring

delete_customer

Delete a customer. Set reassign to another customer ID to transfer their orders.

ParameterTypeDescription
customer_id *integer
reassigninteger

search_customers

Search customers by name or email.

ParameterTypeDescription
query *string
per_pageinteger

list_coupons

List coupons. Optionally search by code.

ParameterTypeDescription
pageinteger
per_pageinteger
searchstring

get_coupon

Get full details for a coupon.

ParameterTypeDescription
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).

ParameterTypeDescription
code *string
amountstring
discount_typestring
expiry_datestring
free_shippingboolean
individual_useboolean
minimum_amountstring
usage_limitinteger

update_coupon

Update a coupon. Only provide fields to change. Use this to extend expiry dates, change amounts, etc.

ParameterTypeDescription
coupon_id *integer
amountstring
codestring
discount_typestring
expiry_datestring
free_shipping
individual_use
minimum_amountstring
usage_limitinteger

delete_coupon

Delete a coupon. force=True for permanent deletion.

ParameterTypeDescription
coupon_id *integer
forceboolean

get_sales_report

Get sales report. Period: week, month, last_month, year. Or provide date_min/date_max (YYYY-MM-DD).

ParameterTypeDescription
date_maxstring
date_minstring
periodstring

get_top_sellers

Get top-selling products. Period: week, month, last_month, year.

ParameterTypeDescription
periodstring

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.

ParameterTypeDescription
groupstring

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.

ParameterTypeDescription
pageinteger
per_pageinteger

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.

ParameterTypeDescription
pageinteger
per_pageinteger

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.

ParameterTypeDescription
delivery_url *string
name *string
topic *string
secretstring
statusstring

update_webhook

Update a webhook. Only provide fields to change. Status: active, paused, disabled.

ParameterTypeDescription
webhook_id *integer
delivery_urlstring
namestring
secretstring
statusstring
topicstring

delete_webhook

Delete a webhook.

ParameterTypeDescription
webhook_id *integer
forceboolean

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"}]'

ParameterTypeDescription
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"}]'

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