Provides comprehensive tools for managing WooCommerce stores, including products, orders, customers, categories, attributes, variations, reviews, shipping zones, tax rates, coupons, payment gateways, and reports through the WooCommerce REST API.
Enables management of WordPress content including posts and post metadata through the WordPress REST API.
WooCommerce MCP Server
A Model Context Protocol (MCP) server for WooCommerce integration, compatible with Windows, macOS, and Linux.
Overview
This MCP server enables interaction with WooCommerce stores through the WordPress REST API. It provides comprehensive tools for managing all aspects of products, orders, customers, shipping, taxes, discounts, and store configuration using JSON-RPC 2.0 protocol.
Configuration
Option 1: Direct Configuration (Your Current Setup)
Option 2: Environment File (Recommended for Security)
Create a
.envfile in your project root:
Use this MCP configuration:
Available Tools
get_mcp_config- Generate MCP server configurationget_products- List WooCommerce productsget_product- Get specific product by IDcreate_product- Create new productupdate_product- Update existing productdelete_product- Delete productget_product_attributes- List product attributesget_product_attribute- Get specific product attributecreate_product_attribute- Create new product attributeupdate_product_attribute- Update product attributedelete_product_attribute- Delete product attributebatch_update_product_attributes- Batch update product attributesget_orders- List ordersget_order- Get specific orderget_customers- List customerscreate_customer- Create new customerget_product_categories- List product categoriescreate_product_category- Create new categoryget_sales_report- Get sales reports
Development
Security Notes
Never commit credentials to version control
Use environment variables or secure credential management
Consider using application passwords instead of main WordPress passwords
Regularly rotate API keys and passwords
Authentication Options
WooCommerce Authentication
WooCommerce API access requires consumer keys that you can generate in your WordPress dashboard under WooCommerce → Settings → Advanced → REST API.
WordPress Authentication
For WordPress-specific methods (like managing posts), you need to provide:
Username/password credentials for basic authentication
The WordPress REST API must be enabled on your site
API Methods
The server supports both WordPress and WooCommerce API methods. Here's a list of available methods grouped by category:
WordPress Content Management
These methods require WordPress username/password credentials and are independent of the WooCommerce API.
Method | Description |
| Create a new WordPress post |
| Retrieve WordPress posts |
| Update an existing WordPress post |
| Get post metadata |
| Update post metadata |
| Create post metadata |
| Delete post metadata |
WooCommerce Products
Method | Description |
| Retrieve a list of products |
| Get a single product by ID |
| Create a new product |
| Update an existing product |
| Delete a product |
| Get product metadata |
| Create/update product metadata |
| Update product metadata (alias for create) |
| Delete product metadata |
Product Categories
Method | Description |
| Retrieve product categories |
| Get a single product category |
| Create a new product category |
| Update a product category |
| Delete a product category |
Product Tags
Method | Description |
| Retrieve product tags |
| Get a single product tag |
| Create a new product tag |
| Update a product tag |
| Delete a product tag |
Product Attributes
Method | Description |
| Retrieve product attributes |
| Get a single product attribute |
| Create a new product attribute |
| Update a product attribute |
| Delete a product attribute |
| Batch update product attributes |
Product Variations
Method | Description |
| Retrieve product variations |
| Get a single product variation |
| Create a new product variation |
| Update a product variation |
| Delete a product variation |
Product Reviews
Method | Description |
| Retrieve product reviews |
| Get a single product review |
| Create a new product review |
| Update a product review |
| Delete a product review |
WooCommerce Orders
Method | Description |
| Retrieve a list of orders |
| Get a single order by ID |
| Create a new order |
| Update an existing order |
| Delete an order |
| Get order metadata |
| Create/update order metadata |
| Update order metadata (alias for create) |
| Delete order metadata |
Order Notes
Method | Description |
| Retrieve order notes |
| Get a single order note |
| Create a new order note |
| Delete an order note |
Order Refunds
Method | Description |
| Retrieve order refunds |
| Get a single order refund |
| Create a new order refund |
| Delete an order refund |
WooCommerce Customers
Method | Description |
| Retrieve a list of customers |
| Get a single customer by ID |
| Create a new customer |
| Update an existing customer |
| Delete a customer |
| Get customer metadata |
| Create/update customer metadata |
| Update customer metadata (alias for create) |
| Delete customer metadata |
Shipping
Method | Description |
| Retrieve shipping zones |
| Get a single shipping zone |
| Create a new shipping zone |
| Update a shipping zone |
| Delete a shipping zone |
| Retrieve shipping methods |
| Get shipping methods for a zone |
| Create a new shipping method for a zone |
| Update a shipping method for a zone |
| Delete a shipping method from a zone |
| Get locations for a shipping zone |
| Update locations for a shipping zone |
Taxes
Method | Description |
| Retrieve tax classes |
| Create a new tax class |
| Delete a tax class |
| Retrieve tax rates |
| Get a single tax rate |
| Create a new tax rate |
| Update a tax rate |
| Delete a tax rate |
Discounts/Coupons
Method | Description |
| Retrieve coupons |
| Get a single coupon |
| Create a new coupon |
| Update a coupon |
| Delete a coupon |
Payment Gateways
Method | Description |
| Retrieve payment gateways |
| Get a single payment gateway |
| Update a payment gateway |
Reports
Method | Description |
| Retrieve sales reports |
| Retrieve products reports |
| Retrieve orders reports |
| Retrieve categories reports |
| Retrieve customers reports |
| Retrieve stock reports |
| Retrieve coupons reports |
| Retrieve taxes reports |
Settings
Method | Description |
| Retrieve all settings |
| Retrieve options for a setting |
| Update a setting option |
System Status
Method | Description |
| Retrieve system status |
| Retrieve system status tools |
| Run a system status tool |
Data
Method | Description |
| Retrieve store data |
| Retrieve continents data |
| Retrieve countries data |
| Retrieve currencies data |
| Get the current currency |
Method Parameters
All methods follow a similar parameter structure. Here are some examples:
Common Parameters for All Methods
siteUrl: (optional if set in env) WordPress site URL
Additional Parameters for WooCommerce Methods
consumerKey: (optional if set in env) WooCommerce consumer keyconsumerSecret: (optional if set in env) WooCommerce consumer secret
Additional Parameters for WordPress Methods
username: (optional if set in env) WordPress usernamepassword: (optional if set in env) WordPress password
Example Usage
WordPress API Example
WooCommerce Products Example
Create Product Example
Product Metadata Example
Order Metadata Example
Requirements
Node.js 20.0.0 or higher
WordPress site with WooCommerce plugin installed
WooCommerce REST API keys
License
MIT License - See LICENSE file for details