# mcp-sap-docs

Gives your assistant search and fetch over SAP documentation: UI5, CAP, ABAP, BTP. Handy when you need the official docs without leaving the editor.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed · ★ 246
- Author: marianfoo
- License: Apache-2.0 · policy=link-only · description only; the file stays with the author
- Source: https://github.com/marianfoo/mcp-sap-docs
- Updated: 2026-10-23
- HTML: https://affpapa.org/en/nevibecode/mcp/mcp-sap-docs

## What it does

The server exposes a unified search over a local SAP docs index as MCP tools. Search runs on BM25, with optional semantic ranking on top. The index is built from git clones: ABAP Keyword Documentation, cheat sheets, RAP samples, style guides, BTP, AI Core, UI5, CAP, Cloud SDK, the Terraform provider for BTP, architecture references, wdi5.

Two variants share one codebase and differ by the `MCP_VARIANT` setting. The `sap-docs` profile covers a broad doc set and adds Discovery Center tools; `abap` focuses on ABAP keywords, RAP, cheat sheets, style guides and `abap_lint`. Shared tools include `search`, `fetch`, `abap_feature_matrix`, `sap_community_search`, `sap_search_objects` and `sap_get_object_details`.

The public hosted endpoint needs no API key or login and is read-only. Running it locally means you need Node.js and `npx` — the install command fails without them.

## Requirements
- Needs: Node.js (commands run via npx)

## Install

### Claude Code (native platform)

**Platform CLI**
```bash
claude mcp add mcp-sap-docs -- npx -y mcp-sap-docs
```

### Codex

**Platform CLI**
```bash
codex mcp add mcp-sap-docs -- npx -y mcp-sap-docs
```

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "mcp-sap-docs": {
            "command": "npx",
            "args": [
                "-y",
                "mcp-sap-docs"
            ]
        }
    }
}
```

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "mcp-sap-docs": {
            "type": "stdio",
            "command": "npx",
            "args": [
                "-y",
                "mcp-sap-docs"
            ]
        }
    }
}
```

### Gemini CLI

**Platform CLI**
```bash
gemini mcp add mcp-sap-docs npx -y mcp-sap-docs
```

## When to use it
- look up current ABAP syntax for a keyword
- check whether an ABAP feature exists in a given release
- find SAP Community posts about a specific error
- check an object's release state and clean core level
- see what changed in SAPUI5 between versions

## Example prompts
- Find in the SAP docs how to declare a number range in RAP
- Check the feature matrix whether this construct exists in 7.40
- Search SAP Community for posts about this OData error

## Similar
- [GitHub](https://affpapa.org/en/nevibecode/mcp/github.md) — MCP server · ★ 33918
- [Netdata](https://affpapa.org/en/nevibecode/mcp/netdata.md) — MCP server · ★ 81115
- [browser-use](https://affpapa.org/en/nevibecode/mcp/browser-use.md) — MCP server · ★ 119160
- [Codebase Memory](https://affpapa.org/en/nevibecode/mcp/codebase-memory.md) — MCP server · ★ 47392
- [mcp-server](https://affpapa.org/en/nevibecode/mcp/mcp-server.md) — MCP server · ★ 43872
- [AIHawk](https://affpapa.org/en/nevibecode/mcp/aihawk.md) — MCP server · ★ 32221

---
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
