Mcp Sap Gui

io.github.kts982由 GitHub 帳號 kts982 發布v0.6.0更新於 Oct 29, 2026

SAP GUI for Windows automation for AI agents - 59 structured tools via SAP GUI Scripting API

已驗證STDIO僅桌面效率與工作流商業與電商

概覽

AI 產生的概覽

透過 SAP Scripting API 讓 AI 助理操作 Windows 版 SAP GUI 的 MCP 伺服器:讀取畫面、填寫欄位、執行交易並處理彈出視窗。

可以做什麼
  • 讀取畫面與資料:顯示交易、欄位、ALV 方格、表格控制項、傳統報表清單與樹狀結構,不論多長都完整讀取。
  • 填寫與修改:欄位、核取方塊、下拉選單、整份表單、表格儲存格、F4 值說明、表格維護與 IMG 活動。
  • 導覽:交易代碼、按鈕、功能鍵、功能表、索引標籤、SPRO 及其他樹狀結構。
  • 處理彈出視窗:辨識任何登入語言下的詢問、警告、F4 清單與 SAP 訊息。
  • 儲存前預覽:顯示畫面與即將寫入之值的預覽,並可依需求截圖。
適用情境
適合需要讓助理透過 Windows 圖形介面而非 API 在既有 SAP 系統中作業的情境:查詢資料、輸入或更正記錄、走完交易與設定畫面,或在儲存前確認畫面內容。
執行需求
Windows 環境,安裝 Windows 版 SAP GUI(已驗證 8.10,8.00 可用)並執行 SAP Logon,同時在 SAP GUI 與 SAP 系統中啟用 SAP GUI Scripting。需要 uv 執行 PyPI 套件、Python 3.11 以上版本,以及一個 MCP 用戶端;若要核准儲存,用戶端必須能顯示伺服器的確認問題。以本機 stdio 程序執行。
安裝前請注意
助理以目前登入的 SAP 使用者身分、在該使用者權限範圍內操作,該權限仍是真正的界線,因此應謹慎限縮帳號權限。它可以寫入資料:儲存會等待你確認,其他變更(例如欄位寫入)也可設為等待確認,但不顯示確認問題的用戶端(例如 Claude 桌面應用程式)會拒絕儲存。交易政策、唯讀模式與設定檔可限制可啟動的交易,稽核記錄會記下呼叫與問答。使用須遵守 SAP 授權合約與所屬組織的安全政策。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Mcp Sap Gui,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

MCP SAP GUI Server

[CI] [Docs] [Release]

An MCP server that lets AI assistants work in SAP GUI for Windows: ask in plain language, and the assistant reads screens and tables, fills in fields, runs transactions and handles popups, through SAP's own Scripting API. A save with F11 or the Save button waits for your yes (what asks).

It works with any MCP client that can start a local server: Claude Code, GitHub Copilot, Codex, Google Antigravity and others.

[sap_preview card in VS Code Copilot Chat: the SAP screen and the values about to be written]

What it does

  • Looks things up: display transactions, fields, ALV grids, table controls, classic report lists and trees, read in full however long they are.
  • Fills in and changes: fields, checkboxes, dropdowns, whole forms, table cells, F4 value help, table maintenance and IMG activities.
  • Navigates: transactions, buttons, function keys, menus, tabs, SPRO and other trees.
  • Handles popups, recognising questions, warnings, F4 lists and SAP messages in any logon language.
  • Shows before it saves: a preview of the screen and the values about to be written, and screenshots on request.

More, with example prompts: What it can do.

Requirements

  • Windows with SAP GUI for Windows (8.10 verified, 8.00 works; SAP GUI versions), and SAP Logon running.
  • SAP GUI Scripting allowed in SAP GUI and on the SAP system: Preparing SAP.
  • uv, which runs the server from PyPI.
  • An MCP client. To approve saves, one that shows the server's confirmation questions (listed below).

Quick start

  1. Install uv: winget install --id=astral-sh.uv -e

  2. Add the server to your MCP client:

    text
    Command:   uvxArguments: mcp-sap-gui[screenshots]Transport: stdio

    In the Claude Code CLI, for example: claude mcp add sap-gui --scope user -- uvx "mcp-sap-gui[screenshots]". Every client: Clients.

  3. Log on to SAP in SAP Logon, then ask: "Connect to my open SAP session and tell me what system I'm on."

Step by step, including updating to a new release: Getting started.

Safety

  • Saves wait for your yes, and you can make other changes wait too, for example every field write: Confirmations.
  • A transaction policy decides which transactions the assistant may start; read-only mode and profiles limit it further.
  • An audit log records every call, question and answer.
  • Everything runs as the logged-on SAP user, under that user's authorizations, which remain the real boundary.

Details for admins, Basis and security teams: Security guide.

Which clients show the confirmation questions

Tested on 2026-10-28: the Claude Code CLI, the GitHub Copilot CLI, VS Code with GitHub Copilot and the Codex CLI show them. The Claude desktop app does not (its Code tab declines without showing anything, its Chat and Cowork tabs do not support them), so a save is refused there: use it for reading. The full table: Clients.

Documentation

PageFor
Getting startedInstalling it and the first questions
What it can doWhat to ask, and what is covered
ClientsSetup per MCP client, and which ones show the confirmation questions
ConfirmationsWhat asks, and what each answer does
TroubleshootingWhen something does not work
Preparing SAPEnabling scripting, also for named users or read-only; SAP Business Client
ConfigurationEvery option and environment variable; profiles, HTTP, code mode
Security guideSafeguards, the transaction policy, the audit log, a recommended setup
SAP GUI versionsWhich SAP GUI releases work, and how
ToolsEvery tool the assistant can call
CHANGELOGWhat changed in each release

What's new

0.6.0 supports MCP 2026-07-28, the newest protocol version, next to the earlier ones, and the confirmation questions work on both. It needs Python 3.11 or later, retires sap_set_policy_profile, names the MCP client in the audit log, and comes with reorganised documentation. Every change: CHANGELOG.

Contributing

Bug reports and pull requests are welcome: CONTRIBUTING. Security issues: SECURITY.

License

MIT. See LICENSE.

Disclaimer

This project is not affiliated with, endorsed by, or sponsored by SAP SE. SAP, SAP GUI, and other SAP products mentioned are trademarks of SAP SE.

Use of this software with SAP systems should comply with your SAP licensing agreement and your organization's security policies.

來源:README.md,提交 a8977b6

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

6
  1. v0.6.0最新Oct 29, 2026
  2. v0.5.2Oct 18, 2026
  3. v0.5.1Oct 15, 2026
  4. v0.5.0Oct 6, 2026
  5. v0.4.0Sep 20, 2026
  6. v0.3.0Sep 16, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分