Back to Guides
How to Connect WooCommerce to ChatGPT
Connect the WooCommerce REST API to ChatGPT via MCP. Analyze orders, products, and sales data with natural language using AnythingMCP.
Manage Your WooCommerce Store with ChatGPT
WooCommerce has no official MCP connector. With AnythingMCP, you can convert the WooCommerce REST API into an MCP server and let ChatGPT analyze your orders, products, and sales performance.
Step-by-Step Guide
Step 1: Deploy AnythingMCP
git clone https://github.com/HelpCode-ai/anythingmcp.git
cd anythingmcp && docker compose up -d
Step 2: Generate WooCommerce API Keys
In your WordPress admin, go to WooCommerce > Settings > Advanced > REST API. Create a key with Read permissions.
Step 3: Create a REST Connector
Create a REST connector with base URL https://yourstore.com/wp-json/wc/v3. Use the consumer key and secret for authentication.
Step 4: Expose Key Endpoints
GET /orders— All ordersGET /products— Product catalogGET /reports/sales— Sales reportsGET /customers— Customer listGET /coupons— Active couponsGET /products/{id}/variations— Product variations
Step 5: Connect ChatGPT
{
"mcpServers": {
"woocommerce": {
"url": "http://localhost:4000/mcp"
}
}
}
Step 6: Analyze Your Store
- "What are our top 10 best-selling products?"
- "How many orders did we get this week?"
- "What's our average order value this month?"
- "Which products are low in stock?"
- "Show me all refunded orders from the last 30 days"