shopware-mcp

mcp
Security Audit
Pass
Health Pass
  • License — License: MIT
  • Description — Repository has a description
  • Active repo — Last push 0 days ago
  • Community trust — 57 GitHub stars
Code Pass
  • Code scan — Scanned 12 files during light audit, no dangerous patterns found
Permissions Pass
  • Permissions — No dangerous permissions requested

No AI report is available for this listing yet.

SUMMARY

MCP server for Shopware 6. Products, orders, customers, stock, documents, a one-call health audit and sales reports for CODEX, Claude Desktop, Cursor and any MCP host. Read-only by default, guarded writes with dry runs.

README.md

shopware-mcp: the MCP server for Shopware 6

npm CI nightly e2e against a real Shopware MCP registry node MIT

Why · Demo · Install · Tools · Safety · Docs · Website · Deutsch


Introducing shopware-mcp

A Shopware 6 shop is about two hundred entities behind one Admin API. Ask an
assistant "is everything okay with the shop?" and the honest answer takes seven
searches with Criteria filters, three state machines by their technical names,
a couple of aggregations, and an OAuth token it must never repeat back to you.
Wire a model straight to that API and it gets all of it, including the right to
PATCH a price because a prompt said so.

The Model Context Protocol turned "give the model real tools" into a one-line
config change. It says nothing about what a good tool for a shop looks like:
which of the two hundred entities matter on a Tuesday morning, what "stuck
order" means, or that a stock correction should be shown before it is sent.

shopware-mcp is that layer. One small server that speaks MCP to the host
and the Admin API to the shop, and knows Shopware well enough to answer in one
call what used to take an afternoon in the admin:

Curated tools Products, orders and their history, documents, customers, categories, promotions, reviews, payment and shipping methods, plugins, stock, sales channels: eighteen tools that return compact JSON with exact totals, descriptions written for a model, and Shopware's own Criteria filters. No invented query language.
An audit shop_audit runs thirteen checks in one call: paid orders that never shipped, unpaid orders going stale, shipped orders never completed, products out of stock, without a cover, without a delivery time or invisible in every sales channel, promotions past their end date, channels in maintenance, storefronts missing a legal page, reviews waiting for moderation, extensions with updates waiting, and which EU duties look covered by an installed extension. Prioritised, with samples and a hint per finding.
Two reports sales_report asks Shopware to aggregate: gross, net, average order, revenue per currency and channel, orders per state, a day/week/month timeline, the top products and, on request, the change against the period before. customer_report does the same for people: new accounts, guest share, repeat share, top customers by revenue. The figures were checked against SQL on the same database.
An escape hatch entity_schema describes any of the 200+ entities, a plugin's custom entities included, and entity_search queries them with the same filters. Entities that hold credentials are refused, secrets in the rest are scrubbed.
A brake Read-only unless you start it with --allow-write. Even then every write is a dry run that shows the exact request first, and a write budget can cap how many real writes a process may make. Ship, mark paid, remind, refund, correct stock, note, generate a document, create a product or a promotion, moderate a review, update a customer: twelve narrow writes, nothing else. Secrets never appear in output, logs or errors.

An MCP host on the left, shopware-mcp in the middle, the Shopware 6 Admin API on the right. Tool calls flow right, compact JSON flows back.

Shops are not identical, so the tool list is not either: at startup the server
looks up which extensions are installed and registers extra tools for the ones
it knows. A plain shop gets the core set. A shop with more plugins gets a bigger
agent, without configuration.


See it work

Every recording on this page is real output from the server against a Shopware
6.7.13 test shop with generated demo data, replayed from the transcripts in
docs/demo/. Tool calls and results are verbatim, shortened to
fit the screen. The prose is what an MCP host says with them.

One question, thirteen checks. Three paid orders are still waiting for shipment,
the storefront is in maintenance, a summer promotion outlived August. The
answer names order numbers and amounts, and offers the safe next step.

shop_audit: the agent asks one question, the tool returns prioritised findings with samples, the agent summarises them

Numbers the shop computed itself. Totals, channels, states, a monthly
timeline and the top product for eight months, from one call. No order was
paged through; Shopware's aggregations did the work.

sales_report: totals, revenue by channel, orders by state, a monthly timeline and top products

