woocommerce
A WooCommerce (MCP) Model Context Protocol server
claude mcp add --transport stdio techspawn-woocommerce-mcp-server node path/to/build/index.js \ --env WORDPRESS_PASSWORD="your-wordpress-password" \ --env WORDPRESS_SITE_URL="https://your-wordpress-site.com" \ --env WORDPRESS_USERNAME="your-wordpress-username" \ --env WOOCOMMERCE_CONSUMER_KEY="your-woocommerce-consumer-key" \ --env WOOCOMMERCE_CONSUMER_SECRET="your-woocommerce-consumer-secret"
How to use
This WooCommerce MCP Server provides a bridge between Model Context Protocol clients and a WooCommerce store via the WordPress REST API. It exposes a wide range of methods spanning WordPress content management and WooCommerce operations, including creating and retrieving posts, managing products, orders, customers, and metadata, as well as handling categories, tags, attributes, variations, and shipping configurations. Clients interact with the server over JSON-RPC 2.0, issuing method calls such as get_products, create_order, get_customer, create_post, and many others to perform store automation and data retrieval tasks. The server is designed to run on Windows, macOS, and Linux, making it accessible across common development and production environments. To use it, configure the MCP settings with the required environment credentials, start the server, and then call the supported methods with appropriate parameters to manage your WooCommerce store and WordPress content.
How to install
Prerequisites:
- Node.js (recommended LTS) installed on your system
- Internet access to install npm dependencies
Steps:
-
Clone the repository: git clone https://github.com/techspawn/woocommerce-mcp-server.git cd woocommerce-mcp-server
-
Install dependencies: npm install
-
Build the project: npm run build
-
Run or integrate with MCP:
- Ensure your MCP configuration points to the built index.js (path/to/build/index.js) as shown in the example configuration.
- Start the MCP server via your preferred MCP runner or directly via node if testing locally: node path/to/build/index.js
-
Test connectivity:
- Use an MCP client to send JSON-RPC requests to the running server using the configured environment variables for WordPress and WooCommerce credentials.
Additional notes
Notes and tips:
- The server relies on WooCommerce REST API credentials (consumer key/secret) and WordPress credentials for certain WordPress methods. Keep these credentials secure and rotate them as needed.
- Environment variables can be provided either in the MCP configuration or per-request if supported by your MCP client; the README demonstrates environment-based credentials.
- Ensure WordPress REST API access is enabled on your site and that WooCommerce is configured with REST API keys.
- For WordPress content methods (e.g., create_post, get_posts), a WordPress username and password are required for basic authentication.
- If you encounter authentication errors, verify URL formatting, API keys, user permissions, and that your site allows external REST access.
- The API supports a broad set of methods across WordPress content management, WooCommerce product operations, orders, customers, and shipping configurations. Review the full method list in the server documentation to leverage the complete capabilities.
Related MCP Servers
any-chat-completions
MCP Server for using any LLM as a Tool
bitbucket
Bitbucket MCP - A Model Context Protocol (MCP) server for integrating with Bitbucket Cloud and Server APIs
time
⏰ Time MCP Server: Giving LLMs Time Awareness Capabilities
unity-editor
An MCP server and client for LLMs to interact with Unity Projects
website-publisher
AI Website builder and publisher MCP. Quickly publish and deploy your AI generated code as real website URL. Support html, css, js, python etc.
xgmem
Global Memory MCP server, that manage all projects data.