
# SAP UI MCP
### Let AI agents see and interact with SAP screens.
An MCP server, CLI and SDK for Claude Code, Codex, Cursor, Copilot or your own agent,
on SAP GUI for HTML (Web GUI), SAP Fiori and SAP GUI for Windows.
[](https://www.npmjs.com/package/sap-ui-automation)
[](https://chromewebstore.google.com/detail/ui-automation-for-sap/geglpbkaklfpmnbidfcpflegmdkjodkn)
[](https://github.com/DidroAI/sap-ui-mcp/actions/workflows/ci.yml)
[](LICENSE)
[Docs](https://docs.didro.ai/sap-ui-automation/) ·
[Quick start](#quick-start) ·
[Benchmark](#benchmark) ·
[Chrome extension](https://chromewebstore.google.com/detail/ui-automation-for-sap/geglpbkaklfpmnbidfcpflegmdkjodkn) ·
[llms.txt](https://docs.didro.ai/llms.txt)
https://github.com/user-attachments/assets/d1cb2602-76b2-46d0-8757-982c35e9327d
*Watch the launch video (8 min): the Chrome extension, one setup command, and Codex working in two SAP sessions at once.*
By 
## 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](docs/benchmarks.md)
## Quick start
1. Add the [SAP UI MCP](https://chromewebstore.google.com/detail/ui-automation-for-sap/geglpbkaklfpmnbidfcpflegmdkjodkn)
extension to Chrome.
2. Run one command (Node.js 22 or later):
```sh
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](docs/reference/cli.md#the-agents)),
adds the MCP server and the skills to each, and installs the
extension's helper. Restart Chrome and your agents once.
3. 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](examples/prompts/record-a-test.md)