commercecloud
🤖 An MCP server that helps connect your AI applications with your Salesforce Commerce Cloud instance
claude mcp add --transport stdio brinzl-commercecloud-mcp-server node /ABSOLUTE/PATH/TO/commercecloud-mcp-server/dist/index.js \ --env SFCC_API_HOST="https://your-sfcc-instance.demandware.net" \ --env OCAPI_BASE_PATH="/s/your-site-id/dw-api/vXX.X" \ --env OCAPI_CLIENT_ID="your-ocapi-client-id" \ --env OCAPI_CLIENT_SCOPE="your-ocapi-scope" \ --env OCAPI_CLIENT_SECRET="your-ocapi-client-secret"
How to use
This Commerce Cloud MCP Server connects your AI applications to Salesforce Commerce Cloud using the Model Context Protocol (MCP). It exposes endpoints and flows that let you fetch and manage product data, analyze orders for insights, read and write custom objects, and handle content assets within your SFCC instance. The server is built with Node.js and is intended to be run from the dist/index.js bundle after building the project. To integrate with your MCP client (e.g., Claude Desktop App), point the client’s MCP configuration to the server’s Node entry, as shown in the example config. Once connected, you can request product details, generate product updates from images, analyze orders for patterns, and perform content asset operations through standardized MCP messages.
How to install
Prerequisites:
- Node.js v22 or higher
- Git
- Salesforce Commerce Cloud OCAPI access and a valid SFCC instance
- An MCP client application (for example, Claude Desktop App)
Installation steps:
- Clone the repository:
git clone https://github.com/your-username/commercecloud-mcp-server.git
cd commercecloud-mcp-server
- Install dependencies:
npm install
- Create and configure your environment file:
cp .env.example .env
Edit the .env file (or use the provided environment variables in the mcp_config) with your SFCC OCAPI credentials and SFCC instance details.
- Build the project:
npm run build
- Import OCAPI configurations: The OCAPI configuration files are in data/ocapi. Import them into SFCC Business Manager as described in README:
- Log into Business Manager
- Administration > Site Development > Open Commerce API Settings
- For each JSON in data/ocapi, select API type (Shop/Data), copy contents, and paste then Save
- Configure your MCP client application (example - Claude Desktop App):
- Open Claude Desktop App
- File > Settings > Developer > Edit Config
- In the configuration, add the server details, for example:
{
"mcpServers": {
"commercecloud": {
"command": "node",
"args": ["/ABSOLUTE/PATH/TO/commercecloud-mcp-server/dist/index.js"]
}
}
}
Note: Replace /ABSOLUTE/PATH/TO/ with the actual absolute path to your project folder.
Additional notes
- The server relies on environment variables to connect to SFCC OCAPI endpoints. Ensure OCAPI credentials are correct and that OCAPI permissions (Shop/Data) are configured.
- Use the provided data/ocapi configurations by importing them into Business Manager to enable required MCP endpoints.
- When deploying, ensure the path in the MCP client config (.json) points to the built dist/index.js output.
- If you encounter connection issues, verify network access from the MCP client to the SFCC instance and confirm OCAPI host URL is reachable.
- The project is designed to support Product Details, Product Updates, Order Details, Custom Objects, and Content Assets; some features like Site Preferences, Promotions & Campaigns, and Job Configurations are marked for future implementation.
Related MCP Servers
iterm
A Model Context Protocol server that executes commands in the current iTerm session - useful for REPL and CLI assistance
mcp
Octopus Deploy Official MCP Server
furi
CLI & API for MCP management
editor
MCP Server for Phaser Editor
DoorDash
MCP server from JordanDalton/DoorDash-MCP-Server
mcp
MCP сервер для автоматического создания и развертывания приложений в Timeweb Cloud