A MCP (Multi-Command Protocol) server for interacting with WooCommerce. This server provides tools to fetch and manage WooCommerce products and other data.
uv venv
source .venv/bin/activate
uv pip install -r requirements.txt
-
Copy the example environment file:
cp .env.example .env
-
Configure your WooCommerce settings in the
.envfile:WOOCOMMERCE_API_BASE=http://your_site_url.com/wp-json/wc/v3 WOOCOMMERCE_CONSUMER_KEY=your_consumer_key WOOCOMMERCE_CONSUMER_SECRET=your_consumer_secret
-
Log into WooCommerce Admin:
- Navigate to
WooCommerce > Settings - Click on the
Advancedtab - Go to
REST API
- Navigate to
-
Create a New Key:
- Click
Add Key - Fill in the Description and grant
Read/Writepermissions - Click
Generate API Key
- Click
-
Copy Your Keys:
- Save the generated
Consumer KeyandConsumer Secret - Add these to your
.envfile
- Save the generated
The server provides the following MCP tools:
wc_list_products: Fetches and displays a list of WooCommerce productswc_list_orders: Fetches and displays a list of WooCommerce orderswc_get_order: Fetches detailed information about a specific WooCommerce orderwc_update_product: Updates product detailswc_manage_inventory: Updates inventory for a WooCommerce productwc_update_order_status: Updates the status of a WooCommerce orderwc_add_order_note: Adds a note to a WooCommerce order
Goose CLI
goose session --with-extension "uv --directory /path/to/wp-mcp run wc.py"Claude
Add the following to your claude_desktop_config.json:
{
"mcpServers": {
"wordpress": {
"command": "uv",
"args": [
"--directory",
"/path/to/wp-mcp",
"run",
"wc.py"
]
}
}
}