sap-abap-mcp
sap-abap-mcp
Un servidor MCP personalizado que conecta IBM Bob a cualquier sistema SAP ABAP mediante SOAP/RFC y SAP WebGUI (ITS).
No hay detalles del sistema SAP codificados de forma fija: todo se configura mediante variables de entorno, de modo que cada usuario se conecta a su propio sistema con sus propias credenciales.
Requisitos previos
Node.js v18 o posterior
Git (para clonar)
Extensión IBM Bob instalada en el IDE
Una cuenta de usuario SAP válida en el sistema de destino
Related MCP server: MCP SAP GUI Server
Configuración (primera vez)
Opción A — mediante npx (la más sencilla, sin necesidad de clonar)
No se requiere instalación. Solo tienes que configurar tus variables de entorno (paso 3 a continuación) y abrir la carpeta en Bob: npx descargará y ejecutará automáticamente la última versión.
Opción B — mediante clonación de GitHub (para desarrollo / uso sin conexión)
git clone https://github.com/JayGandhi285/sap-abap-mcp.git
cd sap-abap-mcp
npm install
npm run buildLuego, en .bob/mcp.json, cambia el comando de npx a node y los argumentos a ["./build/index.js"].
3. Configura los detalles de conexión a SAP como variables de entorno
Estas cinco variables indican al servidor a qué sistema SAP conectarse y cómo iniciar sesión. Cada persona configura las suyas propias: nunca compartas credenciales.
Variable | ¿Obligatoria? | Descripción | Ejemplo |
| ✅ Sí | URL completa de WebGUI de tu sistema SAP |
|
| ✅ Sí | Número de cliente SAP |
|
| ✅ Sí | Tu nombre de usuario SAP |
|
| ✅ Sí | Tu contraseña SAP |
|
| ❌ Opcional | Idioma de inicio de sesión (por defecto: |
|
Windows PowerShell — añádelas a tu $PROFILE para que persistan:
$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 — añádelas a ~/.zshrc o ~/.bashrc:
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"⚠️ El servidor se negará a iniciarse y mostrará un mensaje de error claro si falta alguna variable obligatoria.
4. Abre la carpeta sap-abap-mcp en Bob
Bob detecta automáticamente .bob/mcp.json en la raíz del espacio de trabajo y se conecta al servidor.
Las herramientas de SAP aparecerán inmediatamente en la lista de herramientas de Bob.
Herramientas disponibles
Herramienta | Descripción |
| Iniciar sesión mediante SAP WebGUI (establece una sesión) |
| Navegar a cualquier código de transacción SAP (SE16, SM30, SU01, …) |
| Explorar cualquier tabla transparente de SAP: no requiere inicio de sesión |
| Lector de tablas de máxima potencia: selección de campos, filtros WHERE, paginación |
| Ejecutar un informe/programa ABAP mediante SA38 |
| Enviar un código OK / comando de transacción a la sesión WebGUI actual |
| Obtener cualquier URL de SAP WebGUI y devolver el texto de la página renderizada |
Ejemplos de prompts en 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 RAJATCómo funciona
SOAP/RFC (
sap_rfc_read_table,sap_se16_browse): utilizaRFC_READ_TABLEmediante SOAP con autenticación básica HTTP: sin estado, no se necesita sesión de inicio de sesión.Sesión WebGUI (
sap_login,sap_navigate, etc.): realiza un inicio de sesión completo mediante SAP ITS WebGUI y mantiene las cookies de sesión en un archivo temporal local.
Estructura del proyecto
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.mdReconstrucción tras cambios en el código fuente
npm run buildLuego, en Bob: Configuración → MCP → Reiniciar servidor.
Actualización a la última versión
git pull
npm install
npm run buildNotas de seguridad
✅ No hay credenciales ni URLs de sistema codificadas de forma fija en el código fuente.
✅
.gitignoreexcluyebuild/,node_modules/, archivos de sesión y volcados de datos.✅
.bob/mcp.jsoncontiene solo marcadores de posición${ENV_VAR}: seguro para confirmar en Git.⚠️ Nunca añadas credenciales reales a ningún archivo que se confirme en Git.
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.59551 PyPI50MIT

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.21MIT- 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