SAP UI Automation
Let your agent see and drive the SAP screens you already have open: SAP GUI for Windows, Web GUI and Fiori.
Didro’s open-source MCP server reads each screen as compact text, with every field, table and button, and acts on it as you would. It works in the sessions you are logged on to, and your SAP password never reaches the agent.
Install
- Install Node.js 22 or later.
- Run
Setup adds the server to the clients it finds: Claude Code, Codex, Claude Desktop, Cursor, Windsurf and VS Code.npx -y sap-ui-automation setup - Check what the server can reach:
npx -y sap-ui-automation doctor
Prefer one client? In Claude Code:
claude mcp add sap-ui-automation --scope user -- npx -y sap-ui-automation
Using Claude Desktop? Download the desktop extension, open it, and choose your settings. This path works without Node.js. Other clients and the Claude Code plugin are in the installation guide.
Connect your SAP screens
The server attaches to SAP where it already runs on your machine. Set up the surfaces you use.
SAP GUI for Windows
SAP GUI scripting must be enabled in SAP GUI (Options → Accessibility & Scripting) and allowed on the SAP system (profile parameter sapgui/user_scripting). Ask your SAP Basis team if it is off. SAP GUI guide →
Web GUI and Fiori in Chrome
In Chrome 144 or later, open chrome://inspect/#remote-debugging and tick Allow remote debugging for this browser instance. Run doctor and click Allow when Chrome asks. Edge works the same way. Chrome guide →
Your first session
Log on to SAP, open a transaction, then ask your agent:
Look at my SAP screen and tell me which fields are required.
Open sales order 4711 in VA03 and list its items with quantities and net values.
The agent lists your sessions, reads the screen and answers from what SAP shows. With several sessions open, name the one to use: a system (“ABA”), a transaction or a Fiori app.
Writes and guardrails
Out of the box the server only reads and navigates. Any action that may save, post or delete is refused, whatever the agent decides.
SAP_WRITE=confirm: each write waits for your yes in the client. Claude Code, VS Code and Codex can ask; other clients then refuse the write.SAP_ALLOW_TCODESandSAP_BLOCK_TCODES: the transactions and Fiori apps the agent may open.SAP_ALLOW_SYSTEMS: the systems and clients it may touch, such asQAS/100.
Use a test system first. Safety model →
Repeat a flow
Ask the agent to record what it does: the recording replays without a model, as a regression test or a scheduled check.
npx sap-ui-automation replay sap-tests/va03-display-order.saptest.json
Recordings export to Playwright, VBScript, SAP Cloud ALM and a TypeScript SDK with a Playwright-style test runner and traces. Recording guide →
Full documentation
Every tool, setting and surface is described in the repository, next to the code.
