sapgui-mcp
Provides a cost-routed MCP server for SAP, enabling tasks to be executed via the cheapest available mechanism: API/RFC/BAPI/OData/ADT calls, recorded scripts, Playwright-driven WebGUI, or vision-based computer use on the SAP GUI for Java as a last resort.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@sapgui-mcppull today's open sales orders from SAP and summarize them"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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 resortThe 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 mypyCredentials 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):
mario-andreschak/mcp-sap-gui — the Tier-3 computer-use tool shapes.
kts982/mcp-sap-gui — the Windows COM tool taxonomy (fields, ALV grids, table controls, trees, preview, confirmation points).
oisee/odata_mcp_go & lemaiwo/btp-sap-odata-to-mcp-server — Tier-0 OData→MCP exposure.
jfilak/sapcli (Apache-2.0) — Tier-0 ADT / table-read / report-run.
playwright-sap — SAP-aware locators for the WebGUI tier.
marianfoo/sap-ai-mcp-servers — the map of the SAP MCP ecosystem.
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.
This server cannot be installed
Maintenance
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
Let AI agents query data and act across all your business apps via MCP.
- ZapierOAuthcom.zapier
Hosted MCP server connecting AI assistants to 9,000+ apps and 40,000+ actions via Zapier.
- StackOneOAuthcom.stackone
Give AI agents 30,000+ safe, token-optimized actions across Workday, SAP, Oracle + hundreds more.
Control plane for autonomous software labor. Agents claim objectives over MCP with audit trail.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceAutomates interactions with SAP GUI using the Model Context Protocol, allowing precise control of SAP transactions through tools like clicking, typing, scrolling, and transaction management.127MIT
- AlicenseNot gradedqualityNot gradedmaintenanceAn enterprise-grade MCP server that enables AI agents to execute SAP RFC functions and read business data securely through the Model Context Protocol.-
- AlicenseAqualityAmaintenanceAn MCP server that enables AI assistants to interact with SAP GUI for Windows through the SAP GUI Scripting API.45725MIT
- AlicenseNot gradedqualityAmaintenanceEnables 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.1Apache 2.0
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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