1. Conduid
  2. Agents
  3. Sapgui.mcp
MCP server · Agents

Sapgui.mcp

an MCP server that interacts with SAP via the Desktop and/or Web GUI

61Good

Scored 4 hours ago · breakdown

About Sapgui.mcp

Sapgui.mcp is an MCP server published by Hochfrequenz in the Agents category: an MCP server that interacts with SAP via the Desktop and/or Web GUI. Conduid read 67 tools from its source: log_feedback, log_intent, sap_abapgit_list_repos, sap_abapgit_pull, sap_breakpoint_delete, sap_breakpoint_list and 61 more. No package is published for it, so it installs from a source checkout.

The repository has 25 stars and 5 forks, is licensed MIT, and its last commit was on 30 Nov 2026. The latest release is v0.17.20 (9 Oct 2026). It follows v0.17.19 (9 Oct 2026), and the 5 most recent releases go back to v0.17.16 (9 Oct 2026). It passes 4 of the 5 static checks Conduid ran on the repository; it does not pass No dynamic code execution. Its topics include abap, aibap and sap.

Install

From source
git clone https://github.com/Hochfrequenz/sapgui.mcp

Tools (67)

log_feedbackLog technical feedback about tool usage patterns, friction points, or optimization opportunities. ENCOURAGED whenever you notice something that could improve tooling. If GITHUB_PAT configured, auto-posts as GitHub issue. BE DETAILED: include transaction code, steps to reproduce, tool names, selectors, timing observations, what you tried, error messages. TAGS: 'tool-combination' (tools always used together), 'repetition' (same tool repeated), 'selector' (hard to find), 'timing' (slow/timeout), 'workflow' (could be simplified), 'missing-tool', 'error-handling', 'deadlock' (got stuck), 'problem' (blocked progress). Use markdown formatting: `backticks` for code, **bold** for emphasis.
ParameterTypeDescription
tagsany
log_intentMANDATORY: Log intent when using SAP. You MUST call this at the start of every SAP task and before any SAP write operation. Required for compliance and accountability. WHEN TO CALL: (1) ALWAYS at the start of every SAP-related user request, (2) ALWAYS before any SAP write operation (create, update, delete, post), (3) At milestones during multi-step workflows (e.g., 'Order 3 of 10'), (4) Before running transactions that modify data. Args: intent = high-level description (e.g., 'User requested to create sales order'), context = optional dict (e.g., {'tcode': 'VA01', 'customer': '12345'}).
sap_abapgit_list_reposList registered abapGit repositories with their metadata. Returns repo names, Git URLs, packages, branches, last pull timestamps and (when the report provides it) the repository key, plus total_count and matched_count. Use name/package/url/key to filter instead of listing everything (a system can have hundreds of repositories): name, package and url are case-insensitive substrings, or globs when they contain * or ?; key is an exact match, digits, zero-padded to 12; all given filters must match. compact=True returns only name, package and key. Use this to discover the correct repo name before calling sap_abapgit_pull.
ParameterTypeDescription
agent_idstringAgent identifier for binding check. Optional.
compactbooleanReturn only name, package and key per repository.
keystringExact abapGit repository key (1-12 digits, zero-padded to 12; surrounding blanks are stripped). Optional.
namestringCase-insensitive substring or glob (* and ?) for the repository name. Optional.
packagestringSame, for the ABAP package. Optional.
sessionstringSession ID (e.g., "s1", "s2"). None uses primary session.
urlstringSame, for the Git URL (never matches offline repositories). Optional.
sap_abapgit_pullPull changes from a remote git repository using abapGit API. WARNING: overwrites local ABAP objects. Select the repository by repo (name/URL) or by key (from sap_abapgit_list_repos), not both. If a transport is required the error says so: retry with trkorr=... If 'status unknown', the pull may have run: check the last pull time before retrying. Optional branch switches the repository to that branch persistently (kept only if the pull succeeds) and clears a commit pin.
ParameterTypeDescription
agent_idstringAgent identifier for binding check. Optional.
branchstringBranch to pull (optional): `main`, `feature/x` or `refs/heads/x`. Without it the repository is pulled on its selected branch. SIDE EFFECT: switches the registered repository to this branch persistently (like a branch switch in the abapGit UI) and clears a commit pin; the switch is kept only if the pull succeeds and is restored on failure. The result's `branch` echoes the full branch the repository is on; `sap_abapgit_list_repos` shows it too.
keystringabapGit repository key, 1 to 12 digits (zero-padded to 12), as shown by `sap_abapgit_list_repos` (online repositories only). Use it instead of `repo` when name or URL is not unique: abapGit allows two repositories with the same name or URL, the key is the only unique identifier. Exactly one of `repo` and `key`. Unlike the `key` filter of `sap_abapgit_list_repos`, it is not stripped: surrounding blanks are rejected. Needs a report version with P_KEY.
patstringGitHub Personal Access Token (optional for public repos). Falls back to ABAPGIT_PAT env var, then GITHUB_PAT.
sessionstringSession ID (e.g., "s1", "s2"). None uses primary session.
trkorrstringTransport request (optional, but error if SAP requires it). If pull fails with "Transport required", retry with trkorr.
usernamestringGitHub username (optional for public repos)
sap_breakpoint_deleteDelete an external ABAP breakpoint on a specific line of a program, class method, or function module. Desktop backend only. Provide either line_number (1-indexed SAP display line) or match_pattern (substring or regex matched against source lines). If the line has no breakpoint, SAP sets one. This tool detects that and re-applies to undo it, then reports action='was_not_set'. Note: this only removes the breakpoint from the source editor. It does NOT step or continue a debugger that is currently stopped and showing a modal dialog — there is no tool for that; only a human at the SAP GUI can dismiss it.
ParameterTypeDescription
agent_idstringAgent identifier for binding check. Optional.
line_numberinteger1-indexed SAP display line. Mutually exclusive with match_pattern.
match_patternstringSubstring or regex matched against source. Mutually exclusive with line_number.
method_namestringRequired for CLAS (method name) and FUGR (function module name).
object_name *stringProgram name, class name, or function group name.
sessionstringSession ID (e.g., "s1"). None uses primary session.
sap_breakpoint_listList all external ABAP breakpoints for the current user on a program, class method, or function module. Desktop backend only. Opens 'Hilfsmittel > Breakpoints > Anzeigen...' dialog in the source editor, reads the grid, and returns matching breakpoints. Note: if this session is currently stopped at a breakpoint, this tool fails with an error naming the ABAP debugger instead of opening the dialog — continue or exit the debugger in SAP GUI first.
ParameterTypeDescription
agent_idstringAgent identifier for binding check. Optional.
method_namestringRequired for CLAS (method name) and FUGR (function module name).
object_name *stringProgram name, class name, or function group name.
sessionstringSession ID (e.g., "s1"). None uses primary session.
sap_breakpoint_setHIGHLY DANGEROUS — DO NOT CALL unless a human user has explicitly asked for a breakpoint to be set. Live-verified (issue #791): once the breakpoint fires, the SAP session stops and SAP GUI opens the ABAP debugger. The call that triggered it and every later call on that session fail after a few seconds with an error naming the debugger, as can slow calls on other sessions of the same SAP connection; sessions of other connections are not affected. The session works again once a human continues or exits the debugger in SAP GUI. Set an external ABAP breakpoint on a specific line of a program, class method, or function module. Desktop backend only — WebGUI does not support external breakpoints. Provide either line_number (1-indexed SAP display line) or match_pattern (substring or regex matched against source lines). SAP toggles breakpoints: if the line already has a breakpoint, VKey 45 deletes it. This tool only sets the breakpoint — it does not run anything. IMPORTANT — before calling this tool, ask the human operator for explicit permission and explain the consequences: there is NO tool to step, continue, or read variables in the resulting debugger. If the breakpoint later fires during a GUI run, SAP GUI opens a modal interactive ABAP debugger that only a human can drive — the agent cannot see or control it, and it may fire once per row/iteration if the code path repeats. The halted session is unusable for the agent until then, as described above. Only proceed once the human has confirmed they intend to sit at the SAP GUI and step through the debugger themselves; do not use this to silently 'verify a code path is reached' from an unattended flow.
ParameterTypeDescription
agent_idstringAgent identifier for binding check. Optional.
line_numberinteger1-indexed SAP display line. Mutually exclusive with match_pattern.
match_patternstringSubstring or regex matched against source. Mutually exclusive with line_number.
method_namestringRequired for CLAS (method name) and FUGR (function module name).
object_name *stringProgram name, class name, or function group name.
sessionstringSession ID (e.g., "s1"). None uses primary session.
sap_click_buttonClick a button on the current SAP screen by its label text. Use sap_discover_buttons first to see available buttons. Prefer sap_press_key with keyboard shortcuts (F-keys, Ctrl+*) when available — they are faster and more reliable. Use this tool when no shortcut exists. Args: - label: Button label text (e.g., 'Execute', 'Save', 'Ausführen') **Session parameter:** - session=None (default): Uses primary session ("s1") - session="s2": Targets specific session
ParameterTypeDescription
agent_idstring
label *string
sessionstring
sap_click_table_cellClick a cell in an ALV grid table. Automatically targets the correct clickable element (hotspot span vs TD). Use after sap_read_table to navigate to detail views. **Session parameter:** - session=None (default): Uses primary session ("s1") - session="s2": Targets specific session (for parallel agents)
ParameterTypeDescription
actionstring"click" for single click, "dblclick" for double-click
agent_idstringAgent identifier for binding check. Optional.
column *anyColumn index (0-based) or column header name
row *integerRow number (1-indexed, data rows start at 1)
sessionstringSession ID (e.g., "s1", "s2"). None uses primary session.
sap_close_popupClose an active popup dialog by clicking a button. Use when active_window shows 'wnd[1]' or higher and you want to dismiss the dialog. Note: Not all popups need closing - if the popup is a form you need to fill, use sap_discover_fields and sap_fill_form instead (they automatically target the active window). Specify button by label ('Ja', 'Nein') or accesskey ('J', 'N'), or use close=True to click the X button if available. **Session parameter:** - session=None (default): Uses primary session ("s1") - session="s2": Targets specific session (for parallel agents)
ParameterTypeDescription
agent_idstringAgent identifier for binding check. Optional.
closebooleanClick the X close button instead of a specific button
sessionstringSession ID (e.g., "s1", "s2"). None uses primary session.
sap_com_evaluateExecute COM operations on SAP GUI elements. This is the general-purpose escape hatch — use it when no specific tool exists. **Workflow:** Call `sap_com_snapshot` to see element IDs, then use this tool. **Actions:** - `get`: Read a property (args not needed) - `set`: Write a property (args = single-element list with value, e.g. `["hello"]`) - `call`: Call a method (args = positional arguments, e.g. `[0, "COL"]`) **Element IDs:** copy the `id=...` suffix emitted on each line of `sap_com_snapshot` verbatim — do NOT hand-construct paths from the indented tree. The snapshot strips the absolute `/app/con[N]/ses[N]/` prefix for you so the value is drop-in. Interactive fields, shells, dock shells, buttons, the main window, the OkCode field and the status bar all carry an `id=`. Pure containers (user area, scroll container, ...) omit it to keep the snapshot compact. Docked controls (trees, ALV grids, editors) live at varying paths like `wnd[0]/shellcont/shell`, `wnd[0]/usr/shellcont/shell`, or `wnd[0]/usr/cntlNAME/shellcont/shell` depending on how the dynpro embeds them — do not guess, copy the `id=...` from the snapshot. **FindByName** (for BDT screens like BP where fields aren't in the snapshot): Use `find_by_name` with the SAP **internal field name** and type — that's the technical name (e.g. `BUT000-NAME_LAST`), NOT the visible label text (e.g. 'Last Name'). Passing a visible label produces `Error 620: control not found by name`. Set `element_id` to the container (usually `wnd[0]/usr`). Example: `{"element_id": "wnd[0]/usr", "find_by_name": {"name": "BUT000-NAME_LAST", "type_name": "GuiTextField"}, "action": "set", "property_or_method": "Text", "args": ["Smith"]}` **Chained properties:** Use dot notation (e.g. `Children.Count`, `Children.Item`). `Parent` is blocked for safety. **VKey codes** for SendVKey: 0=Enter, 2=F2, 3=F3/Back, 5=F5, 7=F7/Display, 8=F8/Execute, 11=F11/Save, 12=F12/Cancel. **Batch:** Operations run sequentially. If op N fails, ops 1..N-1 already took effect. Check each operation's `success` field. With `stop_on_error=true` the batch stops at the first failed op — the `operations` list then contains only the ops that ran, and `aborted_at_index` (0-based position in the requested list) tells you where it stopped. Useful before write/VKey steps that must not fire on an unexpected screen. `failed_count` aggregates per-op failures. **Concurrency note:** all sessions of one SAP GUI connection share a single-threaded COM scripting engine. Parallel COM/script loops on that same connection are serialized (no speedup). For bulk work on one connection, prefer one script with a larger loop. **Example** (fill field + press Enter): ```json {"operations": [ {"element_id": "wnd[0]/usr/txtRS38M-PROGRAMM", "action": "set", "property_or_method": "Text", "args": ["ZTEST"]}, {"element_id": "wnd[0]", "action": "call", "property_or_method": "SendVKey", "args": [0]} ]} ``` **Results:** Each operation returns a JSON-encoded `result` field. Strings appear as `"hello"`, numbers as `42`, null as `null`. `set` reads back the value after writing. Prefer SAP-specific tools (sap_se16_query, sap_se37_lookup, etc.) when available.
ParameterTypeDescription
agent_idstringAgent identifier for binding check. Optional.
operations *arrayList of operations to execute sequentially. Each operation has: element_id, action (get/set/call), property_or_method, and optional args.
sessionstringSession ID (e.g., "s1", "s2"). None uses primary session.
stop_on_errorbooleanStop at the first failed operation instead of continuing. Default False (all operations run, today's behaviour). When True and an operation fails, the response's `operations` list contains only the ops that ran and `aborted_at_index` marks the 0-based position of the failed op in the requested list — use it before write/VKey steps that must not run on an unexpected screen.
sap_com_snapshotGet the SAP GUI element tree with element IDs. Returns an indented tree of all elements on the current screen. Each line shows: type, name, and text value. Use the element paths as element_id in sap_com_evaluate. **depth** controls how many tree levels to return (default 3). Increase depth to see deeper nested elements. When truncated, the response shows how many elements were hidden. **root** starts the tree at an element id (e.g. `wnd[0]/usr`); depth then counts from there. **exclude** leaves out the subtrees of the given element ids (e.g. `["wnd[0]/mbar"]` for the menu bar, which dominates deep snapshots). Example output: ``` GuiMainWindow[wnd[0]]: 'SAP Easy Access' GuiOkCodeField[tbar[0]/okcd]: '' GuiTextField[usr/txtFIELD]: 'value' ``` The path in brackets (e.g., `wnd[0]/usr/txtFIELD`) is the element_id.
ParameterTypeDescription
agent_idstringAgent identifier for binding check. Optional.
depthintegerNumber of tree levels to return (default 3). Increase to see deeper nested elements.
excludearrayElement ids whose subtrees are left out (e.g. ["wnd[0]/mbar"]).
rootstringElement id to start the tree at (e.g. "wnd[0]/usr"). None = the active window.
sessionstringSession ID (e.g., "s1", "s2"). None uses primary session.
sap_discover_buttonsDiscover clickable buttons on the current SAP screen. Returns buttons with label, selector/ID, shortcut (e.g. F3), and accesskey. Prefer keyboard shortcuts (sap_press_key) when available — they're faster and more reliable. To press a discovered button: use sap_com_evaluate(element_id, action='call', method='Press'). For input fields use sap_discover_fields instead. **Session parameter:** - session=None (default): Uses primary session ("s1") - session="s2": Targets specific session (for parallel agents)
ParameterTypeDescription
agent_idstringAgent identifier for binding check. Optional.
sessionstringSession ID (e.g., "s1", "s2"). None uses primary session.
sap_discover_fieldsDiscover input fields on the current SAP screen (or active popup dialog). Returns fields with label, name, value, and a selector/ID for targeting the field. Automatically targets the active window — if a popup is open, shows popup fields. Use the label with sap_fill_form or sap_set_field to fill fields. The 'selector' field is a SAP GUI element ID. For buttons, use sap_discover_buttons instead. **Session parameter:** - session=None (default): Uses primary session ("s1") - session="s2": Targets specific session (for parallel agents)
ParameterTypeDescription
agent_idstringAgent identifier for binding check. Optional.
sessionstringSession ID (e.g., "s1", "s2"). None uses primary session.
sap_fill_formFill multiple SAP form fields in a single call. Use this when filling 2+ fields on the SAME screen without UI navigation between them. Keys can be: - Visible label text (e.g., 'First Name', 'Straße') - SAP GUI element names (e.g., 'BUT000-NAME_LAST') When to use: - Filling a form with multiple input fields - All fields visible on current screen - No button clicks or navigation needed between fields When NOT to use: - Single field only (use sap_set_field) - Fields on different screens/tabs - Need to click buttons between fills **Session parameter:** - session=None (default): Uses primary session ("s1") - session="s2": Targets specific session (for parallel agents) **Example payload:** `{"fields": {"Vorname": "Mario", "Nachname": "Rossi"}, "strict": false}`
ParameterTypeDescription
agent_idstringAgent identifier for binding check. Optional.
fields *objectDictionary mapping field identifiers to values. Keys can be visible label text (e.g., 'First Name') or SAP GUI element names (e.g., 'BUT000-NAME_LAST').
sessionstringSession ID (e.g., "s1", "s2"). None uses primary session.
strictbooleanIf True, fail if any field is not found. If False, skip missing fields and report them.
sap_get_capabilitiesRECOMMENDED: Call at the start of every SAP session. Returns all available tools with their full descriptions. Reading this first helps you understand what capabilities are available, work faster, and avoid common mistakes like clicking buttons when keyboard shortcuts are available.
sap_get_form_fieldsDiscover fillable form fields on the current SAP screen (or active popup dialog). Returns field IDs, labels, types (text/dropdown/checkbox/radio), and current values. Automatically targets the active window — if a popup is open, shows popup fields. Use include_dropdown_options=True to also fetch available options for dropdown fields. **Session parameter:** - session=None (default): Uses primary session ("s1") - session="s2": Targets specific session (for parallel agents)
ParameterTypeDescription
agent_idstringAgent identifier for binding check. Optional.
include_dropdown_optionsbooleanIf True, opens each dropdown to capture available options. This is slower but provides complete information for dropdowns. Default is False (lazy fetching).
sessionstringSession ID (e.g., "s1", "s2"). None uses primary session.
sap_get_screen_infoGet technical information about the current SAP screen **Session parameter:** - session=None (default): Uses primary session ("s1") - session="s2": Targets specific session (for parallel agents)
ParameterTypeDescription
agent_idstringAgent identifier for binding check. Optional.
sessionstringSession ID (e.g., "s1", "s2"). None uses primary session.
sap_get_screen_textGet all readable text from the current SAP screen. Use include_dropdown_options=True to also fetch available options for dropdown fields. **Session parameter:** - session=None (default): Uses primary session ("s1") - session="s2": Targets specific session (for parallel agents)
ParameterTypeDescription
agent_idstringAgent identifier for binding check. Optional.
include_dropdown_optionsbooleanIf True, opens each dropdown to capture available options. This is slower but provides complete information for dropdowns. Default is False.
sessionstringSession ID (e.g., "s1", "s2"). None uses primary session.
sap_get_shortcutsDiscover keyboard shortcuts available on the current SAP screen. Use BEFORE clicking buttons - shortcuts like F5, Ctrl+S are faster and more reliable. Returns action text and key combination for each available shortcut. **Session parameter:** - session=None (default): Uses primary session ("s1") - session="s2": Targets specific session (for parallel agents)
ParameterTypeDescription
agent_idstringAgent identifier for binding check. Optional.
sessionstringSession ID (e.g., "s1", "s2"). None uses primary session.
sap_keepalive_startStart a background task that keeps the SAP session alive
ParameterTypeDescription
agent_idstringAgent ID for session binding (optional).
interval_secondsintegerSeconds between keepalive pings (default: 300 = 5 minutes)
sessionstringSession ID to target (e.g. 's1', 's2'). Defaults to the primary session.
sap_keepalive_stopStop the background keepalive task
ParameterTypeDescription
agent_idstringAgent ID for session binding (optional).
sessionstringSession ID to target (e.g. 's1', 's2'). Defaults to the primary session.
sap_list_connectionsList available SAP systems. Returns two sections: 'configured_systems' from systems.json (pass the 'key' field as system_key to sap_login), and 'connections' from SAP Logon (SAPUILandscape.xml, Desktop only). IMPORTANT: pass a configured_systems 'key' as system_key to sap_login, NOT a SAP Logon entry name. If configured_systems is empty, check config_error.
sap_loginLog into SAP. Opens a NEW parallel session each call — re-login does NOT replace prior logins. You can be logged into the same SAP Logon entry as multiple distinct (client, user) tuples concurrently. The returned LoginResult.session_id is the registry ID ('s1', 's2', ...) you pass on subsequent tool calls to address THIS specific login. Concurrency note: sessions on one connection share one single-threaded COM engine; parallel scripting loops on that connection run sequentially (no speedup). For bulk work on one connection, prefer one large loop in a single script. Parallelism helps only across separate connections/systems. Use sap_session_list to see all currently active sessions. Credentials are read from ~/.config/sap-mcp/systems.json. Use system_key (dictionary key from systems.json) to select a non-default system. Call sap_list_connections first to see available system keys.
ParameterTypeDescription
clientstringSAP client/mandant (3-digit string, e.g. '200'). Overrides config value.
system_keystringDictionary key from systems.json (e.g. "dev", "qa"). Use sap_list_connections to see available keys. Defaults to default_system.
urlstringIgnored (the server connects through the connection_name of the system in systems.json).
sap_lookup_fieldsNot supported: the static field registry holds CSS selectors, which do not apply to SAP GUI. Use sap_discover_fields instead — it discovers fields dynamically.
ParameterTypeDescription
transaction *string
sap_modify_cellWrite one cell of the editable ALV grid or table control shown by sap_read_table and read it back. When you read the row earlier, pass its key columns as expected_row: the write is refused if the row moved. A table control row outside its window is scrolled into view (scrolled=True); the scroll submits the screen, so the program's input checks run and earlier cell writes reach the program; inside a tab subscreen such a row is refused (scrolling there can crash SAP GUI). The change usually reaches SAP only with Enter or Save; some grids react at once.
ParameterTypeDescription
agent_idstringAgent identifier for binding check. Optional.
allow_empty_rowbooleanTable control only: allow writing into an empty line after the last row (for example to add an entry); refused otherwise
column *anyColumn index (0-based), header as in sap_read_table's headers, or technical column name
expected_currentstringValue the cell must hold now (trimmed); otherwise nothing is written
expected_rowobjectColumn (as for column) -> value (trimmed) the row must hold now, e.g. its key columns; otherwise nothing is written
row *integerRow number (1-indexed), as sap_read_table shows it
sessionstringSession ID (e.g., "s1", "s2"). None uses primary session.
value *stringNew cell value
sap_press_keySend a keyboard shortcut to SAP Note on 'Escape': it sends SAP VKey 12 (F12 / Cancel), not the Windows Esc key; its meaning is screen dependent (some editor screens open an 'Exit editor' dialog). To dismiss a popup use sap_close_popup. **Session parameter:** - session=None (default): Uses primary session ("s1") - session="s2": Targets specific session (for parallel agents)
ParameterTypeDescription
agent_idstringAgent identifier for binding check. Optional.
sessionstringSession ID (e.g., "s1", "s2"). None uses primary session.
sap_quick_reportRun a report transaction in one call: enter the transaction, fill the selection screen (fields, checkboxes, radio buttons), press Execute (F8) and return the result. F8 really runs the report: reports that post, change or delete data will do so. Use display reports or the report's test-run option. Works with any report or list transaction that has a selection screen (SM12, SA38 with a report name, Z-transactions, ...). tcode must be a transaction code (namespaces like /NAMESPACE/NAME are fine, /n or /o commands are not). Fields are matched by label or technical name. SAP remembers the last values of a selection screen: fields you do not pass keep their previous value. success=false with report_executed=false: F8 was provably not sent. Causes: an open popup, an unknown transaction, a field, checkbox or radio button that cannot be found, an invalid post_f8_keys entry or an unusable output_file; the error says which. success=false with report_executed=true: F8 may have been sent (the key press itself failed or its read-back did, or a later step failed, e.g. a post_f8_keys press or reading the result); the report may have run, so check the screen with the individual tools and do not retry blindly. success=true: F8 was pressed and screen_type tells what came back: table (ALV grid or table control, in `table`), list (classic list, in `list_lines`), empty (no data), error (SAP answered with an error or warning, or F8 did not leave the selection screen; status bar and screen text say why) or unknown (screen text, or the open popup). The session stays on that screen, so you can continue with the individual tools. If a transaction shows a popup after F8, pass post_f8_keys=['Enter'] to answer it. The keys are pressed only while a popup is open, and Enter accepts the popup's default button, which may be a confirmation (e.g. Yes). Do NOT use for transactions with a dedicated tool (SE16: sap_se16_query, SM37: sap_sm37_lookup, SE11/SE24/SE37: the lookup tools) or without a selection screen (BP, VA01).
ParameterTypeDescription
agent_idstringAgent ID for multi-agent session binding.
checkboxesobjectLabel to checked pairs for checkboxes of the selection screen.
fieldsobjectLabel (or technical name) to value pairs for the input fields of the selection screen.
max_rowsintegerMaximum rows (or list lines) to read from the result. Between 1 and 1000.
output_filestringIf provided, write the result as JSON to this file (inside the output directory).
post_f8_keysarrayKeys to press after F8 to answer popups (e.g. ["Enter"], the default button), at most 3. Each key is only pressed while a popup is open.
radiosobjectLabel to True pairs for radio buttons to select (a radio button cannot be unselected).
sessionstringSession ID (e.g. "s1", "s2"). None uses the primary session.
sap_read_se38_sourceRead ABAP report source code from SE38. If sap-adt is available, prefer its get_source tool. Navigates to SE38, enters the program name, and displays the source code. Useful for verifying abapGit pull operations.
ParameterTypeDescription
agent_idstringAgent identifier for binding check. Optional.
sap_read_status_barRead the current message from SAP's status bar Also returns message_id / message_number (desktop only), which identify the message independently of the logon language, plus message_parameters (its &1-&4 runtime values, which may themselves be translated). **Session parameter:** - session=None (default): Uses primary session ("s1") - session="s2": Targets specific session (for parallel agents)
ParameterTypeDescription
agent_idstringAgent identifier for binding check. Optional.
sessionstringSession ID (e.g., "s1", "s2"). None uses primary session.
sap_read_tableRead data from an ALV grid or table on the current screen **Session parameter:** - session=None (default): Uses primary session ("s1") - session="s2": Targets specific session (for parallel agents)
ParameterTypeDescription
agent_idstringAgent identifier for binding check. Optional.
end_rowintegerLast row to read (None = up to max_rows visible rows)
max_rowsintegerMaximum rows to return (default: 100, prevents huge responses)
sessionstringSession ID (e.g., "s1", "s2"). None uses primary session.
start_rowintegerFirst row to read (1-indexed, default: 1)
sap_run_scriptExecute a Python script against the live SAP GUI session. Provide either ``script`` (inline Python source) or ``script_path`` (path to a ``.py`` file on the MCP host), but not both. **Prefer ``script_path`` for shipped, tested, versioned scripts.** Using ``script_path`` avoids wasting model context and tokens reading and re-emitting script text, prevents model truncation or unauthorized rewriting, and allows verifying script integrity with ``expected_sha256``. Parameters can be passed via ``params`` to override defaults in the script's top-level ``PARAMS`` dict (``params`` is rejected with inline ``script``). ``script_path`` only works for files under the directories configured in the ``SCRIPT_ROOTS`` setting; relative paths are resolved against those roots in order (first matching root wins). Script files are limited to 1 MiB. The script receives: - ``session``: sapsucker ``GuiSession`` — use ``session.find_by_id(id)`` to reach elements, then read/write their properties and call methods directly. ``GuiComboBox``: select an entry by key with ``combo.key = '<key>'``; ``.value`` is the display text. - Status bar: ``session.find_by_id('wnd[0]/sbar').message_id`` / ``.message_number`` identify a message independently of the logon language; ``.message_parameter(i)`` (zero-based, ``0`` is ``&1``) returns its runtime values. - ``output(value)``: call this to collect results. All values are returned in order. - ``wait(ms)``: pause execution for ``ms`` milliseconds. - ``wait_until(element_id, timeout_ms, poll_ms=200)``: poll for an element by ID until ``session.find_by_id`` succeeds, returning the element; returns ``None`` if ``timeout_ms`` elapses. Both ``wait`` and ``wait_until`` raise ``TimeoutError`` (catchable in the script) instead of running past the tool ``timeout``; waits block the connection's COM thread, so keep them short. **Always call ``output()`` at least once** with a summary — a script that never calls ``output()`` returns an empty list with no indication of what happened.
ParameterTypeDescription
agent_idstringAgent identifier for binding check.
expected_sha256stringOptional SHA-256 hex digest of the script file. Execution is refused if the file's hash does not match.
paramsobjectParameter overrides merged into the script's top-level PARAMS dict. All keys must exist in the script's PARAMS definition. Only valid with script_path (rejected for inline script). Values must be JSON-like and finite.
script_pathstringPath to a .py script file on the MCP host (mutually exclusive with script). Must reside within a configured script root (SCRIPT_ROOTS). Relative paths are resolved against the configured roots in order (never the server's working directory); the first root containing the file wins.
sessionstringSession ID (e.g. 's1'). None = primary.
timeoutintegerMaximum seconds to wait for the script to complete. Defaults to 30.
sap_screenshotTake a screenshot of the current SAP screen. Returns a PNG screenshot as an image. Works on the SAP GUI window of the session. ⚠️ Screenshots consume significant context tokens. Prefer sap_get_screen_text or sap_get_form_fields for reading screen content. Use screenshots only for visual debugging or when the user explicitly requests one. **Session parameter:** - session=None (default): Uses primary session ("s1") - session="s2": Targets specific session
ParameterTypeDescription
agent_idstring
sessionstring
sap_se09_lookupLook up transport requests from SE09 (Transport Organizer). If sap-adt is available, prefer its get_transport_requests for listing transports. USE THIS for transport release on ECC (ADT release silently fails on ECC) or when ADT is unavailable. Returns transport requests with owner, description, status, type, and target system. By default shows only modifiable requests for the current user. Supports filtering by username, request type (workbench/customizing), and status (modifiable/released/all).
ParameterTypeDescription
agent_idstringAgent identifier for binding check. Optional.
output_filestringIf provided, write results to this JSON file within the configured output directory (OUTPUT_DIR, default: current working directory) (on success only).
request_typestringFilter by type - "workbench", "customizing", or "all"
sessionstringSession ID (e.g., "s1", "s2"). None uses primary session.
sap_se11_lookupLook up table or structure metadata from SE11 (ABAP Dictionary). If sap-adt is available, prefer its get_table_fields or get_object_info tools. USE THIS instead of sap_transaction('SE11') - faster and returns structured data. Returns field names, data types, lengths, and descriptions. Supports single name or list of names. Always queries live from SAP. Use object_type='table' for database tables, 'structure' for data structures. For large requests (>10 objects), provide output_file to write results to JSON file instead of returning inline (avoids context overflow).
ParameterTypeDescription
agent_idstringAgent identifier for binding check. Optional.
object_type *any'table' for database tables, 'structure' for structures
output_filestringIf provided, write full results to this JSON file and return summary. Recommended for >10 objects to avoid context overflow.
sessionstringSession ID (e.g., "s1", "s2"). None uses primary session.
sap_se16_queryQuery SAP table data via SE16N (Data Browser). If sap-adt is available, prefer its run_query tool for simple queries. USE THIS for complex queries with dynamic filtering or when ADT is unavailable. **Filters:** If a filter cannot be applied (e.g. the field is unknown or not offered by SE16N), the call fails before running the query; the error lists the SE16N selection fields when they could be read. **Performance:** ~7 rows/second due to pagination. - 100 rows: ~14 seconds - 500 rows: ~1.5 minutes - 1000 rows: ~2.5 minutes - 5000 rows: ~12 minutes For large results, use `output_file` to write JSON to disk and receive a summary.
ParameterTypeDescription
agent_idstringAgent identifier for binding check. Optional.
filtersobjectOptional filter dict {field_name: value} - uses technical field names. A field that is unknown or not offered by SE16N makes the call fail.
max_hitsintegerMaximum rows to return (default 100)
output_filestringIf provided, write full results to this JSON file within the configured output directory (OUTPUT_DIR, default: current working directory) and return summary
sessionstringSession ID (e.g., "s1", "s2"). None uses primary session.
table *stringTable name to query (e.g., "MARA", "T000", "TSTC")
sap_se24_editEdit an existing class method in SE24 (Class Builder). If sap-adt is available, prefer its patch_source or set_source_from_file tools — faster, no GUI needed. Replaces the method's source code, runs syntax check (Ctrl+F2), and activates (Ctrl+F3). Auto-reverts if check or activation fails. Afterwards, also after a failure, it leaves SE24 without saving, so the class is not left locked. **Important:** Only for EXISTING classes and methods. To create new ones, use abapGit. **Workflow:** Read current class with sap_se24_lookup first to see methods, then call this tool with the full new method source.
ParameterTypeDescription
agent_idstringAgent identifier for binding check. Optional.
class_name *stringName of the class (e.g., 'ZCL_TEST_MCP_EDIT').
method_name *stringName of the method to edit (e.g., 'DO_SOMETHING').
new_source *stringComplete new ABAP method source code to replace the current code.
sessionstringSession ID (e.g., "s1", "s2"). None uses primary session.
sap_se24_lookupLook up class/interface metadata from SE24 (Class Builder). If sap-adt is available, prefer its get_source/get_class_definition tools. USE THIS instead of sap_transaction('SE24') - faster and returns structured data. Returns class structure including methods with parameters, attributes, and implemented interfaces. Supports single class or list of classes. Each method includes: name, visibility, parameters, exceptions, and description.
ParameterTypeDescription
agent_idstringAgent identifier for binding check. Optional.
classes *anySingle class/interface name or list of names (e.g., 'CL_SALV_TABLE' or ['CL_SALV_TABLE', 'CL_ABAP_CHAR_UTILITIES'])
output_filestringIf provided, write full results to this JSON file and return summary. Recommended for >5 classes to avoid context overflow.
sessionstringSession ID (e.g., "s1", "s2"). None uses primary session.
sap_se37_editEdit an existing ABAP function module in SE37. If sap-adt is available, prefer its patch_source or set_source_from_file tools — faster, no GUI needed. Replaces the entire source code (including the FUNCTION and ENDFUNCTION lines), runs syntax check (Ctrl+F2), and activates (Ctrl+F3). Auto-reverts if check or activation fails. Afterwards, also after a failure, it leaves SE37 without saving, so the function group is not left locked. **Important:** Only for EXISTING function modules. To create new ones, use abapGit. **Workflow:** Read the current source first (sap-adt get_source, or the backup_source that this tool returns), modify it, then call this tool with the full new source.
ParameterTypeDescription
agent_idstringAgent identifier for binding check. Optional.
function_module *stringName of the function module (e.g., 'Z_MCP_TEST_FM').
new_source *stringComplete new ABAP source code to replace the current code.
sessionstringSession ID (e.g., "s1", "s2"). None uses primary session.
sap_se37_lookupLook up function module metadata from SE37 (Function Builder). If sap-adt is available, prefer its get_source tool for reading FM source code. USE THIS instead of sap_transaction('SE37') - faster and returns structured data. Returns function module signature including import/export/changing/tables parameters and exceptions. Supports single FM or list of FMs. Each parameter includes: name, typing (LIKE/TYPE), reference type, default value, optional flag, and description.
ParameterTypeDescription
agent_idstringAgent identifier for binding check. Optional.
function_modules *anySingle FM name or list of names (e.g., 'RFC_READ_TABLE' or ['RFC_READ_TABLE', 'BAPI_USER_GET_DETAIL'])
output_filestringIf provided, write full results to this JSON file and return summary. Recommended for >5 function modules to avoid context overflow.
sessionstringSession ID (e.g., "s1", "s2"). None uses primary session.
sap_se38_editEdit an existing ABAP report in SE38. If sap-adt is available, prefer its patch_source or set_source_from_file tools — faster, no GUI needed. Replaces the entire source code, runs syntax check (Ctrl+F2), and activates (Ctrl+F3). Auto-reverts if check or activation fails. Afterwards, also after a failure, it leaves SE38 without saving, so the report is not left locked. **Important:** Only for EXISTING reports. To create new reports, use abapGit. **Workflow:** Read current source with sap_read_se38_source first, modify it, then call this tool with the full new source.
ParameterTypeDescription
agent_idstringAgent identifier for binding check. Optional.
new_source *stringComplete new ABAP source code to replace the current code.
program_name *stringName of the ABAP report (e.g., 'ZTEST_MCP_EDIT').
sessionstringSession ID (e.g., "s1", "s2"). None uses primary session.
sap_se93_lookupLook up transaction metadata from SE93 (Transaction Maintenance). USE THIS instead of sap_transaction('SE93') - faster and returns structured data. Returns transaction description, program, screen/selection info, and GUI capabilities. Supports single tcode or list of tcodes. Currently supports 'dialog' and 'report' transaction types.
ParameterTypeDescription
agent_idstringAgent identifier for binding check. Optional.
output_filestringIf provided, write full results to this JSON file and return summary. Recommended for >10 transactions to avoid context overflow.
sessionstringSession ID (e.g., "s1", "s2"). None uses primary session.
tcodes *anySingle transaction code or list of codes (e.g., 'VA01' or ['VA01', 'MM01'])
sap_select_dropdownSelect a value from a dropdown (combobox) field on the current SAP screen. Use sap_get_form_fields(include_dropdown_options=True) first to see available dropdown fields and their options. Unlike sap_set_field which auto-detects field type, this tool is specifically for dropdown selection and returns available_options on failure. Args: - label: Dropdown field label text (e.g., 'Country', 'Language', 'Buchungskreis') - value: Exact option text to select from the dropdown **Session parameter:** - session=None (default): Uses primary session ("s1") - session="s2": Targets specific session
ParameterTypeDescription
agent_idstring
label *string
sessionstring
value *string
sap_select_tabSelect a tab on the current SAP screen by its label text. Use sap_get_screen_text to see available tab labels on the current screen. Args: - label: Tab label text (e.g., 'Address', 'Details', 'Allgemeine Daten') **Session parameter:** - session=None (default): Uses primary session ("s1") - session="s2": Targets specific session
ParameterTypeDescription
agent_idstring
label *string
sessionstring
sap_session_bindClaim exclusive ownership of a SAP session for the calling agent. Strict by default (#643): if the session is already bound to a different agent, the call fails — pick a different session via sap_session_list, or retry with force=true to take over (use only for crash recovery, otherwise prefer leaving the existing binding intact). Re-binding the same agent is a no-op success.
ParameterTypeDescription
agent_id *stringAgent identifier claiming the session
forcebooleanTake over the binding even if another agent currently holds it. Default False — strict bind. Use True only for crash-recovery scenarios where you know the previous holder is gone.
session_id *stringSession ID to bind (e.g., "s2")
sap_session_closeClose a SAP session. Closes the underlying SAP GUI session/tab and removes it from the registry. Any session ID can be closed, including "s1". With the parallel-multi-mandant contract (#671), the registry can hold multiple concurrent logins and you may legitimately want to close any of them — including the lowest-numbered one. If you close the only remaining session, the next tool call will fail with a clear "no session" error and you should call sap_login() again. Sessions with origin "attached" (a window the user already had open) are never closed by this server: the call is refused and points at sap_session_detach. Args: session_id: Session to close (e.g. "s1", "s2", ...)
ParameterTypeDescription
session_id *string
sap_session_detachStop using a session WITHOUT closing it. Removes the session from the registry, drops its agent binding and stops watching its connection. No SAP GUI call is made: the SAP window stays open. This is the only way to drop an "attached" session (a window the user already had open, which sap_session_close refuses to close); it also works on sessions this server opened. Args: session_id: Session to detach (e.g. "s2")
ParameterTypeDescription
session_id *string
sap_session_listList all active SAP sessions. Returns session IDs, current transaction, screen title, client, user, and system_name for each. Use this to see what sessions exist before targeting one. The first sap_login() registers "s1". Additional sessions come from: - repeated sap_login() calls (parallel multi-mandant — each new login adds a session alongside the existing ones, not replacing them — see #671) - sap_transaction(tcode, new_window=True) (a /o sub-session of an existing connection, sharing its login) Desktop: when another call has been running on the connection's single COM engine for a while, the result carries a `com_engine` block saying which connection is busy and since when. That running call is why other tool calls on the same connection hang — wait for it instead of retrying.
sap_session_releaseRelease agent binding from a session. Use when an agent finishes work and wants to free the session for other agents or general use.
ParameterTypeDescription
session_id *stringSession ID to release
sap_session_reset_to_primaryBulk-close every SAP session except the primary one (s1). Use this when parallel agents have left orphaned/extra windows and you want to return to a known-clean state with only s1 open. Reconciles the registry first (drops any sessions that died externally), then closes the rest. WARNING: if you call this from a non-primary session, your own session will be closed and you will appear in killed_agents — your next tool call will fail until you rebind to s1 (or another surviving session) via sap_session_bind. See issue #637 for the parallel-agent drift scenario this addresses.
sap_session_statusCheck the current SAP session status
ParameterTypeDescription
agent_idstringAgent identifier for binding check. Optional.
sessionstringSession ID (e.g., "s1", "s2"). None uses primary session.
sap_set_checkboxSet a SAP checkbox to checked or unchecked by its label text. Use sap_get_form_fields first to see available checkboxes and their current state. Args: - label: Checkbox label text (e.g., 'Workbench-Aufträge', 'Freigegeben') - checked: True to check, False to uncheck Only label lookup is supported. If the label is ambiguous or not found: use sap_com_evaluate or sap_run_script and set ``.selected = True/False`` on the element by id. **Session parameter:** - session=None (default): Uses primary session ("s1") - session="s2": Targets specific session
ParameterTypeDescription
agent_idstring
checked *boolean
label *string
sessionstring
sap_set_fieldSet a single SAP form field by label or element name. Finds the field dynamically and fills it with the given value. The label parameter can be: - Visible label text (e.g., 'Last Name', 'Nachname') - SAP GUI element name (e.g., 'BUT000-NAME_LAST') This is simpler than sap_fill_form for single fields. **Session parameter:** - session=None (default): Uses primary session ("s1") - session="s2": Targets specific session (for parallel agents)
ParameterTypeDescription
agent_idstringAgent identifier for binding check. Optional.
sessionstringSession ID (e.g., "s1", "s2"). None uses primary session.
value *stringValue to set in the field (for dropdowns: exact option text)
sap_set_radio_buttonSelect a SAP radio button by its label text. Use sap_get_form_fields first to see available radio buttons and which is selected. Args: - label: Radio button label text (e.g., 'Datenbanktabelle', 'Database table') **Session parameter:** - session=None (default): Uses primary session ("s1") - session="s2": Targets specific session
ParameterTypeDescription
agent_idstring
label *string
sessionstring
sap_slg1_lookupSearch and read SAP application logs from SLG1. USE THIS instead of sap_transaction('SLG1') - faster and returns structured data. Returns log entries with metadata (date, time, user, object, subobject, external ID, message count, log number). Best used when the log object is known (e.g., /SDF/CALM for Cloud ALM, /SDF/AIMAX for AI). Use '*' as object to search all logs. Requires at minimum the 'object' parameter. Returns up to 50 logs.
ParameterTypeDescription
agent_idstringAgent identifier for binding check. Optional.
external_idstringExternal identifier (optional filter)
from_datestringStart date filter (YYYY-MM-DD format)
output_filestringIf provided, write results to this JSON file and return summary.
sessionstringSession ID (e.g., "s1", "s2"). None uses primary session.
to_datestringEnd date filter (YYYY-MM-DD format)
sap_sm30_lookupLook up SAP table maintenance view entries from SM30 (read-only display mode). USE THIS instead of sap_transaction('SM30') - faster and returns structured data. Returns entries from the maintenance view with dynamically-parsed columns. Supports any flat table view (e.g., V_T005 for countries, custom Z* views). Non-flat views (SM34/cluster/hierarchical) are detected and reported as unsupported. Note: only the first page of rows is returned (typically ~12 rows); views with more entries will report the total row_count from the view header.
ParameterTypeDescription
agent_idstringAgent identifier for binding check. Optional.
output_filestringIf provided, write full results to this JSON file within the configured output directory (OUTPUT_DIR, default: current working directory) and return summary.
sessionstringSession ID (e.g., "s1", "s2"). None uses primary session.
view_name *stringThe maintenance view or table name (e.g., 'V_T005', 'V_T002')
sap_sm37_lookupList background jobs from SM37 (Job Overview). USE THIS instead of sap_transaction('SM37') - faster and returns structured data. Filters: job name (wildcards like *BILLING*), username, status (scheduled/released/ready/active/finished/canceled), date range. Note: status=None keeps SAP defaults (all checked except 'Scheduled'). Pass status=['scheduled'] explicitly to include only scheduled jobs. When include_log=True and exactly one job matches, the job log is included. Returns job list with name, status, start time, duration, user, and SAP client (mandant).
ParameterTypeDescription
agent_idstringAgent identifier for binding check. Optional.
from_datestringStart date filter in ISO format (YYYY-MM-DD)
include_logbooleanFetch job log when exactly one job matches (default: False)
output_filestringIf provided, write full results to this JSON file
sessionstringSession ID (e.g., "s1", "s2"). None uses primary session.
statusanyStatus filter list (default: None = all statuses).
to_datestringEnd date filter in ISO format (YYYY-MM-DD)
usernamestringUser filter (default: * for all users, None to keep SAP default)
sap_spro_searchSearch the SAP Implementation Guide (IMG) for customizing activities by keyword. USE THIS to find where specific SAP configuration is maintained (e.g., 'country', 'pricing', 'tax'). Returns matching IMG activities with their parent node and area. The search covers only the top two levels of the IMG tree (the result's scope_note says so). Results can then be used to navigate to specific configuration via SM30 or other transactions. Note: the search expands the IMG tree, so it can take a while.
ParameterTypeDescription
agent_idstringAgent identifier for binding check. Optional.
output_filestringIf provided, write full results to this JSON file and return summary.
query *stringSearch keyword (e.g., 'country', 'pricing', 'tax')
sessionstringSession ID (e.g., "s1", "s2"). None uses primary session.
sap_st22_lookupLook up ABAP short dumps (runtime errors) from ST22. If sap-adt is available, prefer its list_short_dumps/get_short_dump_details tools. USE THIS instead of sap_transaction('ST22') - faster and returns structured data. Two-step workflow: call once without dump_index to list dumps, then call again with dump_index=N to read a specific dump's detail. By default lists today's dumps. Use date parameter for other dates.
ParameterTypeDescription
agent_idstringAgent identifier for binding check. Optional.
dump_indexintegerSelect the Nth dump from the list (0-based) to read detail. If None, returns the dump list only.
output_filestringIf provided, write results to this JSON file (on success only).
sessionstringSession ID (e.g., "s1", "s2"). None uses primary session.
sap_transactionEnter and execute an SAP transaction code. IMPORTANT: Do NOT use this for SE11, SE16, SE24, SE37, or SE93; use sap_se11_lookup, sap_se16_query, sap_se24_lookup, sap_se37_lookup, or sap_se93_lookup. **Multi-Session Support (for parallel agents):** `new_window=True` opens a new SAP session and returns `session_id`/`session_count`; pass `session` on later calls to target it. Concurrency note: SAP GUI COM scripting is single-threaded per connection. Running parallel scripting loops across `new_window=True` sessions of the same connection is serialized (no speedup). For bulk work on one connection, use one script with a larger loop; parallelize only across separate connections. ⚠️ **CRITICAL: Always close sessions you opened!** Close `new_window=True` sessions with `sap_session_close` to avoid hitting SAP session limits. Use `sap_session_list` to review open IDs.
ParameterTypeDescription
agent_idstringAgent identifier for binding check. Optional.
new_windowbooleanIf True, open in new SAP session window (preserves current transaction). The new session is auto-registered and session_id is returned.
reset_firstbooleanIf True, navigate to SAP Easy Access (/n) before entering the transaction. Use this when inputs seem stuck, fields aren't updating, or the previous transaction left the session in a bad state. Ignored when new_window=True.
sessionstringSession ID (e.g., "s1", "s2"). None uses primary session.
sap_tree_activateActivate a tree node like a user would: double-click the node (or the item `item_name`), or with mode='click_link' click the hyperlink item `item_name` (a column name from sap_tree_read; list trees number their items '1', '2', ...). Can navigate or start an action; check the returned title and status bar.
ParameterTypeDescription
agent_idstring
item_namestringColumn name of the item to click.
modestring
node_key *any
sessionstring
tree_idany
sap_tree_expandExpand (or with expand=false collapse) one folder node of a tree; not recursive. Returns the state read back and the number of children loaded at that moment (children that load late may be missing; read the tree again to be sure).
ParameterTypeDescription
agent_idstring
expandboolean
node_key *any
sessionstring
tree_idany
sap_tree_selectSelect one node of a tree (changes only the selection).
ParameterTypeDescription
agent_idstring
node_key *any
sessionstring
tree_idany
search_classesSearch for SAP classes by name or description. Use this when the user asks things like: - 'What class handles installations?' - 'Find classes for IS-U contracts' - 'Which class works with devices?' - 'Show me FI-CA classes' The catalog contains IS-U and FI-CA classes. Returns matching classes with relevance scores.
ParameterTypeDescription
limitintegerMaximum results to return (default 10, max 50)
query *stringSearch query - can be a class name (e.g., 'CL_ISU_CONTRACT'), partial name (e.g., 'CL_ISU_'), or description keywords (e.g., 'installation', 'contract', 'device')
search_function_modulesSearch for SAP function modules by name, description, or parameter. Use this when the user asks things like: - 'What FM reads installation data?' - 'Find function modules for Anlage' - 'Which FMs work with business partners?' - 'Show me FKK function modules' The catalog contains IS-U and FI-CA function modules. Returns matching FMs with relevance scores.
ParameterTypeDescription
include_paramsbooleanAlso search within parameter names, descriptions, and reference types (default True)
limitintegerMaximum results to return (default 10, max 50)
query *stringSearch query - can be a FM name (e.g., 'BAPI_USER_GET_DETAIL'), partial name (e.g., 'FKK_'), description keywords (e.g., 'installation', 'Anlage'), or parameter name/type (e.g., 'VKONT', 'partner')
search_tablesSearch for SAP tables by name, description, or field. Use this when the user asks things like: - 'What table stores material master data?' - 'Which table has the MATNR field?' - 'Find tables related to purchase orders' Returns matching tables with relevance scores.
ParameterTypeDescription
include_fieldsbooleanAlso search within field names and descriptions
limitintegerMaximum results to return (default 10, max 50)
query *stringSearch query - can be a table name (e.g., 'MARA'), partial name (e.g., 'MAR'), description keywords (e.g., 'material master'), or field name (e.g., 'MATNR')
search_transactionsSearch for SAP transactions by description or transaction code. Use this when the user asks things like: - 'How do I create a sales order?' - 'What transaction displays customer master?' - 'Show me material management transactions' - 'What is VA01?' Returns matching transactions with relevance scores.
ParameterTypeDescription
areastringOptional filter by SAP module area. Common values: - 'SD' = Sales & Distribution - 'MM' = Materials Management - 'FI' = Financial Accounting - 'CO' = Controlling - 'PP' = Production Planning - 'HR' = Human Resources - 'BC' = Basis/Technical
limitintegerMaximum results to return (default 10, max 50)
query *stringSearch query - can be a transaction code (e.g., 'VA01'), partial code (e.g., 'VA'), or description keywords (e.g., 'create sales order', 'customer master')

Security checks

  • ✓README presentThe repository's README runs to about 6.2K words.
  • ✓License declaredThe repository declares the MIT license.
  • ✓Tests presentA test suite exists in the repository.
  • ✓Dependencies pinnedA lockfile pins dependency versions.
  • !No dynamic code executionScanned 170 source files and found 1 call to eval or shell execution, in src/sapguimcp/tools/script_tools.py. Review how tool inputs reach them before granting credentials.

1 check has not been run yet.

Releases

v0.17.20v0.17.20 · 9 Oct 2026What's Changed fix(transaction): sap_transaction reports a transaction code that does not exist as a failure by @hf-kklein in https://github.com/Hochfrequenz/sapgui.mcp/pull/977 Full Changelog:…
v0.17.19v0.17.19 · 9 Oct 2026What's Changed fix(spro): the desktop IMG search says it covers only the top two levels by @hf-kklein in https://github.com/Hochfrequenz/sapgui.mcp/pull/976 Full Changelog:…
v0.17.18v0.17.18 · 9 Oct 2026What's Changed fix(se93): the desktop lookup reads the SAP GUI for HTML flag by @hf-kklein in https://github.com/Hochfrequenz/sapgui.mcp/pull/974 Full Changelog: https://github.com/Hochfrequenz/sapgui.mcp/compare/v0.17.17...v0.17.18
v0.17.17v0.17.17 · 9 Oct 2026What's Changed fix(desktop): get_form_fields reports the Selected state of a checkbox or radio button as checked by @hf-kklein in https://github.com/Hochfrequenz/sapgui.mcp/pull/975 Full Changelog:…
v0.17.16v0.17.16 · 9 Oct 2026What's Changed fix(desktop): a table control's total_rows and truncated flag no longer count its empty padding lines by @hf-kklein in https://github.com/Hochfrequenz/sapgui.mcp/pull/973 Full Changelog:…

README

The repository's README runs to about 6.2K words, fetched a month ago. The original in the repository is authoritative.

Read full README
Questions

About Sapgui.mcp

How do I install Sapgui.mcp?

No package has been published for this server, so install it from source: clone the repository and follow its README.

Is Sapgui.mcp safe to use with an AI agent?

Its trust score is 61 out of 100 (good). It passes 4 of the 5 static checks Conduid ran on the repository; it does not pass No dynamic code execution. It has no ConduID identity yet, so agent calls to it are not receipted.

Is Sapgui.mcp still maintained?

Yes — the latest release is v0.17.20 (9 Oct 2026), and the last commit was yesterday. The repository has 25 stars and 25 open issues.

What tools does Sapgui.mcp provide?

Conduid read 67 tools from the source: log_feedback, log_intent, sap_abapgit_list_repos, sap_abapgit_pull, sap_breakpoint_delete, sap_breakpoint_list, sap_breakpoint_set, sap_click_button and 59 more. 62 of them publish their parameters, listed under Tools above.

What license is Sapgui.mcp released under?

The repository declares the MIT license. That applies to the latest release, v0.17.20, as well.