abap-adt-mcp
Provides access to an SAP system through the ABAP Development Tools REST API, enabling AI agents to search and browse the repository, read and write ABAP source code, activate objects, run syntax checks, unit tests and ATC, execute SQL queries and classes, read short dumps, and manage transport requests.
Click on "Deploy 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., "@abap-adt-mcplist all objects in package ZMY_PACKAGE and run ATC on ZCL_HELLO"
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.
abap-adt-mcp
An MCP server that gives AI agents access to an SAP system through the ABAP Development Tools (ADT) REST API. It is a thin layer over the abap-adt-py library: search and browse the repository, read and write source code, activate, run syntax checks, unit tests and ATC, run SQL queries and classes, read short dumps and manage transport requests.
Running
cp .env.example .env # fill in the SAP connection and a token
uv run --env-file .env abap-adt-mcpWithout a checkout, run the PyPI release: uvx --env-file .env abap-adt-mcp.
The server speaks Streamable HTTP at http://<ADT_MCP_HOST>:<ADT_MCP_PORT>/mcp (default http://127.0.0.1:2236/mcp).
It logs in to SAP on the first tool call and keeps one session for all clients.
Variable | Default | |
| SAP system, e.g. | |
| SAP login | |
|
| |
|
| where the server listens |
| required |
Claude Code
claude mcp add --transport http abap-adt http://localhost:2236/mcp --header "Authorization: Bearer <token>"Related MCP server: mcp-abap-abap-adt-api
Tools
Area | Tools |
Repository |
|
Source |
|
Create / delete |
|
Quality |
|
Navigation |
|
Runtime |
|
Transports |
|
Locking is handled inside the tools: write_source locks the object, writes, unlocks and activates, so agents
never deal with lock handles. SAP errors (activation errors with their positions, locked objects, ...) are
returned to the agent as tool errors.
Development
uv sync
uv run pytestThis server cannot be deployed
Maintenance
Related MCP Connectors
Read and write KukGit repositories, files, issues and pull requests from an AI assistant.
Access the GitHub API, enabling file operations, repository management, search functionality, and…
AI-callable tools for API mocking, testing, monitoring, security, and automation.
- mcp-serverOAuthcom.make
Give your AI agents the tools to build, manage, and run automation workflows.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables interaction with SAP ABAP systems through ABAP Development Tools (ADT), providing access to repository objects, source code, where-used analysis, and SQL queries with support for both on-premise and BTP systems.3-
- AlicenseCqualityDmaintenanceEnables interaction with SAP ABAP systems through ADT APIs, allowing management of ABAP objects, transport requests, and code analysis via natural language.100139 npmMIT
- AlicenseAqualityCmaintenanceEnables AI agents to read, write, activate, and transport ABAP code in SAP systems via ABAP ADT REST API, without needing SAP GUI.24148 npmMIT
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to perform ABAP Development Tools operations on SAP ERP (ECC and S/4HANA) systems, including source code editing, object activation, syntax checks, and ABAP unit tests.4 npmMIT