ClaudeMap

SAP Data MCP

Three read-only MCP servers for SAP S/4HANA (RFC/BAPI, private-cloud OData and public-cloud released APIs) registering 412 tools across eight SAP modules with local-only credentials and audit logs

MCP Serversmcpsaperppython

SAP Data MCP gives Claude Desktop, Claude Code, Cursor and other MCP clients a strictly read-only account into SAP S/4HANA without memorizing T-codes or handing an AI write access. It packages three independent Python 3.12 MCP servers — private_cloud/rfc (sap_private_rfc: 95 tools over a code-enforced whitelist of 98 standard read-only RFC/BAPI functions via PyRFC and the SAP NW RFC SDK, supporting S/4HANA Private Edition, on-premise and ECC/NetWeaver), private_cloud/odata (sap_private_odata: 159 tools, 155 business + 4 platform, over OData V2/V4 HTTPS) and public_cloud/api (sap_public_api: 158 tools, 154 business + 4 platform, over S/4HANA Cloud Public Edition released OData V4/V2 APIs). Together the three servers register 412 read-only tools (many tool names are shared across servers) spanning eight standard areas (MM/IM, PP, SD, WM/EWM, FI, CO, master data / MDG and QM), while the RFC server adds Basis and interface monitoring (ST22, SM21, SLG1, SM37, IDocs, qRFC/tRFC/bgRFC queues, Gateway service registration) plus read-only table, source and reviewed display-only report tools. Passwords, client secrets and tokens stay inside each server's local .env and appear as [REDACTED] in errors and logs; HTTP servers send fixed GET requests (the only POST fetches an OAuth token), TLS verification stays on, every call is written to logs/tool_calls_YYYY-MM-DD.jsonl (readable via get_tool_call_log), and every response reports explicit ok, not_found, partial or error status. Independent open-source project, not affiliated with or endorsed by SAP SE. MIT.

What it does

  • Three independent read-only servers (412 registered tools total, many names shared across servers): sap_private_rfc (95 tools over 98 whitelisted RFC functions), sap_private_odata (159 tools) and sap_public_api (158 tools)
  • Covers eight standard SAP areas (MM/IM, PP, SD, WM/EWM, FI, CO, master data / MDG and QM), plus Basis/interface monitoring (ST22, SM21, SLG1, SM37, IDocs, qRFC/tRFC/bgRFC, Gateway) and read-only table/source/report tools on RFC
  • Enforced read-only security boundary: 98-function RFC whitelist, fixed HTTP GET requests (POST only for OAuth token retrieval), TLS verification always on, and no tool accepts credentials, arbitrary URLs or raw OData queries
  • Local-only credentials and full audit trail: secrets remain in each server's .env ([REDACTED] in errors and logs) while every invocation logs arguments, status, duration and target paths to logs/tool_calls_YYYY-MM-DD.jsonl
  • Explicit result semantics: every response returns ok, not_found, partial or error while preserving SAP field names, zero/false values, currencies and application-server local monitoring timestamps

When to use it

Best for SAP functional consultants, finance/supply-chain analysts and Basis engineers who want to ask Claude Code or Claude Desktop operational questions about S/4HANA orders, invoices, stock, open items or system errors without granting write access.

Getting started

git clone https://github.com/w1ccc/sap-data-mcp.git
cd sap-data-mcp
py -3.12 -m venv .venv
.\.venv\Scripts\python.exe -m pip install -r requirements.txt
Copy-Item .env.example public_cloud\api\.env
claude mcp add sap_public_api -- C:\sap-data-mcp\.venv\Scripts\python.exe C:\sap-data-mcp\public_cloud\api\server.py

Things to know

Strictly read-only: never creates, changes, posts or approves documents, does not drive SAP GUI or Fiori screens, and returns SAP data without drawing conclusions (for example, never treats a clearing reference as proof of payment). Requires Python 3.12; on-premise and private-cloud RFC/BAPI setups additionally require the SAP NW RFC SDK and PyRFC. Quick-start commands in the README target Windows PowerShell, and the per-server reference docs under private_cloud/ and public_cloud/ are written in Chinese (docs/COVERAGE.md is in English). What the servers can read depends on which services are activated in the target SAP system and the logon user's authorizations. Independent open-source project, not affiliated with or endorsed by SAP SE. MIT.

Repository

w1ccc/sap-data-mcp

Charted

Related on the map

  • Blitz Strike

    MCP Server

    A penetration-testing methodology delivered as one MCP server: BLITZ maps the attack surface, EAGLE-EYE traces source-to-sink, STRIKE live-verifies every finding before it is reported.

    • mcp-server
    • security
    • pentest
    • methodology
  • Ripwire

    MCP Server

    Red Hat's "ripgrep for AI context" — a C++23 zero-dependency CLI that also speaks MCP.

    • mcp
    • code-context
    • cli
    • red-hat
  • Deja Vu

    MCP Server

    One shared session memory for 25+ coding agents — Claude Code, Codex, and Cursor finally remember the same project.

    • mcp
    • memory
    • cross-agent
    • context
  • Exa MCP

    MCP Server

    Exa's official MCP server — live web search, crawling, and deep research wired into Claude.

    • official
    • search
    • web
    • mcp
  • Official Chrome DevTools MCP server — performance tracing, network inspection, and live debugging for coding agents.

    • official
    • chrome
    • debugging
    • browser
  • Vercel's handler for spinning up MCP servers on Next.js, Nuxt, Svelte, and more.

    • deploy
    • vercel
    • serverless
    • edge