Creativity · MCP — server

MCP SAP Server

The MCP SAP Server bridges an MCP client with SAP S/4HANA Cloud, S/4HANA on-prem, or SAP ECC via OData V2/V4 services. It provides structured tools to query business documents, invoke BAPIs, and read CDS views while enforcing SAP roles and authorization objects. SAP Business Technology Platform shops also use it alongside Joule for grounded answers.

MCP facts

Kind
server
Ecosystem
anthropic-mcp
Language
Python / TypeScript
Transports
stdio, http

Capabilities

  • Tools: odata_query, call_bapi, read_cds_view, create_business_partner
  • Resources: sap://service/{name}/entity/{key}
  • Auth: OAuth 2.0 on SAP BTP destination or basic auth on on-prem gateways

Install

pipx install mcp-server-sap

Configuration

{
  "mcpServers": {
    "sap": {
      "command": "mcp-server-sap",
      "env": {
        "SAP_BASE_URL": "https://my-s4.sap.example.com",
        "SAP_CLIENT_ID": "${SAP_CLIENT_ID}",
        "SAP_CLIENT_SECRET": "${SAP_CLIENT_SECRET}"
      }
    }
  }
}

Frequently asked questions

Does SAP offer an official MCP server?

SAP has been investing in AI via Joule and BTP AI Core. At the time of writing, MCP access is typically community-built on top of OData and BAPI. Official integrations are actively evolving.

Can it run ABAP code?

Generally no — most MCP SAP servers restrict to read APIs plus a vetted list of safe BAPIs. Running arbitrary ABAP from an LLM is a significant security risk.

How does authorization work?

SAP authorization objects still apply. The service user attached to the OAuth client determines exactly which BAPIs and CDS views the MCP server can call.

Sources

  1. SAP API Business Hub — accessed 2026-04-20
  2. Model Context Protocol — accessed 2026-04-20
  3. MCP servers repository — accessed 2026-04-20