PlugWiki
@salesforce/b2c-dx-mcp logo

Salesforce B2C Commerce MCP Server: Setup for Claude, Cursor and Other Apps

Official · by SalesforceLocal

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.

Install @salesforce/b2c-dx MCP

Claude Code

  1. 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. 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_search

  • Reads 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_read

  • Browses documentation categories and titles

    Lists what the documentation covers, by category.

    Try: “What topics does the B2C Commerce documentation cover?”

    Network · docs_list

  • Finds 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_read

  • Finds 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_search

  • Reads one XML schema

    Shows the contents of one XML import or export schema.

    Try: “Show me the schema for product imports.”

    Network · docs_schema_read

  • Lists 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_list

  • Checks 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_schema

  • Finds 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_search

  • Reads 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_execute

  • Saves 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_save

  • Browses 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_list

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-onlyNo read-only switch. Safety Mode can ask you to approve selected changes, if your assistant supports approval prompts.
Talks toYour B2C Commerce instance and Salesforce APIs. Usage telemetry, on by default
Sign-in and keysReads 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
  • sfcc.scapi-schemas

  • sfcc.custom-apis

  • sfcc.scripts.rw

  • sfcc.metrics

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

WebsiteGitHubnpm

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 2
  1. github.com · github.com
  2. salesforcecommercecloud.github.io · salesforcecommercecloud.github.io

Facts from the official MCP registry, GitHub, npm, PyPI and the Docker catalog. Updated Nov 2, 2026.