sap-abap-mcp
sap-abap-mcp
IBM Bob を SOAP/RFC および SAP WebGUI (ITS) 経由で任意の SAP ABAP システムに接続するカスタム MCP サーバーです。
SAP システムの詳細は一切ハードコードされておらず、すべて環境変数で設定されます。各ユーザーは自分の資格情報で自分のシステムに接続します。
前提条件
Related MCP server: MCP SAP GUI Server
セットアップ(初回)
オプション A — npx 経由(最も簡単、クローン不要)
インストールは不要です。環境変数を設定し(下記の手順 3)、Bob でフォルダを開くだけです — npx が最新版を自動的にダウンロードして実行します。
オプション B — GitHub クローン経由(開発用 / オフライン用)
git clone https://github.com/JayGandhi285/sap-abap-mcp.git
cd sap-abap-mcp
npm install
npm run build次に .bob/mcp.json で、command を npx から node に、args を ["./build/index.js"] に変更します。
3. SAP 接続情報を環境変数として設定する
これら 5 つの変数は、サーバーに対し、どの SAP システムに接続してどのようにログインするかを指示します。 各人が自分の情報を設定してください — 資格情報を共有してはなりません。
Variable | Required | Description | Example |
| ✅ 必須 | お使いの SAP システムの完全な WebGUI URL |
|
| ✅ 必須 | SAP クライアント番号 |
|
| ✅ 必須 | お使いの SAP ユーザー名 |
|
| ✅ 必須 | お使いの SAP パスワード |
|
| ❌ 任意 | ログオン言語(デフォルト: |
|
Windows PowerShell — 永続化するには $PROFILE に追加します:
$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 — ~/.zshrc または ~/.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"⚠️ 必須の変数が 1 つでも欠けている場合、サーバーは起動を拒否し、明確なエラーメッセージを出力します。
4. Bob で sap-abap-mcp フォルダを開く
Bob はワークスペースのルートにある .bob/mcp.json を自動的に検出し、サーバーに接続します。
SAP ツールは Bob のツールリストにすぐに表示されます。
利用可能なツール
Tool | Description |
| SAP WebGUI 経由でログインします(セッションを確立します) |
| 任意の SAP トランザクションコード (SE16、SM30、SU01、…) に移動します |
| 任意の透過 SAP テーブルを参照します — ログインは不要です |
| 本格的なテーブルリーダー: フィールド選択、WHERE フィルター、ページネーション |
| SA38 経由で ABAP レポート / プログラムを実行します |
| 現在の WebGUI セッションに OK コード / トランザクションコマンドを送信します |
| 任意の SAP WebGUI URL を取得し、レンダリングされたページテキストを返します |
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仕組み
SOAP/RFC(
sap_rfc_read_table、sap_se16_browse): HTTP ベーシック認証による SOAP 経由でRFC_READ_TABLEを使用します — ステートレスで、ログインセッションは不要です。WebGUI セッション(
sap_login、sap_navigateなど): SAP ITS WebGUI 経由で完全なログインを実行し、セッション Cookie をローカルの一時ファイルに保持します。
プロジェクト構成
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ソース変更後の再ビルド
npm run build次に Bob で: 設定 → MCP → サーバーを再起動。
最新版への更新
git pull
npm install
npm run buildセキュリティに関する注意事項
✅ ソースのどこにも資格情報やシステム URL はハードコードされていません。
✅
.gitignoreはbuild/、node_modules/、セッションファイル、データダンプを除外します。✅
.bob/mcp.jsonには${ENV_VAR}プレースホルダーのみが含まれています — Git へのコミットは安全です。⚠️ Git にコミットされるファイルに実際の資格情報を決して追加しないでください。
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- FlicenseBquality-maintenanceAn 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
- AlicenseAqualityAmaintenanceAn MCP server that enables AI assistants to interact with SAP GUI for Windows through the SAP GUI Scripting API.5724MIT

dassian-adtofficial
Alicense-qualityDmaintenanceMCP 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.6MIT- Alicense-qualityCmaintenanceAn 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
Related MCP Connectors
Self-hosted MCP gateway: turn any API, database or MCP server into AI connectors — no code.
MCP server for AI access to Swagger by SmartBear.
Hosted Amazon Seller and Vendor MCP server for Claude, ChatGPT, Cursor, Codex, Gemini, Copilot.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/JayGandhi285/sap-abap-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server