
Salesforce B2C Commerce MCP Server: Setup for Claude, Cursor and Other Apps
Lets your assistant search Salesforce B2C Commerce docs, debug and deploy code, read logs and manage your site.
This is Salesforce's own server for B2C Commerce developers. It answers questions from the documentation, debugs cartridges with breakpoints, reads logs, deploys code and manages site data through nearly 600 Commerce API operations. Documentation and skills work with no B2C credentials. Everything else uses your existing B2C configuration and a sign-in with your Account Manager account. It can change a live site, so point it at a sandbox first.
Good for
- B2C Commerce developers who debug and deploy cartridges from their assistant
- Storefront teams working with PWA Kit or Storefront Next
- Merchants and admins who want job, promotion and analytics answers
- Anyone looking up B2C Commerce documentation and schemas
Works in
12 should work
Tap an app to see how to set it up and any known problems.
Supports local MCP servers.
Supports local MCP servers.
Supports local MCP servers.
Supports local MCP servers.
Supports local MCP servers.
Supports local MCP servers.
Supports local MCP servers.
Supports local MCP servers.
Supports local MCP servers.
Supports local MCP servers.
Supports local MCP servers.
Supports local MCP servers.
Client does not support this transport.
Client does not support this transport.
Install @salesforce/b2c-dx MCP
Claude Code
- 1
Copy this prompt.
Add the @salesforce/b2c-dx MCP server to Claude Code. Run this command: claude mcp add b2c-dx -- npx -y @salesforce/b2c-dx-mcp Then check that it loaded and tell me if I need to sign in or restart.
- 2
Paste it into Claude Code. It shows the change and asks before running it.
Requires Node.js.
Built from the package data we hold. Not yet tested by us.
Tools
Finds answers in B2C Commerce documentation
Searches B2C Commerce references, guides, Salesforce Help and tooling docs. It needs no B2C credentials.
Try: “How do I register a custom SCAPI endpoint?”
Network ·
docs_searchReads one documentation article
Opens a documentation article the search found, so the assistant can answer from the full text.
Try: “Read that article on job steps.”
Network ·
docs_readBrowses documentation categories and titles
Lists what the documentation covers, by category.
Try: “What topics does the B2C Commerce documentation cover?”
Network ·
docs_listFinds workflow skills for development and operations
Looks up packaged workflow guides for B2C Commerce work, such as development patterns and operations.
Try: “Is there a skill for debugging a controller?”
Read ·
skills_readFinds the XML schema for an import or export file
Searches the XML schemas used for catalog, order and other import and export files.
Try: “Which schema covers a price book import?”
Network ·
docs_schema_searchReads one XML schema
Shows the contents of one XML import or export schema.
Try: “Show me the schema for product imports.”
Network ·
docs_schema_readLists the available XML schemas
Lists every import and export XML schema it knows about.
Try: “List the XML schemas you can check against.”
Network ·
docs_schema_listChecks an import or export XML file against its schema
Validates an XML file you point to and reports errors.
Try: “Check this catalog import XML for errors.”
Files ·
validate_xml_schemaFinds Commerce API operations for a task
Searches nearly 600 Salesforce Commerce API operations and tells the assistant what each one needs.
Try: “Which API operation creates a promotion?”
Network ·
scapi_searchReads and changes your site data through the Admin APIs
Runs Commerce API operations on your instance, such as products, catalogs, orders and customers. It can change data, and it needs OAuth credentials and scopes. Safety Mode can ask you to approve selected changes.
Try: “Create a test product and keep it offline while I finish setting it up.”
Delete ·
scapi_executeSaves a workflow to reuse in later sessions
Stores a workflow the assistant built so you can repeat it for other products, campaigns or dates.
Try: “Save that product-setup workflow so I can reuse it.”
Write ·
scapi_snippet_saveBrowses your standard and custom API schemas
Lists the API schemas on your instance, including custom attributes and custom APIs. Needs the schemas scope.
Try: “Show me the custom attributes on products in my instance.”
Network ·
scapi_schemas_listChecks whether custom API endpoints are registered
Reports the registration status of your custom API endpoints.
Try: “Is my custom loyalty endpoint registered?”
Network ·
scapi_custom_apis_get_statusLists instance log files
Shows the log files on your instance.
Try: “Which log files exist on my sandbox?”
Network ·
logs_list_filesReads and filters recent instance logs
Pulls recent log entries from your instance, filtered as you ask. Logs may hold sensitive data.
Try: “Show errors from the last hour on my sandbox.”
Network ·
logs_get_recentStarts, lists or stops a live watch on instance logs
Begins following instance logs while you reproduce a problem.
Try: “Watch my sandbox logs while I reproduce this checkout error.”
Network ·
logs_watchFetches new entries from a log watch
Collects what a running log watch has seen so far.
Try: “What has the log watch picked up?”
Network ·
logs_watch_pollStarts, lists or stops a live Managed Runtime log stream
Streams logs from a Managed Runtime environment. It needs an API key, project and environment.
Try: “Stream the logs from my staging storefront.”
Network ·
mrt_logs_watchFetches new entries from a Managed Runtime log stream
Collects entries from an open Managed Runtime log stream.
Try: “Show new entries from the staging log stream.”
Network ·
mrt_logs_watch_pollConnects the debugger to your instance
Opens a debugging session against a running instance and maps your local cartridge code to it.
Try: “Start a debug session on my sandbox.”
Network ·
debug_start_sessionEnds a debugging session
Closes the debugger connection so others can use the slot.
Try: “End the debug session.”
Network ·
debug_end_sessionLists debugging sessions, breakpoints and paused threads
Shows what the debugger is currently doing.
Try: “Which breakpoints are set and which threads are paused?”
Network ·
debug_list_sessionsSets or clears breakpoints
Adds or removes breakpoints in your cartridge code. Breakpoints pause live requests.
Try: “Set a breakpoint on line 42 of the checkout controller.”
Network ·
debug_set_breakpointsWaits until the code pauses at a breakpoint
Holds until a request hits a breakpoint.
Try: “Wait for the request to reach the breakpoint.”
Network ·
debug_wait_for_stopContinues, or steps into, over or out of code
Moves the paused program forward one step at a time or lets it run.
Try: “Step over to the next line.”
Network ·
debug_controlShows the call stack and variable values
Reads the call stack, variables and object contents while the code is paused.
Try: “What are the variable values in this frame?”
Network ·
debug_inspectRuns JavaScript in a paused frame
Runs a snippet of JavaScript inside the paused program. The docs warn that evaluation can change application state, so use a sandbox.
Try: “Evaluate basket.totalGrossPrice in this frame.”
Runs code ·
debug_evaluateCaptures the debugger state at a chosen line
Records the state of the program when a request reaches the line you pick.
Try: “Capture the state at line 42 when it is hit.”
Network ·
debug_capture_at_breakpointUploads cartridges to a code version, and can activate it
Sends your cartridge code to the active code version on your instance. It can also activate or reload a code version, which needs an API client with the sfcc.scripts.rw scope.
Try: “Deploy my cartridges to the sandbox code version.”
Write ·
cartridge_deployLists a folder on your instance with sizes and dates
Shows the files in an instance directory.
Try: “List the files in the instance log folder.”
Network ·
webdav_listReads part of a text file on your instance
Reads up to 32,000 bytes of a text file per call, or the end of it.
Try: “Show the end of the latest job log.”
Network ·
webdav_getDownloads a whole file from your instance
Saves an instance file to a new file on your computer. It will not overwrite an existing file.
Try: “Download the failed import archive.”
Files ·
webdav_get_to_fileUploads text or a local file to your instance
Uploads to an existing instance folder, up to 64 MiB, and replaces a file only when you ask.
Try: “Upload this file to the impex folder.”
Write ·
webdav_putFinds analytics reports and shows their inputs
Lists the analytics reports and the tables and columns behind them.
Try: “Which reports cover search with no results?”
Network ·
cip_discoverRuns analytics reports or custom SQL on your site data
Runs reports or your own SQL against B2C Commerce analytics. Results are limited to 500 rows.
Try: “Which SCAPI endpoints had the highest error rates last week?”
Network ·
cip_queryReads observability metrics for your site
Returns metrics, with an option for summary statistics. It needs access to the Metrics API closed beta.
Try: “Summarize error-rate metrics for the last day.”
Network ·
metrics_getUsed by the assistant behind the scenes
Shows the settings and sign-in the server resolved
Reports which instance, project and credentials the server is using, with secrets masked.
Try: “Which instance and credentials are you using?”
Read ·
config_inspect
Read from the source code
Permissions
high risk · 4 things to watch · 1 advisory
High risk
The server can change product data, upload files and deploy code to your B2C Commerce instance, and it has no read-only switch. Try it on a sandbox first and turn on Safety Mode so you approve selected changes.
What it can do
- Read your data
- Create and change things
- Delete things
- Read-only mode
Watch out for
It can change data and deploy code on your site
The Admin API tool, file upload and cartridge deploy can alter a live instance. Use a sandbox and turn on Safety Mode. salesforcecommercecloud.github.io
The debugger can run code in your application
Evaluating JavaScript in a paused frame can change application state, and breakpoints pause live requests. Use a sandbox and end sessions when done. salesforcecommercecloud.github.io
Logs can contain sensitive data
Log tools pass what is in your instance logs to the assistant. Check what your logs hold before you connect a production instance. salesforcecommercecloud.github.io
Telemetry is on by default
Set SFCC_DISABLE_TELEMETRY to true if you want to switch it off. github.com
Security advisories
Technical details
| Turning on read-only | No read-only switch. Safety Mode can ask you to approve selected changes, if your assistant supports approval prompts. |
|---|---|
| Talks to | Your B2C Commerce instance and Salesforce APIs. Usage telemetry, on by default |
| Sign-in and keys | Reads your existing B2C configuration shared with the B2C CLI. Sign-in with Account Manager opens a browser, and `b2c auth logout` signs you out. Debugging needs a Business Manager user or access key. |
| Scopes |
|
Questions
Is the Salesforce B2C Commerce MCP server official?
Yes. It is published by Salesforce in the SalesforceCommerceCloud organization on GitHub under the Apache-2.0 license, and the repo says it is generally available.
Do I need B2C Commerce credentials?
Not for documentation and skills. Anything that touches your instance needs your B2C configuration and a sign-in with your Account Manager account. Analytics, API and debugging each need their own access.
Can I install it as a Claude Code plugin?
Yes. The README gives plugin commands for Claude Code and Codex, and a one-click install for VS Code and Cursor. The install box shows the manual MCP setup for every app.
Can it run read-only?
Not as a single switch. Safety Mode lets it inspect data while asking you to approve selected changes. Your assistant app must support the approval prompts, otherwise the change is blocked.
Does it work with PWA Kit or Storefront Next?
Yes. Shared log and API tools cover both, and the toolsets can be switched on per project type.
Can I limit which tools are loaded?
Yes. The docs describe toolsets such as CARTRIDGES, DIAGNOSTICS, MRT, SCAPI, CIP, PWAV3 and STOREFRONTNEXT. The plugin install includes all of them.
Does it send my data anywhere?
It talks to your B2C Commerce instance and Salesforce APIs. Usage telemetry is on by default, and SFCC_DISABLE_TELEMETRY=true turns it off.
Information
updated Nov 2, 2026
- Publisher
- Salesforce (official)
- Package
@salesforce/b2c-dx-mcp- Registry
- npm
- Transport
- stdio
- Auth
- OAuth
- Version
- 3.10.0
- License
- Apache-2.0
- Last commit
- Oct 31, 2026
Other Salesforce MCP servers
Sources
Docs, issue trackers and discussions this page is built from. Issues, quotes and findings above link to their own source.
Show all 2Hide
- github.com · github.com
- salesforcecommercecloud.github.io · salesforcecommercecloud.github.io