No tool for that? There is a schema for that. Manufacturers have no
dedicated tool. The agent reads the entity's schema, spots mediaId, and
filters on it. The same path reaches every other entity, custom ones included.

entity_schema then entity_search: the agent discovers the mediaId field and finds 27 manufacturers without a logo

Writes show their hand first. With --allow-write, a stock correction
comes back as the request it would send. Only an explicit dryRun: false
touches the shop, and the result is re-read from Shopware.

stock_set: a dry run returns the PATCH it would send, the agent asks, the real write follows and returns the re-read product

Ship it, then prove it. A delivery transition is two requests, shown before
they are sent: the tracking code onto the delivery, then the state change. The
order's history afterwards names the transition, the states and who made it.

order_delivery_transition then order_history: the dry run lists both requests, the write ships the order, the history shows the transition and the integration that made it

A product and its launch code, from one sentence. product_create picks
the shop's default tax and derives the net price, and says so in the dry run.
The promotion arrives inactive, so nobody sees a code before it was checked.

product_create and promotion_create: the dry run shows the POST with tax and net price, the product is created, the promotion follows inactive

Moderation with a reply. Two reviews wait for approval. The spam stays
hidden, the complaint is approved together with the shop's public answer, and
the model never had to touch the admin.

reviews_search then review_moderate: two pending reviews, one approved with a reply after a dry run

People, not just revenue. New accounts by group, how many customers
ordered and how many came back, the guest share, and the top customers with
their share of the period, next to the period before.

customer_report: new customers, ordering and repeat customers, comparison with the previous period and the top customers by revenue

A shop with more plugins gets a bigger agent. The core tools are ready
immediately. The extension lookup finishes in the background, four tools appear,
the host is told to refresh its list, and a compliance question has an answer.

Plugin-aware tools: tools/list grows from 23 to 27 after the extension lookup, then merqo_health answers a compliance question

Know before the agent finds out. shopware-mcp doctor probes what the integration may read, reads its role for the write privileges where it can, and names the missing one per tool. An administrator gets a wall of ticks; a support-desk role gets told exactly what to grant.

shopware-mcp doctor: every tool ready for an administrator integration, then a support-desk integration with customers blocked and the privilege to grant

Screenshots from the MCP Inspector against the same shop

shop_audit result in the MCP Inspector

sales_report result in the MCP Inspector

The tool list with plugin-aware tools registered


What's in the box

