WooCommerce MCP by usefulapi
v1.3.1Read 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.
| Parameter | Type | Description |
|---|---|---|
category | string | Category id (from the product's categories). |
page | integer | Page number (default 1). |
per_page | integer | Results per page (1-100, default 10). |
search | string | Search product names and content. |
sku | string | Exact SKU. |
status | string | Product status (default any). |
stock_status | string | Stock status. |
type | string | Product 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}.
| Parameter | Type | Description |
|---|---|---|
product_id * | integer | The 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.
| Parameter | Type | Description |
|---|---|---|
after | string | Only orders created after this date or date-time. |
before | string | Only orders created before this date or date-time. |
customer | integer | Customer id (0 for guests). |
order | string | Sort direction (default desc). |
page | integer | Page number (default 1). |
per_page | integer | Results per page (1-100, default 10). |
search | string | Search order fields, such as the customer name or order number. |
status | array | Order 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}.
| Parameter | Type | Description |
|---|---|---|
order_id * | integer | The 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.
| Parameter | Type | Description |
|---|---|---|
order_id * | integer | The numeric WooCommerce id. |
woocommerce_list_customers List customers
List customers (registered shoppers) with their e-mail, name and role. WooCommerce API: GET /customers.
| Parameter | Type | Description |
|---|---|---|
email | string | Exact e-mail address. |
page | integer | Page number (default 1). |
per_page | integer | Results per page (1-100, default 10). |
role | string | User role, such as customer, subscriber or all. |
search | string | Search 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}.
| Parameter | Type | Description |
|---|---|---|
customer_id * | integer | The numeric WooCommerce id. |
woocommerce_list_coupons List coupons
List discount coupons with type, amount, usage and expiry. WooCommerce API: GET /coupons.
| Parameter | Type | Description |
|---|---|---|
code | string | Exact coupon code. |
page | integer | Page number (default 1). |
per_page | integer | Results per page (1-100, default 10). |
search | string | Search 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.
| Parameter | Type | Description |
|---|---|---|
date_max | string | End date (yyyy-mm-dd). |
date_min | string | Start date (yyyy-mm-dd), with date_max for a custom range. |
period | string | Report 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.
| Parameter | Type | Description |
|---|---|---|
date_max | string | End date (yyyy-mm-dd). |
date_min | string | Start date (yyyy-mm-dd). |
period | string | Report 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}.
| Parameter | Type | Description |
|---|---|---|
product_id * | integer | The numeric WooCommerce id. |
regular_price * | string | Regular price, e.g. 19.99. |
sale_price | string | Sale 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}.
| Parameter | Type | Description |
|---|---|---|
product_id * | integer | The numeric WooCommerce id. |
stock_quantity * | integer | The 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}.
| Parameter | Type | Description |
|---|---|---|
order_id * | integer | The 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.
| Parameter | Type | Description |
|---|---|---|
note * | string | The note text (internal, not e-mailed). |
order_id * | integer | The numeric WooCommerce id. |