MCP server· v1.0.0
WooCommerce MCP
Run your WooCommerce store from Claude, with guard rails.
MCP server for the WooCommerce REST API: 21 tools for orders, products, stock, coupons and reports, with read-only mode, confirm steps and dry-run bulk edits.
- Claude Code
- Claude Desktop
- Cursor
- VS Code
- Codex
- WooCommerce
- Docker
What you get out of it
- 01Morning store briefing in one prompt instead of ten wp-admin tabs
- 02Stock problems found before customers find them
- 03Price and stock changes reviewed as a diff before they go live
- 04Refunds and cancellations that always ask first
One-time purchase · incl. VAT
Overview
Your store, one question away
Checking a WooCommerce store usually means a dozen wp-admin tabs: orders here, stock there, the sales report somewhere else, a CSV export for anything bigger. An AI agent could do that legwork in seconds, but handing it raw API access to a live shop is risky. One misunderstood request and the wrong order gets refunded.
WooCommerce MCP connects Claude, Cursor, VS Code, Codex or any other MCP client to your store through the official WooCommerce REST API v3, with your own consumer key. No WordPress plugin, no third-party server in between: the process runs on your machine (or your server) and talks to your shop directly.
What your agent can do
21 tools across six areas:
- Orders: list and search by status, date, customer, product or free text; full order details with line items, refunds and notes; change status; add private or customer notes; create full or partial refunds.
- Products: search by name, SKU, category or stock status; details incl. variations; create products (as drafts); update price, sale price, sale dates, stock, status and texts; bulk-update up to 100 products or variations.
- Customers: search registered customers, profile with addresses and recent orders.
- Coupons: list, look up, create, update and delete.
- Reports: store overview, sales by date range with daily breakdown, top sellers.
- Stock alerts: out of stock, backorders and low stock, including variations.
On top: 4 resources (store settings, environment, payment gateways, shipping zones) and 3 prompts for a daily store briefing, a restock plan and order triage.
Built for a live shop
- Read-only mode: one flag and the write tools are not even registered.
- Confirm step: refunds, cancellations, coupon deletion and bulk edits return a preview first and only run with
confirm: true. - Dry-run by default for bulk updates, with a before/after diff per product.
- Refund checks against the remaining refundable amount, and an explicit choice between "money back via the gateway" and "record only".
- No automatic retries on POST, so a timeout can never trigger a second refund.
- New products start as drafts.
Small answers, low token bills
Raw WooCommerce JSON is huge: meta data, HTML, links. Every response here is trimmed to the fields an agent needs, paginated, with clear error hints ("your key is read-only", "your host strips the Authorization header"). Long order lists stay cheap.
From the people who used to sell you WordPress plugins
ProvenCart sold WordPress performance plugins for years. This server is for the same audience, rebuilt for how shops are run in 2026: you ask, the agent looks it up, you decide.
What you need
Node.js 20+, a WooCommerce store on HTTPS and a REST API key (Read for reporting, Read/Write for changes). Setup takes about ten minutes with the step-by-step guide included.
Made for
- WooCommerce shop owners who want answers without clicking through wp-admin
- Agencies managing several client stores
- Developers building agent workflows on top of WooCommerce
Inside the tool
Features
21 focused tools
Orders, products, customers, coupons, reports and stock alerts, each with an LLM-friendly description and trimmed output.
Safe by default
Read-only mode, confirm: true for destructive actions, dry-run diffs for bulk edits and refund amount checks.
Sales reports
Gross and net sales, refunds, discounts and top sellers for any date range, plus a one-call store overview.
Stock alerts
Out-of-stock, backorder and low-stock products, variations included, with a configurable threshold.
Prompts included
Daily store briefing, restock plan and order triage as ready-made prompts (slash commands in Claude Code).
stdio or HTTP
Runs locally over stdio, or as a Streamable HTTP server with bearer token and Docker image for teams.
Direct connection
Talks to your store's REST API with your own key. No plugin to install, no data passing through us.
Demo
See it work
You
/mcp__woocommerce__daily-store-briefing
Agent
Yesterday: €1,284.60 gross from 19 orders (7-day daily average €1,050, +22%). 1 refund (€24.90).
Waiting: 7 orders processing, 2 on-hold. Oldest: #10482 (4 days, on-hold, bank transfer not received).
Payment issues: 2 failed orders via card, same customer, 3 min apart.
Top sellers (7 days): Espresso Tamper 58 mm (31), Milk Jug 350 ml (22), Cleaning Tablets (18).
Stock: Espresso Tamper 58 mm has 3 left and is your #1 seller.
Today: 1) reorder tampers, 2) chase #10482, 3) check the failed card payments.
→ woo_create_refund { "order_id": 727, "amount": "20", "refund_via_gateway": true, "reason": "Late delivery" }
{
"executed": false,
"confirm_required": true,
"message": "Preview only. Nothing was changed. To refund 20.00 EUR on order #727, call this tool again with the same arguments plus confirm: true (after the user agreed).",
"preview": {
"order": "727",
"total": "59.80",
"already_refunded": "10.00",
"refund_now": "20.00",
"remaining_after": "29.80",
"currency": "EUR",
"method": "money is returned via Credit card (Stripe)"
}
}→ woo_bulk_update_products { "updates": [ { "id": 93, "regular_price": "26.90" }, { "id": 94, "regular_price": "19.00" } ] }
{
"executed": false,
"dry_run": true,
"summary": { "items": 2, "will_change": 1, "unchanged": 1 },
"diff": [
{ "id": 93, "name": "Espresso Tamper", "changes": { "regular_price": { "from": "24.90", "to": "26.90" } } }
]
}What's inside
The exact contents of the zip you download.
- woocommerce-mcp/
- src/TypeScript source: 21 tools, 4 resources, 3 prompts, HTTP client with retries
- dist/Prebuilt JavaScript, runs with node dist/index.js
- test/Vitest unit tests with mocked WooCommerce responses
- README.de.mdSetup for Claude Code, Claude Desktop, Cursor, VS Code, Codex; API key guide; tool reference
- .env.exampleEvery configuration option, documented
- DockerfileContainer image for stdio or HTTP mode
- LICENSE.md, CHANGELOG.mdCommercial license and version history
Install
Unzip and build (a prebuilt
dist/is included):cd woocommerce-mcp && npm install && npm run buildIn WordPress: WooCommerce → Settings → Advanced → REST API → Add key. Choose a shop-manager user, permission Read (reporting) or Read/Write (changes), and copy the
ck_…key andcs_…secret.Register the server, e.g. in Claude Code:
claude mcp add woocommerce \ -e WOOCOMMERCE_URL=https://shop.example.com \ -e WOOCOMMERCE_CONSUMER_KEY=ck_xxx \ -e WOOCOMMERCE_CONSUMER_SECRET=cs_xxx \ -- node /absolute/path/to/woocommerce-mcp/dist/index.jsClaude Desktop, Cursor, VS Code and Codex configs are in the README. Add
WOOCOMMERCE_READ_ONLY=trueto start in read-only mode.Ask: "Give me a store overview."
Requirements
- Node.js 20 or newer (or Docker)
- WooCommerce store on HTTPS with REST API v3 (WooCommerce 3.5 or later) and pretty permalinks
- WooCommerce REST API key: Read for reporting, Read/Write for changes
- An MCP client such as Claude Code, Claude Desktop, Cursor, VS Code or Codex
Works with
- Claude Code
- Claude Desktop
- Cursor
- VS Code
- Codex
- WooCommerce
- Docker
Frequently asked
Do I need to install a WordPress plugin?
No. The server uses WooCommerce's built-in REST API v3 with a consumer key and secret you create in WooCommerce → Settings → Advanced → REST API. Nothing is installed on your site.
How are my API keys handled?
They live only in your MCP client configuration or environment on your machine. The server never prints them in tool output or logs, redacts them from error messages, and sends them only to your store. Use a dedicated shop-manager user and revoke the key in WooCommerce whenever you want.
Can the AI refund an order or delete something by accident?
Refunds, cancellations, coupon deletion and bulk edits return a preview and only run with confirm: true, and the server instructs the model to ask you first. A model could still set that flag on its own, so for stores where that is not acceptable, use read-only mode (write tools are then not registered at all) or a key with Read permission only.
Is customer data sent to the AI model?
Order and customer tools return names, emails and addresses to the model you use, as any agent integration would. Under GDPR that is processing by your AI provider, so check you have a data processing agreement with them. If you don't need customer data, use the reporting and product tools only.
Can I run it on a server or for several stores?
Yes. Besides stdio it runs as a Streamable HTTP server (--http --port) with an optional bearer token, and a Dockerfile is included. Register one instance per store; agencies typically run one per client.
How do updates and licensing work?
You get 12 months of updates from your ProvenCart library; downloaded versions keep working forever. The license covers unlimited own and client projects; reselling or redistributing the files is not allowed. Setting PROVENCART_LICENSE_KEY enables an optional check (key, product and an anonymous installation ID) that only logs a message and never blocks the server.
Can I get a refund?
It's a digital product: at checkout you agree that the download starts immediately, so the statutory right of withdrawal expires (§ 356 (5) BGB). If something doesn't work for your store, write us via the support page and we'll help you get it running.
Changelog
v1.0.0Latest
1.0.0 – First release: 21 tools (orders, products, customers, coupons, reports, stock alerts), 4 resources, 3 prompts, read-only mode, confirm and dry-run safety, stdio + HTTP transport, Dockerfile.
You might also like
Bundle· 6 products
Developer Bundle
MCP servers, Claude Code setup and production rules for client web projects.