WooCommerce MCP Server
You can let an AI agent inspect a WooCommerce store and propose changes that require human approval before being applied.
Read store metadata, products, stock levels, orders, customers, sales summaries, and coupons.
Search/filter products by SKU, category, status, stock, price/date ordering, and page through results.
Retrieve full product details including variations, and identify low-stock products using product-specific or custom thresholds.
List and inspect orders with status, dates, customer, search, line items, shipping, payment, and notes.
Search customers with PII masked by default.
Get sales totals for week/month/last month/year or a custom date range.
Check coupons for type, amount, usage, and expiry validity.
Propose order notes, order status changes, stock quantity updates, price updates, and refunds with reasons.
List proposals by status: pending, approved, rejected, applied, or failed.
Apply only approved proposals, with writes disabled unless explicitly enabled and apply refused on read-only servers.
Benefit from safety controls: PII redaction, separate approver identity, input validation, and idempotent proposal application.
Allows AI agents to read WooCommerce store data such as products, stock, orders, customers, coupons, and sales summaries, and to propose changes like order notes, order status updates, stock and price changes, and refunds, with human approval required before applying writes.
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 Server Which products are about to run out of stock?"
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-server
An MCP server that lets an AI agent work with a WooCommerce store — read everything it needs, and change nothing without a human saying yes.
Connect Claude Desktop, Cursor, or your own agent to a store and ask: "Which products are about to run out?", "Where is order 500?", "How did we do this month vs last month?". When the agent wants to change something — set an order to completed, refund 19 €, drop a price — it files a proposal with a reason. You approve it from the CLI or an admin endpoint the agent has no token for. Only then can it be applied.
agent → propose_refund(order 500, 19.00, "Cap arrived damaged") status: pending
human → woocommerce-mcp-server approve 3f9c status: approved
agent → apply_proposal(3f9c) POST /orders/500/refunds ✓Built after wiring agents into client stores: the useful part was never "can the model call the API", it was what the model is allowed to see and do, and who signs off.
Tools
Read (always on) | Write (proposal → human approval → apply) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
|
Every tool carries MCP annotations (readOnlyHint, destructiveHint) so clients can show the right confirmation UI.
Safety defaults
Read-only unless
WOO_ALLOW_WRITES=true. Proposals are still recorded, so you can run it read-only and review what the agent would have done.PII masked: emails →
m***@example.com, phones →***78, names → initials, street lines and IPs dropped. City, postcode and country stay for shipping questions.WOO_REDACT_PII=falseto disable.Separate approver identity: in HTTP mode the agent uses
MCP_HTTP_TOKEN, approvals needMCP_ADMIN_TOKEN, and the server refuses to start if they're equal.Idempotent gate: a proposal is applied at most once; its result or error is stored with it.
Input is validated with zod before any request reaches the store.
Related MCP server: WooCommerce Insights MCP
Install
npm i -g woocommerce-mcp-server # or: npx woocommerce-mcp-serverCreate a REST API key in WooCommerce → Settings → Advanced → REST API (Read permission is enough for read-only use).
Claude Desktop / Cursor (stdio)
{
"mcpServers": {
"woocommerce": {
"command": "npx",
"args": ["-y", "woocommerce-mcp-server"],
"env": {
"WOO_URL": "https://shop.example.com",
"WOO_CONSUMER_KEY": "ck_…",
"WOO_CONSUMER_SECRET": "cs_…"
}
}
}
}Server mode (Streamable HTTP)
cp .env.example .env # fill it in, with two different tokens
woocommerce-mcp-server http --port 3333
# agent: POST http://host:3333/mcp Authorization: Bearer $MCP_HTTP_TOKEN
# human: GET http://host:3333/proposals Authorization: Bearer $MCP_ADMIN_TOKEN
# POST http://host:3333/proposals/<id>/approve (or /reject)Docker:
docker run -d --env-file .env -v woo-proposals:/data -p 3333:3333 ghcr.io/walidsadfi-evolurise/woocommerce-mcp-serverReviewing proposals from the terminal
$ woocommerce-mcp-server proposals
3f9c1a2e pending refund Refund 19.00 on order #500 (manual): Cap arrived damaged
reason: Photo received from customer, cap crushed in transit
$ woocommerce-mcp-server approve 3f9c
approved: Refund 19.00 on order #500 (manual): Cap arrived damagedThe proposals file (WOO_PROPOSALS_FILE) is plain JSON, so the approver can be a different process, a cron that posts to Slack, or a tiny back-office page.
Compared with the official WooCommerce MCP (developer preview)
WooCommerce now exposes its own MCP surface through the WordPress Abilities API plus the separate MCP Adapter plugin. Both are legitimate; they solve different problems.
Official WooCommerce MCP (preview) | woocommerce-mcp-server | |
Runs | Inside WordPress (plugin + WP-CLI for stdio, HTTP via a Node proxy) | Outside the site, against the REST API — nothing to install on the store |
Auth | WordPress user + Application Password (HTTP), | WooCommerce REST API key, Read permission is enough for read-only use |
Tools | 3 generic tools ( | 8 read tools shaped for store questions ( |
Writes | Direct: create/update/delete products, update order status, add notes | Proposal → human approval → apply, disabled unless |
Personal data | Returned as-is; the docs advise a dedicated user because order and customer operations can expose personal data | Redacted by default before it reaches the model (emails, phones, names, street lines, IPs) |
Approver identity | Same credentials as the agent | Separate admin token; the server refuses to start if both tokens are equal |
Status | Developer preview — breaking changes expected, old | Stable API, tested against a fake WooCommerce REST API in CI |
Use the official one when you want the Abilities ecosystem and are fine giving the agent a WordPress login. Use this one when the agent must not hold admin rights, someone has to sign off on every change, and customer data should stay out of the context window. They can run side by side.
Development
npm ci
npm test # vitest against an in-process fake WooCommerce API
npm run lint && npm run typecheck && npm run buildTests spin up a fake WooCommerce REST API (test/mock-woo.ts) and talk to the server through the real MCP client over in-memory and HTTP transports, so the suite covers transport, validation, redaction and the whole proposal lifecycle without touching a store.
Roadmap
Resources:
woo://orders/{id}for clients that prefer resources over toolsPrompts: daily store briefing, "handle this support ticket"
Shipping zones (read)
Webhook listener → MCP notifications on new orders
License
MIT — see LICENSE. Built by Walid Sadfi, Forward Deployed Engineer · agents IA & WooCommerce. See also woocommerce-agent-ready, which audits a store for the agentic-commerce protocols (Store API, MCP, structured data).
Version française
Un serveur MCP qui permet à un agent IA de travailler avec une boutique WooCommerce : lire tout ce dont il a besoin, et ne rien modifier sans qu'un humain dise oui.
Branchez Claude Desktop, Cursor ou votre propre agent sur une boutique et demandez : « Quels produits vont être en rupture ? », « Où en est la commande 500 ? », « Comment s'est passé le mois par rapport au précédent ? ». Quand l'agent veut modifier quelque chose (passer une commande en terminée, rembourser 19 €, baisser un prix), il dépose une proposition motivée. Vous l'approuvez depuis le terminal ou un endpoint admin dont l'agent n'a pas le token. Seulement ensuite, elle peut être appliquée.
Lecture seule par défaut (
WOO_ALLOW_WRITES=false) : les propositions sont tout de même enregistrées, idéal pour observer ce que l'agent aurait fait.Données personnelles masquées par défaut : emails, téléphones, noms et adresses postales ; la ville et le pays restent pour les questions de livraison.
Deux identités en mode HTTP : token agent et token approbateur, obligatoirement différents.
Une proposition s'applique au plus une fois, avec son résultat ou son erreur archivé.
Transports stdio et HTTP, image Docker, 27 tests contre une fausse API WooCommerce.
npx woocommerce-mcp-server # stdio, pour Claude Desktop / Cursor
woocommerce-mcp-server http # mode serveur
woocommerce-mcp-server proposals # relire ce que l'agent propose
woocommerce-mcp-server approve <id>Vous voulez ça branché sur votre boutique, avec un process de validation qui colle à votre équipe et un point de mesure ? Parlons-en sur Malt.
Available Tools
16 toolsapply_proposalApply an approved proposalADestructive
Executes a proposal that a human has approved. Fails for pending or rejected proposals and on read-only servers.
Inputs: proposal_id (required).
get_orderGet orderBRead-only
One order with line items, shipping, payment and notes.
Inputs: id (required).
get_productGet productBRead-only
Full product by id or SKU, including variations summary for variable products.
Inputs: id, sku.
list_couponsList couponsBRead-only
Coupons with type, amount, usage and expiry. Use it to answer "is code X still valid?" before proposing anything.
Inputs: code, page, per_page.
list_ordersList ordersCRead-only
Orders filtered by status, date range, customer or search term (order number, name, email).
Inputs: page, after, before, search, +3 more.
list_productsList / search productsARead-only
Search the catalogue by text, SKU, status, category or stock status. Returns a page of products with price and stock.
Inputs: sku, page, order, search, +5 more.
list_proposalsList proposalsCRead-only
Proposals and their status (pending, approved, rejected, applied, failed).
Inputs: status.
low_stock_productsLow stockBRead-only
Products with managed stock at or below a threshold (the product's own low-stock amount, or threshold).
Inputs: per_page, threshold.
propose_order_notePropose: add order noteA
Propose adding a note to an order (private by default, or visible to the customer). Requires human approval.
Inputs: note (required), reason (required), order_id (required), customer_note.
propose_order_statusPropose: change order statusBDestructive
Propose a new status for an order (e.g. on-hold → processing). Requires human approval.
Inputs: reason (required), status (required), order_id (required).
propose_price_updatePropose: change priceADestructive
Propose a new regular and/or sale price (as strings in store currency, e.g. "19.90"). Requires human approval.
Inputs: reason (required), product_id (required), sale_price, variation_id, +1 more.
propose_refundPropose: refundADestructive
Propose a (partial) refund on an order. Money moves only after a human approves and apply_proposal runs.
Inputs: amount (required), reason (required), order_id (required), refund_reason (required), +1 more.
propose_stock_updatePropose: set stock quantityBDestructive
Propose a new stock quantity for a product or variation. Requires human approval.
Inputs: reason (required), product_id (required), stock_quantity (required), variation_id.
sales_summarySales summaryBRead-only
Totals (sales, orders, items, refunds, average) for a period: week, month, last_month, year, or a custom date range.
Inputs: period, date_max, date_min.
search_customersSearch customersCRead-only
Registered customers by email or name. PII is masked by default.
Inputs: search (required), page, per_page.
store_infoStore infoBRead-only
Store name, URL, currency, WooCommerce/WordPress versions and active payment gateways.
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 16 tools
Each tool targets a clearly distinct resource and action: read tools split cleanly by entity (products, orders, customers, coupons, reports, store info), and the propose_* tools each name a specific mutation target. The only near-overlap, list_products vs low_stock_products, is resolved by the latter being an explicit threshold report rather than a general search.
The dominant pattern is verb_noun (list_products, get_order, search_customers, list_coupons, apply_proposal) with propose_* used consistently for the approval-gated mutations. Three noun-only names (low_stock_products, store_info, sales_summary) deviate, but they read as report/info endpoints and remain predictable.
Sixteen tools is slightly above the ideal band but justified by the breadth of a WooCommerce store (catalogue, orders, customers, coupons, reporting) plus a coherent read/propose/apply workflow. Each tool covers a genuine capability rather than a redundant permutation.
The surface covers the full safe lifecycle: read entities, propose mutations (note, status, stock, price, refund), list and apply proposals, with sensible guards for pending/rejected/read-only states. Gaps remain for creating new records (coupons, products, orders) and fetching a single customer, which limits some administrative workflows.
Maintenance
Related MCP Connectors
Connect AI to store orders, products and inventory with scoped access and human approvals.
Amazon Ads, Seller Central, Vendor Central and AMC data for AI agents. Read-only by default.
Ask Claude or ChatGPT about your WooCommerce sales, stock and orders. Safe edits with undo.
Read-only access for your AI to Search Console, GA4, Google Ads, Meta Ads and your store's sales.
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 gradedqualityDmaintenanceEnables 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.-
- AlicenseAqualityBmaintenanceEnables AI agents to securely access and reason over WooCommerce orders, products, and inventory through read-only MCP tools, with PII redaction, rate-limit handling, and bounded pagination.5MIT
- AlicenseBqualityBmaintenanceEnables AI assistants and agents to read and manage WordPress posts and pages and WooCommerce products, orders, and sales reports through official REST APIs, with read-only defaults, draft creation, trash instead of deletion, and audit logging for writes.151MIT