MCP SAP GUI Server
# MCP SAP GUI Server
<!-- mcp-name: io.github.kts982/mcp-sap-gui -->
[](https://github.com/kts982/mcp-sap-gui/actions/workflows/ci.yml)
[](https://github.com/kts982/mcp-sap-gui/actions/workflows/docs.yml)
[](https://github.com/kts982/mcp-sap-gui/releases)
An [MCP](https://modelcontextprotocol.io/) 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](https://github.com/kts982/mcp-sap-gui/blob/master/docs/CONFIRMATIONS.md)).
It works with any MCP client that can start a local server: Claude Code, GitHub Copilot, Codex, Google Antigravity and others.
<img src="https://raw.githubusercontent.com/kts982/mcp-sap-gui/master/docs/images/sap-preview-card.png" alt="sap_preview card in VS Code Copilot Chat: the SAP screen and the values about to be written" width="640">
## 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](https://github.com/kts982/mcp-sap-gui/blob/master/docs/OVERVIEW.md).
## Requirements
- Windows with SAP GUI for Windows (8.10 verified, 8.00 works; [SAP GUI versions](https://github.com/kts982/mcp-sap-gui/blob/master/docs/SAP_GUI_VERSIONS.md)), and SAP Logon running.
- SAP GUI Scripting allowed in SAP GUI and on the SAP system: [Preparing SAP](https://github.com/kts982/mcp-sap-gui/blob/master/docs/SAP_SETUP.md).
- [uv](https://docs.astral.sh/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: uvx
Arguments: 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](https://github.com/kts982/mcp-sap-gui/blob/master/docs/CLIENTS.md).
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](https://github.com/kts982/mcp-sap-gui/blob/master/docs/GETTING_STARTED.md).
## Safety
- **Saves wait for your yes**, and you can make other changes wait too, for example every field write: [Confirmations](https://github.com/kts982/mcp-sap-gui/blob/master/docs/CONFIRMATIONS.md).
- **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](https://github.com/kts982/mcp-sap-gui/blob/master/docs/SECURITY_GUIDE.md).
## 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](https://github.com/kts982/mcp-sap-gui/blob/master/docs/CLIENTS.md#which-clients-show-the-confirmation-questions).
## Documentation
| Page | For |
|---|---|
| [Getting started](https://github.com/kts982/mcp-sap-gui/blob/master/docs/GETTING_STARTED.md) | Installing it and the first questions |
| [What it can do](https://github.com/kts982/mcp-sap-gui/blob/master/docs/OVERVIEW.md) | What to ask, and what is covered |
| [Clients](https://github.com/kts982/mcp-sap-gui/blob/master/docs/CLIENTS.md) | Setup per MCP client, and which ones show the confirmation questions |
| [Confirmations](https://github.com/kts982/mcp-sap-gui/blob/master/docs/CONFIRMATIONS.md) | What asks, and what each answer does |
| [Troubleshooting](https://github.com/kts982/mcp-sap-gui/blob/master/docs/TROUBLESHOOTING.md) | When something does not work |
| [Preparing SAP](https://github.com/kts982/mcp-sap-gui/blob/master/docs/SAP_SETUP.md) | Enabling scripting, also for named users or read-only; SAP Business Client |
| [Configuration](https://github.com/kts982/mcp-sap-gui/blob/master/docs/CONFIGURATION.md) | Every option and environment variable; profiles, HTTP, code mode |
| [Security guide](https://github.com/kts982/mcp-sap-gui/blob/master/docs/SECURITY_GUIDE.md) | Safeguards, the transaction policy, the audit log, a recommended setup |
| [SAP GUI versions](https://github.com/kts982/mcp-sap-gui/blob/master/docs/SAP_GUI_VERSIONS.md) | Which SAP GUI releases work, and how |
| [Tools](https://github.com/kts982/mcp-sap-gui/blob/master/docs/TOOLS.md) | Every tool the assistant can call |
| [CHANGELOG](https://github.com/kts982/mcp-sap-gui/blob/master/CHANGELOG.md) | What changed in each release |
## What's new
**0.6.2** lets the assistant work inside ALV grids: click hotspots and cell buttons, tick checkboxes, open value help and context menus, select columns by name, and tell totals lines from records. Screenshots can frame or black out fields and cells and carry a caption, and in Business Client they no longer show other windows. Transaction codes with special characters such as `F-02` are now checked by the transaction policy when typed into the command field. Every change: [CHANGELOG](https://github.com/kts982/mcp-sap-gui/blob/master/CHANGELOG.md).
## Contributing
Bug reports and pull requests are welcome: [CONTRIBUTING](https://github.com/kts982/mcp-sap-gui/blob/master/CONTRIBUTING.md). Security issues: [SECURITY](https://github.com/kts982/mcp-sap-gui/blob/master/SECURITY.md).
## License
MIT. See [LICENSE](https://github.com/kts982/mcp-sap-gui/blob/master/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.
TDQS
Scored across 61 tools
Most tools target a distinct control type or action, and descriptions go to great lengths to say which works on ALV vs GuiTableControl, which helps a lot. However, there are genuine near-duplicates: sap_get_popup_window vs sap_handle_popup(read), sap_select_combobox_entry vs sap_set_field on dropdowns (explicitly stated as equivalent), sap_select_all_rows vs sap_select_multiple_rows, sap_get_column_info vs sap_read_table(columns_only), and sap_select_checkbox vs sap_alv_cell_action(set_checkbox). An agent can resolve these from the text but the boundaries are not clean.
Nearly everything is snake_case with a uniform sap_ prefix and verb-first structure (get_/read_/set_/select_/press_/click_/list_/scroll_/expand_). Minor deviations exist: sap_alv_cell_action is noun-first and an action dispatcher rather than verb_noun, and get/read are used interchangeably for the same kind of retrieval.
61 tools is far beyond a well-scoped surface and well past the 25-tool threshold, even allowing for SAP GUI's genuinely broad domain. Several tools earn their place, but the count is inflated by parallel near-duplicates (tree node vs tree item double-click, popup read vs handle, column info vs columns_only read, per-control variants of select/scroll).
Coverage of the SAP GUI domain is unusually thorough: connection lifecycle, transaction navigation, screen introspection, fields/batch fills, ALV and TableControl operations, trees, lists, shell content, popups, screenshots, previews and confirmation gating. Minor gaps remain, e.g. no tool to open an additional /o session window, and export-to-file is only described through the workflow guide rather than as a dedicated operation.