MCP Hub
Back to servers

WooCommerce MCP Server

A production-grade MCP server for the WooCommerce REST API, enabling AI assistants to manage products, orders, customers, and store settings.

glama
Forks
1
Updated
Mar 21, 2026

mcp-woocommerce

Production-grade MCP server for the WooCommerce REST API — 34 tools for products, orders, customers, coupons, reports, shipping, payments, webhooks, and system management.

Why This Exists

WooCommerce powers 36% of all e-commerce (5M+ active stores) but has zero comprehensive MCP servers. This fills that gap with 34 production-ready tools covering the entire WooCommerce REST API v3.

Features

  • 34 tools across 8 categories (products, orders, customers, coupons, reports, shipping/payments, webhooks, system)
  • Full CRUD for products, orders, customers, and coupons
  • Reports & analytics — sales reports, top sellers, order totals, product totals
  • Webhook management — create, list, delete webhooks for real-time event handling
  • System diagnostics — WooCommerce/WordPress versions, plugins, server environment
  • Shipping zones with methods, payment gateways, tax rates
  • Production-grade error handling with typed exceptions
  • Simple auth — consumer key + secret via environment variables

Quick Start

Install

pip install mcp-woocommerce

Configure

Set your WooCommerce REST API credentials as environment variables:

export WOOCOMMERCE_URL="https://yourstore.com"
export WOOCOMMERCE_KEY="ck_your_consumer_key"
export WOOCOMMERCE_SECRET="cs_your_consumer_secret"

Generate API keys at: WordPress Admin > WooCommerce > Settings > Advanced > REST API

Run

mcp-woocommerce

Or run as a module:

python -m mcp_woocommerce

Use with Claude Desktop

Add to your claude_desktop_config.json:

{
  "mcpServers": {
    "woocommerce": {
      "command": "mcp-woocommerce",
      "env": {
        "WOOCOMMERCE_URL": "https://yourstore.com",
        "WOOCOMMERCE_KEY": "ck_your_consumer_key",
        "WOOCOMMERCE_SECRET": "cs_your_consumer_secret"
      }
    }
  }
}

Tools (34)

Store

ToolDescription
pingValidate connection and get store info

Products (7)

ToolDescription
list_productsList products with filters (status, category, search, on_sale)
get_productFull product details (pricing, inventory, images, attributes)
create_productCreate a product (simple, variable, grouped, external)
update_productUpdate product fields (price, stock, status, etc.)
delete_productDelete or trash a product
search_productsSearch by name or SKU
list_product_categoriesList categories with hierarchy

Orders (7)

ToolDescription
list_ordersList orders with filters (status, customer, date range)
get_orderFull order details (items, billing, shipping, payment)
create_orderCreate an order with line items
update_order_statusChange order status (pending, processing, completed, etc.)
list_order_notesGet all notes on an order
create_order_noteAdd staff or customer-facing notes
create_refundIssue a refund

Customers (4)

ToolDescription
list_customersList customers with filters (role, search)
get_customerFull customer details with addresses and order stats
create_customerCreate a new customer
search_customersSearch by name or email

Coupons (4)

ToolDescription
list_couponsList coupons with search
get_couponFull coupon details (restrictions, limits, usage)
create_couponCreate percent, fixed cart, or fixed product coupons
delete_couponDelete a coupon

Reports (4)

ToolDescription
get_sales_reportSales totals by period (week, month, year, custom range)
get_top_sellersTop-selling products by period
get_order_totalsOrder counts by status
get_product_totalsProduct counts by type

Shipping & Payments (3)

ToolDescription
list_shipping_zonesShipping zones with their methods
list_payment_gatewaysPayment gateways with enabled status
list_tax_ratesAll configured tax rates

Webhooks (3)

ToolDescription
list_webhooksList all webhooks
create_webhookCreate webhooks for order/product/customer events
delete_webhookDelete a webhook

System (1)

ToolDescription
get_system_statusWooCommerce/WordPress versions, plugins, server environment

Authentication

WooCommerce uses consumer key + consumer secret for REST API auth. This server uses HTTP Basic Authentication over HTTPS.

  1. Go to WordPress Admin > WooCommerce > Settings > Advanced > REST API
  2. Click Add key
  3. Set permissions to Read/Write
  4. Copy the consumer key (ck_...) and consumer secret (cs_...)

Important: Your store must use HTTPS for Basic Auth to work securely.

Requirements

  • Python 3.10+
  • WooCommerce 3.5+ with REST API v3
  • HTTPS enabled on your store

License

MIT

Reviews

No reviews yet

Sign in to write a review