Why
From a screenshot or a page's HTML, an agent has to guess which SAP field
is which. SAP UI MCP reads the screen the way SAP models it and
gives the agent one line per control, with SAP's own ids, labels, values
and whether each can be edited. After an action it sends only what
changed on the same screen.
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)
Use MCP for interactive work in coding agents. Across 104 matched Web GUI runs per
method in our Claude Code pilot, MCP averaged 22 seconds, $0.0053 and 208k tokens per run. The CLI
averaged 39 seconds, $0.0081 and 356k tokens. Counts include cache reads and writes. Use the CLI for shell scripts or an agent without MCP,
and the SDK for repeatable tests. Benchmark and limitations
Quick start
-
Add the SAP UI MCP
extension to Chrome.
-
Run one command (Node.js 22 or later):
npx -y sap-ui-automation setup --extension
It finds the coding agents on your machine (Claude Code, Codex, Cursor,
VS Code and Copilot, Gemini CLI and more),
adds the MCP server and the skills to each, and installs the
extension's helper. Restart Chrome and your agents once.
-
Click the extension's icon, then Pair, and add your SAP systems.
Then ask your agent: "Look at my SAP screen and tell me which fields are
required." For a repeatable workflow, ask the agent to record a display
transaction in a dedicated test session, assert a value on the result, stop
recording, then replay it. Example prompt
Let your agent set it up: a prompt to paste into Claude Code, Codex or Cursor
Set up sap-ui-automation for me (npm package sap-ui-automation, https://github.com/DidroAI/sap-ui-mcp). Say what each command does before you run it, and wait for me when I have to click something.
Rules: never type, ask for or store an SAP password, and never log on to SAP for me. Do not set or change SAP_WRITE. Do not save, post or change anything in SAP. Ask before you install software.
1. Check node -v is 22 or later; if not, tell me how to install it and stop.
2. Ask me to add the SAP UI MCP extension to Chrome: https://chromewebstore.google.com/detail/ui-automation-for-sap/geglpbkaklfpmnbidfcpflegmdkjodkn and wait.
3. Run npx -y sap-ui-automation setup --extension --dry-run, show me the result, then run it without --dry-run. Tell me to restart Chrome once, then to click the extension's icon, click Pair and add my SAP systems, and wait.
4. Run `npx -y sap-ui-automation doctor --extension`. For each ✗, tell me what to do (the → line says it), wait, and run it again.
5. Ask me to open an SAP screen, then run npx -y sap-ui-automation sessions. Verify the intended session with me if several match. Run npx -y sap-ui-automation look --session "<verified-id>" --print with its actual ID, and describe the screen in three lines.
6. Report in at most ten lines: the version, the agents setup changed, each doctor area (✓ or ✗) and what is left for me, whether I must restart an agent, and the effective write setting.