<!-- Canonical HTML: https://docs.didro.ai/sap-ui-automation/getting-started/installation -->

# Install in your client

The server is the npm package `sap-ui-automation`. Every client starts it
the same way, as a local (stdio) MCP server:

```sh
npx -y sap-ui-automation
```

You need **Node.js 22 or later** on the machine where the client runs
(`node -v`). The server must run on the same machine as your SAP GUI or
Chrome: it reads the screens open there. TypeScript tests and configs (`*.sap.ts`, `sap.config.ts`, `sap_workflow_run`)
want **22.18 or later**, which loads TypeScript without a flag. The test
command also works from 22.6 (it re-runs itself with
`--experimental-strip-types`) and `sap_workflow_run` from 22.13; on an older
Node they say to use 22.18 instead of failing with "Unknown file
extension".

Pick your client below. Each one names the server `sap-ui-automation`.

> **The quick way**
>
> `setup` finds the coding agents on this machine (Claude Code, Codex, Claude
> Desktop, Cursor, Windsurf, VS Code, GitHub Copilot CLI, Gemini CLI, OpenCode,
> Kiro, Zed, Goose, Amp and [more](https://docs.didro.ai/sap-ui-automation/reference/cli#the-agents)), asks
> which to set up (the ones found are ticked), and gives each one the server
> and the skills `sap-ui-automation`, `sap-ui-automation-cli`, `sap-ui-automation-setup` and `sap-ui-workflow-authoring`. It never
> replaces an existing `sap-ui-automation` entry (with `--extension` it only
> adds `SAP_BROWSER=extension` to it).
>
> ```sh
> npx -y sap-ui-automation setup --dry-run   # show what it would change
> npx -y sap-ui-automation setup             # change it
> npx -y sap-ui-automation setup --yes       # no question: every agent found
> npx -y sap-ui-automation setup --agent claude-code,codex   # these agents only
> ```
>
> `--no-skills` skips the skills, `--no-mcp` the server. It adds no settings,
> so `SAP_WRITE` is `on`, the default (below). With the Chrome extension, run `setup --extension`: new
> entries get `SAP_BROWSER=extension`, and the extension's helper is installed
> too. Then run `npx -y sap-ui-automation doctor` to check what the server can
> reach (SAP GUI scripting, Chrome). Or have your agent do all of it: [Set up
> with your agent](https://docs.didro.ai/sap-ui-automation/getting-started/setup-prompt).
>
> For an agent `setup` does not know, `npx skills add DidroAI/sap-ui-mcp`
> installs the skills; add the server in its MCP settings as below.
> **Windows**
>
> Some clients cannot start `npx` directly on Windows (it is `npx.cmd`) and
> show the server as failed or "connection closed". Then use `cmd` as the
> command and `/c npx -y sap-ui-automation` as its arguments:
>
> ```json
> { "command": "cmd", "args": ["/c", "npx", "-y", "sap-ui-automation"] }
> ```
>
> `setup` does this for you on Windows.
Write controls are configurable. Settings are environment
variables of the server; all of them are in
[Configuration](https://docs.didro.ai/sap-ui-automation/reference/configuration). The one to decide first is
`SAP_WRITE`:

- `on` (the default): actions that may save, post or delete run. Your
  client's own tool approval of each `sap_act` call is the only question
  before them ([Approval in the client](https://docs.didro.ai/sap-ui-automation/concepts/safety#approval-in-the-client)).
- `off`: read-only, anything that may save is refused. Some snippets below
  set it as a read-only start: remove it when the agent should write,
  preferably on a test system.

## Claude Code

```sh [CLI]
# writes on (SAP_WRITE=on, the default):
claude mcp add sap-ui-automation --scope user -- npx -y sap-ui-automation

# read-only:
claude mcp add --scope user --env SAP_WRITE=off --transport stdio sap-ui-automation -- npx -y sap-ui-automation
```

```text [Plugin]
/plugin marketplace add DidroAI/sap-ui-mcp
/plugin install sap-ui-automation@sap-ui-automation
```
`--scope user` makes it available in every project; leave it out to add it
to the current project only. Check it with `claude mcp get sap-ui-automation`, or `/mcp`
in a session. Claude Code asks before each `sap_act` call unless your
permission settings allow it.

The **plugin** includes the server and four skills. Use `sap-ui-automation` for MCP screen work,
`sap-ui-automation-cli` for terminal work, `sap-ui-automation-setup` for installation and connection diagnostics, and `sap-ui-workflow-authoring` to write or repair reusable scripts. From your shell, the same is
`claude plugin marketplace add DidroAI/sap-ui-mcp` then
`claude plugin install sap-ui-automation@sap-ui-automation`. The plugin starts the
server with `SAP_WRITE` from your environment (default `on`). Its files:
[`.claude-plugin/plugin.json`](https://github.com/DidroAI/sap-ui-mcp/blob/main/.claude-plugin/plugin.json),
[`.mcp.json`](https://github.com/DidroAI/sap-ui-mcp/blob/main/.mcp.json),
[`skills/sap-ui-automation`](https://github.com/DidroAI/sap-ui-mcp/blob/main/skills/sap-ui-automation/SKILL.md),
[`skills/sap-ui-automation-cli`](https://github.com/DidroAI/sap-ui-mcp/blob/main/skills/sap-ui-automation-cli/SKILL.md),
[`skills/sap-ui-automation-setup`](https://github.com/DidroAI/sap-ui-mcp/blob/main/skills/sap-ui-automation-setup/SKILL.md),
[`skills/sap-ui-workflow-authoring`](https://github.com/DidroAI/sap-ui-mcp/blob/main/skills/sap-ui-workflow-authoring/SKILL.md).

## Claude Desktop

**One click:** download `sap-ui-automation-<version>.mcpb` from the
[latest release](https://github.com/DidroAI/sap-ui-mcp/releases/latest)
and open it (double-click, or drag it onto Claude Desktop, or **Settings >
Extensions > Advanced settings > Install Extension…**). Claude Desktop shows
the settings: writes (`on`, the default, or `off`), allowed systems and
transactions, browser origins, and where recordings go. The bundle carries
the server and its dependencies; it runs with the Node.js that Claude Desktop
ships.

To find, save and run reusable workflows, set **Reusable TypeScript workflows
(SAP_CODE_TOOLS)** to `on` in the extension settings. It defaults to `off`.
Saved TypeScript runs locally with your user permissions. Choose a recordings
folder to keep the workflow library across sessions.

**By hand:** add the server to `claude_desktop_config.json`
(**Settings > Developer > Edit Config**), then quit and reopen Claude
Desktop.

```json [macOS]
{
  "mcpServers": {
    "sap-ui-automation": {
      "command": "npx",
      "args": ["-y", "sap-ui-automation"],
      "env": { "SAP_WRITE": "off" }
    }
  }
}
```

```json [Windows]
{
  "mcpServers": {
    "sap-ui-automation": {
      "command": "cmd",
      "args": ["/c", "npx", "-y", "sap-ui-automation"],
      "env": { "SAP_WRITE": "off" }
    }
  }
}
```
The file is `~/Library/Application Support/Claude/claude_desktop_config.json`
on macOS and `%APPDATA%\Claude\claude_desktop_config.json` on Windows.

The snippets set `SAP_WRITE` to `off` (read-only), as a start. Remove it
when the agent should write, preferably on a test system: the default is
`on`.

## Codex

```sh [CLI]
# writes on (SAP_WRITE=on, the default):
codex mcp add sap-ui-automation -- npx -y sap-ui-automation

# read-only:
codex mcp add sap-ui-automation --env SAP_WRITE=off -- npx -y sap-ui-automation
```

```toml [~/.codex/config.toml]
[mcp_servers.sap-ui-automation]
command = "npx"
args = ["-y", "sap-ui-automation"]

[mcp_servers.sap-ui-automation.env]
SAP_WRITE = "on"   # on (default) | off (read-only)
```
The Codex CLI, the IDE extension and the desktop app share this
configuration. `codex mcp list` shows it. Under `on`, `sap_act` is marked
destructive, so Codex asks before each call.

## Cursor

**[Add `sap-ui-automation` to Cursor ↗](https://cursor.com/install-mcp?name=sap-ui-automation&config=eyJjb21tYW5kIjoibnB4IiwiYXJncyI6WyIteSIsInNhcC11aS1hdXRvbWF0aW9uIl19%3D%3D)**

The link opens Cursor and asks you to confirm. Its deeplink is
`cursor://anysphere.cursor-deeplink/mcp/install?name=sap-ui-automation&config=eyJjb21tYW5kIjoibnB4IiwiYXJncyI6WyIteSIsInNhcC11aS1hdXRvbWF0aW9uIl19==`,
where `config` is the base64 of `{"command":"npx","args":["-y","sap-ui-automation"]}`.

By hand, add it to `~/.cursor/mcp.json` (every project) or `.cursor/mcp.json`
in a project:

```json
{
  "mcpServers": {
    "sap-ui-automation": {
      "command": "npx",
      "args": ["-y", "sap-ui-automation"],
      "env": { "SAP_WRITE": "off" }
    }
  }
}
```

It appears under **Settings > MCP**.

The snippet sets `SAP_WRITE` to `off` (read-only), as a start. The button
installs the server with the default, `on`.

## VS Code (GitHub Copilot)

**[Install in VS Code ↗](https://vscode.dev/redirect?url=vscode%3Amcp%2Finstall%3F%257B%2522name%2522%253A%2522sap-ui-automation%2522%252C%2522type%2522%253A%2522stdio%2522%252C%2522command%2522%253A%2522npx%2522%252C%2522args%2522%253A%255B%2522-y%2522%252C%2522sap-ui-automation%2522%255D%257D)** · **[Install in VS Code Insiders ↗](https://vscode.dev/redirect?url=vscode-insiders%3Amcp%2Finstall%3F%257B%2522name%2522%253A%2522sap-ui-automation%2522%252C%2522type%2522%253A%2522stdio%2522%252C%2522command%2522%253A%2522npx%2522%252C%2522args%2522%253A%255B%2522-y%2522%252C%2522sap-ui-automation%2522%255D%257D)**

The link opens the server's details in VS Code to review before you
install. Recent VS Code versions recommend the **Copilot user file** for a
server you want in every workspace: `~/.copilot/mcp-config.json` (or
`$COPILOT_HOME/mcp-config.json`), which the Copilot CLI reads too. For a
team, put the same `mcpServers` block in `.mcp.json` at the workspace root.

```json [~/.copilot/mcp-config.json]
{
  "mcpServers": {
    "sap-ui-automation": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "sap-ui-automation"],
      "env": { "SAP_WRITE": "on" },
      "tools": ["*"]
    }
  }
}
```

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

```json [.vscode/mcp.json]
{
  "servers": {
    "sap-ui-automation": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "sap-ui-automation"]
    }
  }
}
```
`code --add-mcp`, the install button and `.vscode/mcp.json` write the
editor's own format, under **`servers`**, not `mcpServers`. VS Code documents
that format as part of its older local agent, which it plans to remove in
February 2027, so prefer the Copilot user file for a new setup. Run
**MCP: List Servers** to see the server, and use Copilot Chat in Agent mode.
The Copilot file above sets `on`; the install button and `code --add-mcp`
set no variable, so the server starts with the same default.

## Windsurf

Windsurf's agent is now part of Devin Desktop. Open **Open MCP config file**
from Cascade's MCP menu, or edit the file yourself, then press refresh in the
MCP panel:

- macOS and Linux: `~/.config/devin/mcp_config.json`
- Windows: `%APPDATA%\devin\mcp_config.json`
- Older Windsurf versions: `~/.codeium/windsurf/mcp_config.json`

```json
{
  "mcpServers": {
    "sap-ui-automation": {
      "command": "npx",
      "args": ["-y", "sap-ui-automation"],
      "env": { "SAP_WRITE": "off" }
    }
  }
}
```

The snippet sets `off` (read-only), as a start. Remove it when the agent
should write, preferably on a test system: the default is `on`.

## Other clients

Any MCP client that starts local (stdio) servers can run it. Give it:

| Field | Value |
| --- | --- |
| name | `sap-ui-automation` |
| transport | stdio |
| command | `npx` (Windows: `cmd`) |
| arguments | `-y sap-ui-automation` (Windows: `/c npx -y sap-ui-automation`) |
| environment | optional: `SAP_WRITE`, `SAP_ALLOW_SYSTEMS` and the others in [Configuration](https://docs.didro.ai/sap-ui-automation/reference/configuration) |

Most clients take the same JSON block as Claude Desktop and Cursor:

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

To skip the `npx` download at each start, install it once with
`npm i -g sap-ui-automation` and use `sap-ui-automation` as the command,
with no arguments.

## Docker

Without Node.js on the machine, the client can start the server in a
container, for Web GUI and Fiori (SAP GUI for Windows cannot run in one):

```json
{
  "mcpServers": {
    "sap-ui-automation": {
      "command": "docker",
      "args": ["run", "-i", "--rm", "--init", "-p", "127.0.0.1:9222:9222", "-e", "SAP_CHROME_INSPECT=0.0.0.0:9222", "ghcr.io/didroai/sap-ui-mcp"]
    }
  }
}
```

The container's Chromium is headless: you log on through `chrome://inspect`
in your own Chrome, or let the server work in your Chrome instead. Client
commands, the logon and volumes: [Docker](https://docs.didro.ai/sap-ui-automation/guides/docker).

## Check it

1. Run `npx -y sap-ui-automation doctor`. It checks SAP GUI scripting (on
   Windows) and Chrome, and says what to do for each ✗
   ([FAQ and troubleshooting](https://docs.didro.ai/sap-ui-automation/faq)).
2. Restart your client, open an SAP screen, and ask: *"Look at my SAP screen
   and tell me what you see."* The agent should call `sap_sessions` and
   `sap_look`.

Next: [Your first session](https://docs.didro.ai/sap-ui-automation/getting-started/first-session). Ready-made snippets and example
prompts for each client are in
[examples/clients](https://github.com/DidroAI/sap-ui-mcp/tree/main/examples/clients).
