abap-adt-mcp — Claude Code MCP server for SAP ABAP
abap-adt-mcp — an MCP server that lets an AI agent read, write and test ABAP code on SAP systems. One sentence in chat, and the agent handles the transport, tests and activation for you.
MIT ★ 16 updated 2026-10-21
claude mcp add --env SAP_SYSTEMS_FILE=<SAP_SYSTEMS_FILE> --env SAP_SYSTEMS=<SAP_SYSTEMS> --env SAP_DEFAULT_DESTINATION=<SAP_DEFAULT_DESTINATION> --env SAP_AUTH_TYPE=<SAP_AUTH_TYPE> --env MCP_HTTP_PORT=<MCP_HTTP_PORT> --transport stdio abap-adt-mcp -- npx -y abap-adt-mcpWhat abap-adt-mcp does
The server exposes the same ADT services Eclipse uses: source, transports, tests, ATC checks, the debugger. A chat prompt turns into tool calls — the object gets locked, edited, activated, tests run, a transport number comes back. There are 173 tools in total, but MCP_TOOLSETS=focused publishes 114 everyday ones by default so the schemas don't eat context.
What sets it apart is where the guard rails live. The server enforces policies itself, before any SAP call goes out. A destination with a policy block refuses writes at server level, regardless of what the host approves. Packages can be restricted by exact name or pattern (ZFIN, Z*).
You need Node.js 22.12 or newer, the same SAP access as for Eclipse ADT, and a Chromium browser for authType: sso login. Systems go into systems.json inside .abap-adt-mcp in your home directory. The README recommends dev and test systems only; a production destination should carry the PRD policy, otherwise a careless prompt can write where it shouldn't.
What it helps with
- create and activate an ABAP class from a chat prompt
- run unit tests and get a transport number back
- restrict which packages the agent can write to
- run an ATC check and apply quickfixes
- run an ABAP Cloud readiness check
Example prompts for the agent
- Create a class with a test in the DEV system and show me the transport number.
- Fix the method in class
ZCL_ORDER_SERVICEand run the unit tests. - Run an ATC check for package
ZFINand suggest fixes.
How to install abap-adt-mcp
Platform CLI
claude mcp add --env SAP_SYSTEMS_FILE=<SAP_SYSTEMS_FILE> --env SAP_SYSTEMS=<SAP_SYSTEMS> --env SAP_DEFAULT_DESTINATION=<SAP_DEFAULT_DESTINATION> --env SAP_AUTH_TYPE=<SAP_AUTH_TYPE> --env MCP_HTTP_PORT=<MCP_HTTP_PORT> --transport stdio abap-adt-mcp -- npx -y abap-adt-mcpReplace <…> with your own values. 36 more environment variables are in the server README
Platform CLI
codex mcp add abap-adt-mcp --env SAP_SYSTEMS_FILE=<SAP_SYSTEMS_FILE> --env SAP_SYSTEMS=<SAP_SYSTEMS> --env SAP_DEFAULT_DESTINATION=<SAP_DEFAULT_DESTINATION> --env SAP_AUTH_TYPE=<SAP_AUTH_TYPE> --env MCP_HTTP_PORT=<MCP_HTTP_PORT> -- npx -y abap-adt-mcpReplace <…> with your own values. 36 more environment variables are in the server README
Config file
{
"mcpServers": {
"abap-adt-mcp": {
"command": "npx",
"args": [
"-y",
"abap-adt-mcp"
],
"env": {
"SAP_SYSTEMS_FILE": "<SAP_SYSTEMS_FILE>",
"SAP_SYSTEMS": "<SAP_SYSTEMS>",
"SAP_DEFAULT_DESTINATION": "<SAP_DEFAULT_DESTINATION>",
"SAP_AUTH_TYPE": "<SAP_AUTH_TYPE>",
"MCP_HTTP_PORT": "<MCP_HTTP_PORT>"
}
}
}
}Replace <…> with your own values. 36 more environment variables are in the server README
Config file
{
"servers": {
"abap-adt-mcp": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"abap-adt-mcp"
],
"env": {
"SAP_SYSTEMS_FILE": "<SAP_SYSTEMS_FILE>",
"SAP_SYSTEMS": "<SAP_SYSTEMS>",
"SAP_DEFAULT_DESTINATION": "<SAP_DEFAULT_DESTINATION>",
"SAP_AUTH_TYPE": "<SAP_AUTH_TYPE>",
"MCP_HTTP_PORT": "<MCP_HTTP_PORT>"
}
}
}
}Replace <…> with your own values. 36 more environment variables are in the server README
Platform CLI
gemini mcp add -e SAP_SYSTEMS_FILE=<SAP_SYSTEMS_FILE> -e SAP_SYSTEMS=<SAP_SYSTEMS> -e SAP_DEFAULT_DESTINATION=<SAP_DEFAULT_DESTINATION> -e SAP_AUTH_TYPE=<SAP_AUTH_TYPE> -e MCP_HTTP_PORT=<MCP_HTTP_PORT> abap-adt-mcp npx -y abap-adt-mcpReplace <…> with your own values. 36 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 abap-adt-mcp
How do I install abap-adt-mcp in Claude Code?
Run `claude mcp add abap-adt-mcp -e SAP_SYSTEMS=<SAP_SYSTEMS> -e MCP_HTTP_TOKEN=<MCP_HTTP_TOKEN> -e SAP_PASSWORD=<SAP_PASSWORD> -e SAP_OAUTH_CLIENT_SECRET=<SAP_OAUTH_CLIENT_SECRET> -- npx -y abap-adt-mcp. The other variant uses SAP_SYSTEMS_FILE, SAP_SYSTEMS, SAP_DEFAULT_DESTINATION, SAP_AUTH_TYPE, MCP_HTTP_PORT and the --transport stdio` flag.
What does abap-adt-mcp do?
It gives an agent ADT access to ABAP code: reading sources, editing, activation, unit tests, transports, ATC checks and the debugger. Works on any configured SAP system, S/4HANA Cloud or on-prem.
How is it different from SAP's official ADT MCP server?
The README has a dedicated comparison section. From the input, the key point is that policies are enforced by the server before any SAP call, not by the host's approval.