# ABAPilot

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.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · ★ 6 repo stars
- Author: NicoHern
- License: MIT · policy=link-only · description only; the file stays with the author
- Source: https://github.com/NicoHern/abapilot-mcp
- Updated: 2026-11-03
- Security check: automated, 2026-11-17 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/mcp/abapilot

## What it 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.

## Requirements
- Needs: Node.js (commands run via npx)
- Environment variables: `ABAPILOT_URL`, `ABAPILOT_USER`, `ABAPILOT_PASSWORD`, `ABAPILOT_TOKEN`, `ABAPILOT_CLIENT`, `ABAPILOT_TOOLS`, `ABAPILOT_TLS_INSECURE` — keys and tokens: ask the human for the values, never commit them or put them in shared files.

## Install

### Claude Code (native platform)

**Platform CLI**
```bash
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
```
Replace <…> with your own values. 2 more environment variables are in the server README

### Codex

**Platform CLI**
```bash
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 abapilot
```
Replace <…> with your own values. 2 more environment variables are in the server README

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "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

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "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

### Gemini CLI

**Platform CLI**
```bash
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 abapilot
```
Replace <…> with your own values. 2 more environment variables are in the server README

## When to use it
- 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
- Explain what program `ZMM_REPORT` does and which tables and fields it touches.
- Run `sap_syntax_check` on this class. Don't activate it.
- Use `sap_read_where_used` to find every caller of function module `Z_GET_DATA`.

## Similar
- [super-claude-for-sap](https://affpapa.org/en/nevibecode/plugins/super-claude-for-sap.md) — plugin · ★ 80 repo stars
- [sap-migrate](https://affpapa.org/en/nevibecode/plugins/sap-migrate.md) — plugin · ★ 10 repo stars
- [SAP ABAP MCP](https://affpapa.org/en/nevibecode/mcp/sap-abap-mcp.md) — MCP server · ★ 8 repo stars
- [sap-hana-cloud-data-intelligence](https://affpapa.org/en/nevibecode/skills/sap-hana-cloud-data-intelligence.md) — skill · 821 installs
- [sap-abap](https://affpapa.org/en/nevibecode/skills/sap-abap.md) — skill · 1500 installs
- [mcp-abap-adt](https://affpapa.org/en/nevibecode/mcp/mcp-abap-adt.md) — MCP server · ★ 210 repo stars

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
