SAP Cloud Connector MCP
Provides tools for interacting with SAP Cloud Connector configuration and monitoring, including inspecting subaccounts, virtual-to-internal system mappings, allowed resources, domain mappings, service channels, tunnel status, certificates, and performance metrics. Optional write tools can create, update, and delete supported configuration when explicitly enabled.
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 Cloud Connector MCP show me the tunnel status for my subaccounts"
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 Cloud Connector MCP
A local Model Context Protocol server for SAP Cloud Connector configuration and monitoring. Inspect subaccounts, virtual-to-internal mappings, allowed resources, tunnel status, certificates and performance. Optional create/update/delete tools are disabled until explicitly enabled in server configuration.
Independent project. Not affiliated with, endorsed by, or supported by SAP. SAP and SAP Cloud Connector are trademarks of SAP SE. MIT licensed.
Status: initial implementation. Automated tests exercise HTTPS and the MCP stdio protocol using generated certificates and synthetic data. Compatibility with a specific Cloud Connector version, authentication setup and user role must be verified separately. No package or hosted service is required.
Requirements
Node.js 22.14 or later and npm.
Network access to your Cloud Connector's administration HTTPS origin, usually port 8443. A local VPN may be required.
An existing Cloud Connector account with permission to read the required APIs. Basic authentication is supported; client-certificate-only and interactive SSO authentication are not implemented.
A certificate chain trusted by Node, or the issuing CA in
SCC_CA_FILE.
Configuration reads generally accept Display (sccdisplay) and other roles listed by SAP. Monitoring datasets generally require Monitoring (sccmonitoring) or Administrator (sccadmin). With LDAP, assign only the roles needed; a Monitoring-only account may not read all configuration APIs. The default local user store provides only Administrator. Write APIs require an appropriate administration role in SAP and a master connector instance, in addition to explicit enablement in this server.
Related MCP server: hybris-mcp-lite
Install from source
In a checkout of this repository:
npm ci
npm run build
npm testThe executable is dist/index.js. node dist/index.js --version works without credentials. npm start runs an MCP stdio process and waits for a client; it is not an interactive chat application. For MCP registration, invoke node directly so npm banners do not interfere with the protocol.
Configure an MCP client
Set the following environment variables on the server process. Credentials are supplied at startup, never as tool arguments. No environment files are automatically loaded.
Variable | Meaning |
| Required HTTPS origin, e.g. |
| Required Cloud Connector username. |
| Password injected by the host or a secret manager. Mutually exclusive with |
| Absolute path to a password-only UTF-8 file, as an alternative to |
| Optional absolute path to a PEM bundle of trusted issuing CA certificates. Replaces the default CA trust for these requests. |
| Optional, defaults to |
| Optional, defaults to |
| Optional absolute path to private JSON BTP onboarding credentials, required only to create a subaccount. See below. |
| Absolute per-call deadline, including DNS/TLS/body reads. Default 15000, range 100–120000. |
| Maximum response size. Default 2097152 (2 MiB), range 1024–16777216. |
Generic stdio client configuration (adapt the configuration location to your host):
{
"mcpServers": {
"sap-cloud-connector": {
"command": "node",
"args": ["/absolute/path/sap-cloud-connector-mcp/dist/index.js"],
"env": {
"SCC_BASE_URL": "https://connector.example.com:8443",
"SCC_USERNAME": "monitoring-user",
"SCC_PASSWORD_FILE": "/absolute/private/path/scc-password.txt",
"SCC_CA_FILE": "/absolute/path/enterprise-ca.pem"
}
}
}
}On Windows, use forward slashes or JSON-escaped backslashes in absolute paths. Remove SCC_CA_FILE if Node already trusts the certificate. Use your MCP host's environment/secret forwarding settings for SCC_PASSWORD when available. Do not commit a populated client configuration or password file. A password file is plaintext, not a secret vault; the server does not manage its permissions or encryption. Environment variables also remain accessible to the user/processes with sufficient OS privileges.
For several connectors, create separate MCP entries with separate origins and credentials. Tools cannot change the configured origin or select credentials.
Enter and store credentials on Windows
In PowerShell 7, run this from the repository directory:
.\scripts\Save-Credentials.ps1Enter the Cloud Connector administration username and password at the prompts. The password is masked and saved using Windows user-scoped DPAPI in %LOCALAPPDATA%\SapCloudConnectorMcp\credentials\default.xml. It can be decrypted only by the same Windows account on the same machine. The helper restricts its credential directory to the current user. It does not contact SAP or enable writes. Run with -Profile another-name for another saved credential; use -Force explicitly to replace a profile.
Configure your MCP host to use the credential launcher:
{
"mcpServers": {
"sap-cloud-connector": {
"command": "pwsh",
"args": [
"-NoProfile", "-NonInteractive", "-File",
"C:/path/sap-cloud-connector-mcp/scripts/Start-Mcp.ps1",
"-BaseUrl", "https://connector.example.com:8443",
"-Profile", "default"
],
"env": {
"SCC_ENABLE_WRITES": "false"
}
}
}
}Use the absolute path to pwsh.exe if your host cannot find it. The host must preserve LOCALAPPDATA for the saved profile. The launcher resolves node.exe directly, avoiding npm shell shims; optionally pass -NodePath C:/path/to/node.exe to select a specific runtime. Add SCC_CA_FILE when a private issuing CA is needed. The launcher decrypts the password only for the child MCP process, keeps stdout reserved for the protocol and restores its credential environment on exit. Plaintext still necessarily exists in process memory. The generic Node configuration above remains available on Windows and other platforms.
Tools
By default, the following 12 read tools are exposed, each backed by a fixed GET route. The client revalidates its arguments before issuing the request. With SCC_ENABLE_WRITES=true, 12 additional write tools are exposed as described below. There is no arbitrary URL/method/body tool, bulk delete, restart, backup, credential-change, certificate-import or test-message operation.
Tool | Input | Purpose |
| none | Installed connector version; 2.14+. |
| none | Description and master/shadow role. |
| none | Configured region hosts, subaccount IDs and location IDs. |
|
| Configuration for one exact subaccount. |
|
| Virtual-to-internal system mappings. |
| Above plus | One exact mapping. |
| Same as mapping detail | Allowed HTTP/RFC resources and policies. |
|
| Domain mappings. |
|
| Configured channels of type |
|
| One of the monitoring datasets below. |
| none | HTTP service reachability only. |
| none | Whether this instance currently has the master role; 2.15+. |
Monitoring metrics: subaccounts, backend_connections, service_channel_connections, backend_performance, top_time_consumers, memory, disk, cpu, certificates, usage, alerts.
Most monitoring datasets require a master instance. Service-channel connection monitoring and K8S configuration listing require 2.15+, memory/certificates/usage require 2.13+, CPU/disk require 2.17+, and alerts require 2.19+. Other fields and service-channel types vary by SAP version. A 404 may mean an unsupported API or a missing target; the server does not infer which or silently hide the failure.
Call scc_list_subaccounts first and pass the returned regionHost and subaccount exactly. Read system mappings before requesting a mapping's resources; named RFC ports and TCP port ranges are accepted. The first release accepts DNS-style/IPv4 virtual host names, not IPv6 literals or arbitrary host characters.
Tool results contain operation, observedAt (UTC) and data, available as text and structured content. Credential-like properties and exact configured authentication strings are redacted recursively. Other response data is retained; it can contain internal hosts, users, paths or operational information. Tool errors contain sanitized codes/messages, never raw SAP error bodies. scc://api-catalog is an offline resource listing currently exposed tools, write enablement and monitoring metrics.
Example prompts:
“List the configured subaccounts and their current tunnel status.”
“Show the mapping and allowed resources for this virtual host.”
“Which connector certificates are expired or nearing expiry?”
A configured mapping is not proof of backend reachability. A connected tunnel or successful ping is not proof of a successful business transaction. The server does not probe backends or send business messages.
Enable create, update and delete
Set SCC_ENABLE_WRITES=true in the MCP server process configuration and restart the server. Merely using an SAP administrator account does not enable writes. A tool argument cannot enable writes. With writes disabled, these tools are hidden from discovery and direct client execution is also blocked before any network request.
Record | Create | Update | Delete |
System mapping |
|
|
|
Allowed resource |
|
|
|
Domain mapping |
|
|
|
Subaccount |
|
|
|
Service-channel configuration is currently read-only. Write payloads use explicit schemas; arbitrary fields and passwords in tool arguments are rejected. Mapping and resource updates use SAP PUT replacement semantics; optional settings you want retained must be included. Mapping host/port, resource ID and internal-domain keys are retained on update; use a separately reviewed delete/create if a key must change. Deleting a mapping removes its resources, and deleting a subaccount removes its associated configuration. Creating a subaccount also connects it, as defined by SAP.
Every write follows this flow:
Call the tool with its exact target and payload.
dryRundefaults totrue. The server reads the target and returns the existing record, proposed request, effects and a random confirmation token. This issues GET requests only.Show the complete preview to the user and obtain approval of the exact change.
Call the same tool with identical parameters,
dryRun: falseand the returnedconfirmationToken. The token is bound to the operation and arguments, expires after five minutes and can be consumed only once. It is lost on restart.The server rereads the target, rejects changes since preview, checks the master role, submits one POST/PUT/DELETE, then reads back the target to check the requested configuration or deletion.
A token is a technical guard, not proof that a human approved the change. The MCP host/client remains responsible for obtaining user approval. Snapshot checks reduce stale writes but are not an atomic lock against another administrator changing SAP between the check and submission. Subaccount snapshots cover parent settings, not every child configuration.
Example resource creation arguments (synthetic values):
{
"regionHost": "cf.example.com",
"subaccount": "sample-account",
"virtualHost": "virtual.example.com",
"virtualPort": "443",
"resourceId": "/example/status",
"payload": { "enabled": true, "exactMatchOnly": true },
"dryRun": true
}Execution results distinguish submitted from verification.status (passed, failed, or unavailable). Failed/unavailable verification is also an MCP tool error and must be inspected before another write. A timeout, interrupted response or server failure after submission may produce WRITE_UNCERTAIN; the server never retries automatically. Inspect the exact target before deciding what to do next. Verification covers configuration only, not tunnel connectivity or business outcomes.
Additional credentials for subaccount creation
Your local Cloud Connector login is separate from the BTP credentials needed to onboard a subaccount. To enable scc_create_subaccount, point SCC_SUBACCOUNT_AUTH_FILE to a private UTF-8 JSON file outside the repository:
{
"regionHost": "cf.example.com",
"subaccount": "sample-account",
"cloudUser": "btp-user@example.com",
"cloudPassword": "EXAMPLE_ONLY"
}These BTP credentials are usable only for the exact configured region and subaccount. They are inserted internally into SAP's create request and redacted from previews/results. This optional file is plaintext; protect it using OS permissions or provision it through your secret manager. It is not needed for mapping/resource/domain writes or subaccount edits/deletion. Newer authenticationData onboarding and service-channel writes are not implemented.
Authentication and CSRF
SAP documents two API modes: a retained session with a session cookie plus CSRF token, or stateless Basic requests with Connection: close. This server uses the latter on every GET. It does not import browser cookies, retain sessions, retrieve passwords from a browser, or require a CSRF token. This also avoids stale browser sessions and concurrent token refresh logic.
An HTTP 200 response with text/html is treated as authentication failure, not API success. Redirects are rejected rather than followed. TLS verification is enabled by default, including when a process-wide TLS environment variable attempts to disable it. Prefer a matching server certificate and trusted issuing CA.
For an explicitly trusted internal connector with certificate errors, set SCC_IGNORE_CERTIFICATE_ERRORS=true in that MCP entry's environment. The connection remains encrypted but the server's identity is not authenticated, so intercepted traffic could expose credentials or data. This setting applies only to this client's configured HTTPS origin; it does not modify the OS trust store or other clients. It does not enable writes. scc://api-catalog reports tlsVerificationEnabled, and live verification reports whether certificate verification was enabled or disabled.
Optional live verification
Live verification is separate from automated tests and is never run in CI. It reads all supported monitoring datasets, plus configuration and HANA service channels for the first returned subaccount and the first system mapping if present. It does not test every subaccount, channel type, protocol or mapping. Unsupported endpoints and insufficient permissions are reported as failures, not silently skipped successes.
On Windows, enter credentials into a private PowerShell prompt:
.\scripts\Test-Live.ps1 -BaseUrl https://connector.example.com:8443 -CaFile C:\private\enterprise-ca.pemThe script prompts for the username and masked password, passes the password through the child process environment, and restores the previous process environment afterward. It does not save the password. Omit -CaFile when Node already trusts the issuing CA. The password necessarily exists in process memory while the check runs.
On other platforms, inject the documented environment variables privately and run npm run verify:live. Do not put a real password in a command line or shell history.
The verifier starts the real MCP stdio server and calls it with the official MCP client. It explicitly forces writes off even if the parent environment enables them. It saves only outcomes, counts, and the connector version in .local/live-verification.json, which is ignored by Git and excluded from the package. Review that report before sharing it. It never persists raw API bodies, hostnames, subaccount IDs, certificates or passwords.
Development and release
npm run checkThis builds, runs tests against ephemeral local HTTPS fixtures, audits runtime dependencies and previews the npm package. Tests cover protocol communication, stateless auth, target validation, credential redaction, failed TLS, redirects, login pages, response limits and timeouts. GitHub Actions runs offline connector tests on Linux and Windows with Node 22 and 24; dependencies are downloaded from npm.
See CONTRIBUTING.md, SECURITY.md and the API reference. Publishing to GitHub or npm is a separate, explicit release step. No automatic publish workflow is included.
Sources
Implemented against SAP's published API contracts and the official MCP TypeScript SDK:
Available Tools
12 toolsscc_get_connectorARead-onlyIdempotent
Read the connector description and master/shadow HA role.
Inputs: no named parameters.
scc_get_monitoringBRead-onlyIdempotent
Read one monitoring dataset. Most require the Monitoring or Administrator role and some require a master instance. CPU/disk need 2.17+, alerts 2.19+. Tunnel connected status is not evidence of a successful backend business operation.
Inputs: metric (required).
scc_get_subaccountARead-onlyIdempotent
Read configuration for one exact subaccount.
Inputs: regionHost (required), subaccount (required).
scc_get_system_mappingARead-onlyIdempotent
Read one exact virtual host and port mapping. Does not send traffic to the backend.
Inputs: regionHost (required), subaccount (required), virtualHost (required), virtualPort (required).
scc_get_versionARead-onlyIdempotent
Read the installed Cloud Connector version (2.14+).
Inputs: no named parameters.
scc_has_master_roleARead-onlyIdempotent
Read whether this instance currently has the master role (2.15+).
Inputs: no named parameters.
scc_list_domain_mappingsCRead-onlyIdempotent
Read domain mappings for one subaccount.
Inputs: regionHost (required), subaccount (required).
scc_list_resourcesBRead-onlyIdempotent
List allowed HTTP/RFC resources for one mapping, including access policy and enabled status when supplied by SAP.
Inputs: regionHost (required), subaccount (required), virtualHost (required), virtualPort (required).
scc_list_service_channelsARead-onlyIdempotent
Read configured service channels of one type for one subaccount. K8S requires 2.15+; other types depend on installed version. No channel is created or enabled.
Inputs: regionHost (required), subaccount (required), channelType (required).
scc_list_subaccountsARead-onlyIdempotent
List configured subaccount identifiers, region hosts and location IDs. Does not prove tunnel connectivity; use monitoring subaccounts for tunnel status.
Inputs: no named parameters.
scc_list_system_mappingsARead-onlyIdempotent
Read virtual-to-internal system mappings for one subaccount. Does not perform a backend reachability check.
Inputs: regionHost (required), subaccount (required).
scc_pingARead-onlyIdempotent
Check whether the connector HTTP service responds. This does not check tunnels, backends or business outcomes.
Inputs: no named parameters.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 12 tools
Each tool targets a distinct resource+action, and the singular get_* vs plural list_* pairs are clearly separated by the descriptions. The one genuine overlap is scc_get_connector (which returns the master/shadow HA role) versus scc_has_master_role, which an agent could reasonably pick either of for the same question.
All twelve tools share the scc_ prefix and a predictable verb_noun shape (get_version, list_subaccounts, list_system_mappings, has_master_role). The only minor deviation is the bare scc_ping, which is idiomatic and still unambiguous.
Twelve tools sit comfortably in the well-scoped range and each maps to a concrete Cloud Connector object or health signal. Nothing appears redundant or padded; the read-only surface is lean for the breadth of the product.
The set covers connector identity, subaccounts, system/domain mappings, resources, service channels and monitoring — a coherent read-only lifecycle for inspection. The main gaps are the absence of any write/configuration operations and no direct tunnel-status tool, forcing agents to route through scc_get_monitoring.
Related MCP Connectors
Read-only MCP access to a documented IT fleet: state, changes, posture. 15 tools.
Read and edit GA4, Search Console and Google Tag Manager from any MCP client. 29 tools.
One OAuth connector for your team's remote MCP servers, with Tool Packs, guardrails and logs.
Read-only access to your KollGuard SOC 2 / HIPAA findings, posture, scans and tickets.
Related MCP Servers
- AlicenseBqualityCmaintenanceEnables read-only monitoring, failed-message analysis, health summarization, and AI-assisted troubleshooting against SAP Cloud Integration tenants through MCP-compatible clients.8Apache 2.0
- AlicenseAqualityCmaintenanceEnables read-only inspection of a local SAP Commerce (Hybris) instance through HAC, letting an MCP client query the type system, Spring beans, configuration properties, cronjobs, console logs and FlexibleSearch results in plain language. Includes safety measures such as forced rollback on scripting calls, secret masking in config output, and a private-host guard.73MIT
- AlicenseAqualityBmaintenanceEnables AI clients to check status, read non-secret settings, schedules, and subject rules, and—when explicitly allowed—update settings and existing subject rules. It also supports local diagnostic workflows while excluding passwords, credentials, arbitrary SQL, files, and shell commands.131MIT
- AlicenseBqualityCmaintenanceEnables MCP clients to inspect an ISOTEL IDM smart gateway's devices, parameters, records, protocol stacks, streams, and connections, with read-only tools by default and opt-in allow-listed validated writes.14LGPL 3.0