WordPress WooCommerce store integration
## WooCommerce MCP Server: WordPress Commerce The **WooCommerce MCP Server** integrates WooCommerce's WordPress-based e-commerce platform into Google Antigravity, enabling developers to manage online stores through AI-assisted commerce workflows. ### Why WooCommerce MCP? - **WordPress Integration**: Seamless WordPress ecosystem - **Largest Market Share**: Powers 28%+ of online stores - **Extensible**: 800+ official extensions - **Open Source**: GPL-licensed, free to use - **Flexible**: Sell anything from physical to digital products ### Key Features #### 1. Product Management ```javascript // Create product const product = await woocommerce.createProduct({ name: "WordPress Product", type: "simple", regular_price: "99.99", description: "Product built with WooCommerce", short_description: "Short description", categories: [{ id: 9 }], images: [{ src: "https://..." }], manage_stock: true, stock_quantity: 100 }); // Create variable product const variable = await woocommerce.createProduct({ name: "Variable Product", type: "variable", attributes: [ { name: "Size", options: ["S", "M", "L"], visible: true, variation: true } ] }); // Create variation await woocommerce.createVariation({ productId: variable.id, regular_price: "99.99", attributes: [{ name: "Size", option: "M" }], stock_quantity: 50 }); ``` #### 2. Order Processing ```javascript // Get orders const orders = await woocommerce.getOrders({ status: "processing", per_page: 50 }); // Update order status await woocommerce.updateOrder({ id: orders[0].id, status: "completed" }); // Add order note await woocommerce.createOrderNote({ orderId: orders[0].id, note: "Order shipped via FedEx", customer_note: true }); // Process refund await woocommerce.createRefund({ orderId: orders[0].id, amount: "49.99", reason: "Customer request" }); ``` ### Configuration ```json { "mcpServers": { "woocommerce": { "command": "npx", "args": ["-y", "@anthropic/mcp-woocommerce"], "env": { "WOOCOMMERCE_URL": "https://your-store.com", "WOOCOMMERCE_KEY": "your-consumer-key", "WOOCOMMERCE_SECRET": "your-consumer-secret" } } } } ``` ### Use Cases **WordPress Commerce**: Add e-commerce to WordPress sites. **Content Commerce**: Combine content marketing with commerce. **Multi-Site**: Manage multiple WooCommerce stores. The WooCommerce MCP Server brings WordPress commerce to your development workflow.
{
"mcpServers": {
"woocommerce": {
"mcpServers": {
"woocommerce": {
"env": {
"WC_URL": "https://your-store.com",
"WC_CONSUMER_KEY": "ck_xxx",
"WC_CONSUMER_SECRET": "cs_xxx"
},
"args": [
"-y",
"woocommerce-mcp-server"
],
"command": "npx"
}
}
}
}
}