Repository avatar
Other Tools
v0.1.0
active

sap-ui-automation

io.github.DidroAI/sap-ui-automation

Let agents see and drive your open SAP screens: SAP GUI, Web GUI, Fiori. Writes off by default.

Documentation

SAP UI Automation

Let an agent see and drive the SAP screens you already have open: SAP GUI for Windows, SAP GUI for HTML (Web GUI) and SAP Fiori. An MCP server for Claude, Codex, Cursor, VS Code and any other MCP client.

  • Compact and complete. One line per control, with SAP's own ids, labels, values and whether they can be edited: about 0.5–4.5k tokens per screen on real ECC and S/4 screens. After an action on the same screen, only what changed.
  • Writes off by default. Actions that may save to SAP are refused unless you allow them, or asked about in your client first.
  • Your sessions, your authorisations. It finds the sessions you have open and works in them as you. The server never logs on by itself and never sees a password: with the optional Chrome extension, the extension logs on to the systems you registered in it and keeps their passwords to itself (Chrome).
  • Runs on your machine. No telemetry, no hosted service. Screen content goes only to your MCP client, and from there to the model provider you chose.
  • Runs become tests. Record what the agent did, replay it with no model, export it.
TRANSACTION VA01  PROGRAM SAPMV45A  SCREEN 101  SYSTEM ABA (800)
WINDOW wnd[0]  "Create Sales Order: Initial Screen"
btn[8]  button  Create with Reference (F8)
ctxtVBAK-AUART  field  Order Type = "OR"  (edit)
ctxtVBAK-VKORG  field  Sales Organization = ""  (edit)
ctxtVBAK-VTWEG  field  Distribution Channel = ""  (edit)

Install

Add to Cursor Install in VS Code Install in VS Code Insiders Claude Desktop extension

You need Node.js 22 or later (22.18 or later for TypeScript tests). Pick your client:

Claude Code

claude mcp add sap-ui-automation --scope user -- npx -y sap-ui-automation

or, with the skill, as a plugin: /plugin marketplace add DidroAI/sap-ui-automation then /plugin install sap-ui-automation@sap-ui-automation.

Claude Desktop: download sap-ui-automation-<version>.mcpb from the latest release and open it, or add the JSON below to claude_desktop_config.json.

Cursor (~/.cursor/mcp.json), Windsurf and most other clients:

{
  "mcpServers": {
    "sap-ui-automation": { "command": "npx", "args": ["-y", "sap-ui-automation"] }
  }
}

VS Code

code --add-mcp '{"name":"sap-ui-automation","type":"stdio","command":"npx","args":["-y","sap-ui-automation"]}'

Codex: codex mcp add sap-ui-automation -- npx -y sap-ui-automation, or in ~/.codex/config.toml:

[mcp_servers.sap-ui-automation]
command = "npx"
args = ["-y", "sap-ui-automation"]

Or let it configure the clients it finds (Claude Code, Codex, Claude Desktop, Cursor, Windsurf, VS Code), then check what it can reach:

npx -y sap-ui-automation setup
npx -y sap-ui-automation doctor

Gemini CLI, Copilot CLI, opencode, Goose, Cline and other MCP clients: the same command, npx -y sap-ui-automation, as a stdio server in the client's MCP settings.

Agents with a shell, without MCP: the sap-gui CLI does the same work from the command line (sap-gui look, sap-gui act ...), and skills teach the agent to use it:

npm install -g sap-ui-automation
sap-ui-automation install --skills --target all

sap-ui-automation init sets a project up for tests: a config, an example test, the skills and the MCP clients.

On Windows, some clients cannot start npx directly: use "command": "cmd", "args": ["/c", "npx", "-y", "sap-ui-automation"] (setup does this for you). One-click buttons, the Claude Code plugin and every client: Installation.

These snippets are read-only: writes are refused. With SAP_WRITE=confirm in the server's environment, Claude Code, VS Code and Codex ask you before each write; other clients may not be able to ask, and then refuse the write (which clients can ask).

Then open SAP and ask: "Look at my SAP screen and tell me which fields are required."

What you need on the SAP side

SurfaceYou need
SAP GUI for WindowsSAP GUI scripting enabled in SAP GUI and allowed on the system (guide)
SAP GUI without scriptingExperimental network reader (guide)
Web GUI and FioriChrome or Edge with remote debugging allowed, logged on (guide)

Web GUI and Fiori work from Windows, macOS and Linux.

Documentation

The same pages ship in the npm package under docs/, so an agent can read them offline. The sap-gui-drive skill teaches an agent how SAP screens behave.

Status

0.1.0, the first public version. It works on real systems, but parts are young; each guide lists its limits. Contributions are welcome: see CONTRIBUTING.md (the tests run without an SAP system). Report security issues as described in SECURITY.md.

Licence and trademarks

MIT, see LICENSE.

This project is not affiliated with, endorsed by or sponsored by SAP SE. SAP, SAP GUI, SAP Fiori, SAPUI5, SAP S/4HANA, ABAP and other SAP products and services mentioned here are trademarks or registered trademarks of SAP SE (or an SAP affiliate company) in Germany and other countries. All other names are the property of their owners.

NPM
sap-ui-automation
Install Command
npm install sap-ui-automation
Runtime: npx