← Back to Leaderboard
Sw1ccc

w1ccc/sap-data-mcp

Three read-only MCP servers for querying SAP S/4HANA via RFC/BAPI, OData, or Released APIs

View on GitHub ↗
Engineering Health (Methodology)
A · 77/100
Maintenance Activity
● Updated today
Latest Release
v0.2.0
Commercial License Check
MIT · Commercial Friendly

Automated SPDX check for reference only — not legal advice. Disclaimer

Maintenance35/35
Fork Adoption2/25
Release Cadence20/20
License Clarity20/20
Self-HostedMCPCLI
Total Stars
★ 203
24h Growth
+0
7d Growth
+16
Forks
1

GitHub Star History

Tracked from daily D1 telemetry snapshots. Hover any data point for exact daily star counts.

w1ccc/sap-data-mcp Star History (2026-11-20 - 2026-12-04) DAILY STAR HISTORY (15-DAY D1 TELEMETRY) +202 in 14d · avg +14/day 214 107 0 2026-11-20: ★ 12026-11-21: ★ 22026-11-22: ★ 432026-11-23: ★ 972026-11-24: ★ 1212026-11-25: ★ 1662026-11-26: ★ 1792026-11-27: ★ 1872026-11-28: ★ 1942026-11-29: ★ 2022026-11-30: ★ 2022026-12-01: ★ 2022026-12-02: ★ 2022026-12-03: ★ 2032026-12-04: ★ 203 ★ 203 11-20 11-27 12-04

Evidence-Backed Technical Brief

AI Deep Review

Architecture & Core Mechanics

SAP Data MCP splits S/4HANA access across three Python MCP servers: private_cloud/rfc, private_cloud/odata, and public_cloud/api. An MCP client launches the selected server.py and invokes a named tool, which dispatches to an SAP function or a predefined HTTP endpoint. Each server keeps its configuration, credentials, and logs separate. The base manifest pins mcp[cli]==2.2.0, httpx==0.28.1, and python-dotenv==1.2.3; the RFC route additionally needs PyRFC and the SAP NW RFC SDK.

The protocol boundary is deliberately narrow. The RFC connector rejects functions outside READ_ONLY_FUNCTIONS. The HTTP routes use fixed GET requests for data, reserve POST for OAuth token acquisition, keep TLS verification enabled, and do not accept credentials, arbitrary URLs, or raw OData queries as tool inputs. Each call is written to logs/tool_calls_YYYY-MM-DD.jsonl with its arguments, status, duration, and SAP function or API path. Credential values are redacted in errors and logs.

Key Capabilities & Differentiators

The three routes register 95 RFC tools, 159 private-cloud OData tools, and 158 public-cloud API tools. The 412 total counts registrations, not distinct operations: equivalent tools can appear on more than one route. Coverage spans MM/IM, PP, SD, WM/EWM, FI, CO, master data/MDG, and QM. RFC also adds Basis and interface monitoring, including short dumps, background jobs, IDocs, and RFC queues, as well as read-only table and source inspection and reviewed display-only reports.

A purchase-order payment inquiry can combine the order and its history with supplier invoices and open items. The result contract preserves SAP field names, identifiers, amounts, units, currencies, zero values, and false. Lists paginate via max_results and offset; ok, not_found, partial, and error give the assistant a basis for distinguishing missing, incomplete, and failed reads. Those signals do not establish a business conclusion: an empty list does not prove a zero balance, and a clearing reference does not prove payment.

Trade-offs & Limitations

Compared with navigating SAP GUI transactions, the MCP layer is most useful for investigations that cross business objects. It also avoids the per-workflow authentication and pagination code of a bespoke RFC or OData script. The trade-off is a narrower interface: the assistant cannot submit arbitrary OData queries or invoke arbitrary RFC functions. A direct integration is a better fit for a stable report that needs deterministic processing, and SAP GUI or an authorized workflow is still required to create, post, or approve documents.

Actual coverage depends on activated services and the SAP account’s authorizations. Use least-privilege credentials and review the RFC inspection tools separately from ordinary business lookups. Local secrets and credential redaction do not prevent returned business data from reaching the MCP client and potentially its model provider. Audit records also contain arguments, so restrict access and set retention deliberately. The MIT license covers the project code; the server is independent of SAP and is not an official SAP product.

Hardware & Deployment Guide

The quickstart uses Python 3.12 in a virtual environment. For an HTTP route, copy .env.example into private_cloud/odata or public_cloud/api as .env, then set SAP_API_BASE_URL and configure Basic authentication or OAuth client credentials. Register the virtual environment interpreter and the route’s server.py by absolute path in Claude Desktop, Claude Code, Cursor, or another compatible MCP client. Run health_check first, then validate a representative SAP service with the intended account.

