Skip to main content
Glama
adam0thman

sapgui-mcp

by adam0thman

sapgui-mcp

Cost-routed MCP server for SAP. One tool, four tiers. It runs your SAP task via the cheapest mechanism that can do it, and only falls back to expensive vision loops when nothing else works.

Tier 0  API          RFC/BAPI · OData · sapcli/ADT        ~free, headless
Tier 1  Recorded     script.js (Java) · VBScript (Win)    ~free after capture
Tier 2  WebGUI       Playwright on the HTML GUI            low cost
Tier 3  Computer-use vision + mouse (SAP GUI for Java)     expensive — last resort

The router decides from a capability catalog (a free lookup — never a vision loop just to pick a tier), falls down the ladder on failure, and can promote a routine you did once in Tier 2/3 into a recorded Tier-1 script so the next run is near-free.

Status: M0 — scaffolding & contracts. The router, catalog, models, prod guard and test harness are in place; tier backends land in M1+. See docs/02-roadmap.md.

Why

SAP GUI for Java (macOS/Linux) has no external live-attach — COM scripting is Windows-only — so interactive AI control of the Java desktop is only possible via vision (Tier 3), which is costly. This project treats vision as the fuel of last resort and pushes every task to a cheaper, deterministic tier first. See docs/01-architecture.md.

Related MCP server: SAP RFC MCP Server

Design docs

  • docs/01-architecture.md — routing spec, capability-catalog schema, backend contract, security model.

  • docs/02-roadmap.md — milestones, pass/fail criteria, positive + negative testing, the develop→test→verify→fix loop.

Develop

uv sync --extra dev
uv run pytest          # unit tests (integration tests are opt-in: -m integration)
uv run ruff check .
uv run mypy

Credentials are resolved only through the creds CLI (creds exec <id> -- ...); no secrets live in this repo or the catalog. Production writes are refused unless explicitly authorized.

Credits & kudos

This project forks and builds on the excellent Hochfrequenz/sapgui.mcp (MIT) — which pioneered the backend-routed shape we extend (COM desktop + Playwright WebGUI). Huge thanks to the maintainers.

Patterns and inspiration gratefully borrowed from (all MIT unless noted):

See NOTICE for license attributions.

Not affiliated with or endorsed by SAP SE. "SAP", "SAP GUI", "S/4HANA", "Fiori" are trademarks of SAP SE.

License

MIT — see LICENSE.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.

No tool schema history has been recorded yet.

Maintenance

ActivityMaintained
ResponsivenessNo issues

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Connectors

Related MCP Servers

  • A
    license
    Not graded
    quality
    D
    maintenance
    Automates interactions with SAP GUI using the Model Context Protocol, allowing precise control of SAP transactions through tools like clicking, typing, scrolling, and transaction management.
    127
    MIT
  • A
    license
    Not graded
    quality
    Not graded
    maintenance
    An enterprise-grade MCP server that enables AI agents to execute SAP RFC functions and read business data securely through the Model Context Protocol.
    -
  • A
    license
    Not graded
    quality
    A
    maintenance
    Enables AI assistants to securely connect with SAP ABAP and BTP services, allowing execution of function modules, BAPIs, table reads, and various BTP operations through MCP.
    1
    Apache 2.0

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/adam0thman/sapgui-computer-use-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server