Eighteen curated tools products_search, orders_get, customers_search, stock_get, promotions_list, reviews_search, payment_methods_list, shipping_methods_list, plugins_list and friends. Each search takes { term?, filter?, sort?, page?, limit?, fields? } and returns { total, page, limit, items }.
Order history order_history lists every order, payment and delivery transition of one order in sequence: previous state, new state, action, and whether an admin user, an API integration or Shopware itself triggered it.
Health audit shop_audit with tunable thresholds (stuckOrderDays, lowStockThreshold, maxItems). Thirteen checks including legal pages per storefront, delivery times, sales channel visibility and pending reviews, prioritised findings, a hint per finding, and an EU duty overview that names duties and deadlines, never products.
Sales report sales_report for any period, by day, week or month, optionally per sales channel, cancelled orders excluded. compareWithPrevious adds the preceding period and the change in orders, revenue and average order value. Top products resolved by exact product id so ties cannot skew revenue.
Customer report customer_report for the same periods: new accounts split into registered and guest and by group, distinct ordering customers, repeat share, guest order share, and the top customers by revenue with their share of the total.
Any entity entity_schema lists all entities or describes one: fields, types, flags, associations. entity_search queries it. Long text values are truncated, secrets scrubbed, credential entities refused.
Plugin-aware tools The server detects installed, active extensions and adds tools for the ones it knows. First pack: Merqo. Off with --no-extensions.
Documents order_documents_list, order_document_create (invoice, delivery note, credit note, cancellation, by Shopware's own generator) and document_download, which hands the PDF to the host as an embedded resource while the model sees only the metadata.
Guarded writes stock_set (absolute or delta), product_update, product_create, order_state_transition, order_delivery_transition (ship, with tracking codes), order_transaction_transition (mark paid, remind, refund), order_note (internal comment), order_document_create, promotion_toggle, promotion_create, customer_update, review_moderate. Registered only with --allow-write, dryRun: true by default, the re-fetched entity on a real write. SHOPWARE_MCP_MAX_WRITES caps real writes per process.
Doctor and init shopware-mcp doctor says per tool whether this integration can use it and which privilege is missing. shopware-mcp init tests the credentials and prints or writes the config for Claude Desktop, Claude Code, Cursor, VS Code or Zed.
Resources and prompts shopware://shop, shopware://sales-channels, the templates shopware://order/{orderNumber}, shopware://product/{productNumber} and shopware://customer/{customerNumber} so a host can attach a record as context, and five prompts: order_summary, customer_profile, low_stock_report, review_moderation and weekly_review.
Shopware's vocabulary Filters are Shopware Criteria filters (equals, contains, range, equalsAny) on Shopware field paths, including associations like manufacturer.name. State names are the technical names you already know.
Portable schemas Every tool schema is checked to avoid constructs that some MCP clients misread, so the same server works in every host.
A solid client OAuth client credentials with early token refresh, one retry on 401 and on 429/5xx with Retry-After, a per-request timeout, exact totals, inheritance and language headers, a cached entity schema.
Two transports stdio for desktop hosts, stateless Streamable HTTP for everything else, with an optional bearer token.
Packaged four ways npm with build provenance, a Docker image on GHCR for amd64 and arm64, a one-click .mcpb bundle for Claude Desktop that asks for the credentials and a write budget, and a listing in the official MCP registry.

Who it is for

  • You run a shop and want to ask it questions instead of clicking through the admin. Stuck orders, low stock, last month's numbers, one prompt each.
  • You run an agency and look after many shops. The core here covers one shop per server; the multi-shop, audited, hosted version is what the author builds for clients (see Open core).
  • You build Shopware plugins and want your custom entities reachable by an agent today, and your own tools registered tomorrow. entity_search does the first; one file under src/extensions/ does the second.
  • You build agents and want an MCP server that behaves: compact output, honest totals, dry runs, no surprises in the schema.

60 seconds

1. Create an Integration in your Shopware admin: Settings → System → Integrations → Add integration. Copy the access key ID and the secret; the secret is shown once. For a dev shop tick Administrator, for production give it a read role (see permissions).

2. Let the wizard test the credentials and write the host config for you:

npx shopware-mcp init                  # asks for URL, key and secret, tests them, prints the config
npx shopware-mcp init --for claude-desktop --write   # or merges it into the host's config file
npx shopware-mcp doctor                # which tools can this integration use, and what is missing

Or run the server by hand:

export SHOPWARE_URL=https://shop.example.com
export SHOPWARE_CLIENT_ID=SWIA...
export SHOPWARE_CLIENT_SECRET=...

npx shopware-mcp                       # stdio (default)
npx shopware-mcp --http --port 3333    # Streamable HTTP on http://127.0.0.1:3333/mcp
npx shopware-mcp --allow-write         # also register the guarded write tools

3. Connect a host (or let init --write do it):

Claude Desktop

Download shopware-mcp.mcpb from the latest release and double-click it, or add this to claude_desktop_config.json:

{
  "mcpServers": {
    "shopware": {
      "command": "npx",
      "args": ["-y", "shopware-mcp"],
      "env": {
        "SHOPWARE_URL": "https://shop.example.com",
        "SHOPWARE_CLIENT_ID": "SWIA...",
        "SHOPWARE_CLIENT_SECRET": "..."
      }
    }
  }
}
Claude Code
claude mcp add shopware \
  -e SHOPWARE_URL=https://shop.example.com \
  -e SHOPWARE_CLIENT_ID=SWIA... \
  -e SHOPWARE_CLIENT_SECRET=... \
  -- npx -y shopware-mcp
Cursor, VS Code, Zed, Windsurf and other stdio hosts

They all take the same three fields. Cursor reads .cursor/mcp.json, VS Code .vscode/mcp.json (under servers instead of mcpServers), Zed its context_servers block:

{
  "mcpServers": {
    "shopware": {
      "command": "npx",
      "args": ["-y", "shopware-mcp"],
      "env": {
        "SHOPWARE_URL": "https://shop.example.com",
        "SHOPWARE_CLIENT_ID": "SWIA...",
        "SHOPWARE_CLIENT_SECRET": "..."
      }
    }
  }
}

Hosts that read the official MCP registry find it as io.github.bnymnDev/shopware-mcp.

Docker and HTTP hosts
docker run --rm -p 3333:3333 \
  -e SHOPWARE_URL=https://shop.example.com \
  -e SHOPWARE_CLIENT_ID=SWIA... -e SHOPWARE_CLIENT_SECRET=... \
  ghcr.io/bnymndev/shopware-mcp

The image serves Streamable HTTP on http://127.0.0.1:3333/mcp. Point any HTTP-capable host at that URL. Add -e SHOPWARE_MCP_HTTP_TOKEN=<random secret> and the endpoint requires Authorization: Bearer <secret>; without a token, keep it on localhost or behind a proxy that authenticates (self-hosting notes).

4. Ask. The first useful question is usually "Is everything okay with the shop?"


Ask it anything

You say The agent calls
"Is everything okay with the shop?" shop_audit
"How did we do in August?" sales_report { from, to, interval: "week" }
"Which products are below 5 in stock?" products_search with a range filter, or the low_stock_report prompt
"Summarise order 10042 for a support reply." orders_get, or the order_summary prompt
"Which customers ordered more than ten times?" customers_search with a range filter on orderCount
"Is the PayPal plugin up to date?" plugins_list
"Which manufacturers have no logo?" entity_schema then entity_search on product_manufacturer
"Set the stock of SW10084 to 40." stock_set, dry run first, then for real
"Order 10042 shipped with DHL, tracking 00340434." order_delivery_transition { transition: "ship", trackingCodes }
"The bank transfer for 10038 arrived." order_transaction_transition { transition: "paid" }
"How was last week compared to the week before?" sales_report { compareWithPrevious: true }, or the weekly_review prompt
"Send me the invoice for 10042." order_documents_list, then document_download returns the PDF
"Note on 10042: customer called, ships Monday." order_note
"What happened to order 10042, and who did it?" order_history
"Who is customer 10042 and what did they order last?" customers_get and orders_search, or the customer_profile prompt
"Who were our best customers this quarter?" customer_report { from, to, topCustomers: 20 }
"Which reviews are waiting for approval?" reviews_search with status: false, or the review_moderation prompt
"Approve the review from Dominique and thank her." review_moderate { approved: true, comment }
"Which payment methods does the storefront offer?" payment_methods_list, shipping_methods_list
"Create a 10 % code AUTUMN10 for October." promotion_create, created inactive until you say otherwise
"Add the product Bench, SW10200, 119 euro, 3 in stock." product_create, net price derived from the tax rate
"Two came back from the customer, add them to SW10084." stock_set { delta: 2 }
"Which of my tools will fail with this integration?" not a tool: npx shopware-mcp doctor

Filters, in one screen

Every search tool takes the same filter array, and every entry is a Shopware Criteria filter:

{ "type": "equals",    "field": "active",                                    "value": true }
{ "type": "range",     "field": "stock",                                     "value": { "lt": 5 } }
{ "type": "range",     "field": "orderDateTime",                             "value": { "gte": "2026-06-01" } }
{ "type": "equals",    "field": "transactions.stateMachineState.technicalName", "value": "paid" }
{ "type": "contains",  "field": "name",                                      "value": "shirt" }
{ "type": "equalsAny", "field": "id",                                        "value": ["…", "…"] }
{ "type": "equals",    "field": "manufacturer.name",                         "value": "Acme" }

Anything you can filter in the Admin API works here too, associations included.
Need a raw field that the compact output leaves out, such as customFields,
ean or weight? Pass fields: ["customFields", "ean"] and it is added to
every item. Reading a shop in another language? Set SHOPWARE_LANGUAGE_ID.
The full cheat sheet has more.


Tools

Tool Access Purpose
shop_info read Shop info
sales_channels_list read List sales channels
products_search read Search products
products_get read Get product
orders_search read Search orders
orders_get read Get order
order_history read Order history
order_documents_list read List order documents
document_download read Download document PDF
customers_search read Search customers
customers_get read Get customer
categories_list read List categories
promotions_list read List promotions
reviews_search read Search product reviews
payment_methods_list read List payment methods
shipping_methods_list read List shipping methods
plugins_list read List plugins and apps
stock_get read Get stock
sales_report read Sales report
customer_report read Customer report
shop_audit read Shop health audit
entity_schema read Entity schema
entity_search read Search any entity
stock_set write (guarded) Set stock (guarded)
product_update write (guarded) Update product (guarded)
product_create write (guarded) Create product (guarded)
order_state_transition write (guarded) Transition order state (guarded)
order_delivery_transition write (guarded) Transition delivery state (guarded)
order_transaction_transition write (guarded) Transition payment state (guarded)
order_note write (guarded) Add internal order note (guarded)
order_document_create write (guarded) Create order document (guarded)
promotion_toggle write (guarded) Toggle promotion (guarded)
promotion_create write (guarded) Create promotion (guarded)
customer_update write (guarded) Update customer (guarded)
review_moderate write (guarded) Moderate review (guarded)

Every parameter of every tool: docs/tools.md. Searches return
{ total, page, limit, items } with exact totals, limit is capped at 50, and
errors come back as { error: { status, code, detail } } so the model can
react instead of guessing.

Resources: shopware://shop, shopware://sales-channels, shopware://order/{orderNumber},
shopware://product/{productNumber}. Prompts: order_summary, low_stock_report, weekly_review.

Plugin-aware tools

At startup the server asks the shop which extensions are installed and active,
in the background, and registers extra tools for the ones it knows. A shop that
does not answer simply keeps the core tools. --no-extensions turns the whole
mechanism off.

Today one suite is supported, Merqo, which
adds merqo_health, merqo_einvoice_inbox, merqo_returns_search and
merqo_abandoned_carts. Shops without it never see those tools, and nothing in
the core tools changes either way. Support for another vendor's extensions is
one file under src/extensions/; pull requests are welcome.


Safety

  • Read-only by default. Without --allow-write (or SHOPWARE_MCP_ALLOW_WRITE=true) the write tools are not registered. An agent cannot discover what it cannot call.
  • Every write is a dry run first. All twelve write tools, from stock_set to review_moderate, default to dryRun: true and return { dryRun: true, wouldSend: { method, url, body } }, a list when one call needs several requests. A real write returns the re-fetched entity.
  • A write budget. SHOPWARE_MCP_MAX_WRITES=20 refuses the twenty-first real write of a process with WRITE_BUDGET_EXHAUSTED; dry runs stay free. No prompt can lift it.
  • Narrow writes. product_update touches name, description, active and one currency's price; product_create makes a simple product and nothing else. promotion_create creates one cart discount, inactive unless told otherwise. customer_update touches the active flag and the group. The transition tools only move state machines; nothing moves money. Documents come from Shopware's own generator and are never sent by this server. Nothing deletes. Nothing else is writable.
  • Scrubbed reads. entity_search strips passwords, keys, tokens and hashes from every payload and refuses entities that exist to hold credentials or system internals: users, integrations, ACL roles, apps, system config.
  • No secrets anywhere. Credentials never appear in output, logs or error messages. Logs go to stderr only, at error level unless you ask for more.
  • No telemetry. The server talks to your shop and to your host. Nothing else.
  • HTTP transport. Set SHOPWARE_MCP_HTTP_TOKEN and every call to /mcp needs that bearer token, compared in constant time. Without it, bind to localhost (the default) or put it behind a reverse proxy that authenticates; the server warns when it is reachable further without a token.
  • Requests time out. A shop that stops answering costs one request 30 seconds (SHOPWARE_MCP_TIMEOUT_MS), not the whole session.

Found something? See SECURITY.md.


Configuration

Variable Required Notes
SHOPWARE_URL yes Shop base URL, e.g. https://shop.example.com (trailing slash is stripped)
SHOPWARE_CLIENT_ID yes Integration access key ID
SHOPWARE_CLIENT_SECRET yes Integration secret access key
SHOPWARE_MCP_ALLOW_WRITE no true registers the write tools. Default: off
SHOPWARE_MCP_MAX_WRITES no Real writes one process may perform in total; 0 (default) means no cap
SHOPWARE_MCP_DEFAULT_LIMIT no Default page size for search tools (default 20, max 50)
SHOPWARE_MCP_EXTENSIONS no false disables plugin-aware tools and the extension lookup at startup
SHOPWARE_LANGUAGE_ID no Language UUID for translated fields (sw-language-id). Default: shop default language
SHOPWARE_MCP_TIMEOUT_MS no Per-request timeout for the Admin API in milliseconds (default 30000, 1000 to 600000)
SHOPWARE_MCP_HTTP_TOKEN no Bearer token the HTTP transport requires on /mcp (at least 16 characters). Default: none
SHOPWARE_MCP_LOG_LEVEL no error (default), warn, info, debug. Logs go to stderr only

CLI flags override the environment: --allow-write, --max-writes <n>, --no-extensions, --http, --port <n>, --host <addr>, --log-level <level>. Commands: doctor [--json] and init [--for <host>] [--write].

The Integration needs read permissions on the entities you query and write
permissions on product, order and promotion for the write tools. Administrator
is the quick path for a dev shop; use a dedicated role in production
(which permissions).


Design principles

  1. Shopware's vocabulary, not ours. Filters, field paths, state names and entity names are Shopware's. A tool call reads like the Admin API request it becomes, and a Shopware developer needs no second dictionary.
  2. Compact by default, complete on request. Items carry what a model needs to reason and page. Raw fields come with fields, more rows with page, and long text is truncated rather than dumped.
  3. Reading is free, writing is explicit. Write tools exist only when asked for, default to a dry run, and return the exact request. The model sees the consequence before the shop does.
  4. Let the shop do the maths. Totals, timelines and top products are Shopware aggregations with exact counts, not client-side sums over pages.
  5. Vendor-neutral core. Extension packs live in their own files, are registered only when the shop has the extension, and never change how the core tools behave. No telemetry, no phone-home.

The reasoning behind individual choices is in docs/decisions.md.


Documentation

Document What is in it
docs/quickstart.md Integration, first run, host configs, example questions, the filters cheat sheet
docs/tools.md Every tool with every parameter, generated from the code
docs/self-hosting.md Transports, Docker, reverse proxies, Shopware permissions, operations
docs/decisions.md Design decisions and the reasoning behind each
CONTRIBUTING.md Setup, ground rules, end-to-end tests, releasing
SECURITY.md What to report and where
CHANGELOG.md What changed in each version

Open core

Everything in this repository is MIT and stays that way. It covers one shop, one operator, interactive use.

The same author builds Merqo, a commercial suite of Shopware
extensions for EU compliance and daily operations. This server detects them and adds matching
tools, but it never requires them, and the core tools behave the same either way.

Agencies and merchants running this at scale usually need more, and that is what I build and operate for clients:

  • Multi-shop: one MCP endpoint that routes to dozens of shops with per-shop credentials and permissions
  • Hosted with audit trail: every tool call logged with who, what and when, role-based access, SLA
  • Bulk operations and migrations: mass price and stock updates, catalogue imports, safe rollbacks
  • Custom agents and Shopware plugins: workflows tailored to your ERP, PIM or support desk

Interested? Open an issue with the consulting label or reach out via github.com/bnymnDev. Using shopware-mcp in production and want it to stay maintained? Sponsoring helps.


Building from source

pnpm install
pnpm dev          # stdio server via tsx
pnpm test         # vitest + msw-mocked Admin API
pnpm build        # tsup → dist/ (npm) and dist/bundle/ (self-contained)
pnpm pack:mcpb    # Claude Desktop bundle → shopware-mcp.mcpb
pnpm inspect      # MCP Inspector against dist/
pnpm docs:tools   # regenerate docs/tools.md and the tool tables in both READMEs
pnpm docs:demos   # re-render the recordings in docs/demo/ from their transcripts

End-to-end tests against a real Shopware (dockware/dev, or any shop you point them at) run with pnpm test:e2e; see CONTRIBUTING.md.


Status

v0.4. Everything on this page is implemented, covered by unit tests against
mocked Admin API responses, and exercised nightly end-to-end against a real
Shopware. The recordings above come from Shopware 6.7.13; 6.6 is supported too.

Not in it, on purpose: user management for the HTTP transport (one static
token, or a proxy), multi-shop routing and audit trails (the commercial part),
and write tools beyond the twelve that a support desk and a shop manager need on a normal day.

Ideas that fit: more extension packs, better error hints for common Shopware
ACL problems, a products_search example gallery. The good first
issues

are a fine place to start.

License

MIT

If shopware-mcp answered a question your admin could not, a star helps the next shop find it.

Reviews (0)

No results found