Skip to main content
Glama
JayGandhi285

sap-abap-mcp

by JayGandhi285

sap-abap-mcp

IBM Bob を SOAP/RFC および SAP WebGUI (ITS) 経由で任意の SAP ABAP システムに接続するカスタム MCP サーバーです。

SAP システムの詳細は一切ハードコードされておらず、すべて環境変数で設定されます。各ユーザーは自分の資格情報で自分のシステムに接続します。


前提条件

  • Node.js v18 以降

  • Git(クローン用)

  • IBM Bob IDE 拡張機能がインストールされていること

  • 対象システムで有効な 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 システムの完全な WebGUI URL

https://your-sap-host/sap/bc/gui/sap/its/webgui

SAP_CLIENT

✅ 必須

SAP クライアント番号

100

SAP_USERNAME

✅ 必須

お使いの SAP ユーザー名

JSMITH

SAP_PASSWORD

✅ 必須

お使いの SAP パスワード

MyPass123

SAP_LANGUAGE

❌ 任意

ログオン言語(デフォルト: EN)

EN

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_login

SAP WebGUI 経由でログインします(セッションを確立します)

sap_navigate

任意の SAP トランザクションコード (SE16、SM30、SU01、…) に移動します

sap_se16_browse

任意の透過 SAP テーブルを参照します — ログインは不要です

sap_rfc_read_table

本格的なテーブルリーダー: フィールド選択、WHERE フィルター、ページネーション

sap_run_report

SA38 経由で ABAP レポート / プログラムを実行します

sap_execute_command

現在の WebGUI セッションに OK コード / トランザクションコマンドを送信します

sap_get_page

任意の 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_tablesap_se16_browse): HTTP ベーシック認証による SOAP 経由で RFC_READ_TABLE を使用します — ステートレスで、ログインセッションは不要です。

  • WebGUI セッション(sap_loginsap_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 はハードコードされていません。

  • .gitignorebuild/node_modules/、セッションファイル、データダンプを除外します。

  • .bob/mcp.json には ${ENV_VAR} プレースホルダーのみが含まれています — Git へのコミットは安全です。

  • ⚠️ Git にコミットされるファイルに実際の資格情報を決して追加しないでください。

Install Server
F
license - not found
B
quality
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

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

  • F
    license
    B
    quality
    -
    maintenance
    An 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
  • A
    license
    -
    quality
    C
    maintenance
    An 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.
    3
    MIT

View all related MCP servers

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.

View all MCP Connectors

Latest Blog Posts

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