Book an AI Check arrow_forward

SAP GUI MCP server: what GUI scripting means for AI agents

SAP GUI MCP servers let a language model operate the SAP GUI, field by field. This works without an interface project, but it touches the SAP API Policy, the user’s full permissions and traceability. This guide explains what happens technically, where the line to permitted RPA runs, and which paths hold up better.

Book an AI Check arrow_forward What the SAP API Policy says
Overview of all MCP topics The complete MCP server guide brings together architecture, tools, security and GDPR — the pillar page for this cluster.
Go to the MCP server guide arrow_forward

What is an SAP GUI MCP server?

An SAP GUI MCP server lets an AI assistant operate SAP GUI for Windows like a person: call a transaction, fill in fields, press keys, read tables off the screen. Technically, it uses the SAP GUI Scripting API for this, the same automation interface that macros, testing tools and many RPA bots have used for years. The only new thing is who chooses the steps: not a fixed script, but a language model.

That makes such servers attractive. They need no OData service, no BAPI tailoring and no gateway rework, just a signed-in SAP GUI session. But that is exactly where the problems lie: legally under the SAP API Policy, and technically in security, stability and traceability. This page assesses both and shows when better paths exist. For an overview of SAP and MCP, see the guide to MCP servers for SAP.

How does SAP GUI scripting work technically?

SAP GUI Scripting is an automation interface of SAP GUI for Windows through which a program on the workstation can read and operate every screen element of a running SAP session. SAP describes the purpose as follows: end users can automate recurring tasks with macro-like scripts, and administrators and developers can build tools for application testing or client-side integration (SAP GUI Scripting Security Guide). Besides SAP GUI for Windows, the API reference also names SAP GUI for Java, though with a smaller range of functions (SAP GUI Scripting API).

An SAP GUI MCP server therefore runs on a Windows machine with SAP GUI installed. It attaches to an open session via COM and provides the AI assistant with tools such as “start transaction”, “set field”, “press key” or “read table”. The language model decides in which order it uses these tools.

One sentence from the Security Guide is decisive for everything that follows:

“From the SAP server’s point of view there is no difference between SAP GUI communication generated by a script and SAP GUI communication generated by a user. For this reason a script has the same rights to run SAP transactions and enter data as the user starting it.”

SAP GUI Scripting Security Guide, chapter 1. Source: help.sap.com

To the SAP system, an AI agent in the GUI therefore looks like the signed-in person. It has that person’s permissions, and the system cannot distinguish what the person did from what the agent did.

Which SAP GUI MCP servers exist as community projects?

On GitHub there are several open-source SAP GUI MCP servers, none of them from SAP. We checked two directly in their repositories on 28 October 2026:

ProjectMaintainerLicenceStatus according to GitHubNotable
kts982/mcp-sap-guiIndividual (GitHub account kts982)MITVersion 0.5.4 of 27 October 2026, actively maintainedTransaction blocklist, confirmation points before write operations, audit log, read-only detection; security advisory on the HTTP transport fixed in 0.5.4
jduncan8142/sap_gui_mcpIndividual (GitHub account jduncan8142)MITlast change 1 December 2025Small project, little adoption

Listing a project is not an endorsement. Both projects are tools by individual developers without vendor support. A positive point of the first project is that it ships its own safeguards and states openly in its documentation that the agent appears in the system as ordinary user activity. Before any use, a third-party MCP server needs a security review, such as we describe in the guide MCP server: security and GDPR.

Is SAP GUI Scripting a “Published API” under the SAP API Policy?

SAP GUI Scripting is an automation interface of the SAP GUI documented by SAP, but not a business API in the SAP Business Accelerator Hub. For AI agents, however, it is not this classification that decides, but section 2.2.2 of the Policy: when a language model controls the GUI, an AI system plans and selects the sequence of calls. SAP prohibits exactly that outside recognised paths.

In detail, as an assessment and not legal advice:

Our reading: however one classifies the Scripting API, an SAP GUI MCP server in which a language model chooses the steps falls under section 2.2.2. According to the FAQ, the Policy applies to the entire on-premise portfolio, including ECC and older releases (question 1). The detailed assessment of the Policy is in the section SAP API Policy 2026 of our SAP guide.

What applies to deterministic RPA under question 40 of the SAP FAQ?

According to the SAP FAQ, rule-based RPA that works through fixed, predefined call sequences without AI planning does not fall under section 2.2.2. That is the decisive difference from the SAP GUI MCP server: there, a language model plans; in classic RPA, it does not.

