woocommerce-mcp: Ask Claude About Your WooCommerce Store (Sales, Orders, Stock)

Running a WooCommerce store means checking the same things again and again: how much did we sell this week, which products are running out, where is that customer’s order. That usually means clicking through reports, exporting CSVs and adding things up in Excel.

woocommerce-mcp lets you just ask. It is a free add-on (an MCP server) that connects Claude to your store. Claude pulls the real orders and products and works out every total with tested code, so the numbers match your store. It never guesses them.

What you can ask

  • “How much did we sell in November? Compare the first and second half of the month.”
  • “What are my top 10 products this month, and who are my best customers?”
  • “Which products and sizes are out of stock or below 5?”
  • “Show me all on-hold orders from this week.”
  • “Find Sana Tariq’s last order and show me its notes.”
  • “Which cities do most of our orders come from?”

The tools

ToolWhat it does
store_overviewOrders by status, product count, out-of-stock count and the latest orders
sales_reportExact sales for any dates: orders, gross and net sales, refunds, discounts, shipping, tax, average order value, sales by day, top products, top customers, payment methods and cities
list_orders / get_orderFind orders by status, date, name, email or phone, and see any order in full, with its notes
list_productsPrice, stock and total sales; search by name or SKU, or sort by best-selling
low_stockEverything out of stock or running low, including sizes and colours (variations)
find_customersRegistered customers by name or email
Read-only by default. Claude can look but not change anything. If you want it to update order statuses, add order notes, or change stock and prices, you switch that on yourself, and Claude asks you before every change.

How to set it up

1. Create an API key in WooCommerce

In WordPress admin, go to WooCommerce → Settings → Advanced → REST API → Add key. Pick your user, set Permissions to Read, and click Generate API key. Copy the Consumer key (starts with ck_) and Consumer secret (starts with cs_). Your store must use https.

2. Add it to Claude Desktop

Install Node.js (version 20 or newer). In Claude Desktop open Settings → Developer → Edit Config, paste this with your own store address and keys, save, and restart Claude:

{
  "mcpServers": {
    "woocommerce": {
      "command": "npx",
      "args": ["-y", "woocommerce-ai-mcp"],
      "env": {
        "WOOCOMMERCE_URL": "https://yourstore.com",
        "WOOCOMMERCE_KEY": "ck_xxxxxxxxxxxxxxxx",
        "WOOCOMMERCE_SECRET": "cs_xxxxxxxxxxxxxxxx"
      }
    }
  }
}

Then ask: “Give me an overview of my store.” Using Claude Code, Cursor or VS Code? The setup guide on GitHub has the commands.

3. Optional: allow changes

Create a key with Read/Write permission and add "WOOCOMMERCE_ALLOW_WRITES": "true" to the env section. Claude can then mark orders completed, add notes, and update stock and prices, always after asking you.

Privacy

The add-on runs on your own computer and talks only to your store; your API key stays in your local settings. The order details you ask about are shared with Claude in your conversation, like anything else you paste into a chat.

Frequently asked questions

Is it free?

Yes. woocommerce-mcp is open source under the MIT license.

Why do the totals differ a little from WooCommerce Analytics?

By default the report counts completed, processing and on-hold orders by the date they were placed. Analytics has its own settings for which statuses count. You can ask Claude to include other statuses.

It says the API key was rejected

Check the key and secret were copied fully, and that the key’s user is an administrator or shop manager. Some hosts or security plugins block the REST API or strip the login header; your host can allow it.

Can you build something custom for my store?

Yes: custom reports, stock and accounting integrations, and AI tools for your team. Tell us what you need.

Ask your store, get real numbers

Free, open source and read-only by default. If it saves you time, a star on GitHub helps others find it.

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top