Build B2C Storefronts Faster with the B2C DX MCP Server (Developer Preview)
Use the B2C DX Model Context Protocol (MCP) to enhance your development workflow by connecting an AI assistant, such as Claude, Cursor, or GitHub Copilot, to your B2C Commerce environment. The new B2C DX MCP server is a unified MCP that is the starting point for various development tools and storefronts. The B2C DX MCP server provides your AI assistant with real-time access to B2C Commerce APIs (SCAPI), storefront development, cartridge deployment, and Managed Runtime (MRT) deployments. For example, you can use natural language prompts to deploy cartridges to a sandbox, create a custom SCAPI endpoint, and deploy a storefront to MRT without leaving your IDE!
The B2C DX MCP Server is available as a developer preview. The B2C DX MCP Server isn’t generally available unless or until Salesforce announces its general availability in documentation or in press releases or public statements. All commands, parameters, and other features are subject to change or deprecation at any time, with or without notice. Don't implement functionality in production with these commands or tools.
The B2C DX MCP Server is implemented in the @salesforce/b2c-dx-mcp package and provides these tools.
- SCAPI: Discover schemas, check custom API status, and scaffold new endpoints. The SCAPI tool is always available.
- Cartridges: Deploy cartridges to B2C instances.
- PWA Kit v3: Get development guidelines, create custom SCAPI endpoints, and use MRT tools to deploy bundles.
- MRT: Bundle a pre-built project, upload it to MRT, and optionally deploy it to a target environment.
The B2C DX MCP Server autodetects your project type. For more information on the B2C DX MCP server and how to set it up, see the B2C DX MCP Server documentation in GitHub.