Skip to main content
Glama
sap-abap-mcp

sap-abap-mcp

by JayGandhi285

sap-abap-mcp

SOAP/RFC 및 SAP WebGUI(ITS)를 통해 모든 SAP ABAP 시스템에 IBM Bob을 연결하는 사용자 지정 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에서 명령을 npx에서 node로 변경하고 args를 ["./build/index.js"]로 변경합니다.

3. SAP 연결 정보를 환경 변수로 설정

다음 다섯 변수는 서버에 어떤 SAP 시스템에 연결할지와 로그인 방법을 알려줍니다. 각자 자신의 정보를 설정합니다. 자격 증명을 공유하지 마세요.

변수

필수 여부

설명

예시

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"

⚠️ 필수 변수가 하나라도 누락되면 서버는 시작을 거부하고 명확한 오류 메시지를 출력합니다.

4. Bob에서 sap-abap-mcp 폴더 열기

Bob은 작업 영역 루트에서 .bob/mcp.json을 자동으로 감지하고 서버에 연결합니다. SAP 도구가 Bob의 도구 목록에 즉시 나타납니다.


사용 가능한 도구

도구

설명

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-code / 트랜잭션 명령을 보냅니다

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_table, sap_se16_browse): HTTP Basic 인증과 함께 SOAP를 통해 RFC_READ_TABLE을 사용합니다 — 무상태이며 로그인 세션이 필요 없습니다.

  • WebGUI 세션(sap_login, sap_navigate 등): SAP ITS WebGUI를 통해 전체 로그인을 수행하고 세션 쿠키를 로컬 임시 파일에 유지합니다.


프로젝트 구조

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에 커밋되는 모든 파일에 실제 자격 증명을 추가하지 마세요.

Available Tools

7 tools
sap_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_navigateB

Navigate to an SAP transaction code (e.g. SE11, SE16, SM30, SU01). Returns the HTML page text of the resulting screen.

Inputs: transaction (required).

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

    B3.2/5.0

    Scored across 7 tools

    Disambiguation2/5

    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.

    Naming Consistency3/5

    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.

    Tool Count4/5

    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.

    Completeness3/5

    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

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      B
      quality
      Not graded
      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
      A
      quality
      B
      maintenance
      An MCP server that enables AI assistants to interact with SAP GUI for Windows through the SAP GUI Scripting API.
      61
      553 PyPI
      61
      MIT
    • A
      license
      Not graded
      quality
      D
      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