Skip to main content

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, maintain domains, data elements, message classes and authorization objects, implement BAdIs, publish OData service bindings and manage transport requests.

Running

cp .env.example .env   # fill in the SAP connection and a token
uv run --env-file .env abap-adt-mcp

Without 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
ABAP_ADT_HOST SAP system, e.g. http://localhost:50000
ABAP_ADT_USER, ABAP_ADT_PASSWORD SAP login
ABAP_ADT_CLIENT, ABAP_ADT_LANGUAGE 001, EN
ADT_MCP_HOST, ADT_MCP_PORT 127.0.0.1, 2236 where the server listens
ADT_MCP_TOKEN required Authorization: Bearer token; mandatory on non-local addresses

Claude Code

claude mcp add --transport http abap-adt http://localhost:2236/mcp --header "Authorization: Bearer <token>"

Tools

Area Tools
Repository search_objects, package_contents, object_package_path, object_structure
Source get_source, write_source, activate, list_inactive_objects, pretty_print
Create / delete create_object, create_package, create_table_type, create_test_class_include, delete_object
Dictionary create_domain, get_domain, update_domain, create_data_element, get_data_element, update_data_element
Message classes create_message_class, get_message_class, set_messages, delete_messages
Authorizations create_authorization_field, get_authorization_field, update_authorization_field, create_authorization_object, get_authorization_object, update_authorization_object
BAdIs get_enhancement_spot, get_enhancement_implementation, create_enhancement_implementation, update_enhancement_implementation
Service bindings create_service_binding, get_service_binding, publish_service_binding, unpublish_service_binding
Quality syntax_check, run_unit_tests, run_atc, list_check_variants, atc_documentation
Navigation find_definition, where_used, code_completion
Runtime run_query, run_class, list_dumps, get_dump
Transports transport_info, create_transport, list_transports, release_transport, delete_transport

Locking is handled inside the tools: write_source locks the object, writes, unlocks and activates, so agents never deal with lock handles. activate and delete_object take a list of URIs for objects that depend on each other, such as a CDS root view and its composition child. SAP errors (activation errors with their positions, locked objects, ...) are returned to the agent as tool errors.

Development

uv sync
uv run pytest

Metadata

Release files for abap-adt-mcp 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for abap-adt-mcp 0.3.0
File Size Uploaded Provenance Actions
abap_adt_mcp-0.3.0.tar.gz 17.9 kB With provenance Details for abap_adt_mcp-0.3.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for abap-adt-mcp 0.3.0
File Interpreter ABI Platform Actions
abap_adt_mcp-0.3.0-py3-none-any.whl Python 3 none any Details for abap_adt_mcp-0.3.0-py3-none-any.whl

Total release size: 39.0 kB

Release files / abap_adt_mcp-0.3.0.tar.gz

Download URL abap_adt_mcp-0.3.0.tar.gz
Size 17.9 kB
Tags Source
SHA-256 checksum
How to use checksums
0c38a962234c1fa14f041c43ab7228cc582fe98d3811a3f221326d5741220dd5
BLAKE2b-256 checksum
How to use checksums
4c0d9bd6e325aebfaccca2d22254c3071258b862756feaa21bf3e0921a607aac
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 2, 2026.

Transparency log

Release files / abap_adt_mcp-0.3.0-py3-none-any.whl

Download URL abap_adt_mcp-0.3.0-py3-none-any.whl
Size 21.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
820bf080df4012d31f58759948d74ac0e00e91d01b2a34565d36601064988d43
BLAKE2b-256 checksum
How to use checksums
7baaa9938affaaee4210c8c7f556840d3045ae1c2d51d658ea42ab38bf1bc9d7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 2, 2026.

Transparency log

Security for abap-adt-mcp 0.3.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for abap_adt_mcp-0.3.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 2, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page