sap-abap-mcp
sap-abap-mcp
Ein benutzerdefinierter MCP-Server, der IBM Bob über SOAP/RFC und SAP WebGUI (ITS) mit beliebigen SAP-ABAP-Systemen verbindet.
Es sind keine SAP-Systemdetails fest codiert – alles wird über Umgebungsvariablen konfiguriert, sodass jeder Benutzer sich mit seinen eigenen Anmeldedaten mit seinem eigenen System verbindet.
Voraussetzungen
Node.js v18 oder neuer
Git (zum Klonen)
IBM Bob-IDE-Erweiterung installiert
Ein gültiges SAP-Benutzerkonto auf dem Zielsystem
Related MCP server: MCP SAP GUI Server
Einrichtung (erstmalig)
Option A – über npx (am einfachsten, kein Klonen erforderlich)
Keine Installation erforderlich. Legen Sie einfach Ihre Umgebungsvariablen fest (Schritt 3 unten) und öffnen Sie den OrdnerE in Bob – npx lädt die neueste Version automatisch herunter und führt sie aus.
Option B – über GitHub-Klon (für Entwicklung / Offline-Nutzung)
git clone https://github.com/JayGandhi285/sap-abap-mcp.git
cd sap-abap-mcp
npm install
npm run buildÄndern Sie dann in .bob/mcp.json den Befehl von npx zu node und die Argumente zu ["./build/index.js"].
3. Legen Sie Ihre SAP-Verbindungsdetails als Umgebungsvariablen fest
Diese fünf Variablen teilen dem Server mit, mit welchem SAP-System er sich verbinden und wie er sich anmelden soll. Jede Person legt ihre eigenen fest – Anmeldedaten niemals weitergeben.
Variable | Erforderlich | Beschreibung | Beispiel |
| ✅ Ja | Vollständige WebGUI-URL Ihres SAP-Systems |
|
| ✅ Ja | SAP-Clientnummer |
|
| ✅ Ja | Ihr SAP-Benutzername |
|
| ✅ Ja | Ihr SAP-Kennwort |
|
| ❌ Optional | Anmeldesprache (Standard: |
|
Windows PowerShell – fügen Sie für die dauerhafte Speicherung in Ihrer $PROFILE hinzu:
$env:SAP_WEBGUI_URL = "https://your-sap-host/sap/bc/gui/sap/its/webgui"
$env:SAP_CLIENT = "100"
$env:SAP_USERNAME = "your_sap_username"
$env:SAP_PASSWORD = "your_sap_password"
$env:SAP_LANGUAGE = "EN"Mac / Linux – fügen Sie ~/.zshrc oder ~/.bashrc hinzu:
export SAP_WEBGUI_URL="https://your-sap-host/sap/bc/gui/sap/its/webgui"
export SAP_CLIENT="100"
export SAP_USERNAME="your_sap_username"
export SAP_PASSWORD="your_sap_password"
export SAP_LANGUAGE="EN"⚠️ Der Server verweigert den Start und gibt eine klare Fehlermeldung aus, wenn eine der erforderlichen Variablen fehlt.
4. Öffnung Sie den Ordner sap-abap-mcp in Bob
Bob erkennt .bob/um.json automatisch im Workspace-Stammverzeichnis und verbindet sich mit dem Server.
Die SAP-Tools erscheinen sofort in Bobs Tool-Liste.
Verfügbare Tools
Tool | Beschreibung |
| Anmeldung über SAP WebGUI (stellt eine Sitzung her) |
| Zu jedem SAP-Transaktionscode navigieren (SE16, SM30, SU01, …) |
| Jede transparente SAP-Tabelle durchsuchen – keine Anmeldung erforderlich |
| Leistungsstarker Tabellenleser: Feldauswahl, WHERE-Filter, Seitennummer |
| ABAP-Bericht/Programm über SA38 ausführen |
| OK-Code / Transaktionsbefehl an die aktuelle WebGUI-Sitzung senden |
| Beliebige SAP-WebGUI-URL abrufen und den gerenderten Seitentext zurückgeben |
Beispiel-Prompts in Bob
Show me all users in the SAP system
Read table T001 and show the company codes
Show me all failed background jobs
List all transport requests owned by RAJATSo funktioniert es
SOAP/RFC (
sap_rfc_read_table,sap_se16_browse): VerwendetRFC_READ_TABLEüber SOAP mit HTTP-Basic-Auth – zustandslos, keine Anmeldesitzung erforderlich.WebGUI-Sitzung (
sap_login,sap_navigateusw.): Führt eine vollständige Anmeldung über SAP ITS WebGUI durch und speichert Sitzungsdaten in einer lokalen temporären Datei.
Projektstruktur
sap-abap-mcp/
├── src/
│ └── index.ts ← MCP server source (TypeScript)
├── build/
│ └── index.js ← Compiled output (generated — not in Git)
├── .bob/
│ └── mcp.json ← Bob MCP config (all placeholders — safe to share)
├── .gitignore
├── package.json
├── tsconfig.json
└── README.mdNeuaufbau nach Quelländerungen
npm run buildDanach in Bob: Einstellungen → MCP → Server neu starten.
Aktualisierung auf die neueste Version
git pull
npm install
npm run buildSicherheitshinweise
✅ Keine Anmeldedaten oder System-URLs sind im Quellcode hart codiert.
✅
.gitignoreschließtbuild/,node_modules/, Sitzungsdateien und Datensicherungen aus.✅
.bob/mcp.jsonenthält nur${ENV_VAR}-Platzhalter – bedenkenlos in Git commitbar.⚠️ Geben Sie niemals echte Zugangsdaten in eine Datei ein, die in Git committet wird.
Available Tools
7 toolssap_execute_commandA
Submit an arbitrary command string (OK code / transaction) to the current SAP WebGUI session, as if typed in the command field.
Inputs: command (required).
sap_get_pageC
Fetch any SAP WebGUI URL and return the rendered page text.
Inputs: url_path (required).
sap_loginA
Log in to the SAP system via WebGUI. Must be called before using any other SAP tool. Returns the welcome screen text on success.
Inputs: password, username.
sap_rfc_read_tableA
Read data from any SAP transparent database table using RFC_READ_TABLE over SOAP. Supports field selection, WHERE filters, row limits and offsets. No session required — uses Basic Auth directly.
Inputs: table_name (required), where, fields, max_rows, +1 more.
sap_run_reportC
Run an ABAP report or program via the SA38 / SE38 transaction.
Inputs: program (required), parameters.
sap_se16_browseA
Browse a database table via SE16 (Data Browser). Returns the first page of table contents as text.
Inputs: table_name (required), max_rows.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 7 tools
Several tools have fuzzy boundaries: sap_se16_browse and sap_rfc_read_table both read table data, while sap_navigate, sap_execute_command, and sap_get_page all retrieve rendered SAP pages and can be used to reach transactions. An agent would need to read descriptions very carefully to reliably pick the right tool.
All tools share a sap_ prefix and snake_case style, which helps, but the internal pattern is inconsistent: sap_navigate is a bare verb, sap_se16_browse leads with a transaction code, and sap_rfc_read_table mixes technical context with the action. It is readable but not a uniform verb_noun convention.
Seven tools is a reasonable size for an SAP interaction server and not bloated overall. However, the set could be tightened because some tools are near-duplicates in functionality, such as the two table-reading paths and the multiple page-fetching mechanisms.
Core workflows like login, navigation, table reads, and running reports are covered, but there is no logout or explicit session-management tool, and report output is only exposed as raw page text. Agents can work around some gaps via execute_command or get_page, but the surface is not fully lifecycle-complete.
Maintenance
Related MCP Connectors
Cloud-hosted MCP server for secure AI access to enterprise data sources via CData Connect AI.
MCP server unifying ERPs, CRMs, APIs and knowledge base for Claude, ChatGPT and Gemini.
MCP server that lets your AI assistant build and deploy apps, hosting each one at a live URL.
MCP server providing AI assistants with integration capabilities for QuickBooks Online.
Related MCP Servers
- FlicenseBqualityNot gradedmaintenanceAn MCP server that enables AI assistants to interact with SAP systems via the ABAP Development Tools (ADT) REST API. It allows users to read ABAP source code, inspect DDIC objects, and execute SQL queries directly.66-
- AlicenseAqualityBmaintenanceAn MCP server that enables AI assistants to interact with SAP GUI for Windows through the SAP GUI Scripting API.61505 PyPI61MIT

dassian-adtofficial
AlicenseNot gradedqualityCmaintenanceMCP server for SAP ABAP development via the ADT API. Connect AI assistants to your SAP system — read, write, test, and deploy ABAP code without SAP GUI.22MIT- AlicenseNot gradedqualityDmaintenanceAn MCP server that connects AI assistants to SAP systems via the ADT REST API, enabling read, write, syntax-check, and activation of ABAP code directly from the chat.3MIT