shopware-mcp

v0.11.1
io.github.bnymnDev/shopware-mcp Checked 10 hours ago Published 27 days ago

Query and safely manage a Shopware 6 shop: products, orders, customers, stock, audits, reports.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

shop_info Shop info

Get basic facts about the connected Shopware shop: version, edition (Community/Commercial), default currency and default language, plus whether write tools are enabled on this server. Use it first to orient yourself or to confirm the connection works. Returns one object.

shop_settings Shop settings

Read the shop's trading settings from Shopware's system configuration, for the whole shop or one sales channel with inheritance: basic information (shop name, contact, legal pages), login and registration (guest checkout, double opt-in, password rules), cart, listing (products per page, sorting, reviews), tax, newsletter, addresses and documents. Only these domains are readable; mail servers, licences and plugin secrets are not, and credential-like keys are dropped. Use it for 'is guest checkout on?' or 'what is the default tax?'. Returns { salesChannelId, inherited, settings: { <domain>: { ke…

ParameterTypeDescription
domainsarraycore.basicInformation: shop name, contact, legal pages, currency and language defaults; core.loginRegistration: guest checkout, double opt-in, password rules, required fields; core.cart: quantities, w…
salesChannelIdstringSales channel UUID for its effective (inherited) values; omit for shop-wide

sales_channels_list List sales channels

List sales channels (storefronts, headless APIs, marketplaces) with their type, domains and active flag. Use it to find the sales channel or domain an order or product belongs to. Returns { total, page, limit, items[] }.

ParameterTypeDescription
fieldsarrayExtra raw entity fields to add to each item, e.g. ['customFields', 'ean']. Dot-paths allowed.
filterarrayCriteria filters, combined with AND
limitintegerItems per page, max 50 (default from SHOPWARE_MCP_DEFAULT_LIMIT)
pageinteger1-based page
sortarraySort order; defaults per tool
termstringFull-text search term

products_get Get product

Get one product by ID with everything an agent usually needs: description, price, stock, tax, manufacturer, categories, properties, media and all variants with their options, stock and price. Use products_search or stock_get to find the ID first. Returns one object.

ParameterTypeDescription
productId *stringProduct UUID (32 hex chars)
fieldsarrayExtra raw entity fields to add to each item, e.g. ['customFields', 'ean']. Dot-paths allowed.

orders_get Get order

Get one order by ID or order number with line items, billing/shipping addresses, transactions (payment method and state) and deliveries (shipping method, tracking codes). Use it to answer detailed questions about a single order. Returns one object.

ParameterTypeDescription
fieldsarrayExtra raw entity fields to add to each item, e.g. ['customFields', 'ean']. Dot-paths allowed.
orderIdstringOrder UUID
orderNumberstringOrder number as shown to customers

order_history Order history

The state history of one order: every order, payment and delivery transition in chronological order with the previous and new state, the action name and who triggered it (admin user, API integration or the system). Use it for 'what happened to this order and when?'. Orders imported without transitions have an empty history. When there are more transitions than `limit`, the newest ones are kept. Returns { orderId, orderNumber, orderDate, total, entries[], note? }.

ParameterTypeDescription
limitinteger
orderIdstringOrder UUID
orderNumberstringOrder number as shown to the customer

order_documents_list List order documents

List the documents generated for one order: invoices, delivery notes, credit notes and cancellation invoices, with document number, type, creation date and whether they were sent. Use document_download to fetch one as PDF. Returns { orderId, orderNumber, total, items[] }.

ParameterTypeDescription
orderIdstringOrder UUID
orderNumberstringOrder number as shown to customers

document_download Download document PDF

Fetch one order document (invoice, delivery note, credit note, cancellation invoice) as a PDF. The file is returned to the host as an embedded resource next to the document's metadata; the model sees the metadata only. Get the documentId from order_documents_list. Read-only, nothing is marked as sent. Returns { id, type, documentNumber, orderNumber, mimeType, bytes, attachments[] }.

ParameterTypeDescription
documentId *stringDocument UUID from order_documents_list

customers_get Get customer

Get one customer by ID, customer number or email, including all addresses (with default billing/shipping flags), customer group, default and last used payment method. Returns one object.

ParameterTypeDescription
customerIdstringCustomer UUID
customerNumberstring
emailstring
fieldsarrayExtra raw entity fields to add to each item, e.g. ['customFields', 'ean']. Dot-paths allowed.

categories_list List categories

List categories as a flat list with parentId and level so you can rebuild the tree. Each item includes productCount (directly assigned products). Filter by parentId to get one level, or by level=1 for the roots. Returns { total, page, limit, items[] }.

ParameterTypeDescription
fieldsarrayExtra raw entity fields to add to each item, e.g. ['customFields', 'ean']. Dot-paths allowed.
filterarrayCriteria filters, combined with AND
limitintegerItems per page, max 50 (default from SHOPWARE_MCP_DEFAULT_LIMIT)
pageinteger1-based page
sortarraySort order; defaults per tool
termstringFull-text search term

promotions_list List promotions

List promotions (discount campaigns) with code settings, validity window, redemption limits and a summary of their discounts (scope, type, value). Filter by active or code. Returns { total, page, limit, items[] }.

ParameterTypeDescription
fieldsarrayExtra raw entity fields to add to each item, e.g. ['customFields', 'ean']. Dot-paths allowed.
filterarrayCriteria filters, combined with AND
limitintegerItems per page, max 50 (default from SHOPWARE_MCP_DEFAULT_LIMIT)
pageinteger1-based page
sortarraySort order; defaults per tool
termstringFull-text search term

promotions_check Check promotions before a campaign

Before Black Friday or any sale: check every promotion that runs or starts before a date, active or not, the way Shopware decides whether it applies. Flags a promotion that starts but is still inactive, has no discount, no sales channel or only channels in maintenance, needs a code but has none, has no unused individual codes left, is close to its redemption limit, gives 50 % or more, ends before it starts, or applies automatically together with another one so the discounts add up. Read-only. Returns { window, checked, summary, promotions[] } with findings per promotion, worst first.

ParameterTypeDescription
untilstringEnd of the campaign window, ISO date (a date covers the whole day). Default: in 14 days

promotion_impact What would a discount cost?

Before switching a promotion on: replay its cart discount (or one you describe) on the orders of the last days and say what it would have cost: if every eligible order had used it, and at the share of orders that used a promotion so far. Respects a percentage cap and a minimum cart value; rules that limit who gets it are not evaluated, so the result is an upper bound. Read-only. Returns { orders, revenue, eligibleOrders, scenarios, averagePerOrder, capReached, note }.

ParameterTypeDescription
daysintegerOrders of how many days to replay
discountobjectOr a discount to try: 'what if 20 % off?'
minCartValuenumberOnly carts from this value (gross)
promotionIdstringAn existing promotion, e.g. from promotions_list
salesChannelIdstringOnly this sales channel

margin_check Margins: below cost and thin

Find active products whose net price is below their purchase price, products with a thin margin, and products that an automatic discount running right now pushes below cost: the '60 % instead of 6 %' mistake on the price side. Uses Shopware's purchase price; products without one are counted, not guessed. Read-only. Returns { checked, withoutPurchasePrice, automaticDiscount, summary, belowCost[], thin[], lossWithDiscount[] }.

ParameterTypeDescription
maxItemsinteger
minMarginnumberMargin in % below which a product counts as thin

payment_methods_list List payment methods

List payment methods with active flag, handler (plugin), availability rule and the sales channels they are assigned to. Filter e.g. active=true or salesChannels.id. Use it for 'which payment methods do we offer?' and to explain why one is missing at checkout. Returns { total, page, limit, items[] }.

ParameterTypeDescription
fieldsarrayExtra raw entity fields to add to each item, e.g. ['customFields', 'ean']. Dot-paths allowed.
filterarrayCriteria filters, combined with AND
limitintegerItems per page, max 50 (default from SHOPWARE_MCP_DEFAULT_LIMIT)
pageinteger1-based page
sortarraySort order; defaults per tool
termstringFull-text search term

shipping_methods_list List shipping methods

List shipping methods with active flag, delivery time, tracking URL pattern, availability rule and the sales channels they are assigned to. Filter e.g. active=true or salesChannels.id. Returns { total, page, limit, items[] }.

ParameterTypeDescription
fieldsarrayExtra raw entity fields to add to each item, e.g. ['customFields', 'ean']. Dot-paths allowed.
filterarrayCriteria filters, combined with AND
limitintegerItems per page, max 50 (default from SHOPWARE_MCP_DEFAULT_LIMIT)
pageinteger1-based page
sortarraySort order; defaults per tool
termstringFull-text search term

plugins_list List plugins and apps

List installed plugins and apps with version, active/installed state and the available upgrade version (when the shop can reach the Shopware store). Use it to check whether an extension is installed or outdated. Returns { total, items[] }.

ParameterTypeDescription
activeOnlybooleanOnly return active extensions
typestringFilter by extension type

scheduled_tasks_list Scheduled tasks

Shopware's scheduled tasks (indexing, cleanups, cache invalidation, plugin jobs) with status, interval, last and next run, and per task whether it is overdue past a grace period, failed, or stuck running for over a day. Many overdue tasks with no recent last run mean the scheduler or message worker is not running, which shows up as stale search results, missing thumbnails and unsent mails. Read-only. Returns { total, summary: { byStatus, overdue, failed, stuck, longestOverdueMinutes, lastRun }, tasks[], problems[], truncated }.

ParameterTypeDescription
graceMinutesintegerA waiting task past its next run by more than this counts as overdue
onlyProblemsbooleanReturn only overdue, failed or stuck tasks

stock_get Get stock

Get stock and available stock for one product by ID or product number, including every variant. Use it for 'how many X are left?' questions. Returns one object with a variants[] list (empty for simple products).

ParameterTypeDescription
productIdstringProduct UUID
productNumberstringProduct number, e.g. SW10001

stock_forecast Stock forecast

Which products run out soon, from real sales: units sold per product in the last `days` (cancelled orders excluded), the current available stock, the days of cover at that pace, the date the stock reaches zero and a reorder quantity that keeps it in stock through the horizon plus `restockDays` more days (a negative stock is a backlog and is covered too). Lists the active products whose cover is below `horizon` days, soonest first. Products without sales in the window are never listed. Use it for 'what do I need to reorder?'. Returns { window, horizon, restockDays, total, items[], notes? }.

ParameterTypeDescription
daysintegerSales window in days
horizonintegerList products that run out within this many days
limitinteger
restockDaysintegerDays beyond the horizon the suggested reorder quantity should cover
salesChannelIdstringCount sales of one sales channel only

checkout_simulate Simulate a checkout

See the checkout the way a customer does: puts products (and promotion codes) into a throwaway cart of a sales channel through Shopware's own Store API, as a guest shipping to a country or as a given customer with their group, prices and rules, and returns what Shopware calculates: prices per item next to the listing price, discounts, shipping, taxes, total, which payment and shipping methods the customer is offered, which are hidden and by which rule, and every cart error with a plain explanation (country not assigned, code expired, product not visible, stock). Nothing is ordered and the cart…

ParameterTypeDescription
items *arrayProducts and quantities for the cart
countrystringShipping country of a guest, as ISO code
customerNumberstringSimulate as this customer: group, prices, rules and default addresses
paymentMethodstringPayment method name to select
promotionCodesarrayPromotion codes to redeem
salesChannelstringSales channel id or name; default: the first active storefront
shippingMethodstringShipping method name to select

journeys_run Run customer journeys

Synthetic customers: run fixed buying paths through the shop's real cart, e.g. 'Swiss guest with code SUMMER26', 'regular customer pays by invoice', and say which one broke and why. Each journey takes the inputs of checkout_simulate plus expectations: the cart can be ordered, given payment or shipping methods are offered, codes apply, the total stays in a range. Without journeys it runs the ones in SHOPWARE_MCP_JOURNEYS (a JSON file). Nothing is ordered; carts are deleted. Returns { ok, passed, failed, results[] }.

ParameterTypeDescription
journeysarrayJourneys to run

agent_readiness Ready for AI shopping agents?

Can AI shopping agents (ChatGPT, Gemini, Perplexity, Copilot) find and sell this shop's products? Builds the product feed agents read (Agentic Commerce feed fields, as Google Merchant) from the storefront's visible products and checks each row: name, description, brand, image and price are required; GTIN with a valid check digit, manufacturer number and weight help agents match and ship. Also checks HTTPS and the privacy, terms and revocation pages an agent checkout links to. Read-only. Returns { score (0 to 100), products, gaps[] with share and samples, shop[], checkoutReady, feedSample[] }.

ParameterTypeDescription
maxItemsintegerSample products per gap
salesChannelIdstringStorefront to check; default: the first one

update_check Ready for the next Shopware update?

Before a Shopware update, a major one like 6.8 included: the version available next and the security issues it fixes, Shopware's own requirement checks, and for every extension whether it works with that version (compatible, update the extension first, a compatible version announced, not compatible, or not in the store so test it yourself), straight from Shopware's update service. Read-only: it never starts an update. Needs the privilege system:core:update (and system_config:read for the extensions), which setup grants with --plugin-updates. Returns { currentVersion, update, upToDate, requirem…

shop_diagnose Why are orders not coming in?

Look at the usual suspects in one call when orders stop or customers complain: storefronts in maintenance or inactive, a test purchase of the best seller of the last two weeks with the payment methods really offered, extensions installed or updated in the last 24 hours, errors in Shopware's log in the last 6 hours (failed mails included), and scheduled tasks that stopped. Nothing is ordered. Returns { causes[], fine[] }: likely causes first, and what was checked and found fine.

sales_report Sales report

Aggregate sales figures for a period straight from Shopware: order count, gross/net revenue, average order value, breakdowns by order/payment/delivery state, payment method, currency and sales channel, a revenue timeline (day/week/month) and the top-selling products. Use it for 'how did we do last month?' questions instead of paging through orders. compareWithPrevious adds the period of equal length before `from` and the change in orders and revenue. Defaults to the last 30 days, cancelled orders excluded. Returns one object.

ParameterTypeDescription
compareWithPreviousbooleanAlso report the preceding period of equal length and the change
excludeCancelledboolean
fromstringStart (inclusive), ISO date. Default: 30 days ago
intervalstringTimeline bucket size
salesChannelIdstringRestrict to one sales channel
timeZonestringIANA time zone, e.g. Europe/Berlin: date-only from/to and daily buckets become local days. Default: UTC
tostringEnd (inclusive; a date without time covers the whole day), ISO date. Default: now
topProductsinteger

customer_report Customer report

Customer figures for a period straight from Shopware: new accounts (registered vs guest, by customer group), how many distinct customers ordered, the repeat share (two or more orders in the period), the guest order share and the top customers by gross revenue with their share of the total. compareWithPrevious adds the period of equal length before `from` and the change. Defaults to the last 30 days, cancelled orders excluded. Returns one object.

ParameterTypeDescription
compareWithPreviousbooleanAlso report the preceding period of equal length and the change
excludeCancelledboolean
fromstringStart (inclusive), ISO date. Default: 30 days ago
salesChannelIdstringRestrict to one sales channel
tostringEnd (inclusive; a date without time covers the whole day). Default: now
topCustomersinteger

returns_report Returns report

How many orders came back and which products come back most, from Shopware's own delivery states (returned, returned partially), no plugin needed. Gives the return rate of the period next to the period before, the revenue of returned orders, and products ranked by the share of their orders that came back. Use it for 'what do customers send back?' or before reordering stock. Read-only. Returns { period, totals, previous, change, products[], note }.

ParameterTypeDescription
fromstringStart (inclusive), ISO date. Default: 90 days ago
minOrdersintegerRank only products with at least this many orders, so one return is no 100 %
salesChannelIdstringRestrict to one sales channel
tostringEnd (inclusive; a date covers the whole day). Default: now
topProductsinteger

shop_pulse Shop pulse

How is the shop doing right now? Orders and revenue since local midnight next to the same hours of the same weekday in previous weeks, the last order, and how unusual the current quiet spell is: the orders the same stretch brought in earlier weeks and the chance of seeing none by accident (a Poisson estimate). 'unusual' means the checkout, payment or storefront may be broken; follow up with checkout_simulate. Also compares today's failed or cancelled payments with their usual share. On a campaign day compare with last year (baseline 'last-year') or raise the expectation (expectFactor 3 on Blac…

ParameterTypeDescription
baselinestringCompare with recent weeks, or with the same weekday around this day last year
expectFactornumberToday should bring this many times the usual orders, e.g. 3 on a campaign day
holidaysstringLeave public holidays of this country out of 'typical'; default: the time zone's country (Europe/Berlin: DE, Europe/Vienna: AT, Europe/Zurich: CH)
salesChannelIdstringOnly this sales channel
timeZonestringIANA time zone of the shop, e.g. Europe/Berlin; default: the server's
weeksintegerHow many previous weeks make up 'typical'

shop_brief Shop brief

One look at the whole shop, as a manager wants it in the morning: orders and payments right now against a usual day, the audit's findings, and the last seven days' revenue. Hosts that show MCP Apps get it as an interactive page with charts. Read-only. Returns { headline, today, audit, last7Days } in short; use shop_pulse, shop_audit or sales_report for the details of one part.

ParameterTypeDescription
timeZonestringIANA time zone of the shop, e.g. Europe/Berlin; default: the server's

shop_audit Shop health audit

Run a one-shot health check across the shop and return prioritised findings: paid orders not shipped, old unpaid orders, shipped orders never completed, out-of-stock and low-stock products, products without cover image, delivery time or sales channel visibility, expired promotions still active, promotions in the next 14 days that will not work, sales channels in maintenance mode, storefronts missing legal pages (imprint, terms, privacy, revocation, shipping), reviews awaiting moderation, scheduled tasks overdue or failed, and extensions with pending updates. Each finding has a severity, total…

ParameterTypeDescription
complianceChecksbooleanInclude the EU duty coverage map. Set false outside the EU.
forecastDaysintegerFlag products whose stock lasts fewer days than this at the recent sales pace
lowStockThresholdinteger
maxItemsintegerSample items per finding
rulePacksarrayReady-made rules: gpsr (manufacturer data, EU product safety), eaa (alt texts and descriptions, accessibility), feeds (GTIN, MPN, weight for shopping feeds and AI agents)
rulesarrayThe shop's own checks: { id, title, severity, entity, filter[], hint }, the filter in Shopware criteria. Default: the rules in SHOPWARE_MCP_RULES, if set
stuckOrderDaysinteger
timeZonestringIANA time zone of the shop for the order-silence check; default: the server's

entity_schema Entity schema

Describe a Shopware entity: its fields (name, type, flags such as required/translatable) and associations (name, relation, target entity), taken from the shop's own entity schema. Call it without `entity` to list all entity names. Use it to build precise filters for entity_search or the `fields` parameter of other tools. Returns one object.

ParameterTypeDescription
entitystringEntity name; omit to list all entities