Integrates with n8n automation platform through webhooks to trigger automated workflows based on WooCommerce events, enabling customer onboarding, inventory management, order processing, and marketing campaign automation.
Provides comprehensive WooCommerce REST API integration with 37 MCP tools for managing products, orders, customers, categories, tags, and coupons. Enables complete CRUD operations, bulk processing, and automated e-commerce workflows.
MCP WooCommerce Server v2.4.0 - N8N Compatible
π Complete MCP (Model Context Protocol) Server for WooCommerce Integration
Production-Ready | Real Data Integration | EasyPanel Deployment | N8N Automation Support | Schema Compatible
β¨ Project Overview
Name: MCP WooCommerce Server
Version: v2.4.0
Goal: Complete WooCommerce e-commerce automation through MCP protocol
Features: 44+ comprehensive WooCommerce API tools with bidirectional MCP communication
N8N Compatible: Specialized endpoints for N8N workflow automation
π Live URLs
Production: Ready for EasyPanel deployment
MCP Protocol: Native MCP with WebSocket & SSE support
N8N Endpoints:
/n8n/tools
and/n8n/execute
for workflow automation
π N8N Integration (NEW v2.4.0)
π¨ SOLVED: N8N Schema Compatibility Errors
If you're getting "Received tool input did not match expected schema" errors in N8N, use these specialized N8N endpoints:
N8N-Compatible Endpoints:
GET - Get available tools in N8N-compatible format
POST - Execute tools with N8N schema validation
Example N8N Request:
N8N Response Format:
π Full N8N Integration Guide: See N8N_INTEGRATION.md
ποΈ Technical Architecture
Core Technologies
Framework: TypeScript + Node.js + Express
Protocol: MCP (Model Context Protocol) with JSON-RPC 2.0
Transport: HTTP + WebSocket + Server-Sent Events (SSE)
API Integration: WooCommerce REST API v3
N8N Compatibility: Schema validation layer for workflow automation
Deployment: Docker multi-stage builds for EasyPanel
Automation: N8n workflow integration with dedicated endpoints
Data Architecture
WooCommerce API: Real-time data integration (no demo data)
Storage Services: Direct WooCommerce database connection
Customer Analytics: Hybrid system (registered + guest customers)
Revenue Calculations: Matches WooCommerce Dashboard methodology
Timezone: Mexico City (UTC-6) support
Security & Validation
Authentication: WooCommerce OAuth credentials
Validation: Joi schemas for all API inputs
N8N Compatibility: Input sanitization and schema validation
Security: Helmet + CORS middleware
Logging: Winston structured logging
Error Handling: Comprehensive error management
π οΈ MCP Tools Available (44+ Tools)
β Analytics & Reports (VERIFIED)
wc_get_revenue_stats
- Revenue statistics ($122,351.67 gross revenue β )wc_get_order_stats
- Order analytics (50 orders, 35 completed β )wc_get_customer_analytics
- Customer insights (50 customers, LTV $2,758.45 β )wc_get_coupon_stats
- Coupon performance (holasalud: 12 orders, $52,477.20 β )wc_get_refund_stats
- Refund analysiswc_get_tax_reports
- Tax reporting
β Customer Management (VERIFIED)
wc_get_customers
- Customer listing βwc_get_customer
- Individual customer details βwc_get_top_customers
- Top spenders (MarΓa Flor: $21,416.80 β )wc_get_customer_analytics
- Customer LTV and segmentation βwc_get_customer_purchase_history
- Purchase patternswc_create_customer
- New customer creationwc_update_customer
- Customer updateswc_delete_customer
- Customer removal
β Coupon Management (VERIFIED)
wc_get_coupons
- Coupon listing βwc_get_coupon
- Individual coupon details βwc_get_coupon_by_code
- Find by coupon code βwc_get_coupon_usage_stats
- Usage analytics (5 coupons, 12 uses β )wc_get_top_coupons_usage
- Most used couponswc_create_coupon
- New coupon creationwc_update_coupon
- Coupon updateswc_delete_coupon
- Coupon removal
Product Management
wc_get_products
- Product catalogwc_get_product
- Product detailswc_create_product
- Product creationwc_update_product
- Product updateswc_delete_product
- Product removalwc_batch_products
- Bulk operations
Order Management
wc_get_orders
- Order listingwc_get_order
- Order detailswc_create_order
- Order creationwc_update_order
- Order updateswc_delete_order
- Order removal
π Verified Real Data Results
Revenue Analytics
Gross Revenue: $122,351.67
Net Revenue: $119,844.25
Shipping Revenue: $10,995.12
Discounts Given: $2,507.42
Customer Insights
Total Customers: 50 (registered + guest)
Returning Customers: 18 (36%)
VIP Customers: 1
Average LTV: $2,758.45
Top Customer
Name: MarΓa Flor
Email: correo@correo.com
Total Spent: $21,416.80
Orders: 2
Coupon Performance (holasalud)
Usage Count: 12 orders
Total Discount: $5,830.78
Net Revenue Generated: $52,477.20
Average Order Value: $4,373.10
π Deployment Guide
EasyPanel Deployment
Local Development
π MCP Protocol Integration
Connection Methods
HTTP:
POST http://localhost:3001/mcp
WebSocket:
ws://localhost:3001/mcp-ws
Server-Sent Events:
http://localhost:3001/mcp-sse
N8N Compatible:
POST http://localhost:3001/n8n/execute
Example MCP Request
Example N8N Request
π N8n Automation Integration
Standard Webhook Endpoint
URL:
http://localhost:3001/webhook/n8n
Method: POST
Content-Type: application/json
N8N-Compatible Tool Endpoints
Tools List:
GET http://localhost:3001/n8n/tools
Execute Tool:
POST http://localhost:3001/n8n/execute
Integration Features
Schema-validated tool execution
Real-time order notifications
Customer lifecycle automation
Inventory management triggers
Revenue tracking workflows
π‘οΈ Security & Best Practices
Production Configuration
β Environment variables for credentials
β Input validation with Joi schemas
β N8N schema compatibility layer
β Rate limiting and security headers
β Structured logging for monitoring
β Error handling and recovery
β Docker multi-stage builds
API Rate Limits
WooCommerce API: 50 requests per page (optimized)
MCP Protocol: No artificial limits
N8N Endpoints: Validated input processing
Error recovery: Automatic retry logic
π Recent Updates (v2.4.0)
π₯ Major N8N Compatibility Update
β N8N Schema Compatibility - Complete solution for "tool input did not match expected schema" errors
β Dedicated N8N Endpoints -
/n8n/tools
and/n8n/execute
for seamless integrationβ Input Validation Layer - Sanitization and validation for N8N workflow compatibility
β Enhanced Error Handling - N8N-specific error responses and recovery
π§ Critical Fixes Applied (v2.3.0)
β Complete demo data elimination - Only real WooCommerce data returned
β Revenue calculation fix - Now matches WooCommerce Dashboard exactly
β Guest customer support - Includes non-registered customers in analytics
β Routing corrections - All tools route to correct handlers
β API limit optimization - Fixed per_page limits for better performance
π New Features
β N8N Workflow Integration - Native support for N8N automation
β Hybrid customer analytics - Registered + guest customer insights
β Enhanced coupon analytics - Usage patterns and revenue impact
β Real-time data validation - All responses verified against live data
β Mexico City timezone - Proper UTC-6 handling
π Production Verification
All critical tools tested with real production data:
β Revenue Stats: $122K+ verified
β Customer Analytics: 50 customers processed
β Top Customers: Real customer rankings
β Coupon Performance: Live usage statistics
β Order Management: 50 orders, 35 completed
β N8N Integration: Schema compatibility verified
β Zero demo data: 100% real WooCommerce integration
π€ Support & Maintenance
Status: β Production Ready
Platform: EasyPanel optimized
N8N Compatible: Schema validation layer included
Tech Stack: TypeScript + Node.js + Express + Docker
Last Updated: 2025-08-31
Verified: Real WooCommerce data integration + N8N compatibility
Ready for production deployment with complete WooCommerce e-commerce automation capabilities and N8N workflow integration.
This server cannot be installed
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
Enables AI assistants to interact with WooCommerce stores through 37 specialized tools for managing products, orders, customers, categories, and coupons. Includes n8n webhook integration for automated e-commerce workflows and is optimized for Docker deployment on EasyPanel.
- π Complete MCP (Model Context Protocol) Server for WooCommerce Integration
- β¨ Project Overview
- π Live URLs
- π N8N Integration (NEW v2.4.0)
- ποΈ Technical Architecture
- π οΈ MCP Tools Available (44+ Tools)
- π Verified Real Data Results
- π Deployment Guide
- π MCP Protocol Integration
- π N8n Automation Integration
- π‘οΈ Security & Best Practices
- π Recent Updates (v2.4.0)
- π Production Verification
- π€ Support & Maintenance
Related MCP Servers
- -securityAlicense-qualityEnables AI assistants to interact with WordPress sites through the REST API. Supports multiple WordPress sites with secure authentication, enabling content management, post operations, and site configuration through natural language.Last updated -40MIT License
- AsecurityAlicenseAqualityAllows AI assistants to seamlessly interact with Terminal.shop to browse products, manage shopping carts, place orders, and handle subscriptions through Terminal.shop's API.Last updated -19151MIT License
- AsecurityAlicenseAqualityEnables AI assistants to interact with WordPress sites through REST APIs, allowing programmatic management of posts, users, comments, categories, and tags with secure authentication.Last updated -2946MIT License
- -securityFlicense-qualityEnables AI assistants to interact with Dynamics 365 Commerce systems through 125+ tools covering customer management, sales orders, cart operations, product searches, inventory tracking, and store operations. Provides comprehensive mock data for development and testing purposes.Last updated -