“Rule-based RPA tools that execute pre-defined, deterministic API call sequences without autonomous reasoning, AI planning, or LLM-based decision-making, are not within the scope of Section 2.2.2. All third-party integrations, including RPA tools, remain subject to the broader API Policy terms.”

SAP API Policy FAQ v1.3 (June 2026), question 40. Source: sap.com

Three points are worth reading closely:

  1. The exception depends on the process, not the tool. What matters are “pre-defined, deterministic” sequences without an LLM decision. An RPA product whose bot is controlled by a language model does not fall under the exception just because it is called “RPA”.
  2. The question refers to RPA tools that call SAP APIs. Whether SAP also means bots that work through the GUI is not expressly stated in the FAQ. For GUI-based bots, the rest of the Policy applies in any case, including the question of the documented purpose.
  3. The rest of the Policy still applies. Even a deterministic bot must not overload the system (section 2.2.1 c) or engage in systematic mass extraction (section 2.2.2 b).

Drawing the line in practice:

For borderline cases, the same applies as for any custom AI access to SAP: describe the process concretely and obtain a written assessment from your SAP contact.

What technical risks does an SAP GUI MCP server carry?

The biggest technical risks are the agent’s full user permissions, the lack of distinguishability in the audit log, fragile screen logic, and screen content as an entry point for prompt injection. On top of that, scripting is deliberately switched off on many systems.

Scripting must be enabled on the server side. According to SAP, GUI scripting is disabled by default on every SAP system. An administrator enables it with the profile parameter sapgui/user_scripting = TRUE on the application server, on newer releases dynamically via transaction RZ11 rather than via the profile file and a restart. SAP expressly points out that scripting can also be prevented entirely on a system, to protect business-critical data from modification or download. In addition, scripting must be permitted on the client, where administrators can block it via the registry (SAP GUI Scripting Security Guide).

Finer switches exist. SAP documents further parameters that only take effect when sapgui/user_scripting is active:

Full permissions of the signed-in user. According to SAP, a script has the same rights as the person who starts it. If the agent runs in the session of a clerk with broad roles, it can do everything she can. SAP also warns that a faulty script runs faster than a person, possibly unattended, and can therefore generate more incorrect data before anyone notices the error. With a language model that chooses its own steps, this weighs more heavily than with a tested script.

Traceability. Because the system does not distinguish between script and person, change documents and logs show the user, not the agent. Anyone who has to prove what the AI did needs their own complete audit log in the MCP server and a clear rule on when the agent may work in a session.

Sessions and infrastructure. The server needs a Windows machine with SAP GUI and a signed-in session. For several users, that means several sessions, locked objects with parallel access, and credentials involved somewhere. SAP expressly advises against writing login credentials into scripts.

Stability. Screen logic breaks with release changes, modified screens, new pop-ups, a different login language or personalisation. A language model can compensate for some deviations, but not predictably, and in an ERP that is exactly the problem.

Prompt injection via screen content. Everything the agent reads from the screen ends up in the model: long texts, remarks fields, vendor names. Anyone who places instructions there tries to redirect the agent, with the user’s permissions. How to protect against this is described in the guide on prompt injection and AI security.

When can an SAP GUI MCP server still make sense?

An SAP GUI MCP server can make sense where no production data is affected, where a person approves every step, or where there is simply no other interface. Even then the SAP API Policy applies, so the question should be clarified beforehand.

For production agents that are meant to work regularly and for many users, we advise against GUI scripting.

What alternatives to GUI scripting are there?

The better alternatives are an MCP server with fixed tools on OData services or BAPIs, deterministic RPA without AI planning, and the MCP Gateway of the SAP Integration Suite as a path recognised by SAP. Which one fits depends on your system and on how freely the AI is to work.

CriterionSAP GUI MCP server (LLM controls GUI)MCP server on OData / BAPIDeterministic RPA
Access pathSAP GUI scripting in a user sessionDocumented interfaces via Gateway or RFCGUI scripting or interfaces, hard-coded
Who chooses the steps?The language modelThe model chooses a tool, and each tool calls a fixed interfaceNobody at runtime; the process is fixed
SAP API Policy, section 2.2.2Affected; no recognised path namedAffected; recognised via MCP Gateway, own server under FAQ 56 with clarificationNot covered according to FAQ 40; other rules apply
Stability across release changesLow; screens changeHigh; interfaces are versionedMedium; with GUI bots as with screens
TraceabilitySystem sees only the userAudit log per tool call; user and agent distinguishableBot user and process log
AuthorizationsFull permissions of the sessionNarrowly cut; permissions of the person askingBot user with fixed roles
InfrastructureWindows, SAP GUI, signed-in sessionServer in your environment or cloud regionRPA platform, often Windows bots
Suitable forTest systems, analysis with approvalProduction information and prepared transactionsRecurring, uniform bulk processes

