WooCommerce MCP by usefulapi

v1.3.1
io.usefulapi/woocommerce Checked 3 days ago Published 1 day ago

Read orders, products and sales reports; change prices, stock and order status in WooCommerce.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

woocommerce_list_products List products

List products in the store with price, sale price, stock and status. Filter by search text, status, type, SKU, category id or stock status. WooCommerce API: GET /products.

ParameterTypeDescription
categorystringCategory id (from the product's categories).
pageintegerPage number (default 1).
per_pageintegerResults per page (1-100, default 10).
searchstringSearch product names and content.
skustringExact SKU.
statusstringProduct status (default any).
stock_statusstringStock status.
typestringProduct type.

woocommerce_get_product Get a product

Get one product by id, with prices, stock, categories, images and variations ids. WooCommerce API: GET /products/{id}.

ParameterTypeDescription
product_id *integerThe numeric WooCommerce id.

woocommerce_list_orders List orders

List orders with status, totals, billing and line items. Filter by status, date range, customer id or search text. Newest first by default. WooCommerce API: GET /orders.

ParameterTypeDescription
afterstringOnly orders created after this date or date-time.
beforestringOnly orders created before this date or date-time.
customerintegerCustomer id (0 for guests).
orderstringSort direction (default desc).
pageintegerPage number (default 1).
per_pageintegerResults per page (1-100, default 10).
searchstringSearch order fields, such as the customer name or order number.
statusarrayOrder statuses to include (default any).

woocommerce_get_order Get an order

Get one order by id, with its billing and shipping address, line items, totals and status. WooCommerce API: GET /orders/{id}.

ParameterTypeDescription
order_id *integerThe numeric WooCommerce id.

woocommerce_list_order_notes List order notes

List the internal and customer notes on one order. WooCommerce API: GET /orders/{id}/notes.

ParameterTypeDescription
order_id *integerThe numeric WooCommerce id.

woocommerce_list_customers List customers

List customers (registered shoppers) with their e-mail, name and role. WooCommerce API: GET /customers.

ParameterTypeDescription
emailstringExact e-mail address.
pageintegerPage number (default 1).
per_pageintegerResults per page (1-100, default 10).
rolestringUser role, such as customer, subscriber or all.
searchstringSearch names and e-mail addresses.

woocommerce_get_customer Get a customer

Get one customer by id, with contact details and addresses. WooCommerce API: GET /customers/{id}.

ParameterTypeDescription
customer_id *integerThe numeric WooCommerce id.

woocommerce_list_coupons List coupons

List discount coupons with type, amount, usage and expiry. WooCommerce API: GET /coupons.

ParameterTypeDescription
codestringExact coupon code.
pageintegerPage number (default 1).
per_pageintegerResults per page (1-100, default 10).
searchstringSearch coupon codes.

woocommerce_sales_report Sales report

Sales totals for a period (gross sales, net sales, orders, items, refunds, shipping, discounts) with per-interval totals. WooCommerce API: GET /reports/sales.

ParameterTypeDescription
date_maxstringEnd date (yyyy-mm-dd).
date_minstringStart date (yyyy-mm-dd), with date_max for a custom range.
periodstringReport period. Use date_min and date_max with a custom range by leaving this unset.

woocommerce_top_sellers Top sellers

The best-selling products for a period, by quantity sold. WooCommerce API: GET /reports/top_sellers.

ParameterTypeDescription
date_maxstringEnd date (yyyy-mm-dd).
date_minstringStart date (yyyy-mm-dd).
periodstringReport period. Use date_min and date_max with a custom range by leaving this unset.

woocommerce_order_totals Order totals

Order counts per status for the whole store (for example processing, completed, on-hold). WooCommerce API: GET /reports/orders/totals.

woocommerce_update_product_price Update product price

Change a product's regular price and, when given, its sale price. Pass sale_price as an empty string to remove the sale. This changes the live price the shoppers see. WooCommerce API: PUT /products/{id}.

ParameterTypeDescription
product_id *integerThe numeric WooCommerce id.
regular_price *stringRegular price, e.g. 19.99.
sale_pricestringSale price, or an empty string to remove the sale.

woocommerce_update_product_stock Update product stock

Turn on stock management for a product and set its stock quantity. This changes what the shoppers can buy. WooCommerce API: PUT /products/{id}.

ParameterTypeDescription
product_id *integerThe numeric WooCommerce id.
stock_quantity *integerThe new stock quantity. Negative values are allowed for backorders.

woocommerce_update_order_status Update order status

Set an order's status (pending, processing, on-hold, completed, cancelled or failed). WooCommerce may e-mail the customer the status e-mail for that status. Refunds are not part of this tool. WooCommerce API: PUT /orders/{id}.

ParameterTypeDescription
order_id *integerThe numeric WooCommerce id.
status *string

woocommerce_add_order_note Add an order note

Add an internal note to an order. The note is not sent to the customer. WooCommerce API: POST /orders/{id}/notes.

ParameterTypeDescription
note *stringThe note text (internal, not e-mailed).
order_id *integerThe numeric WooCommerce id.