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 分