SAP Commerce Cloud MCP Server
Integrates with SAP Commerce Cloud (Hybris) via HAC and OCC APIs, enabling AI assistants to manage products and categories, view orders, run FlexibleSearch queries and Groovy scripts, import/export ImpEx data, list and trigger cron jobs, clear caches, trigger catalog synchronization, and monitor system health.
Click on "Deploy 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., "@SAP Commerce Cloud MCP Server list the 20 most recent orders and their current status"
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.
SAP Commerce Cloud MCP Server
MCP (Model Context Protocol) server for SAP Commerce Cloud (Hybris) integration. Lets AI assistants (Cursor, Claude, and others) talk to your Commerce instance via HAC and OCC.
Maintained by Punit Kumar · based on the original work by Dawid Michałowicz
Features
Product Management: Search products, get product details, browse categories
Order Management: View orders and order details
FlexibleSearch: Execute FlexibleSearch queries directly
Groovy Scripts: Run Groovy scripts via the scripting console
ImpEx: Import and export data using ImpEx format
Cron Jobs: List and trigger cron jobs
Cache Management: Clear Hybris caches
Catalog Sync: Trigger catalog synchronization
Health Checks: Monitor system health
Extras in this fork
Hourly core_cbus order step-timings report (Groovy + CronJob ImpEx + S3/email) — see
docs/core-cbus-order-step-timings-hourly.mdHelper Node scripts under
scripts/for exports and maintenance (credentials via env / local MCP config)Project docs and diagrams under
docs/
Related MCP server: Hybris MCP Server
Installation
git clone https://github.com/punitdwivedi/sap-commerce-cloud-mcp.git
cd sap-commerce-cloud-mcp
npm install
npm run buildConfiguration
Configure via environment variables:
Variable | Required | Description | Default |
| Yes | Base URL of your Hybris instance | - |
| Yes | Admin username (HAC access required) | - |
| Yes | Admin password | - |
| No | OCC base site ID |
|
| No | Product catalog ID |
|
| No | Catalog version |
|
| No | HAC path prefix |
|
Common Configurations
Standard Hybris (localhost):
HYBRIS_BASE_URL=https://localhost:9002
HYBRIS_USERNAME=admin
HYBRIS_PASSWORD=nimdaSAP Commerce Cloud (CCv2):
HYBRIS_BASE_URL=https://backoffice.your-environment.model-t.cc.commerce.ondemand.com
HYBRIS_USERNAME=admin
HYBRIS_PASSWORD=your-password
HYBRIS_HAC_PATH=/hacCustom Site Configuration:
HYBRIS_BASE_URL=https://localhost:9002
HYBRIS_USERNAME=admin
HYBRIS_PASSWORD=nimda
HYBRIS_BASE_SITE_ID=yoursite
HYBRIS_CATALOG_ID=yourProductCatalog
HYBRIS_CATALOG_VERSION=OnlineUsage with Claude Code
Add the MCP server using the CLI:
claude mcp add hybris \
-e HYBRIS_BASE_URL=https://localhost:9002 \
-e HYBRIS_USERNAME=admin \
-e HYBRIS_PASSWORD=nimda \
-- node /path/to/sap-commerce-cloud-mcp/dist/index.jsOr manually add to your Claude Code MCP settings (~/.claude.json or project config):
{
"mcpServers": {
"hybris": {
"type": "stdio",
"command": "node",
"args": ["/path/to/sap-commerce-cloud-mcp/dist/index.js"],
"env": {
"HYBRIS_BASE_URL": "https://localhost:9002",
"HYBRIS_USERNAME": "admin",
"HYBRIS_PASSWORD": "nimda"
}
}
}
}Usage with Claude Desktop
Add to your Claude Desktop configuration (~/Library/Application Support/Claude/claude_desktop_config.json on macOS):
{
"mcpServers": {
"hybris": {
"command": "node",
"args": ["/path/to/sap-commerce-cloud-mcp/dist/index.js"],
"env": {
"HYBRIS_BASE_URL": "https://localhost:9002",
"HYBRIS_USERNAME": "admin",
"HYBRIS_PASSWORD": "nimda"
}
}
}
}Usage with Cursor
Add to your Cursor MCP configuration (~/.cursor/mcp.json):
{
"mcpServers": {
"hybris": {
"command": "node",
"args": ["/path/to/sap-commerce-cloud-mcp/dist/index.js"],
"env": {
"HYBRIS_BASE_URL": "https://localhost:9002",
"HYBRIS_USERNAME": "admin",
"HYBRIS_PASSWORD": "nimda"
}
}
}
}Usage with Windsurf
Add to your Windsurf MCP configuration (~/.codeium/windsurf/mcp_config.json):
{
"mcpServers": {
"hybris": {
"command": "node",
"args": ["/path/to/sap-commerce-cloud-mcp/dist/index.js"],
"env": {
"HYBRIS_BASE_URL": "https://localhost:9002",
"HYBRIS_USERNAME": "admin",
"HYBRIS_PASSWORD": "nimda"
}
}
}
}Usage with VS Code (Copilot/Continue/Cline)
For VS Code extensions that support MCP, add to your workspace .vscode/mcp.json:
{
"servers": {
"hybris": {
"command": "node",
"args": ["/path/to/sap-commerce-cloud-mcp/dist/index.js"],
"env": {
"HYBRIS_BASE_URL": "https://localhost:9002",
"HYBRIS_USERNAME": "admin",
"HYBRIS_PASSWORD": "nimda"
}
}
}
}Usage with Zed
Add to your Zed settings (~/.config/zed/settings.json):
{
"context_servers": {
"hybris": {
"command": {
"path": "node",
"args": ["/path/to/sap-commerce-cloud-mcp/dist/index.js"],
"env": {
"HYBRIS_BASE_URL": "https://localhost:9002",
"HYBRIS_USERNAME": "admin",
"HYBRIS_PASSWORD": "nimda"
}
}
}
}
}Usage with JetBrains IDEs
For IntelliJ IDEA, WebStorm, PyCharm, and other JetBrains IDEs with AI Assistant, add to your MCP configuration:
macOS/Linux: ~/.config/JetBrains/mcp.json
Windows: %APPDATA%\JetBrains\mcp.json
{
"mcpServers": {
"hybris": {
"command": "node",
"args": ["/path/to/sap-commerce-cloud-mcp/dist/index.js"],
"env": {
"HYBRIS_BASE_URL": "https://localhost:9002",
"HYBRIS_USERNAME": "admin",
"HYBRIS_PASSWORD": "nimda"
}
}
}
}Usage with Sourcegraph Cody
Add to your Cody MCP configuration (~/.config/cody/mcp.json):
{
"mcpServers": {
"hybris": {
"command": "node",
"args": ["/path/to/sap-commerce-cloud-mcp/dist/index.js"],
"env": {
"HYBRIS_BASE_URL": "https://localhost:9002",
"HYBRIS_USERNAME": "admin",
"HYBRIS_PASSWORD": "nimda"
}
}
}
}Usage with Raycast
Add to your Raycast AI extension MCP settings (~/.config/raycast/mcp.json):
{
"mcpServers": {
"hybris": {
"command": "node",
"args": ["/path/to/sap-commerce-cloud-mcp/dist/index.js"],
"env": {
"HYBRIS_BASE_URL": "https://localhost:9002",
"HYBRIS_USERNAME": "admin",
"HYBRIS_PASSWORD": "nimda"
}
}
}
}Generic MCP Configuration
For any other MCP-compatible client, the server uses stdio transport. Run with:
node /path/to/sap-commerce-cloud-mcp/dist/index.jsRequired environment variables:
HYBRIS_BASE_URLHYBRIS_USERNAMEHYBRIS_PASSWORD
Available Tools
Administration (HAC) - Full Support
All HAC-based tools work reliably with Basic authentication:
Tool | Description |
| Execute FlexibleSearch queries |
| Run Groovy scripts |
| Import ImpEx data |
| Export data to ImpEx format |
| List cron jobs and their status |
| Trigger a cron job to run |
| Clear Hybris caches |
| Get system information |
| Sync catalog versions |
Product & Catalog (OCC API)
Tool | Description | Notes |
| Check system health | Always works |
| Get detailed product information by code | Works with Basic auth |
| Get category details by code | Works with Basic auth |
| Search for products in the catalog | Requires Solr indexing* |
| List all categories in the catalog | Endpoint may not be exposed* |
Orders (OCC API)
Tool | Description | Notes |
| Get orders for a user | Requires OAuth* |
| Get specific order details | Requires OAuth* |
*See Known Limitations below.
Example Prompts
Search Products
Search for "camera" products in HybrisFlexibleSearch
Run a FlexibleSearch query: SELECT {pk}, {code}, {name[en]} FROM {Product} WHERE {code} LIKE '%camera%'Execute Groovy
Execute this Groovy script to count products:
import de.hybris.platform.core.Registry
def ctx = Registry.getApplicationContext()
def flexibleSearchService = ctx.getBean("flexibleSearchService")
def query = "SELECT COUNT(*) FROM {Product}"
def result = flexibleSearchService.search(query)
println "Total products: ${result.result[0]}"Import ImpEx
Import this ImpEx to create a product:
INSERT_UPDATE Product; code[unique=true]; name[lang=en]; catalogVersion(catalog(id),version)
; testProduct001 ; Test Product ; electronicsProductCatalog:OnlineTrigger Catalog Sync
Sync the electronics catalog from Staged to OnlineKnown Limitations
OCC Order Endpoints Require OAuth
The get_orders and get_order tools require OAuth user authentication, not just Basic auth. These endpoints need a user-specific OAuth token obtained via the password grant flow:
POST /authorizationserver/oauth/token
Content-Type: application/x-www-form-urlencoded
grant_type=password&username=user@example.com&password=secret&client_id=mobile_android&client_secret=secretWorkaround: Use flexible_search to query orders directly:
SELECT {pk}, {code}, {user}, {totalPrice} FROM {Order} WHERE {user} = ?userProduct Search Requires Solr
The search_products tool uses the OCC search endpoint which requires Solr indexing. If your instance uses a different search provider (e.g., Algolia), this endpoint may return empty results.
Workaround: Use flexible_search to query products:
SELECT {pk}, {code}, {name[en]} FROM {Product} WHERE {name[en]} LIKE '%search_term%'Categories Endpoint May Not Be Exposed
The get_categories tool uses an OCC endpoint that may not be exposed in all Hybris configurations.
Workaround: Use flexible_search to query categories:
SELECT {pk}, {code}, {name[en]} FROM {Category} WHERE {catalogVersion} IN (
{{ SELECT {pk} FROM {CatalogVersion} WHERE {version} = 'Online' }}
)Security Notes
Store credentials securely - never commit them to version control
Use environment variables or secure secret management
The server requires HAC admin access for administrative tools
Consider using read-only credentials if you only need OCC API access
Security Considerations
This MCP server provides powerful administrative access to your Hybris instance:
FlexibleSearch: Can query any data including sensitive tables (users, passwords, tokens)
Groovy Scripts: Execute arbitrary code with full system access (file system, network, processes)
ImpEx: Can modify any data in the system including user accounts and permissions
Recommendations:
Use dedicated service accounts with minimal required permissions
Enable audit logging on your Hybris instance to track all operations
Never expose the MCP server to untrusted networks or users
Review all Groovy scripts before execution in production environments
Consider network segmentation to restrict access to HAC endpoints
Development
# Watch mode for development
npm run dev
# Build
npm run build
# Run directly
HYBRIS_BASE_URL=https://localhost:9002 \
HYBRIS_USERNAME=admin \
HYBRIS_PASSWORD=nimda \
npm startTroubleshooting
Connection Issues
Verify your Hybris instance is running and accessible
Check if HAC is enabled and accessible at the configured path
Ensure credentials have admin access to HAC
SSL Certificate Errors
For local development with self-signed certificates:
NODE_TLS_REJECT_UNAUTHORIZED=0 node dist/index.jsWARNING: Never use
NODE_TLS_REJECT_UNAUTHORIZED=0in production environments. This disables TLS certificate validation and exposes you to man-in-the-middle attacks. For production, configure proper SSL certificates.
CSRF Token Errors
The server handles CSRF tokens automatically. If you see CSRF errors:
Check that HAC login is working manually
Verify the HAC path is correct
Try restarting the MCP server to get a fresh session
License
MIT — see LICENSE. Copyright © 2025 Dawid Michałowicz; additional contributions © 2026 Punit Kumar.
Available Tools
16 toolsclear_cacheC
Clear the Hybris cache
Inputs: cacheType.
execute_groovyC
Execute a Groovy script in the Hybris scripting console
Inputs: script (required), commit.
export_impexC
Export data to ImpEx format using a FlexibleSearch query
Inputs: flexQuery (required).
flexible_searchC
Execute a FlexibleSearch query against the Hybris database. Use FlexibleSearch syntax.
Inputs: query (required), maxCount.
get_categoriesB
Get the category tree from the product catalog
Inputs: no named parameters.
get_categoryC
Get details about a specific category
Inputs: categoryCode (required).
get_cronjobsB
List all cron jobs and their status
Inputs: no named parameters.
get_orderC
Get details of a specific order
Inputs: userId (required), orderCode (required).
get_ordersC
Get orders for a specific user
Inputs: userId (required).
get_productC
Get detailed information about a specific product by its code
Inputs: productCode (required).
get_system_infoB
Get Hybris system information and health status
Inputs: no named parameters.
health_checkB
Check if the Hybris instance is healthy and reachable
Inputs: no named parameters.
import_impexC
Import data using ImpEx format
Inputs: impexContent (required).
search_productsC
Search for products in the Hybris catalog using a query string
Inputs: query (required), pageSize, currentPage.
trigger_catalog_syncC
Trigger a catalog synchronization between versions
Inputs: catalogId (required), sourceVersion (required), targetVersion (required).
trigger_cronjobC
Trigger a cron job to run
Inputs: cronJobCode (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 16 tools
Most tools have clearly distinct resource+action targets (product search/get, category tree/detail, order list/detail, cron job list/trigger). The main overlap is get_system_info vs health_check, which both describe system health/status and could easily be confused; raw flexible_search also partially overlaps with search_products.
The dominant pattern is snake_case verb_noun (search_products, get_order, trigger_cronjob, clear_cache), used consistently across most tools. Two tools deviate by dropping the verb (flexible_search, health_check), but overall the convention remains predictable.
16 tools is slightly above the ideal 3-15 range but each maps to a recognizable Hybris capability (catalog, orders, scripting, ImpEx, cron, cache, health). The surface feels scoped to an admin/inspection server rather than padded.
The read/admin surface is solid, but write operations are sparse: products cannot be created or updated, orders are read-only, and there is no customer/user or site/store management. Agents needing CRUD on core commerce entities would hit dead ends beyond FlexibleSearch/Groovy workarounds.
Maintenance
Related MCP Connectors
Manage your Savanto store from your AI: catalog, content, prompts, and analytics, by chat.
Run your Zepsell store from AI: sales, orders, products, stock, customers and discount codes.
Connect AI assistants to your Webanto workspace to review products and copy proposals, explore SEO and imported Search Console opportunities, and search organization knowledge. Inspect workspace capabilities, connection health, usage, and supported operations. Access requires OAuth or a scoped Webanto API key and follows the authorized organization, permissions, and scopes. With separate consent for the applicable paid AI operation, create a product copy proposal and track its job for review; this workflow does not publish changes to your store. A Webanto account and the relevant connected services or uploaded knowledge are required. Paid AI operations require the applicable subscription and available credits. Authentication is required for MCP discovery; an anonymous HTTP 401 is an access challenge, not evidence of a service outage. Official connector repository: https://github.com/empline/webanto-mcp. Support: support@webanto.com.
Connect AI to store orders, products and inventory with scoped access and human approvals.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables interaction with SAP Commerce systems through OCC APIs, supporting product discovery, cart management, customer support operations, and store information retrieval. Provides both local and remote connectivity options for AI agents to perform e-commerce tasks.MIT
- AlicenseBqualityCmaintenanceEnables AI assistants to interact with SAP Commerce Cloud (Hybris) instances for product management, order viewing, FlexibleSearch queries, Groovy script execution, ImpEx operations, and system administration tasks.1617MIT
- FlicenseBqualityCmaintenanceEnables AI assistants to interact with SAP Commerce Cloud (Hybris) instances to manage products, orders, and system configurations. It supports advanced operations like FlexibleSearch queries, Groovy script execution, and ImpEx data management.16-
- FlicenseNot gradedqualityBmaintenanceProvides AI assistants with programmatic access to SAP Commerce Cloud's Hybris Administration Console (HAC), enabling automated FlexibleSearch queries, ImpEx imports, Groovy script execution, and system administration across multiple environments with fine-grained permissions.46 npm2-