Wix Stores MCP Server
Create a powerful Model Context Protocol (MCP) server for Wix Stores in minutes with our AI Gateway. This guide walks you through setting up seamless eCommerce integration with enterprise-grade security and instant OAuth authentication.
About Wix Stores API
Wix Stores is a comprehensive eCommerce platform that enables businesses to create and manage online stores. The Stores API provides programmatic access to:
- Product Catalog: Manage products with variants, options, and media
- Order Management: Process orders and handle fulfillment workflows
- Inventory Tracking: Track stock across multiple locations
- Brand Management: Organize products by brand
- Pricing: Configure product pricing and discounts
- Collections: Organize products into categories
Key Features
- Catalog V3 API: Modern product management with full variant support
- eCommerce V1 API: Advanced order processing and search
- Inventory Management: Track quantities per variant per location
- Multi-variant Products: Size, color, and custom option combinations
- Digital Products: Support for downloadable items
- Physical Products: Shipping and weight configuration
- Brand Filtering: Customer-facing brand navigation
- Bulk Operations: Efficient mass data imports
What You Can Do with Wix Stores MCP Server
The MCP server transforms Wix Stores API into a natural language interface, enabling AI agents to:
Product Management
-
Product Operations
- "Create a new physical product called Classic T-Shirt at $29.99"
- "List all visible products in the store"
- "Update the product description for the Premium Hoodie"
- "Hide the discontinued product from the storefront"
-
Variant Management
- "Add size and color variants to the t-shirt"
- "Update variant prices for the holiday sale"
- "Set specific SKUs for each product variant"
- "Configure variant-specific images"
-
Product Search
- "Find all products containing 'shirt' in the name"
- "List products by collection"
- "Show products updated in the last week"
- "Get product details by slug"
Order Processing
-
Order Operations
- "Create an order for 2 t-shirts for customer@example.com"
- "Search for paid orders from this month"
- "Update buyer email on order #10045"
- "Archive completed orders from last quarter"
-
Order Queries
- "List all unfulfilled orders"
- "Find orders with pending payment"
- "Show orders by customer email"
- "Get order details including line items"
-
Order Management
- "Track order status and shipments"
- "View order price summaries"
- "Access billing and shipping addresses"
- "Check fulfillment progress"
Inventory Management
-
Stock Tracking
- "Create inventory item for product variant"
- "Update stock quantity to 150 units"
- "Enable quantity tracking for all variants"
- "Set preorder limits for new products"
-
Inventory Queries
- "Find items with low stock (less than 10)"
- "List inventory by location"
- "Search inventory by product name"
- "Get current stock for specific variant"
-
Inventory Operations
- "Delete inventory tracking for discontinued items"
- "Enable preorder for out-of-stock products"
- "Update inventory across all locations"
- "Generate inventory status report"
Brand Management
-
Brand Operations
- "Create a new brand called Nike"
- "List all brands in the store"
- "Update brand name to Nike Sports"
- "Delete unused brand entries"
-
Brand Queries
- "Search brands containing 'Sports'"
- "Get brand details with product count"
- "Find brands created this month"
- "List top brands by product count"
Catalog Organization
-
Collection Management
- "Organize products by category"
- "Create seasonal collections"
- "Assign products to multiple collections"
- "Build navigation structure"
-
Product Discovery
- "Configure search refinements"
- "Set product visibility rules"
- "Manage product ribbons and badges"
- "Optimize product sorting"
Prerequisites
- Access to Cequence AI Gateway
- Wix account with Stores app installed
- App development access in Wix
- API credentials (Client ID and Secret)
Step 1: Create Wix App
Before setting up the MCP server, you need to create an app in Wix.
1.1 Access Wix Developers
- Navigate to dev.wix.com
- Sign in with your Wix account
- Go to My Apps in the developer dashboard
1.2 Create New App
- Click Create New App
- Select Build from scratch
- Fill in app details:
- App Name: "AI Gateway Stores MCP"
- Description: "MCP server for Wix Stores automation"
1.3 Configure OAuth
- Navigate to OAuth settings
- Add Redirect URL:
https://auth.aigateway.cequence.ai/v1/outbound/oauth/callback - Select required permissions for Stores access
1.4 Get Credentials
- Go to OAuth page
- Copy App ID
- Copy App Secret Key
Step 2: Access AI Gateway Apps
- Log in to your Cequence AI Gateway dashboard
- Navigate to Apps in the left sidebar
Step 3: Find and Select Wix Stores API
- Browse the Third-party category
- Look for Wix Stores
- Click on the API card to view details
Step 4: Create MCP Server
Click Create MCP Server to start the wizard.
Step 5: Configure API Endpoints
- Base URL:
https://www.wixapis.com - Select API endpoints to expose:
- Products (create, query, get, update, delete)
- Orders (create, search, query, get, update)
- Inventory (create, query, get, update, delete, search)
- Brands (create, query, get, update, delete)
- Click Next
Step 6: MCP Server Basic Setup
- MCP Server Name: "Wix Stores Commerce"
- Description: "eCommerce product, order, and inventory management"
- Production Mode: Toggle as needed
- Click Next
Step 7: Configure Authentication
-
Authentication Type: OAuth 2.0
-
Fill in OAuth settings:
- Authorization URL:
https://www.wix.com/installer/install - Token URL:
https://www.wixapis.com/oauth2/token - Client ID: Paste from Wix app
- Client Secret: Paste from Wix app
- Redirect URI:
https://auth.aigateway.cequence.ai/v1/outbound/oauth/callback
- Authorization URL:
-
Required Headers:
Authorization:Bearer {access_token}wix-site-id:{site_id}
Step 8: Configure Security
-
API Protection: Toggle ON to enable
- Protects against bot attacks, DDoS, and threats
- Monitors for suspicious activity
- Rate limiting and anomaly detection
-
Click Next
Step 9: Choose Deployment Method
Option A: Deploy to Cequence Cloud (Recommended)
- Fully managed deployment
- Automatic scaling and monitoring
- Built-in high availability
Option B: Deploy with Helm Chart
- Self-managed Kubernetes deployment
- Full control over infrastructure
Click Next after selecting.
Step 10: Review and Deploy
Review your configuration:
- MCP Server Name: Your chosen name
- Base URL:
https://www.wixapis.com - Selected Endpoints: Store operations
- Authentication: OAuth 2.0 (Configured)
- API Protection: Enabled/Disabled
Click Create & Deploy to finalize.
Using Your Wix Stores MCP Server
Setup Instructions:
Common Use Cases
Product Catalog Management
- Product creation and updates
- Variant and option configuration
- Pricing and discount management
- Media and image handling
Order Fulfillment
- Order processing workflows
- Shipping and tracking
- Customer communication
- Returns and exchanges
Inventory Operations
- Stock level monitoring
- Multi-location inventory
- Low stock alerts
- Preorder management
Store Analytics
- Sales reporting
- Product performance
- Inventory turnover
- Revenue tracking
Security Best Practices
-
OAuth Security:
- Secure credential storage
- Regular token rotation
- Minimal permission scopes
- Monitor API usage
-
Data Protection:
- Customer data privacy
- PCI compliance awareness
- Secure transmission
- Audit logging
-
Access Control:
- Role-based permissions
- Site-specific tokens
- Least privilege principle
- Session management
Troubleshooting
Common Issues
-
401 Unauthorized
- Verify access token validity
- Check wix-site-id header
- Ensure app is installed on site
- Regenerate credentials if expired
-
404 Not Found
- Verify product/order IDs exist
- Check collection names (case-sensitive)
- Confirm variant IDs are valid
- Use query endpoints for lookups
-
400 Bad Request
- Check productType (PHYSICAL/DIGITAL uppercase)
- Verify variantsInfo.variants structure
- Include required revision for updates
- Validate price format (string amounts)
-
409 Conflict
- Check revision number matches current
- Handle concurrent update conflicts
- Verify inventory item uniqueness
- Refresh and retry operation
Getting Help
- Documentation: AI Gateway Docs
- Support: support@cequence.ai
- Community: AI Gateway Forum
- Wix Docs: dev.wix.com/docs/rest/business-solutions/stores