RFC adds the SAP NW RFC SDK and PyRFC setup described in private_cloud/rfc/docs/GOLDEN_PATH.md. The MCP server is self-hosted, but live queries still need network access to SAP; offline regression tests in tests/ use SAP-shaped fixtures and do not validate tenant configuration or permissions. The RFC tests import PyRFC. v0.2.0 is the first public release and includes all three routes, so validate the selected route in a representative environment before relying on its tool count as a measure of usable coverage.

Route selection: Three independently configured MCP servers for RFC/BAPI, private-cloud OData, and public-cloud Released APIs.
Tool surface: v0.2.0 registers 95 RFC, 159 private OData, and 158 public API tools; the 412 total includes overlapping tools.
Read-only enforcement: RFC checks a 98-function allowlist; SAP data requests use predefined GETs, with POST reserved for OAuth token acquisition.
Result semantics: ok, not_found, partial, and error distinguish query outcomes, while max_results and offset support pagination.
Audit trail: Daily JSONL logs capture arguments, status, duration, and the SAP function or API path and are queryable through get_tool_call_log.
RFC diagnostics: Basis tools cover short dumps, background jobs, IDocs, and qRFC, tRFC, and bgRFC queues.
Best For

SAP operations and business teams that need conversational, auditable cross-object lookups against an authorized S/4HANA system, such as tracing purchase orders through invoices and supplier open items.

Skip If

You need transactions that write or approve records, arbitrary query construction, deterministic scheduled reporting, or a deployment where SAP results cannot be exposed to the chosen assistant.

Reviewed on 2026-12-02 · Grounded in GitHub README, root file tree & releasesMethodology

Quick Start & Installation

Self-HostedMCPCLI
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

Comparison vs. Top Coding, Skills & MCP Alternatives

Full comparison →
RepositoryStars7d TrendStackLicenseCore Positioning
sap-data-mcp ★203+16PythonMITThree read-only MCP servers for querying SAP S/4HANA via RFC/BAPI, OData, or Rel
chrome-devtools-mcp60.4k+801TypeScriptApache-2.0Chrome DevTools via MCP and CLI for live browser debugging and performance analy
context765.9k+324TypeScriptMITA hosted documentation index with MCP and CLI access for coding agents
agents43.2k+221PythonMITOne Markdown plugin catalog adapted to seven AI coding tools

AI Context Briefing (for Claude / Cursor / Windsurf)

Standardized architecture summary & quickstart commands ready to paste into coding agents.

Raw .md ↗
curl -sL https://repoforai.com/repo/w1ccc/sap-data-mcp.md

Embed Star History Chart & Badges in README.md

Full-history Star History SVGs and velocity cards on GitHub Camo: drop-in replacement for OSSInsight and Star History widgets.

w1ccc/sap-data-mcp Star History on RepoForAI

Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).

Frequently Asked Questions about sap-data-mcp

How does an MCP client connect, and how do I verify the SAP integration?

Register the route-specific server.py with an MCP client using the virtual environment’s Python executable and absolute paths. Each server loads its own .env and uses its own config/ and logs/ directories. Start with health_check, then verify a service your workflow actually needs; the public API route provides test_sap_api_connection(service="material").

Does the server need a GPU, and what drives resource usage?

The MCP server does not run an inference model and has no model-related GPU or VRAM requirement. It runs Python, makes SAP requests, processes returned records, and writes audit entries. Size the host around concurrent requests, result sizes, and log retention. If you run the assistant’s model locally, size that runtime separately.

Can we self-host it commercially, and what compliance checks remain?

The repository is MIT-licensed and can be self-hosted for internal commercial use subject to the license terms. That license does not grant SAP access or determine the terms for native SAP dependencies. Local credential storage also does not keep query results out of the MCP client or its model provider. Review those data flows, the SAP account’s permissions, and access to audit logs before production use.

When is this a better fit than SAP GUI or a direct RFC/OData script?

Use MCP when analysts repeatedly ask differently worded questions that span several SAP objects, such as a purchase order, its invoice, and supplier open items. Keep a direct integration for fixed reports or scheduled jobs that need deterministic fields, validation, and error handling. Keep SAP GUI or an authorized workflow for actions that change business state.

Upstream README & Documentation

This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.

Maintaining w1ccc/sap-data-mcp? Pin to Homepage + competitor /alternatives pages with a custom Cloud/Demo CTA.Feature w1ccc/sap-data-mcp on Homepage & Alternatives ($19)
WEEKLY BREAKOUT DIGEST

Top 10 Breakout Open-Source AI Repos, Every Thursday

Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.

Zero spam · 1-click unsubscribe · Privacy Policy

Saved in your browser · Export Markdown RFC tables or jump into /vs compare