OData and BAPI as tools. On ECC, this means: SAP Gateway with standard or custom OData services and BAPIs via RFC, each assigned to one tool. What this looks like on ECC 6.0, with a table of interfaces and architecture paths with and without BTP, is covered in the guide SAP ECC MCP server.

Deterministic RPA. For uniform bulk processes, a classic bot with a fixed sequence is often the more robust solution. The language model can sit upstream, for example to read documents, and downstream, to summarise results. The sequence of SAP steps stays fixed.

MCP Gateway of the Integration Suite. Anyone using BTP gets, with the MCP Gateway, the path that SAP expressly recognises for AI agents. For a comparison of how other ERP systems regulate AI access, see MCP servers for ERP systems.

Checklist before you test an SAP GUI MCP server

If you want to try out an SAP GUI MCP server, do so with these guardrails:

  1. Only on a development or test system with anonymised data, never in production.
  2. A dedicated user with narrow roles, scripting enabled only for that user via sapgui/user_scripting_per_user and S_SCR, read-only via sapgui/user_scripting_set_readonly where that is enough.
  3. Involve the Basis team and information security before any parameter is changed.
  4. Review the server itself: origin, licence, dependencies, transport (local rather than network), blocked transactions, audit log.
  5. Confirmation before every write step by the person in front of the screen.
  6. Document the policy question: What should the agent do, why via the GUI, which alternative was examined. This note is the basis for the conversation with your SAP contact.

Frequently asked questions

What is an SAP GUI MCP server?

An MCP server that lets an AI assistant operate SAP GUI for Windows through the SAP GUI Scripting API: start transactions, fill in fields, read tables off the screen. The language model itself decides which steps to carry out and in which order.

Is an SAP GUI MCP server compatible with the SAP API Policy?

In our assessment, an SAP GUI MCP server in which a language model chooses the steps falls under section 2.2.2 of the Policy, which restricts AI systems that plan or select call sequences to paths recognised by SAP. The SAP FAQ names no recognised path via the GUI. This is an assessment, not legal advice.

Is SAP GUI Scripting a Published API?

SAP GUI Scripting is an automation interface documented by SAP for macros, tests and client-side integration, but not a business API in the SAP Business Accelerator Hub. Whether SAP regards control by a language model as a documented purpose is not expressly answered by the Policy or the FAQ.

Is classic RPA on SAP still allowed?

According to the SAP FAQ, question 40, rule-based RPA tools with fixed, deterministic call sequences and no AI planning do not fall under section 2.2.2. The other rules of the Policy continue to apply, for example on system load and mass extraction.

How is SAP GUI Scripting enabled?

According to SAP, scripting is off by default on every system. An administrator sets the profile parameter sapgui/user_scripting to TRUE, on newer releases dynamically via RZ11. In addition, scripting must be permitted on the client. Finer parameters restrict it to users with the authorization object S_SCR or to read-only access.

Can SAP tell whether a person or an AI agent is working?

No. SAP states in the Security Guide that the system sees no difference between a script and a user. The agent has the signed-in user’s permissions, and logs show only that user. Traceability therefore requires a dedicated audit log in the MCP server.

When does an SAP GUI MCP server make sense?

Most likely on test and training systems, for analyses with human approval of every step, or as a bridge for legacy systems without an interface. Even then the SAP API Policy applies. For production agents, we recommend fixed tools on OData or BAPI.

Which alternative to GUI scripting do you recommend?

An MCP server with fixed tools on OData services or BAPIs, with the permissions of the user asking and an audit log per call. Anyone using SAP BTP has, with the MCP Gateway of the Integration Suite, the path recognised by SAP. For uniform bulk processes, deterministic RPA remains an option.

Which open-source SAP GUI MCP servers exist?

As of 28 October 2026, for example kts982/mcp-sap-gui (MIT licence, version 0.5.4) and jduncan8142/sap_gui_mcp (MIT licence, last change December 2025). Both come from individuals, not from SAP. Listing them is not an endorsement; before use, every third-party MCP server needs a security review.

Looking for a cleaner route to your SAP?

Briefly tell us which system you want to connect. You will receive a written feasibility assessment, with no appointment and no sales pitch.

Thank you, your enquiry has arrived.

You will receive a written assessment by email within one working day.

check_circle Free
check_circle Written reply
check_circle No call needed

Prefer to talk directly? Book a 30-minute AI Check