Mcp Sap Gui

io.github.kts982Published by GitHub account kts982v0.6.0Updated Oct 29, 2026

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

Overview

AI-generated overview

MCP server that lets an AI assistant drive SAP GUI for Windows through SAP's Scripting API: read screens, fill fields, run transactions and handle popups.

What you can do
  • Read screens and data: display transactions, fields, ALV grids, table controls, report lists and trees, in full however long they are.
  • Fill in and change: fields, checkboxes, dropdowns, whole forms, table cells, F4 value help, table maintenance and IMG activities.
  • Navigate: transactions, buttons, function keys, menus, tabs, SPRO and other trees.
  • Handle popups: questions, warnings, F4 lists and SAP messages in any logon language.
  • Preview before saving: a preview of the screen and the values about to be written, plus screenshots on request.
When to use it
Useful when an assistant has to work inside an existing SAP system through its Windows GUI rather than an API: looking up data, entering or correcting records, walking through transactions and configuration screens, or checking what a screen shows before a change is saved.
Requirements
Windows with SAP GUI for Windows (8.10 verified, 8.00 works) and SAP Logon running, with SAP GUI Scripting enabled both in SAP GUI and on the SAP system. Needs uv to run the PyPI package, Python 3.11 or later, and an MCP client; approving saves requires a client that displays the server's confirmation questions. Runs as a local stdio process.
Before you install
The assistant acts as the logged-on SAP user under that user's authorizations, which remain the real boundary, so scope the account carefully. It can write data: saves wait for your confirmation, and other changes such as field writes can be made to wait too, but clients that do not show confirmation questions (for example the Claude desktop app) refuse saves. A transaction policy, read-only mode and profiles limit what can be started, and an audit log records calls and answers. Use must…

Installation

In SourceWeft

  1. Open Mcp Sap Gui in the dashboard and add it to a workspace.
  2. Enable the server for the chats that should use its tools.

Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.

Other MCP clients

Follow the launch instructions in the repository.

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.

Source: README.md at commit a8977b6

Tools

0
SourceWeft has not started this package in its sandbox yet, so its tools are not known.

Version history

6
  1. v0.6.0LatestOct 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

Score

50% of the applicable checks met

How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.

  • Reached in the last 30 days25 pts

    Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.

  • Auth declared10 pts

    Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.

  • Tools listed15 pts

    Answer tools/list without a credential, or ship a package that starts in a sandbox without one.

  • DescriptionRequired15 pts
  • Logo10 pts
  • Documentation15 pts
  • License10 pts