Enables comprehensive management of WooCommerce stores, including products, orders, customers, shipping, taxes, discounts, and store configuration through the WooCommerce REST API.
Provides content management capabilities for WordPress sites, including creating, retrieving, updating, and deleting posts and managing post metadata independently of WooCommerce functionality.
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.
Installation
Clone the repository
Install dependencies:
Build the project:
Configuration
Add the server to your MCP settings file with environment variables for credentials:
Environment Variables
Required for WooCommerce API access:
WORDPRESS_SITE_URL
: Your WordPress site URL (WooCommerce is a WordPress plugin)WOOCOMMERCE_CONSUMER_KEY
: WooCommerce REST API consumer keyWOOCOMMERCE_CONSUMER_SECRET
: WooCommerce REST API consumer secret
Required only for WordPress API methods:
WORDPRESS_USERNAME
: WordPress username with appropriate permissionsWORDPRESS_PASSWORD
: WordPress password for authentication
You can also provide these credentials in the request parameters if you prefer not to use environment variables.
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 |
| Retrieve attribute terms |
| Get a single attribute term |
| Create a new attribute term |
| Update an attribute term |
| Delete an attribute term |
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
Security Note
For WooCommerce REST API access, you need to generate API keys. You can create them in your WordPress dashboard under WooCommerce → Settings → Advanced → REST API.
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
This server cannot be installed
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
WooCommerce 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.
- Overview
- Installation
- Configuration
- Authentication Options
- API Methods
- Method Parameters
- Example Usage
- Security Note
- Requirements
- License
Related Resources
Related MCP Servers
- -securityAlicense-qualityMCP Server provides a simpler API to interact with the Model Context Protocol by allowing users to define custom tools and services to streamline workflows and processes.Last updated -73MIT License
- -securityAlicense-qualityThis MCP server connects clients with Shopify store data, enabling retrieval of product and customer information via exposed tools.Last updated -4MIT License
WordPress MCP Serverofficial
-securityAlicense-qualityActs as a bridge between local MCP clients and WordPress websites, enabling communication with WordPress through simple REST API requests rather than keeping open connections.Last updated -99490MIT License- -securityFlicense-qualityAn MCP (Multi-Agent Conversation Protocol) Server that enables interaction with the WhatsApp Business API, allowing agents to send messages, manage media, and perform other WhatsApp business operations through natural language.Last updated -