Home / Servers

sap-mcp-server

by hugoconsulting

sap-mcp-server

English | 日本語

Securely operate SAP ABAP and BTP services from MCP-compatible AI clients.

Connect to SAP ABAP and BTP services from general MCP-compatible AI clients such as Claude Code, Codex, and Gemini CLI. Distributed as a single self-contained binary (Node.js SEA) for Linux and Windows.

This tool is not standalone: it requires a backend service deployed on SAP BTP, Cloud Foundry. Through strong, multi-layered security it accesses on-premise / RISE SAP environments.


🔒 Security

Security is enforced in multiple layers (defense in depth), so AI-driven access to SAP stays controlled and auditable.

LayerControl
Access scopeRestrict access to Full, Reference-only (read-only) or Development-only.
LandscapePer-landscape access control for DEV / QAS / PRD.
AuthenticationConnects only over a secure, authenticated channel; SAP credentials are never held by the client.
Secret handlingConnection secrets are kept local only and are never committed or embedded in the binary.

Security pattern: role-based authorization

Three scopes — mcp (Full), mcp_readonly (Reference-only) and mcp_developer (Development-only) — are enforced in layers (the reference backend implements this; bring-your-own backends are encouraged to follow it):

  1. Scope gate (app level) — every MCP route is mounted behind "require mcp or mcp_readonly or mcp_developer"; a token with none of these scopes is rejected (403) before any handler runs.
  2. Environment gate (per destination) — each destination is tagged DEV / QAS / PRD. mcp_developer may reach only DEV/QAS; mcp_readonly may also reach PRD but for reads only. Untagged destinations are denied for restricted scopes (fail-closed). mcp reaches all.
  3. Method gate (REST relays)mcp_readonly may use any method on DEV/QAS and only GET on PRD. mcp_developer is limited to GET (external app relays allow any method on DEV/QAS).
  4. No function modules in productionmcp_readonly is denied sap_call_fm against PRD regardless of the commit flag. Many function modules write without an explicit commit, so "read-only" cannot be delegated to a caller-supplied flag.
  5. Hard-deny — PII tools (IAS / IPS) and CLI execution are mcp-only, regardless of environment.
  6. ABAP writes stay in development — write / delete / transport / activate target DEV-tagged destinations only, for every scope. QAS and PRD are not modifiable under standard SAP practice; changes arrive by transport.
ToolFull (mcp)Reference-only (mcp_readonly)Development-only (mcp_developer)
sap_list_destinationsallallDEV/QAS only
sap_use_destination / sap_current_destinationall envsall envsall envs
sap_select_tableall envsall envs (read)DEV/QAS only
sap_adt_freestyle / osql / ddicall envsall envs (read)DEV/QAS only
sap_abap_read_sourceall envsall envs (read)DEV/QAS only
sap_call_fm (incl. commit)all envsDEV/QAS only (PRD denied)DEV/QAS only
sap_abap_write_source / write_fm / delete_source / activate (writes)DEV-role destinations onlyDEV-role destinations onlyDEV-role destinations only
sap_create_transport / sap_release_transportDEV-role destinations onlyDEV-role destinations onlyDEV-role destinations only
sap_call_ias_admin (IAS · PII)all envsdenieddenied
sap_call_ips_job (IPS · PII)all envsdenieddenied
sap_call_cf_api / bwz_content / ctms_api / forms_api / cis_api / cpi_api / ans_api / sbpa_api / datasphere_api / calm_apiall envs, any methodany method on DEV/QAS, GET on PRDGET + DEV/QAS only
app_call_jira_api / `app_call_smart

Related servers

n8n

by n8n-io

Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.

NOASSERTION198,904

@modelcontextprotocol/server-everything

Official

by modelcontextprotocol

MCP server that exercises all the features of the MCP protocol

89,105

@modelcontextprotocol/server-filesystem

Official

by modelcontextprotocol

MCP server for filesystem access

SEE LICENSE IN LICENSE89,105

mcp-server-fetch

Official

by modelcontextprotocol

A Model Context Protocol server providing tools to fetch and convert web content for usage by LLMs

89,105