ABAPilot — Claude Code MCP server: ABAP work on SAP ECC and S/4HANA
ABAPilot is an Claude Code MCP server that connects an AI assistant to SAP ECC and on-premise S/4HANA, serving ABAP source and Data Dictionary definitions. First job: make sense of an existing program.
MIT ★ 6 updated 2026-11-03
claude mcp add --env ABAPILOT_URL=<ABAPILOT_URL> --env ABAPILOT_USER=<ABAPILOT_USER> --env ABAPILOT_PASSWORD=<ABAPILOT_PASSWORD> --env ABAPILOT_TOKEN=<ABAPILOT_TOKEN> --env ABAPILOT_CLIENT=<ABAPILOT_CLIENT> --transport stdio abapilot -- npx -y abapilotWhat ABAPilot does
The connector runs outside SAP and calls a licensed ABAPilot backend that has to be installed inside the SAP system. The npm package is free and MIT-licensed. Without that backend there is nothing to query. Once wired up, the assistant pulls sources for programs, classes and function groups, gets table structures, domains and foreign keys, and follows cross-references through WBCROSSGT and WBCROSSI.
The npm build 1.0.6 lists 49 tools. Row reads with a WHERE filter, paging and streaming for large sets, short dumps from ST22, the system log in SM21, background jobs in SM37, a syntax check that creates and activates nothing, and report execution behind a transaction code. Which calls answer depends on the connector build, the backend version and the endpoints turned on.
Four installations took part in the operational round: two ECC, two S/4HANA. Dictionary reads, component reads, dispatcher source reads and syntax checks in both directions passed. Writes, activation, transports, authorization boundaries and production readiness were not part of it. Guard rails for sap_write_code_safe sit in the backend — the public Node connector does not implement them, and the tool's parameter schema leaves some fields uncovered.
What it helps with
- explain a legacy ABAP program from its source and dictionary entries
- trace where an object is used before touching it
- syntax-check a change without activating or transporting it
- pull filtered table rows with paging for big result sets
- read a short dump in ST22 and find the cause
Example prompts for the agent
- Explain what program
ZMM_REPORTdoes and which tables and fields it touches. - Run
sap_syntax_checkon this class. Don't activate it. - Use
sap_read_where_usedto find every caller of function moduleZ_GET_DATA.
How to install ABAPilot
Platform CLI
claude mcp add --env ABAPILOT_URL=<ABAPILOT_URL> --env ABAPILOT_USER=<ABAPILOT_USER> --env ABAPILOT_PASSWORD=<ABAPILOT_PASSWORD> --env ABAPILOT_TOKEN=<ABAPILOT_TOKEN> --env ABAPILOT_CLIENT=<ABAPILOT_CLIENT> --transport stdio abapilot -- npx -y abapilotReplace <…> with your own values. 2 more environment variables are in the server README
Platform CLI
codex mcp add abapilot --env ABAPILOT_URL=<ABAPILOT_URL> --env ABAPILOT_USER=<ABAPILOT_USER> --env ABAPILOT_PASSWORD=<ABAPILOT_PASSWORD> --env ABAPILOT_TOKEN=<ABAPILOT_TOKEN> --env ABAPILOT_CLIENT=<ABAPILOT_CLIENT> -- npx -y abapilotReplace <…> with your own values. 2 more environment variables are in the server README
Config file
{
"mcpServers": {
"abapilot": {
"command": "npx",
"args": [
"-y",
"abapilot"
],
"env": {
"ABAPILOT_URL": "<ABAPILOT_URL>",
"ABAPILOT_USER": "<ABAPILOT_USER>",
"ABAPILOT_PASSWORD": "<ABAPILOT_PASSWORD>",
"ABAPILOT_TOKEN": "<ABAPILOT_TOKEN>",
"ABAPILOT_CLIENT": "<ABAPILOT_CLIENT>"
}
}
}
}Replace <…> with your own values. 2 more environment variables are in the server README
Config file
{
"servers": {
"abapilot": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"abapilot"
],
"env": {
"ABAPILOT_URL": "<ABAPILOT_URL>",
"ABAPILOT_USER": "<ABAPILOT_USER>",
"ABAPILOT_PASSWORD": "<ABAPILOT_PASSWORD>",
"ABAPILOT_TOKEN": "<ABAPILOT_TOKEN>",
"ABAPILOT_CLIENT": "<ABAPILOT_CLIENT>"
}
}
}
}Replace <…> with your own values. 2 more environment variables are in the server README
Platform CLI
gemini mcp add -e ABAPILOT_URL=<ABAPILOT_URL> -e ABAPILOT_USER=<ABAPILOT_USER> -e ABAPILOT_PASSWORD=<ABAPILOT_PASSWORD> -e ABAPILOT_TOKEN=<ABAPILOT_TOKEN> -e ABAPILOT_CLIENT=<ABAPILOT_CLIENT> abapilot npx -y abapilotReplace <…> with your own values. 2 more environment variables are in the server README
Step by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more
Questions about ABAPilot
How do I install ABAPilot in Claude Code?
With one command: `claude mcp add --env ABAPILOT_URL=<ABAPILOT_URL> --env ABAPILOT_USER=<ABAPILOT_USER> --env ABAPILOT_PASSWORD=<ABAPILOT_PASSWORD> --env ABAPILOT_TOKEN=<ABAPILOT_TOKEN> --env ABAPILOT_CLIENT=<ABAPILOT_CLIENT> --transport stdio abapilot -- npx -y abapilot. It starts the stdio server through npx -y abapilot` and hands it the connection variables.
What does ABAPilot do?
It links an AI coding assistant to SAP ECC and on-premise S/4HANA: ABAP sources, Data Dictionary metadata, table rows, short dumps and system logs arrive through the licensed backend.
What does ABAPilot need to run?
A licensed ABAPilot backend inside the SAP system, an HTTPS endpoint agreed with the SAP team, a user with rights for the permitted operations, and the ABAPILOT_URL, ABAPILOT_USER, ABAPILOT_PASSWORD, ABAPILOT_TOKEN and ABAPILOT_CLIENT variables.