woocommerce
MCP server from opestro/woocommerce-mcp-server
claude mcp add --transport stdio opestro-woocommerce-mcp-server node index.js \ --env WOOCOMMERCE_URL="https://your-store.com" \ --env WOOCOMMERCE_CONSUMER_KEY="your-consumer-key" \ --env WOOCOMMERCE_CONSUMER_SECRET="your-consumer-secret"
How to use
This MCP server provides a bridge between a WooCommerce store and Claude/other AI assistants via the Model Context Protocol. It exposes tools to fetch recent orders and to retrieve detailed information about a specific order by ID. You can connect to the server using a standard MCP client, and then invoke the available tools to interact with your store data. The server reads WooCommerce credentials from environment variables (or from defaults in code) and uses them to authenticate against the WooCommerce REST API, returning structured results suitable for AI-assisted workflows.
How to install
Prerequisites:
- Node.js v18 or higher
- Access to a WooCommerce store with REST API credentials (consumer key and consumer secret)
Install and run locally:
- Clone the repository
git clone https://github.com/techspawn/woocommerce-mcp-server.git
cd woocommerce-mcp-server
- Install dependencies
npm install
- Configure credentials (choose one):
- Option A: Run with environment variables
WOOCOMMERCE_URL=https://your-store.com \
WOOCOMMERCE_CONSUMER_KEY=your-consumer-key \
WOOCOMMERCE_CONSUMER_SECRET=your-consumer-secret \
node index.js
- Option B: Edit default values in index.js
const woocommerceConfig = {
url: process.env.WOOCOMMERCE_URL || 'https://your-store.com',
consumerKey: process.env.WOOCOMMERCE_CONSUMER_KEY || 'your-consumer-key',
consumerSecret: process.env.WOOCOMMERCE_CONSUMER_SECRET || 'your-consumer-secret',
version: 'wc/v3'
};
- Start the server
node index.js
- (Optional) Use the provided npm script if present in package.json
npm start
Additional notes
Tips:
- Ensure your WooCommerce store URL uses HTTPS and that the REST API keys have the necessary permissions.
- If you encounter authentication errors, double-check the consumer key/secret and the store URL.
- When integrating with Claude for Desktop, ensure your Claude config points to the correct node command and to the absolute path of index.js if using a custom setup.
- The server exposes two tools: getRecentOrders and getOrderById. You can filter by status and limit results for getRecentOrders, and fetch full order details for getOrderById.
- For local testing, you can run the server directly with node index.js and invoke tools via MCP protocols supported by your client.
Related MCP Servers
zen
Selfhosted notes app. Single golang binary, notes stored as markdown within SQLite, full-text search, very low resource usage
MCP -Deepseek_R1
A Model Context Protocol (MCP) server implementation connecting Claude Desktop with DeepSeek's language models (R1/V3)
mcp-fhir
A Model Context Protocol implementation for FHIR
mcp
Inkdrop Model Context Protocol Server
mcp-appium-gestures
This is a Model Context Protocol (MCP) server providing resources and tools for Appium mobile gestures using Actions API..
dubco -npm
The (Unofficial) dubco-mcp-server enables AI assistants to manage Dub.co short links via the Model Context Protocol. It provides three MCP tools: create_link for generating new short URLs, update_link for modifying existing links, and delete_link for removing short links.