Skip to content

MCP Server

The Model Context Protocol (MCP) is an open standard that enables AI clients (Claude Desktop, Cursor, and Claude Code) to communicate with external systems via a structured, tool-based interface. Instead of copy-pasting data into a chat window, an AI agent can call a tool like shopware-entity-search directly and receive structured results that it can reason about.

Shopware ships a native MCP server with the core platform. It exposes an endpoint at /api/_mcp that any MCP-compatible AI client can connect to using integration credentials.

Experimental

The MCP server is behind the MCP_SERVER feature flag and is considered experimental until Shopware 6.8. APIs and tool names may change before the stable release.

What the MCP server provides

CapabilityDetails
HTTP endpointPOST /api/_mcp via Streamable HTTP transport
AuthenticationIntegration credentials or OAuth bearer tokens
AuthorizationFull Admin API ACL enforcement per tool call
Tool allowlistPer-integration and per-user selection in Admin UI; intersected when an app forwards sw-app-user-id
Rate limitingPer-integration rate limiting
Discoverybin/console debug:mcp lists all registered capabilities
ExtensibilityPlugins, bundles, and apps can contribute custom tools, prompts, and resources

Architecture

Core owns the platform foundation: the HTTP endpoint, authentication bridge, ACL enforcement, rate limiting, capability discovery, and a set of low-level data access primitives (shopware-entity-*, shopware-system-config-*).

Plugins and Symfony bundles run in-process with full access to DAL repositories, the service container, and the Shopware plugin lifecycle. They register tools, prompts, and resources via Symfony service tags. Shopware ships SwagMcpMerchantAssistant (merchant workflow tools) and SwagMcpDevTools (developer diagnostics) as examples of what plugins and bundles can do, but extension developers are free to build any capability as a plugin.

Apps register capabilities declaratively in Resources/mcp.xml. Shopware calls the app's endpoint over HTTP at runtime, using an HMAC-signed request. Use an app when your logic runs on a remote service, requires cloud compatibility, or should be deployed independently from Shopware.

Plugin or App?

Use a plugin or Symfony bundle when:

  • Your tool needs direct DAL/service container access
  • You want to ship via the Shopware Marketplace
  • Your capability is tightly coupled to Shopware's install / activate lifecycle

Use an app when:

  • Your logic runs on a remote service (ERP, PIM, CRM, SaaS administration)
  • You need Cloud compatibility (apps work where plugins cannot)
  • Your capability should deploy and scale independently from Shopware

Spec coverage and known limitations

Shopware's MCP server is built on symfony/mcp-bundle, which implements the MCP specification (2025-11-25). The bundle may not cover every feature in the latest spec revision, and some areas of the spec are only partially implemented. Known gaps:

AreaStatus
listChanged notifications for tools, prompts, and resourcesNot implemented
Resource templates and resource subscriptionsNot implemented
Protocol-level paginationNot implemented (Shopware uses application-level limit/page)
Completion utility for prompt/URI template argumentsNot implemented
structuredContent and isError in tool resultsNot used; Shopware uses its own {"success": bool, ...} envelope
ACL checks on resourcesNot implemented (resources are public within the authenticated session)

If a feature you need is missing from symfony/mcp-bundle, check its repository for open issues and pending releases before building a workaround.

In this section

PageWhat you will find
MCP ConceptsWhat tools, resources, and prompts are and when to use each
Getting StartedConnect your first AI client to a Shopware shop
Tools ReferenceAll built-in tools, resources, and prompts with parameters
ConfigurationFeature flag, allowlist, session store, rate limiting, CLI
Best PracticesDesign principles for building MCP tools
Extending the MCP ServerTools, prompts, and resources for all three extension types side by side
ExamplesStep-by-step workflows for common tasks
TroubleshootingFix common connection and permission issues
Shopware ExtensionsCopilot, SwagMcpMerchantAssistant, SwagMcpDevTools, ai-coding-tools

Extension guides

To extend the MCP server with your own tools:

Was this page helpful?
UnsatisfiedSatisfied
Be the first to vote!
0.0 / 5  (0 votes)