# mcp-abap-adt [Health: Active]

**Category:** 💻 Developer Tools  
**Repository:** https://github.com/mario-andreschak/mcp-abap-adt  
**GitHub Stars:** 210  
**npm Downloads (last month):** 1016  
**Views:** 15  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/mcp-abap-adt-2

## Description
ABAP ADT MCP server for reading SAP objects (programs, classes, tables, CDS) via ADT

## Tools
Capabilities this server exposes over MCP:

- **GetProgram** — Retrieve ABAP program source code
- **GetClass** — Retrieve ABAP class source code
- **GetFunctionGroup** — Retrieve ABAP Function Group source code
- **GetFunction** — Retrieve ABAP Function Module source code
- **GetStructure** — Retrieve ABAP Structure
- **GetTable** — Retrieve ABAP table structure
- **GetTableContents** — Retrieve contents of an ABAP table
- **GetPackage** — Retrieve ABAP package details
- **GetTypeInfo** — Retrieve ABAP type information
- **GetInclude** — Retrieve ABAP Include Source Code
- **SearchObject** — Search for ABAP objects using quick search
- **GetTransaction** — Retrieve ABAP transaction details
- **GetCDSView** — Retrieve CDS view (DDL source) source code
- **GetInterface** — Retrieve ABAP interface source code
- **GetBehaviorDefinition** — Retrieve RAP Behavior Definition (BDEF) source code (requires ~NW 7.54 / S/4HANA)
- **GetServiceDefinition** — Retrieve RAP Service Definition (SRVD) source code (requires ~NW 7.54 / S/4HANA)

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "mcp-abap-adt": {
    "command": "npx",
    "args": ["-y","mcp-abap-adt"],
    "env": {
      "SAP_URL": "",
      "SAP_USERNAME": "",
      "SAP_PASSWORD": "",
      "SAP_CLIENT": "",
      "SAP_LANGUAGE": "",
      "SAP_CA_FILE": "",
      "TLS_REJECT_UNAUTHORIZED": ""
    }
  }
}
```

**Requires environment variables:** `SAP_URL`, `SAP_USERNAME`, `SAP_PASSWORD`, `SAP_CLIENT`, `SAP_LANGUAGE`, `SAP_CA_FILE`, `TLS_REJECT_UNAUTHORIZED` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## What mcp-abap-adt does

mcp-abap-adt provides read-only access to SAP ABAP development artifacts through the Model Context Protocol. It connects to an existing SAP ABAP system over ADT and lets an MCP-compatible client retrieve source code, object metadata, type information, and table data.

The server covers common ABAP repository objects such as programs, classes, function groups, function modules, includes, interfaces, packages, structures, tables, transactions, and CDS views. It also supports RAP behavior definitions and service definitions on systems meeting the stated platform requirement of approximately NetWeaver 7.54 or S/4HANA.

## How it works

The package runs as an MCP server, normally launched by an MCP client with `npx -y mcp-abap-adt`. Tool discovery can occur without SAP credentials, while tool calls that read SAP data require the configured connection details.

Requests are sent to the SAP system's ADT endpoint. The SAP service `/sap/bc/adt` must be active, and the account must be able to connect to the target system. Requests use a 30-second network timeout, tool calls have a 60-second overall deadline, and responses are limited to 16 MiB. Returned-text pagination is bounded at 40,000 UTF-8 bytes.

## Setup and configuration

The server requires Node.js and npm, plus an SAP ABAP system reachable through ADT. Configure it in the MCP client's server settings with the `npx` command and the argument list `[-y, mcp-abap-adt]`.

Set these environment variables for the SAP connection:

- `SAP_URL`: The final HTTP(S) origin of the SAP system, without a path, query, fragment, or embedded credentials.
- `SAP_USERNAME`: SAP user name.
- `SAP_PASSWORD`: SAP password.
- `SAP_CLIENT`: SAP client number.
- `SAP_LANGUAGE`: Optional two-letter language code such as `EN` or `de`.
- `SAP_CA_FILE`: Optional path to a PEM CA bundle for a privately signed SAP certificate.
- `TLS_REJECT_UNAUTHORIZED`: Optional troubleshooting override; certificate verification is enabled by default.

Use HTTPS when sending SAP credentials. Redirects are rejected, so `SAP_URL` should identify the final origin used by the system or reverse proxy. For source-based installation, clone the repository, run `npm ci`, build with `npm run build`, and place the configuration in a protected `.env` file. A globally installed npm package is another option.

## Tools and capabilities

The available read-only tools include:

- Retrieve ABAP program, class, function group, function module, include, and interface source.
- Inspect structures, tables, packages, types, and transactions.
- Read table contents.
- Search for ABAP objects with quick search.
- Retrieve CDS view DDL source.
- Retrieve RAP behavior definitions and service definitions on supported SAP releases.

## Limitations and notes

The server reads SAP content; the listed tools do not mutate repository objects or table data. SAP access depends on ADT being enabled and the configured account having suitable permissions. Large upstream responses may need narrower queries to remain within the response limit.

A private certificate authority should be supplied through `SAP_CA_FILE` rather than disabling TLS verification. The CA bundle must be readable at the path visible to the process; when running in Docker, mount it read-only and use the container path. Passwords containing `#` should be quoted in `.env` files, and credentials should not be committed to source control.

_Full upstream README: https://allmcps.com/mcp/mcp-abap-adt-2/readme_

