An AI-powered Model Context Protocol (MCP) server that provides comprehensive access to Salesforce B2C Commerce Cloud development tools, documentation, and best practices.
- π Complete SFCC Documentation Access - Search and explore all SFCC API classes and methods
- π Best Practices Guides - Curated development guidelines for cartridges, hooks, controllers, and more
- ποΈ SFRA Documentation - Enhanced access to Storefront Reference Architecture documentation
- π Log Analysis Tools - Real-time error monitoring and debugging for SFCC instances
- βοΈ System Object Definitions - Explore custom attributes and site preferences
- π Cartridge Generation - Automated cartridge structure creation
{
"mcpServers": {
"sfcc-dev": {
"command": "npx",
"args": ["sfcc-dev-mcp"]
}
}
}
{
"mcpServers": {
"sfcc-dev": {
"command": "npx",
"args": ["sfcc-dev-mcp", "--dw-json", "/path/to/your/dw.json"]
}
}
}
Create a dw.json
file with your SFCC credentials:
{
"hostname": "your-instance.sandbox.us01.dx.commercecloud.salesforce.com",
"username": "your-username",
"password": "your-password",
"client-id": "your-client-id",
"client-secret": "your-client-secret"
}
Mode | Tools Available | SFCC Credentials Required |
---|---|---|
Documentation-Only | 15 tools | β No |
Full Mode | 30 tools | β Yes |
Perfect for learning and development - no SFCC instance required:
- Complete SFCC API documentation (5 tools)
- Best practices guides (4 tools)
- SFRA documentation (5 tools)
- Cartridge generation (1 tool)
Complete development experience with live SFCC instance access:
- All documentation-only features (15 tools)
- Real-time log analysis (7 tools)
- System object definitions (6 tools)
- Code version management (2 tools)
Choose your preferred AI assistant:
Interface | Best For | Setup Guide |
---|---|---|
Claude Desktop | Multi-turn conversations, debugging | π Setup Guide |
GitHub Copilot | VS Code integration, inline suggestions | π Setup Guide |
Cursor | Modern AI-powered editor | π Setup Guide |
# Test the server
npx sfcc-dev-mcp
# Use with your configuration
npx sfcc-dev-mcp --dw-json /path/to/your/dw.json
npm install -g sfcc-dev-mcp
sfcc-dev-mcp --dw-json /path/to/your/dw.json
# Enable debug mode for detailed logging
npx sfcc-dev-mcp --debug
# Or with configuration file
npx sfcc-dev-mcp --dw-json /path/to/your/dw.json --debug
The server writes logs to your system's temporary directory:
- macOS:
/var/folders/{user-id}/T/sfcc-mcp-logs/
- Linux:
/tmp/sfcc-mcp-logs/
- Windows:
%TEMP%\sfcc-mcp-logs\
Log Files Created:
sfcc-mcp-info.log
- General application logs and startup messagessfcc-mcp-debug.log
- Detailed debug information (only when--debug
is enabled)sfcc-mcp-error.log
- Error messages and stack tracessfcc-mcp-warn.log
- Warning messages
// The exact path varies by system - to find yours:
node -e "console.log(require('os').tmpdir() + '/sfcc-mcp-logs')"
## π Documentation
**π [Complete Documentation](https://taurgis.github.io/sfcc-dev-mcp/)** - Comprehensive guides and references
Quick Links:
- **[Installation Guide](https://taurgis.github.io/sfcc-dev-mcp/installation)** - Detailed installation options
- **[AI Interface Setup](https://taurgis.github.io/sfcc-dev-mcp/ai-interfaces)** - Configure Claude Desktop, GitHub Copilot, or Cursor
- **[Configuration Guide](https://taurgis.github.io/sfcc-dev-mcp/configuration)** - SFCC credentials and Data API setup
- **[Available Tools](https://taurgis.github.io/sfcc-dev-mcp/tools)** - Complete tool reference
- **[Examples](https://taurgis.github.io/sfcc-dev-mcp/examples)** - Real-world usage patterns
- **[Troubleshooting](https://taurgis.github.io/sfcc-dev-mcp/troubleshooting)** - Common issues and solutions
## π οΈ Example AI Interactions
π§βπ» "Create a new SFCC controller for product search" π€ Generates complete controller with proper imports, route handling, and SFRA patterns
π§βπ» "What's wrong with my checkout flow? Check the logs"
π€ Analyzes recent error logs, identifies issues, and suggests fixes
π§βπ» "Show me how to implement OCAPI hooks for order validation" π€ Provides best practices guide with complete hook implementation examples
## π Security Notes
- **Local Development Focus**: Designed for individual developer use on local machines
- **Credential Protection**: dw.json files should never be committed to version control
- **Network Security**: All API calls use HTTPS with proper authentication
- **No Data Storage**: Server doesn't persist any SFCC data locally
## π€ Contributing
We welcome contributions! Please see our [Contributing Guide](CONTRIBUTING.md) for details.
## π License
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
---
**π Ready to supercharge your SFCC development with AI?**
**[π Get Started with the Full Documentation](https://taurgis.github.io/sfcc-dev-mcp/)**