mcp-server-woocommerce
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| PORT | No | Platform-provided port (Hostinger, Railway); overrides MCP_PORT | |
| MCP_PORT | No | HTTP server port (default: 3000) | 3000 |
| AUTH0_DOMAIN | No | Auth0 tenant URL for OAuth 2.1 (Claude.ai Connectors) | |
| MCP_TRANSPORT | No | Set to http for remote HTTP access (default: stdio) | stdio |
| AUTH0_AUDIENCE | No | Auth0 API identifier for OAuth 2.1 | |
| MCP_AUTH_TOKEN | No | Bearer token for HTTP auth (required when MCP_TRANSPORT=http) | |
| MCP_SERVER_URL | No | Public server URL for OAuth 2.1 discovery | |
| WORDPRESS_SITE_URL | Yes | WordPress store URL (e.g. https://store.example.com) | |
| WORDPRESS_USERNAME | No | WordPress admin username (for media tools) | |
| WORDPRESS_APP_PASSWORD | No | WordPress Application Password (for media tools) | |
| WOOCOMMERCE_CONSUMER_KEY | Yes | WooCommerce REST API consumer key (ck_...) | |
| WOOCOMMERCE_MCP_READ_ONLY | No | Set to true to block all write/delete operations (safe exploration mode) | false |
| WOOCOMMERCE_CONSUMER_SECRET | Yes | WooCommerce REST API consumer secret (cs_...) |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
| prompts | {
"listChanged": true
} |
| resources | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| list_productsA | Search and filter the product catalog. Supports filtering by status, category, tag, type, price range, and search term. Use fields param to request only needed fields. |
| get_productA | Get full details of a single product by ID. Returns more fields than list_products including description, tags, brands, and variations. Use fields param to request only needed fields. |
| create_productA | Create a new WooCommerce product. For variable products, set type='variable' and include attributes array, then use create_variation to add variants. |
| update_productA | Update an existing product. Only include fields you want to change. Note: setting images replaces all existing images. |
| delete_productA | Delete a product. Moves to trash by default; set force=true to permanently delete. Does not delete associated media. |
| list_categoriesA | List product categories. Supports filtering by parent for subcategories, and hide_empty to skip unused categories. Use fields param to request only needed fields. |
| get_categoryA | Get full details of a category including description and product count. Use fields param to request only needed fields. |
| create_categoryA | Create a product category. Set parent ID to create a subcategory. Categories are hierarchical. |
| update_categoryA | Update a category's name, slug, parent, description, or image. Only include fields you want to change. |
| delete_categoryA | Delete a product category. Does NOT delete products in the category; they become uncategorized. |
| list_ordersA | Search and filter orders. Supports filtering by status, customer, date range, and search term. Use fields param to request only needed fields. |
| get_orderA | Get full details of a single order including billing, shipping, line items, and payment info. Use fields param to request only needed fields. |
| create_orderA | Create a new order. Requires line_items with product_id and quantity. Use variation_id for variable product variants. |
| update_orderA | Update an order. Commonly used to change status (e.g. pending -> processing -> completed). See get_order_totals for valid statuses. |
| delete_orderA | Delete an order. Moves to trash by default; set force=true to permanently delete. |
| list_customersA | Search and filter customers by name, email, or role. Returns order count and total spent per customer. Use fields param to request only needed fields. |
| get_customerA | Get full customer details including billing and shipping addresses, order history stats. Use fields param to request only needed fields. |
| create_customerA | Create a new customer account. Email is required and must be unique. Use fields param to request only needed fields. |
| update_customerA | Update customer details such as name, email, or addresses. Only include fields you want to change. Use fields param to request only needed fields. |
| list_couponsA | List discount coupons. Shows code, type (percent/fixed_cart/fixed_product), amount, and usage stats. Use fields param to request only needed fields. |
| get_couponA | Get full coupon details including usage limits, product restrictions, and expiry date. Use fields param to request only needed fields. |
| create_couponA | Create a discount coupon. Code must be unique. Supports percent, fixed cart, and fixed product discount types. Use fields param to request only needed fields. |
| update_couponA | Update a coupon's code, amount, restrictions, or expiry. Only include fields you want to change. Use fields param to request only needed fields. |
| delete_couponA | Delete a coupon. Moves to trash by default; set force=true to permanently delete. |
| get_sales_reportB | Get sales report for a period. Returns total sales, orders, items, tax, shipping, refunds, and daily/weekly totals breakdown. |
| get_top_sellersA | Get top-selling products ranked by quantity sold. Filterable by period or date range. |
| get_order_totalsA | Get order counts grouped by status (pending, processing, completed, etc.). Useful for a quick store health overview. |
| get_product_totalsA | Get product counts grouped by status (publish, draft, pending, private). Quick catalog size overview. |
| get_customer_totalsA | Get customer counts grouped by WordPress role. Shows total registered customers and their roles. |
| list_mediaA | List WordPress media library items. Supports search and MIME type filtering (e.g. image/jpeg). Use fields param to request only needed fields. |
| delete_mediaA | Permanently delete a media item from WordPress. This is irreversible. Use cleanup_orphaned_media to find unused items first. |
| cleanup_orphaned_mediaA | Find orphaned media not used by any product or category. Dry run by default; set delete=true to remove them. Scans all products and categories. |
| list_attributesA | List global product attributes (e.g. Weight, Volume, Size). Use list_attribute_terms to see values for each attribute. Use fields param to request only needed fields. |
| get_attributeA | Get details of a global product attribute. Use list_attribute_terms with the attribute ID to see its values. Use fields param to request only needed fields. |
| create_attributeA | Create a global product attribute. After creating, use create_attribute_term to add values (e.g. 500g, 1kg for a Weight attribute). |
| delete_attributeA | Delete a global product attribute and all its terms. Also removes the attribute from all products that use it. |
| list_attribute_termsA | List values (terms) for a product attribute, e.g. '500g', '1kg' for Weight. Use fields param to request only needed fields. |
| create_attribute_termA | Add a new value to a product attribute (e.g. add '2kg' to Weight). Use batch_update_attribute_terms for multiple values at once. |
| delete_attribute_termA | Delete a value from a product attribute. Removes the term from all products using it. |
| batch_update_attribute_termsA | Batch create, update, or delete attribute terms in a single request. More efficient than individual create/delete calls for multiple terms. |
| list_variationsA | List all variations for a variable product. Each variation has its own price, SKU, and stock. Use fields param to request only needed fields. |
| get_variationA | Get full details of a single variation including price, stock, weight, and attributes. Use fields param to request only needed fields. |
| create_variationA | Create a variation for a variable product. Parent product must have type='variable' with matching attributes. Use batch_update_variations for multiple at once. |
| update_variationA | Update a variation's price, stock, SKU, or other details. Only include fields you want to change. |
| batch_update_variationsA | Batch create, update, or delete variations in a single request. More efficient than individual calls for setting up a variable product. |
| list_tagsA | List product tags. Tags are flat labels (no hierarchy). Use hide_empty to skip unused tags. Use fields param to request only needed fields. |
| get_tagA | Get full details of a product tag including description and product count. Use fields param to request only needed fields. |
| create_tagA | Create a product tag. Tags are flat labels like 'Bestseller' or 'New Arrival' — unlike categories, they have no hierarchy. |
| update_tagA | Update a product tag's name, slug, or description. Only include fields you want to change. |
| delete_tagA | Delete a product tag. Does NOT affect products that had this tag; they simply lose the tag association. |
| list_brandsA | List product brands (WooCommerce 9.6+ core feature). Supports filtering by parent and hide_empty. Use fields param to request only needed fields. |
| get_brandA | Get full details of a product brand including description, image, and product count. Use fields param to request only needed fields. |
| create_brandA | Create a product brand. Brands are hierarchical and can have images. Assign to products via update_product with brands array. |
| update_brandA | Update a brand's name, slug, parent, description, or image. Only include fields you want to change. |
| delete_brandA | Delete a product brand. Does NOT delete products with this brand; they simply lose the brand association. |
| list_shipping_zonesA | List all shipping zones. Zones define geographic regions with specific shipping methods and rates. |
| get_shipping_zoneA | Get a shipping zone by ID. Use list_shipping_zones to find zone IDs. |
| create_shipping_zoneA | Create a new shipping zone. After creating, add locations and shipping methods to it. |
| update_shipping_zoneA | Update a shipping zone name or sort order. |
| delete_shipping_zoneA | Delete a shipping zone. This also removes all methods and locations in the zone. |
| list_shipping_zone_methodsA | List shipping methods for a zone. Methods define how items are shipped (flat rate, free shipping, local pickup). |
| add_shipping_zone_methodA | Add a shipping method to a zone. Valid method_id values: 'flat_rate', 'free_shipping', 'local_pickup'. Configure rates via settings after adding. |
| update_shipping_zone_methodA | Update a shipping method in a zone. Use to enable/disable, change title, order, or configure settings like cost. |
| delete_shipping_zone_methodB | Remove a shipping method from a zone. |
| list_shipping_classesA | List product shipping classes. Classes group products with similar shipping requirements (e.g. heavy, fragile). |
| create_shipping_classA | Create a product shipping class. Assign to products via update_product to group similar shipping needs (e.g. 'bulky', 'fragile'). |
| delete_shipping_classA | Delete a product shipping class. Products using this class will revert to no shipping class. |
| list_tax_classesA | List all tax classes. WooCommerce includes 'Standard', 'Reduced rate', and 'Zero rate' by default. Tax classes group tax rates. |
| create_tax_classA | Create a custom tax class. After creating, add tax rates to it. Example: 'GST 5%' for food items. |
| delete_tax_classA | Delete a tax class by slug. Cannot delete the Standard class. Rates in this class will be orphaned. |
| list_tax_ratesA | List tax rates. Filter by tax class to see rates for a specific class. Each rate defines tax for a region. |
| get_tax_rateA | Get a single tax rate by ID with full details. |
| create_tax_rateA | Create a tax rate. Set country/state/postcode for region, rate as percentage string (e.g. '18.0000'), and class for tax class. |
| update_tax_rateA | Update a tax rate. Only include fields you want to change. |
| delete_tax_rateA | Delete a tax rate. This is permanent and cannot be undone. |
| list_webhooksA | List webhooks. Webhooks send POST requests to a URL when store events occur (e.g. order.created, product.updated). |
| get_webhookA | Get full details of a webhook by ID including secret and API version. |
| create_webhookA | Create a webhook. Topic format: 'resource.event' (e.g. 'order.created', 'product.updated', 'coupon.deleted'). Resources: order, product, customer, coupon. Events: created, updated, deleted, restored. |
| update_webhookA | Update a webhook. Use to change delivery URL, topic, status (pause/resume), or secret. |
| delete_webhookA | Delete a webhook. Set force=true to permanently delete. |
| list_setting_groupsA | List all WooCommerce setting groups. Groups include: general, products, tax, shipping, checkout, account, email, advanced. Use group ID with get_settings to see options. |
| get_settingsA | Get all settings in a group. Common groups: 'general' (store address, currency), 'products' (measurements, reviews), 'tax' (tax options), 'shipping' (shipping options). |
| update_settingA | Update a single setting value. Use get_settings first to find the setting ID and valid options. Example: group_id='general', setting_id='woocommerce_currency', value='INR'. |
| list_order_refundsA | List all refunds for an order. Shows refund amounts, reasons, and who processed them. Use fields param to request only needed fields. |
| create_order_refundA | Create a refund for an order. Can refund full or partial amount. Set api_refund=true (default) to automatically refund via payment gateway, or false for manual refund. |
| delete_order_refundA | Delete a refund record from an order. This removes the refund entry but does not reverse the payment — use with caution. |
| list_order_notesA | List all notes for an order. Includes both private admin notes and customer-visible notes. Use fields param to request only needed fields. |
| create_order_noteA | Add a note to an order. Set customer_note=true to send an email notification to the customer with the note content. Default is a private admin note. |
| delete_order_noteA | Delete a note from an order. This permanently removes the note. |
| list_payment_gatewaysA | List all available payment gateways. Gateways are provided by plugins and cannot be created or deleted via API. |
| get_payment_gatewayA | Get full details of a payment gateway by ID. Common IDs: bacs (bank transfer), cheque, cod (cash on delivery), paypal, stripe, razorpay. |
| update_payment_gatewayA | Update a payment gateway. Use to enable/disable gateways, change titles, or modify settings. Gateways cannot be created or deleted — they come from plugins. |
| list_product_reviewsA | List product reviews. Filter by product IDs, status, or search term. Use fields param to request only needed fields. |
| get_product_reviewA | Get full details of a product review by ID including reviewer email and verification status. |
| update_product_reviewA | Update a product review. Use to change status (approve/hold/spam/trash), edit review text, or modify rating. |
| delete_product_reviewA | Delete a product review. By default moves to trash (force=false). Set force=true to permanently delete. |
| get_system_statusA | Get WooCommerce system status including environment, database, active plugins, theme, settings, and security info. |
| list_system_toolsA | List available system tools (e.g. clear_transients, recount_terms, db_update_routine). These are maintenance utilities. |
| run_system_toolB | Run a system maintenance tool. Common tools: clear_transients, clear_template_cache, recount_terms, db_update_routine, install_pages. |
| list_countriesA | List all countries available in WooCommerce with their states/provinces. Useful for setting up shipping zones and tax rules. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
| setup_variable_product | Guided workflow to create a variable product with attributes and variations |
| process_order | Guided workflow to review and process an order |
| handle_refund | Guided workflow to process a refund for an order |
| moderate_reviews | Guided workflow to moderate pending product reviews |
| catalog_overview | Get a quick overview of the product catalog, categories, and recent orders |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
| Product Schema | Product field reference for WooCommerce REST API |
| Order Schema | Order field reference for WooCommerce REST API |
| Coupon Schema | Coupon field reference for WooCommerce REST API |
| Product Types Reference | When to use each WooCommerce product type |
| Refund Schema | Refund field reference for WooCommerce REST API |
| Payment Gateways Reference | Payment gateway IDs and concepts for WooCommerce |
| Order Statuses Reference | Order status lifecycle and transitions |
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/AmitGurbani/mcp-server-woocommerce'
If you have feedback or need assistance with the MCP directory API, please join our Discord server