The SFCC Development MCP Server provides comprehensive tools for Salesforce B2C Commerce Cloud (SFCC) development, offering AI assistants and developers structured access to documentation, best practices, system object definitions, and log analysis.
Core Capabilities:
• SFCC Documentation Access: Retrieve detailed class information (properties, methods, descriptions), search for classes/methods by name, access raw documentation, and view complete lists of available SFCC classes
• Best Practices Consultation: Access guides for cartridge creation, OCAPI/SCAPI hooks, SFRA controllers, custom endpoints, performance, and security; search across all guides for specific topics; view detailed reference tables for hook endpoints and extension points
• System Object Definitions (requires OAuth credentials): Explore system objects (Product, Customer, Order), retrieve detailed attribute definitions including custom attributes and constraints, search site preferences across sites and preference groups, and discover attribute categories
• Log Analysis (requires credentials): Retrieve latest error/warning/info messages, get log activity summaries, search for specific patterns, and list available log files with metadata
• AI Assistant Enhancement: Provides structured data to improve AI accuracy and reduce hallucination for SFCC development tasks
Configuration Options: Supports documentation-only mode (no credentials required) and full mode (with SFCC credentials for advanced log analysis and system object features).
Provides comprehensive tools for Salesforce B2C Commerce Cloud (SFCC) development including log analysis and monitoring, SFCC API documentation querying, system object definitions access, and best practices guides for OCAPI hooks, SCAPI hooks, SFRA controllers, and custom endpoints
SFCC Development MCP Server
An AI-powered Model Context Protocol (MCP) server that provides comprehensive access to Salesforce B2C Commerce Cloud development tools, documentation, and best practices.
✨ Key Features
- 🔍 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
🚀 Quick Start
Option 1: Documentation-Only Mode (No SFCC credentials needed)
Option 2: Full Mode (With SFCC credentials for log analysis)
Create a dw.json
file with your SFCC credentials:
🎯 Operating Modes
Mode | Tools Available | SFCC Credentials Required |
---|---|---|
Documentation-Only | 15 tools | ❌ No |
Full Mode | 30 tools | ✅ Yes |
Documentation-Only Mode
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)
Full Mode
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)
🤖 AI Interface Setup
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 |
📦 Installation
Using npx (Recommended)
Global Installation
🐛 Debug Mode & Logging
Enable Debug Logging
Log File Locations
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
Finding Your Log Directory
🧑💻 "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
hybrid server
The server is able to function both locally and remotely, depending on the configuration or use case.
Tools
Provides comprehensive access to Salesforce B2C Commerce Cloud development tools including SFCC API documentation, best practices guides, log analysis, and system object definitions. Enables AI assistants to help with SFCC development tasks through both documentation-only mode and full credential-based mode.
- ✨ Key Features
- 🚀 Quick Start
- 🎯 Operating Modes
- 🤖 AI Interface Setup
- 📦 Installation
- 🐛 Debug Mode & Logging
Related Resources
Related MCP Servers
- AsecurityFlicenseAqualityExposes Salesforce CLI functionality to LLM tools like Claude Desktop, allowing AI agents to execute Salesforce commands, manage orgs, deploy code, and query data through natural language.Last updated -529632
- AsecurityAlicenseAqualityProvides offline access to SAP documentation and real-time SAP Community content, integrating official documentation with community-driven solutions for comprehensive developer support.Last updated -553Apache 2.0
- -securityAlicense-qualityAn MCP server implementation that integrates Claude/VS Code with Salesforce, enabling natural language interactions with your Salesforce data and metadata.Last updated -MIT License
- AsecurityAlicenseAqualityProvides professional UI/UX design expertise and frontend development tools for analyzing interfaces, generating design systems, and creating modern components with accessibility and best practices built-in. Supports React, Vue, Angular and other frameworks with seamless Claude Code CLI integration.Last updated -42MIT License