PrestaShop MCP Server
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| PS_API_KEY | Yes | PrestaShop Webservice API key. Required. | |
| PS_API_URL | Yes | PrestaShop shop URL. Required. | |
| PS_TARGETS | No | JSON array of multi-site targets. | |
| PS_DATA_DIR | No | Directory for reports and exports. Default: ./data. | ./data |
| PS_READONLY | No | Block all write operations. Default: true. | true |
| PS_DUAL_MODE | No | Run stdio + HTTP simultaneously. Default: false. | false |
| PS_HTTP_HOST | No | HTTP server bind address. Default: 127.0.0.1. | 127.0.0.1 |
| PS_HTTP_PORT | No | HTTP server port. Default: 3000. | 3000 |
| PS_SAFE_SORT | No | Disable sort parameter in API calls to avoid PrestaShop 1.7/8.x 500 errors. Default: true. | true |
| PS_TRANSPORT | No | Transport mode: stdio or http. Default: stdio. | stdio |
| PS_AUTH_TOKEN | No | Bearer token for HTTP mode. Required for HTTP mode. | |
| PS_ALLOWED_ORIGINS | No | Comma-separated allowed origins for HTTP mode. | |
| PS_TOOL_CATEGORIES | No | Comma-separated tool categories to load. Default: *. | * |
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
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| ps_site_infoA | Get PrestaShop site information including available API resources, shops, languages, and currencies. Use this first to understand the shop configuration. Returns: Shop details, active languages with IDs (needed for multilang fields), currencies, list of available API resources, and multi-site configuration. |
| ps_list_languagesA | List all languages configured in the shop. Language IDs are essential for reading multilang fields (product names, descriptions, SEO metadata). Returns: Array of languages with id, name, iso_code, language_code, and active status. |
| ps_list_targetsA | List all configured PrestaShop shops available for this MCP server. Sites are configured via environment variables:
Returns: Array of configured shops with key, name, URL, and connection status. |
| ps_set_targetA | Switch the active PrestaShop shop. All subsequent tool calls will target this shop. Use ps_list_targets to see available site keys. Args:
Returns: Confirmation with the new active site details. |
| ps_list_productsA | List products with optional filtering, sorting, and pagination. Args:
Returns: Array of products with id, name, reference, price, active status, category, and stock info. |
| ps_get_productA | Get full details of a product by ID, including all multilang fields, associations (categories, images, combinations, features), and SEO metadata. Args:
Returns: Complete product data with name, descriptions, price, stock, images, categories, features, combinations, and SEO metadata. |
| ps_search_productsA | Search products using PrestaShop's built-in search engine. Args:
Returns: Array of matching products with basic info. |
| ps_create_productA | Create a new product. ⚠️ Requires PS_READONLY=false and POST enabled on the PrestaShop Webservice key. Args:
Returns: Created product ID and summary. |
| ps_delete_productA | Delete a product by ID. ⚠️ Requires PS_READONLY=false and DELETE enabled on the PrestaShop Webservice key. Note: PrestaShop may soft-delete (set active=0) depending on shop configuration. Args:
Returns: Confirmation of deletion. |
| ps_list_categoriesB | List product categories with hierarchy information. Args:
Returns: Array of categories with id, name, parent_id, level_depth, active status, and SEO metadata. |
| ps_get_categoryA | Get full details of a category by ID, including all multilang fields and SEO metadata. Args:
Returns: Complete category data with name, description, hierarchy info, and SEO metadata. |
| ps_create_categoryA | Create a new product category. ⚠️ Requires PS_READONLY=false and POST enabled on the PrestaShop Webservice key. Args:
Returns: Created category ID and summary. |
| ps_update_categoryA | Update an existing category. ⚠️ Requires PS_READONLY=false and PUT enabled on the PrestaShop Webservice key. Args:
Returns: Confirmation with updated fields. |
| ps_list_ordersA | List orders with optional filtering and pagination. Args:
Returns: Array of orders with id, reference, customer_id, state, payment method, totals, and dates. |
| ps_get_orderA | Get full details of an order by ID, including order rows (products), payment info, and shipping details. Args:
Returns: Complete order data with reference, customer, state, payment, totals, order rows (products with quantities and prices), and dates. |
| ps_list_order_statesA | List all order states/statuses. Use this to understand order state IDs when filtering orders. Returns: Array of order states with id, name, and configuration. |
| ps_list_customersB | List customers with optional filtering and pagination. Args:
Returns: Array of customers with id, firstname, lastname, email, active status, newsletter, and dates. |
| ps_get_customerA | Get full details of a customer by ID. Args:
Returns: Complete customer data with personal info, groups, and dates. Note: sensitive data like password hashes are excluded. |
| ps_create_customerA | Create a new customer account. ⚠️ Requires PS_READONLY=false and POST enabled on the PrestaShop Webservice key. Args:
Returns: Created customer ID and summary. |
| ps_update_customerA | Update an existing customer's information. ⚠️ Requires PS_READONLY=false and PUT enabled on the PrestaShop Webservice key. Note: Password cannot be modified through this tool for security reasons. Args:
Returns: Confirmation with updated fields. |
| ps_list_stockA | List stock availability for products. Args:
Returns: Array of stock entries with product_id, product_attribute_id, quantity, and out_of_stock policy. |
| ps_get_product_stockA | Get stock information for a specific product, including all its combinations/variants. Args:
Returns: Stock entries for the product and all its combinations, with quantities and out-of-stock policy. |
| ps_list_cms_pagesA | List CMS (static content) pages. These are informational pages like "About Us", "Terms & Conditions", etc. Args:
Returns: Array of CMS pages with id, title, active status, and SEO metadata. |
| ps_get_cms_pageA | Get full details of a CMS page by ID, including content and SEO metadata. Args:
Returns: Complete CMS page data with title, content (HTML), SEO metadata, and configuration. |
| ps_create_cms_pageA | Create a new CMS (static content) page. ⚠️ Requires PS_READONLY=false and POST enabled on the PrestaShop Webservice key. Args:
Returns: Created CMS page ID and summary. |
| ps_update_cms_pageA | Update an existing CMS page. ⚠️ Requires PS_READONLY=false and PUT enabled on the PrestaShop Webservice key. Args:
Returns: Confirmation with updated fields. |
| ps_list_carriersA | List shipping carriers configured in the shop. Args:
Returns: Array of carriers with id, name, delay, price, active status, and configuration. |
| ps_list_combinationsB | List product combinations (variants) with optional filtering. Args:
Returns: Array of combinations with id, product_id, reference, price impact, and stock info. |
| ps_list_product_featuresA | List product features (characteristics) defined in the shop (e.g., Material, Color, Size). Args:
Returns: Array of product features with id and name. |
| ps_list_product_optionsA | List product attribute options (e.g., Size, Color) used for combinations/variants. Args:
Returns: Array of product options (attributes) with id, name, type, and position. |
| ps_list_cart_rulesA | List cart rules (discount codes / vouchers) with optional filtering. Args:
Returns: Array of cart rules with id, name, code, discount type, amount, and validity dates. |
| ps_list_specific_pricesA | List specific prices (promotional prices, quantity-based prices) configured for products. Args:
Returns: Array of specific prices with id, product_id, price, reduction type/amount, and validity dates. |
| ps_create_specific_priceA | Create a specific price rule (product-level promotion). ⚠️ Requires PS_READONLY=false and POST enabled on the PrestaShop Webservice key. Args:
Returns: Created specific price ID. |
| ps_delete_specific_priceA | Delete a specific price rule by ID. ⚠️ Requires PS_READONLY=false and DELETE enabled on the PrestaShop Webservice key. Args:
Returns: Confirmation of deletion. |
| ps_list_order_historiesB | List order status history entries with optional filtering by order or state. Args:
Returns: Array of history entries with id, order_id, state_id, employee_id, and date. |
| ps_list_tax_rulesA | List tax rules configured in the shop, optionally filtered by tax rule group. Args:
Returns: Array of tax rules with id, group_id, country_id, state_id, zip_range, and rate. |
| ps_list_addressesB | List customer or supplier addresses with optional filtering. Args:
Returns: Array of addresses with id, customer_id, firstname, lastname, company, address, city, country_id, and phone. |
| ps_get_product_imagesA | Get all image URLs for a specific product. The PrestaShop Webservice exposes product images at: {PS_API_URL}/api/images/products/{product_id}/{image_id} This tool fetches the product to retrieve its image IDs, then constructs the full URLs. Args:
Returns: Array of image objects with id and URL for each image associated with the product. |
| ps_update_productB | Update product fields: price, active status, name, description, meta_title, meta_description, link_rewrite. ⚠️ Requires PS_READONLY=false and PUT enabled on the PrestaShop Webservice key. Args:
Returns: Updated product summary. |
| ps_update_stockA | Update the available quantity for a product or a specific combination/variant. ⚠️ Requires PS_READONLY=false and PUT enabled on the PrestaShop Webservice key. Args:
Returns: Updated stock entry. |
| ps_update_order_statusA | Change the status of an order by creating a new order history entry. ⚠️ Requires PS_READONLY=false and POST enabled on the PrestaShop Webservice key. Args:
Returns: Confirmation with new history entry ID. |
| ps_create_cart_ruleA | Create a discount voucher/coupon code with a percentage or fixed amount reduction. ⚠️ Requires PS_READONLY=false and POST enabled on the PrestaShop Webservice key. Args:
Returns: Created cart rule ID and details. |
| ps_audit_seoA | Scan active products and identify SEO issues: missing meta_title, missing meta_description, descriptions too short (<50 chars) or too long (>160 chars), meta_title too long (>70 chars), missing link_rewrite. Returns a global score (0-100) and a prioritised action list sorted by severity. Args:
Returns: SEO score, total products scanned, issue counts, and prioritised action list. |
| ps_update_seoA | Update meta_title, meta_description, and link_rewrite (URL slug) for a product or a category. ⚠️ Requires PS_READONLY=false and PUT enabled on the PrestaShop Webservice key. Args:
Returns: Confirmation of the update. |
| ps_audit_seo_categoriesA | Scan active categories and identify SEO issues: missing meta_title, missing meta_description, descriptions too short or too long, missing link_rewrite. Same scoring methodology as ps_audit_seo but applied to categories. Args:
Returns: SEO score, total categories scanned, issue counts, and prioritised action list. |
| ps_audit_seo_cmsA | Scan active CMS pages and identify SEO issues: missing meta_title, missing meta_description, descriptions too short or too long, missing link_rewrite. Args:
Returns: SEO score, total pages scanned, issue counts, and prioritised action list. |
| ps_get_order_detailsA | Get complete details of an order including ordered products, delivery address, carrier, and payment info. Args:
Returns: Full order with products list (name, reference, quantity, unit price, total), delivery address, carrier, payment method, and all totals. |
| ps_get_customer_ordersA | Get the complete order history for a customer, with totals and statuses. Args:
Returns: Array of orders sorted by date (newest first) with id, reference, state, payment method, totals, and dates. Also returns customer summary (total orders, total spent). |
| ps_low_stock_reportA | List products whose stock is below a threshold, sorted by quantity ascending (most critical first). Args:
Returns: Array of low-stock products with product_id, name, stock_id, quantity, and out_of_stock policy. Includes a summary with total count and critical (quantity=0) count. |
| ps_abandoned_cart_analysisA | Analyse shopping carts that were not converted to orders (abandoned carts). Crosses carts with orders to identify carts without a matching order. Enriches with customer data when available. Args:
Returns: Abandoned cart count, conversion rate, and list of abandoned carts with customer info. |
| ps_supplier_performanceB | Analyse supplier performance by crossing suppliers, products, stock, and orders. Calculates per supplier: number of products, total stock, revenue generated, average margin. Args:
Returns: Array of suppliers with performance metrics. |
| ps_dead_products_reportA | Identify products with 0 sales in the last 90 days but with stock > 0. Returns: product_id, name, stock, price, days_since_last_sale, estimated_loss (stock × price). Saves report to /data/dead_products_YYYY-MM-DD.json. Args:
|
| ps_stock_rotation_scoreA | Calculate stock rotation rate per product. rotation = units_sold_30d / average_stock Classification: "fast" (>2), "normal" (0.5–2), "slow" (0.1–0.5), "dead" (<0.1) Saves to /data/stock_rotation_YYYY-MM-DD.json. Args:
|
| ps_margin_scoringA | Calculate gross margin per product using the wholesale_price field. margin % = (price - wholesale_price) / price × 100 Classification: "excellent" (>50%), "good" (30–50%), "low" (15–30%), "critical" (<15%) Products without wholesale_price are marked as "no_data". Saves to /data/margin_scores_YYYY-MM-DD.json. Args:
|
| ps_stock_alert_checkA | Compare current product stock against configured thresholds and report alerts. Reads thresholds from /data/stock_alert_config.json (created with defaults if absent). Default config: { default_threshold: 5, critical_threshold: 0 } Returns summary: { total_warnings, total_critical, alerts[] } Writes current alerts to /data/stock_alerts.json and history to /data/stock_alerts_history.json. Args:
|
| ps_configure_stock_alertsA | Set global and per-product stock alert thresholds. Updates /data/stock_alert_config.json. Args:
Returns the updated configuration. |
| ps_top_revenue_productsA | Calculate revenue per product from order history and return the top 20% by revenue (Pareto principle). Includes: product_id, name, total_revenue, units_sold, avg_price, % of total revenue. Saves to /data/kpi_top_products_YYYY-MM-DD.json. Args:
|
| ps_average_basket_analysisB | Analyse average basket value overall and by month, carrier, and customer group. Also computes the trend (current period vs previous period) to show whether baskets are growing. Args:
|
| ps_customer_ltvA | Calculate customer LTV and segment customers. LTV = avg_order_value × purchase_frequency × lifespan_months Segments:
Saves to /data/kpi_ltv_YYYY-MM-DD.json. Args:
|
| ps_generate_full_reportA | Run all scoring and KPI tools sequentially and produce a consolidated report. Executes:
Saves consolidated output to /data/full_report_YYYY-MM-DD.json. Args:
|
| ps_category_performanceB | Analyse revenue and margin per product category by crossing orders, order_details, and products. Calculates: revenue per category, number of products, average basket per category. Args:
|
| ps_inventory_value_reportA | Calculate the total value of inventory by multiplying stock × wholesale_price. Returns: total inventory value, number of products, top products by inventory value. Args:
|
| ps_cross_analysisA | Perform server-side cross-dataset analysis combining stock and order data. Returns only the final compact result — no intermediate raw records are exposed. Use this instead of manually paginating ps_list_stock + ps_list_orders to avoid filling the context window. analysis_type options:
• "dead_products" — products with stock > threshold but 0 units sold in the last Supports pagination via limit + offset for large catalogues. Args:
|
| ps_list_manufacturersA | List manufacturers (brands) with optional filtering. Args:
Returns: Array of manufacturers with id, name, active status, and description. |
| ps_get_manufacturerB | Get full details of a manufacturer by ID. Args:
Returns: Complete manufacturer data with name, description, and SEO metadata. |
| ps_list_suppliersA | List suppliers with optional filtering. Args:
Returns: Array of suppliers with id, name, active status, and description. |
| ps_get_supplierA | Get full details of a supplier by ID. Args:
Returns: Complete supplier data with name, description, and SEO metadata. |
| ps_list_countriesA | List countries configured in the shop. Args:
Returns: Array of countries with id, name, iso_code, and active status. |
| ps_list_zonesB | List geographic zones (e.g., Europe, North America). Args:
Returns: Array of zones with id, name, and active status. |
| ps_list_statesB | List states/provinces with optional country filter. Args:
Returns: Array of states with id, name, iso_code, and country_id. |
| ps_list_currenciesA | List currencies configured in the shop. Args:
Returns: Array of currencies with id, name, iso_code, sign, conversion_rate, and active status. |
| ps_list_groupsA | List customer groups (e.g., Visitor, Guest, Customer). Args:
Returns: Array of groups with id, name, reduction, price_display_method, and show_prices. |
| ps_get_groupA | Get full details of a customer group by ID. Args:
Returns: Complete group data with name, reduction, and configuration. |
| ps_list_cartsA | List shopping carts with optional filtering. Useful for abandoned cart analysis. Args:
Returns: Array of carts with id, customer_id, currency, carrier, and dates. |
| ps_get_cartB | Get full details of a shopping cart by ID, including cart rows (products). Args:
Returns: Complete cart data with customer, carrier, products, and dates. |
| ps_list_order_invoicesA | List order invoices with optional filtering. Args:
Returns: Array of invoices with id, order_id, number, totals, and dates. |
| ps_list_order_paymentsA | List order payments with optional filtering. Args:
Returns: Array of payments with id, order_reference, payment_method, amount, and date. |
| ps_list_configurationsA | List shop configuration keys and values. Args:
Returns: Array of configuration entries with id, name, and value. |
| ps_get_configurationB | Get a specific configuration entry by ID. Args:
Returns: Configuration entry with id, name, value, and dates. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 79 tools
Several tools have unclear boundaries: ps_get_order and ps_get_order_details appear to return nearly identical order detail, and ps_dead_products_report overlaps heavily with ps_cross_analysis using analysis_type=dead_products. Stock/alert tools (ps_low_stock_report, ps_stock_alert_check, ps_list_stock, ps_get_product_stock, ps_stock_rotation_score) and SEO update paths (ps_update_product, ps_update_category, ps_update_seo) also risk misselection.
All tools use a consistent ps_ prefix and snake_case, which is readable. However, many analytics tools are noun-first reports (ps_dead_products_report, ps_stock_rotation_score, ps_customer_ltv) while the core CRUD tools are verb-first (ps_list_*, ps_get_*, ps_create_*), creating a mixed convention across the set.
At 79 tools, the surface is extremely large for an MCP server and exceeds the point where an agent can reliably choose among tools. Much of the count comes from overlapping analytics/report tools and many read-only list/get endpoints, making the set feel overgrown rather than well-scoped.
Coverage is broad across products, categories, customers, orders, carts, stock, CMS, SEO, carriers, pricing, and reporting. However, several resources are list/get only (manufacturers, suppliers, carriers, tax rules, zones, configurations), and there are gaps in product combination/image management, order creation, and delete/update operations for some entities.