woocommerce-mcp
Read-only access to a WooCommerce store through its REST API. Provides tools for a store overview (orders by status, product counts, out-of-stock items, latest orders), sales reports for any date range (gross/net sales, refunds, discounts, shipping, tax, average order value, items sold, sales by day, top products, top customers, payment methods and cities), order search and full order details including items, refunds, coupons and notes, product listing with price/stock/sales and best-selling sorting, low stock detection for products and variations, and customer lookup by name or email. With a Read/Write key and writes explicitly enabled, it can additionally update order status, add order notes, and update stock and prices, showing before/after values.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@woocommerce-mcp how much did we sell this month, and what were the top 5 products?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
π woocommerce-mcp
Talk to your WooCommerce store. An MCP server that connects Claude, Cursor, VS Code and other AI assistants to your store: exact sales reports, orders, products, low stock and customers. Read-only by default.
"How much did we sell this month, and what were the top 5 products?" "Which items are about to run out?" "Show me Sana's last order and its notes."
Every number comes from your store's real orders, calculated by code, not guessed by the AI.
π Full guide
Tools
Tool | What it does |
| Orders by status, product count, out-of-stock count, latest orders. |
| For any date range: orders, gross and net sales, refunds, discounts, shipping, tax, average order value, items sold, sales by day, top products, top customers, payment methods and cities. |
| Find orders by status, date or search (order number, name, email, phone). |
| One order in full: customer, addresses, items, totals, refunds, coupons and notes. |
| Products with price, stock and total sales; search by name or SKU; sort by best-selling. |
| Products and variations out of stock or at/below a threshold, so you know what to reorder. |
| Registered customers by name or email. |
Changes (off by default): with WOOCOMMERCE_ALLOW_WRITES=true and a Read/Write key, four more
tools appear: update_order_status, add_order_note, update_stock and update_price. Claude is
told to confirm each change with you first, and every result shows the value before and after.
Related MCP server: WooCommerce Insights MCP
Setup
1. Create an API key in WooCommerce
WordPress admin β WooCommerce β Settings β Advanced β REST API β Add key.
Choose your user, set Permissions: Read (or Read/Write if you'll enable changes), and click
Generate API key. Copy the Consumer key (ck_β¦) and Consumer secret (cs_β¦).
Your store must use https://.
2. Add the server
You need Node.js 20 or newer.
Claude Desktop: Settings β Developer β Edit Config:
{
"mcpServers": {
"woocommerce": {
"command": "npx",
"args": ["-y", "woocommerce-ai-mcp"],
"env": {
"WOOCOMMERCE_URL": "https://yourstore.com",
"WOOCOMMERCE_KEY": "ck_xxxxxxxxxxxxxxxx",
"WOOCOMMERCE_SECRET": "cs_xxxxxxxxxxxxxxxx"
}
}
}
}Restart Claude Desktop and ask: "Give me an overview of my store."
Claude Code:
claude mcp add woocommerce \
-e WOOCOMMERCE_URL=https://yourstore.com \
-e WOOCOMMERCE_KEY=ck_xxx -e WOOCOMMERCE_SECRET=cs_xxx \
-- npx -y woocommerce-ai-mcpCursor / VS Code: the same command, args and env in .cursor/mcp.json or .vscode/mcp.json.
3. (Optional) Allow changes
Use a Read/Write key and add "WOOCOMMERCE_ALLOW_WRITES": "true" to env. Leave it out to keep
the assistant strictly read-only.
Privacy and safety
The server runs on your computer and talks only to your store. Your key stays in your local config.
Order data you ask about is sent to your AI assistant (for example Anthropic for Claude), like anything else you share in a chat.
Read-only unless you enable changes. Changing an order status can make WooCommerce email the customer, as it would from the admin.
Troubleshooting
Message | Fix |
rejected the API key (401) | Check the key and secret; the key's user must be a shop manager or admin. Some hosts strip the Authorization header: ask them to allow it, or check your security plugin. |
isn't allowed (403) | The key is Read-only. Create a Read/Write key for changes. |
has no WooCommerce API | Check the URL; WooCommerce must be active and Settings β Permalinks must not be "Plain". |
didn't return WooCommerce data | A firewall or security plugin is blocking |
Limits
sales_reportandlow_stockread up to 2,000 orders/products per call; for bigger stores use shorter date ranges. Totals are by order date in the store's timezone.Sales are counted from orders (completed, processing and on-hold by default), so they can differ slightly from WooCommerce Analytics, which has its own settings for which statuses count.
Development
git clone https://github.com/mubasher1111/woocommerce-mcp.git
cd woocommerce-mcp
npm install
npm test # runs the server over stdio against a fake WooCommerce storeLicense
MIT. Made by ZexCart. More free tools: zexcart.site/dev-tools. Need a custom store integration? Get in touch.
If it saves you time, please β star the repo.
Available Tools
7 toolsfind_customersFind customersARead-onlyIdempotent
Finds registered customers by name or email, with contact details and location. Guest buyers appear in orders (list_orders search) and in sales_report top_customers, not here.
Inputs: limit, search.
get_orderOrder detailsARead-onlyIdempotent
Full details of one order: customer and addresses, items, discounts, shipping, tax, refunds, coupons and the order notes history.
Inputs: order_id (required).
list_ordersFind ordersARead-onlyIdempotent
Lists orders, newest first, filtered by status, date range, or a search term (order number, customer name, email or phone). Returns a short summary of each order.
Inputs: to, from, page, limit, +2 more.
list_productsFind productsARead-onlyIdempotent
Lists products with price, stock and total sales. Search by name or SKU, filter by stock status, or sort by best-selling (orderby "popularity").
Inputs: sku, page, limit, order, +3 more.
low_stockLow stock reportARead-onlyIdempotent
Finds products and variations that are out of stock or at/below a stock threshold, so the user knows what to reorder. Checks variations of variable products too (up to 50 variable products).
Inputs: threshold.
sales_reportSales reportARead-onlyIdempotent
Exact sales figures for a date range, calculated from the orders: order count, gross and net sales, refunds, discounts, shipping, tax, average order value, items sold, sales by day, top products, top customers, payment methods and cities. Counts completed, processing and on-hold orders unless statuses are given. Up to 2,000 orders.
Inputs: to, from, statuses.
store_overviewStore overviewARead-onlyIdempotent
A quick look at the store: orders by status, number of products, how many are out of stock, and the 5 most recent orders. Use it first to check the connection.
Inputs: no named parameters.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogβ¦
TDQS
Scored across 7 tools
The tools mostly target distinct actions: order listing vs order detail, product listing vs low-stock alerting, and sales aggregation vs dashboard overview. There is minor overlap between list_products' stock filter and low_stock, and between store_overview and sales_report, but descriptions clarify the intended use.
Four tools use verb_noun naming (list_orders, get_order, list_products, find_customers), but three use noun or compound names (store_overview, sales_report, low_stock). The convention is mixed though still readable.
Seven tools is well within a reasonable range for a read-only WooCommerce insights server. Each tool covers a distinct store area without excessive surface.
Core read-only workflows are covered: overview, sales reporting, order list/detail, product list, low-stock detection, and customer lookup. Minor gaps exist for product detail and customer detail, and write operations are absent, but the server appears intentionally read-only.
Maintenance
Related MCP Connectors
Manage WooCommerce products, orders and stock, and analyze sales through your AI assistant.
Ask Claude or ChatGPT about your WooCommerce sales, stock and orders. Safe edits with undo.
Connect AI to store orders, products and inventory with scoped access and human approvals.
Run a WooCommerce shop from Claude or ChatGPT: sales and stock reports, SEO, prices, products, menus and site design. Every change is a draft that you approve with one click, and you can undo it. Free forever: 100 actions a day. Skill: github.com/SakkoulasGiannis/addsynapse-woocommerce
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to manage WooCommerce stores, including products, orders, customers, categories, coupons, attributes, variations, order notes, refunds, reports, payment gateways, meta data, reviews, settings, data, posts, and system status through natural language.MIT
- FlicenseNot gradedqualityNot gradedmaintenanceEnables secure, read-only access to WooCommerce store data through MCP-compatible assistants, letting users query products, orders, sales summaries, and inventory alerts without exposing store credentials.-
- AlicenseNot gradedqualityAmaintenanceEnables AI assistants to manage an online store's products, variations, orders, refunds, customers, coupons, shipping, taxes, payment gateways, reports, and settings through the WordPress REST API. It also supports WordPress content operations such as creating and updating posts and metadata.MIT
- AlicenseNot gradedqualityAmaintenanceEnables AI assistants to interact with WooCommerce stores through the WordPress REST API. It provides tools for managing products, orders, customers, shipping, taxes, coupons, reports, and store settings.MIT