Skip to main content
Glama

hybris-mcp-lite

hybris-mcp-lite

A read-only MCP server that lets Claude (or any MCP client) look inside a local SAP Commerce (Hybris) instance through HAC, in plain language.

Local/dev only. Not for production.

Why

HAC is useful, but it is a lot of tabs and forms when you just want a quick answer. This server exposes a small set of read-only HAC features as MCP tools, so you can ask about types, beans, config, cronjobs, logs and FlexibleSearch from your editor or chat client and stay where you are.

Related MCP server: branchlift

Example prompts

  • "What attributes does Product have, and which of them are localized?"

  • "Which cronjobs failed recently?"

  • "Show me the value of catalog.sync.workers."

  • "Find the 10 most recently modified products in the Staged catalog."

  • "Tail the last 200 log lines and show me only the errors."

Tools

Tool

What it does

flexible_search

Run a FlexibleSearch query, or translate it to SQL with translate=true. Capped at 200 rows.

type_info

Attributes, deployment table and subtypes of a type from the type system.

beans_info

Implementation class and aliases of a Spring bean.

config_get

Read one property or all properties. Values of keys matching pass/secret/token/key/credential are masked as ****.

logs_tail

Tail the local console log (1 to 2000 lines), with an optional regex filter.

monitoring_info

Memory, threads, thread dump, cache or cluster diagnostics.

cronjob

list cronjobs or get the status of one by code. No trigger or abort.

Quick start

git clone https://github.com/andreescocard/hybris-mcp-lite.git
cd hybris-mcp-lite
npm install
npm run build

Then register the server with your client. You need a running local HAC and a HAC user.

Claude Code

claude mcp add hybris-hac-lite \
  -e HAC_URL=https://localhost:9002/hac -e HAC_USER=admin -e HAC_PASS=... \
  -e HAC_INSECURE_TLS=true -e HAC_LOG_PATH=/path/to/console.log \
  -- node /absolute/path/to/hybris-mcp-lite/dist/index.js

Claude Desktop

{
  "mcpServers": {
    "hybris-hac-lite": {
      "command": "node",
      "args": ["/absolute/path/to/hybris-mcp-lite/dist/index.js"],
      "env": {
        "HAC_URL": "https://localhost:9002/hac",
        "HAC_USER": "admin",
        "HAC_PASS": "your-local-password",
        "HAC_INSECURE_TLS": "true",
        "HAC_LOG_PATH": "/path/to/console.log"
      }
    }
  }
}

Configuration

Variable

Required

Description

HAC_URL

no

HAC base URL. Default https://localhost:9002/hac.

HAC_USER

yes

HAC user.

HAC_PASS

yes

HAC password.

HAC_LOG_PATH

for logs_tail

Path to the local console log file.

HAC_TIMEOUT_MS

no

Request timeout in ms. Default 30000.

HAC_INSECURE_TLS

no

Set to true to accept self-signed certificates (typical for local HAC). Off by default.

HAC_ALLOW_REMOTE

no

Set to true to allow a HAC_URL that is not a private host. See below.

Safety by design

  • Read-only tool set. There is no Groovy console, ImpEx, SQL, system update, cache clear or reindex tool.

  • commit=false. The tools that go through HAC's scripting console always submit with commit=false, so HAC rolls back any write.

  • Config masking. config_get masks values of keys that look like secrets (pass, secret, token, key, credential).

  • Private-host guard. The server refuses a HAC_URL unless the host is localhost, 127.x, ::1, 10.x, 172.16-31.x, 192.168.x, *.local or *.localhost. HAC_ALLOW_REMOTE=true overrides this.

  • Opt-in insecure TLS. Certificate checks are only disabled when you set HAC_INSECURE_TLS=true.

One caveat: masking applies to config_get only. Output from logs_tail and monitoring_info (including thread dumps) is not masked and may contain sensitive data. Anything a tool returns is sent to your MCP client and its model.

Development

npm test        # unit tests
npm run smoke   # runs every tool against the HAC in your env vars

Disclaimer

Intended for local and development instances only, not for production. Provided as is, with no warranty.

SAP Commerce and Hybris are trademarks of SAP SE. This project is not affiliated with or endorsed by SAP.

License

MIT

Author

André Escocard, LinkedIn.

Available Tools

7 tools
beans_infoB

Read-only. Return Spring bean implementation and aliases using the HAC application context.

Inputs: name (required).

config_getA

Read-only. Return a configuration property by key, or all visible keys when key is omitted. Values of keys matching pass/secret/token/key/credential are masked.

Inputs: key.

cronjobB

Read-only. List cronjobs (action=list) or return the status of one by code (action=status).

Inputs: code, action.

logs_tailB

Read-only. Tail the local SAP Commerce/HAC console log. Optional grep filters the tailed source lines.

Inputs: grep, lines.

monitoring_infoA

Read-only. Return cluster, memory, threads, cache, or thread-dump diagnostics via tenant-safe Groovy.

Inputs: section.

type_infoB

Read-only. Return SAP Commerce type attributes, deployment data, and subtypes via a tenant-safe Groovy template.

Inputs: type (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.6/5.0

    Scored across 7 tools

    Disambiguation5/5

    Each tool targets a clearly distinct diagnostic resource: FlexibleSearch queries, console logs, type metadata, configuration properties, Spring beans, monitoring diagnostics, and cronjobs. There is no meaningful overlap in purpose, so an agent can reliably select the right tool.

    Naming Consistency4/5

    Most tools follow a consistent snake_case resource-oriented pattern (flexible_search, logs_tail, type_info, config_get, beans_info, monitoring_info). The only notable deviation is the bare noun 'cronjob', which is still readable but breaks the pattern slightly.

    Tool Count5/5

    Seven tools is well-scoped for a lightweight read-only SAP Commerce/HAC diagnostic server. Each tool covers a distinct operational area and earns its place without redundancy.

    Completeness4/5

    The tool set covers the core read-only diagnostic surface: querying, logs, type metadata, config, beans, monitoring, and cronjobs. Minor gaps exist around broader extension/package inspection or more granular cronjob operations, but these are reasonable omissions for a 'lite' read-only server.

    Maintenance

    ActivitySlowing
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      B
      maintenance
      A secure, local-first MCP server for read-only inspection and troubleshooting of development environments, exposing narrow, typed, auditable capabilities for repository inspection, log summarization, Docker review, and security scanning without granting unrestricted machine access.
      8
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables local MCP access to attach to isolated backend environments, monitor runtime health/logs, check security posture, manage snapshots and diffs, audit events, and view sanitized remote inventory.
      4 npm
      Apache 2.0
    • F
      license
      Not graded
      quality
      D
      maintenance
      Provides read-only inspection of Cloudflare account resources, including zones, DNS records, Workers, Pages projects, R2 buckets, and Tunnels, via a secure MCP endpoint.
      -
    • A
      license
      Not graded
      quality
      B
      maintenance
      Read-only MCP server that lets clients discover and explore Oracle EPM Planning / NSPB applications, including metadata, substitution variables, targeted data slices, existing-job inspection, and sanitized connection status, while job and business-rule execution stay disabled.
      GPL 3.0