sfcc-logs-mcp
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@sfcc-logs-mcptail the latest error logs for the current SFCC instance"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
๐ Salesforce Commerce Cloud (SFCC) Logs MCP Server
A production-grade Model Context Protocol (MCP) server that enables AI coding assistants (Claude Desktop, Cursor, Gemini, Claude Code, VS Code Copilot, Windsurf, etc.) to query, tail, search, analyze, and clean Salesforce Commerce Cloud (SFCC / Demandware) logs in real-time over standard I/O (stdio).
โจ Key Features
๐ Context-Aware Dynamic Workspace Resolution: Automatically detects the active workspace folder sent during the MCP initialization handshake and walks up the directory tree to find
dw.jsonor.env. Switch between client projects or sandbox environments seamlessly without restarting your MCP server or changing settings.โก Bandwidth-Optimized Range Chunking: Uses HTTP
Rangeheaders (bytes=-1MB) over WebDAV to fetch only the trailing chunk of huge log files. Tail multi-gigabyte production logs in milliseconds with minimal bandwidth consumption.๐ Multi-File Search & Filtering: Perform case-insensitive regex/text searches across multiple log files filtered by log level (
error,warn,info,debug) or target date (YYYYMMDDortoday).โฑ๏ธ SFCC Background Job Analytics: Dedicated toolset to inspect cron job logs (
job-*), filter entries by severity, and parse step boundaries to construct visual execution timelines (RUNNING,OK,ERROR).๐ Statistical Log Volume Summaries: Generate high-level audits breaking down active log volume, category distributions, file counts, and newest active files for any given date.
๐งน Log Sanitization: Clean or reset active log files directly from chat to isolate freshly reproduced bugs.
Related MCP server: Local Logs MCP Server
๐ฆ Installation
Global Installation (Recommended)
Install globally to make the sfcc-logs-mcp binary available everywhere in your PATH:
npm install -g sfcc-logs-mcpOnce installed globally, you can run:
sfcc-logs-mcp
# or shorthand alias
sfcc-logsRun on Demand (npx)
npx sfcc-logs-mcp๐ Authentication & Credential Discovery
The server resolves credentials in the following order of priority:
1. dw.json (Standard SFCC Tooling Config)
Place a dw.json file in your workspace root (or any parent directory):
{
"hostname": "your-sandbox.demandware.net",
"username": "your_webdav_username",
"password": "your_webdav_password",
"webdav_path": "/on/demandware.servlet/webdav/Sites/Logs"
}2. .env File
Alternatively, define credentials in a local .env file in your project folder:
SFCC_SERVER=your-sandbox.demandware.net
SFCC_USERNAME=your_webdav_username
SFCC_PASSWORD=your_webdav_password
SFCC_WEBDAV_PATH=/on/demandware.servlet/webdav/Sites/Logs3. Environment Variables
Set system environment variables for static single-instance configurations:
DW_WEBDAV_USERNAME=your_webdav_username
DW_WEBDAV_PASSWORD=your_webdav_password
SFCC_SERVER=your-sandbox.demandware.net๐ ๏ธ MCP Tools Reference
Tool Name | Description | Arguments |
| List all available log files or return the last |
|
| Clean/reset an active log file by replacing it with a timestamped cleared marker. |
|
| Fetch the newest error logs for |
|
| Fetch the newest warning logs for |
|
| Fetch the newest info logs for |
|
| Fetch the newest debug logs for |
|
| Generate a statistical breakdown of log categories, file counts, and sizes. |
|
| Search across multiple log files matching level/date for a text pattern. |
|
| List background cron job log files ( |
|
| Filter background job logs strictly by Job ID/name (e.g. |
|
| Retrieve trailing log entries inside a job log, optionally filtered by severity. |
|
| Search for a text pattern strictly within background job logs. |
|
| Parses job step boundaries to return structured execution timeline & status ( |
|
๐ Connecting to AI Clients
Claude Desktop
Add to your claude_desktop_config.json:
macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"sfcc-logs": {
"command": "sfcc-logs-mcp"
}
}
}Cursor IDE
Add to .cursor/mcp.json in your workspace or global Cursor settings:
{
"mcpServers": {
"sfcc-logs": {
"command": "sfcc-logs-mcp"
}
}
}Windsurf / VS Code / Other MCP Clients
Configure the stdio server using the globally installed binary:
{
"mcpServers": {
"sfcc-logs": {
"command": "npx",
"args": ["-y", "sfcc-logs-mcp"]
}
}
}๐งช Testing with MCP Inspector
You can test and verify all tools interactively using the official @modelcontextprotocol/inspector:
# 1. Interactive Web UI
npx @modelcontextprotocol/inspector sfcc-logs-mcp
# 2. CLI Mode (List tools)
npx @modelcontextprotocol/inspector --cli sfcc-logs-mcp --method tools/list
# 3. CLI Mode (Call a tool)
npx @modelcontextprotocol/inspector --cli sfcc-logs-mcp --method tools/call --tool-name get_latest_error
# 4. Interactive Terminal UI (TUI)
npx @modelcontextprotocol/inspector --tui sfcc-logs-mcp๐จโ๐ป Development & Contributing
# Clone the repository
git clone https://github.com/nabhat/sfcc-logs-mcp.git
cd sfcc-logs-mcp
# Install dependencies
npm install
# Run unit tests with Vitest & coverage
npm run test
# Lint the codebase
npm run lint
# Compile TypeScript
npm run build๐ License
This project is licensed under the MIT License - see the LICENSE.txt file for details.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseAqualityCmaintenanceProvides 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.1557427MIT
- AlicenseAqualityDmaintenanceEnables monitoring and analysis of local application log files with real-time tailing, error tracking, and search capabilities. Perfect for debugging Node.js applications, web servers, or any application that writes to log files through natural language commands.66MIT
- AlicenseAqualityCmaintenanceEnables AI assistants to automatically inspect and analyze application runtime log files for debugging and troubleshooting. Supports monitoring multiple log directories simultaneously with tools for listing, reading, searching, and paginating through log files.8MIT
- AlicenseNot gradedqualityDmaintenanceProvides AI coding agents with tools to query, search, and analyze persisted HTTP request logs, enabling efficient debugging without terminal noise.MIT
Related MCP Connectors
Securely search and manage workspace context files for AI agents and teams.
Cross-agent artifact workspace with provenance across Claude Code, Codex, Cursor, LangGraph.
Shared debugging memory for AI coding agents
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/nabhat/sfcc-logs-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server