sap-abap-mcp
An MCP server that connects AI assistants to SAP ABAP systems, enabling table browsing, report execution, and transaction navigation via SOAP/RFC and SAP WebGUI.
README
sap-abap-mcp
A custom MCP server that connects IBM Bob to any SAP ABAP system via SOAP/RFC and SAP WebGUI (ITS).
No SAP system details are hardcoded — everything is configured through environment variables, so each user connects to their own system with their own credentials.
Prerequisites
- Node.js v18 or later
- Git (to clone)
- IBM Bob IDE extension installed
- A valid SAP user account on the target system
Setup (first time)
Option A — via npx (easiest, no clone needed)
No installation required. Just set your environment variables (Step 3 below) and open the folder in Bob — npx will automatically download and run the latest version.
Option B — via GitHub clone (for development / offline use)
git clone https://github.com/JayGandhi285/sap-abap-mcp.git
cd sap-abap-mcp
npm install
npm run build
Then in .bob/mcp.json, change the command from npx to node and args to ["./build/index.js"].
3. Set your SAP connection details as environment variables
These five variables tell the server which SAP system to connect to and how to log in. Each person sets their own — never share credentials.
| Variable | Required | Description | Example |
|---|---|---|---|
SAP_WEBGUI_URL |
✅ Yes | Full WebGUI URL of your SAP system | https://your-sap-host/sap/bc/gui/sap/its/webgui |
SAP_CLIENT |
✅ Yes | SAP client number | 100 |
SAP_USERNAME |
✅ Yes | Your SAP username | JSMITH |
SAP_PASSWORD |
✅ Yes | Your SAP password | MyPass123 |
SAP_LANGUAGE |
❌ Optional | Logon language (default: EN) |
EN |
Windows PowerShell — add to your $PROFILE for persistence:
$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 — add to ~/.zshrc or ~/.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"
⚠️ The server will refuse to start and print a clear error message if any required variable is missing.
4. Open the sap-abap-mcp folder in Bob
Bob automatically detects .bob/mcp.json in the workspace root and connects to the server.
The SAP tools will appear in Bob's tool list immediately.
Available tools
| Tool | Description |
|---|---|
sap_login |
Log in via SAP WebGUI (establishes a session) |
sap_navigate |
Navigate to any SAP transaction code (SE16, SM30, SU01, …) |
sap_se16_browse |
Browse any transparent SAP table — no login required |
sap_rfc_read_table |
Full-power table reader: field selection, WHERE filters, pagination |
sap_run_report |
Run an ABAP report/program via SA38 |
sap_execute_command |
Send an OK-code / transaction command to the current WebGUI session |
sap_get_page |
Fetch any SAP WebGUI URL and return the rendered page text |
Example 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 RAJAT
How it works
- SOAP/RFC (
sap_rfc_read_table,sap_se16_browse): UsesRFC_READ_TABLEvia SOAP with HTTP Basic Auth — stateless, no login session needed. - WebGUI session (
sap_login,sap_navigate, etc.): Performs a full login via SAP ITS WebGUI and keeps session cookies in a local temp file.
Project structure
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.md
Rebuilding after source changes
npm run build
Then in Bob: Settings → MCP → Restart server.
Updating to the latest version
git pull
npm install
npm run build
Security notes
- ✅ No credentials or system URLs are hardcoded anywhere in the source.
- ✅
.gitignoreexcludesbuild/,node_modules/, session files, and data dumps. - ✅
.bob/mcp.jsoncontains only${ENV_VAR}placeholders — safe to commit to Git. - ⚠️ Never add real credentials to any file that gets committed to Git.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.
E2B
Using MCP to run code via e2b.