Sapient MCP Server

A **production-ready Model Context Protocol (MCP) server** that enables LLMs (Claude, Copilot, Cursor, etc.) to automate **SAP GUI** using the

Local serverstdioPython

What is the Sapient MCP Server?

A production-ready Model Context Protocol (MCP) server that enables LLMs (Claude, Copilot, Cursor, etc.) to automate SAP GUI using the

Credentials and setup notes

| Requirement | Details | |---|---| | OS | Windows 10/11 only (SAP GUI is Windows-only) | | Python | 3.10 or newer | | SAP GUI | SAP GUI for Windows installed | | SAP Scripting | Must be enabled on server (RZ11: sapgui/user_scripting=TRUE) AND in SAP Logon client settings |

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
sap_openLaunch SAP Logon
sap_connect_to_serverConnect to SAP server
sap_connect_to_runningAttach to running SAP session
sap_get_session_infoRead-only: current state & title
sap_closeClose SAP
sap_execute_transactionRun a transaction code
sap_activate_tabClick a tab by label
sap_get_window_titleRead-only: current window title
sap_select_menu_itemNavigate menu bar
sap_send_keySend keyboard key (Enter, F3, etc.)
sap_fill_text_fieldFill a field by its label
sap_clear_text_fieldClear a field
sap_set_checkboxCheck a checkbox
sap_unset_checkboxUncheck a checkbox
sap_select_radio_buttonSelect a radio button
sap_push_buttonClick a button by label
sap_button_existsRead-only: check if button exists
sap_read_text_fieldRead-only: read field value
sap_read_textRead-only: read any text element
sap_read_status_barRead-only: SAP status bar message
sap_count_table_rowsRead-only: table row count
sap_select_table_rowSelect a table row
sap_read_table_cellRead-only: read a cell value
sap_fill_cellFill a table cell
sap_double_click_cellDouble-click a table cell
sap_scroll_tableScroll table up/down
sap_take_screenshotCapture SAP window screenshot
sap_get_generated_scriptGet accumulated Robot Framework script
sap_clear_scriptClear script buffer
sap_get_snapshotStructured JSON snapshot of current window

How to install the Sapient MCP Server

{
  "mcpServers": {
    "sapient": {
      "command": "python",
      "args": [
        "-m",
        "sapient_mcp"
      ],
      "env": {
        "SAPIENT_MCP_SAPLOGON_PATH": "C:\\Program Files (x86)\\SAP\\FrontEnd\\SAPgui\\saplogon.exe",
        "SAPIENT_MCP_CAPS": "screenshot,codegen,advanced",
        "SAPIENT_MCP_OUTPUT_DIR": "C:\\sapient_output"
      }
    }
  }
}

From the project documentation. Replace placeholders and example paths before connecting.

Configuration

| Requirement | Details | |---|---| | OS | Windows 10/11 only (SAP GUI is Windows-only) | | Python | 3.10 or newer | | SAP GUI | SAP GUI for Windows installed | | SAP Scripting | Must be enabled on server (RZ11: sapgui/user_scripting=TRUE) AND in SAP Logon client settings |

VariableDescriptionRequired
SAPIENT_MCP_SAPLOGON_PATHDeclared in the maintainer’s client configuration.Check documentation
SAPIENT_MCP_CAPSDeclared in the maintainer’s client configuration.Check documentation
SAPIENT_MCP_OUTPUT_DIRDeclared in the maintainer’s client configuration.Check documentation

Example prompts to try

  • “Use Sapient MCP to Cursor.”
  • “Use Sapient MCP to Windsurf.”

Frequently asked questions

A **production-ready Model Context Protocol (MCP) server** that enables LLMs (Claude, Copilot, Cursor, etc.) to automate **SAP GUI** using the Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.