The SAP Documentation MCP Server provides unified access to official SAP documentation, real-time SAP Community content, and SAP Help Portal resources for comprehensive SAP development support.
Core Capabilities:
Search SAP Documentation (
sap_docs_search): Query SAPUI5, CAP, OpenUI5 APIs, and wdi5 documentation for controls, technical concepts, and development topicsSearch SAP Community (
sap_community_search): Find high-quality blog posts and solutions with real-time access and automatic full content retrieval for top resultsSearch SAP Help Portal (
sap_help_search): Access comprehensive SAP product documentation across S/4HANA, SAP BTP, Analytics Cloud, Fiori, and ABAPRetrieve Specific Content (
sap_docs_get,sap_help_get): Fetch detailed documentation, control APIs, or community posts using unique IDs with optional filtering
Content Coverage: Over 4,180+ documentation files including SAPUI5 (1,485+ files), CAP (195+ files), OpenUI5 APIs (500+ definitions), 2,000+ sample code examples, plus real-time community posts and full SAP Help Portal access.
Smart Features: Intelligent search with context-aware scoring, automatic code highlighting, quality filtering, and sample categorization.
Access Methods: Remote via public SSE endpoint or local via STDIO/HTTP server, compatible with popular MCP clients like Claude, VS Code, Cursor, Zed Editor, Windsurf, and others.
Provides offline access to SAP documentation and real-time SAP Community content, including SAPUI5, CAP, OpenUI5 APIs and samples, and wdi5 E2E test framework documentation. Enables searching across official documentation and community posts, retrieving specific resources, and accessing high-quality community solutions.
Click on "Install 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., "@SAP Documentation MCP Serversearch for SAPUI5 table component examples"
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.
MCP SAP Docs (Upstream)
Public Hosted Endpoint
Ready to use — no setup required
| Variant | URL | |---------|-----| | SAP Docs |
http://mcp-sap-docs.marianzeis.de/mcp| | ABAP |https://mcp-abap.marianzeis.de/mcp|
mcp-sap-docs is the upstream repository for two MCP server variants:
sap-docsvariant: broad SAP docs scope (UI5, CAP, Cloud SDK, ABAP docs, etc.)abapvariant: ABAP-focused scope (fewer sources, ABAP lint enabled)
Both variants run from the same codebase and differ by configuration (MCP_VARIANT / .mcp-variant).
Related MCP server: DocsScraper
Current State
Upstream source of truth:
mcp-sap-docsOne-way sync target:
abap-mcp-serverSearch API is unified across variants:
query,k,includeOnline,includeSamples,abapFlavor,sources
Shared tools in both variants:
search— unified search across offline docs + optional online sources (SAP Help, SAP Community, Software Heroes)fetch— retrieve full document or community post content by IDabap_feature_matrix— check ABAP feature availability across SAP releasessap_community_search— dedicated SAP Community search (blogs, Q&A); use whensearchresults are insufficient, especially for specific errors or workarounds
ABAP-only tool:
abap_lint(enabled only when variant isabap)
Variant Selection
Resolution order:
MCP_VARIANTenvironment variable.mcp-variantfile in repo rootfallback:
sap-docs
Examples:
# Run as full sap-docs profile
MCP_VARIANT=sap-docs npm run setup
MCP_VARIANT=sap-docs npm run build
MCP_VARIANT=sap-docs npm run start:streamable
# Run as ABAP profile
MCP_VARIANT=abap npm run setup
MCP_VARIANT=abap npm run build
MCP_VARIANT=abap npm run start:streamableSearch Behavior
search performs fused retrieval over:
Offline FTS index (local submodule content)
Optional online sources (
includeOnline=true):SAP Help
SAP Community
Software Heroes content search (EN/DE merge + dedupe)
Ranking and filtering highlights:
Reciprocal Rank Fusion (RRF) across offline and online sources
Source-level boosts from metadata
includeSamplescan remove sample-heavy sourcesabapFlavor(standard/cloud/auto) filters official ABAP docs libraries while keeping non-ABAP sourcessourcescan restrict offline libraries explicitly
Offline-Only Mode
search includes online sources by default. To run offline-only, use:
local index/submodules only (
npm run setup+npm run build)includeOnline=falsein eachsearchrequest
Example search request body:
{
"query": "RAP draft",
"k": 8,
"includeOnline": false
}Docker (offline-only)
Run the container with host binding and call search with includeOnline=false:
docker run --rm -p 3122:3122 \
-e MCP_VARIANT=sap-docs \
-e MCP_PORT=3122 \
-e MCP_HOST=0.0.0.0 \
mcp-sap-docsFor strict air-gapped execution, disable container networking:
docker run --rm --network none -p 3122:3122 \
-e MCP_VARIANT=sap-docs \
-e MCP_PORT=3122 \
-e MCP_HOST=0.0.0.0 \
mcp-sap-docsNotes:
With
--network none, online fetches are impossible by runtime isolation.Startup may log warnings for online prefetch attempts (for example ABAP feature matrix); this does not prevent offline
searchusage.
Quick Start (Local)
npm ci
npm run setup
npm run buildStart server modes:
# MCP stdio
npm start
# HTTP status/dev server
npm run start:http
# MCP streamable HTTP
npm run start:streamableDefault ports by variant:
sap-docs: HTTP3001, streamable3122abap: HTTP3002, streamable3124
Health checks:
curl -sS http://127.0.0.1:3122/health | jq .
curl -sS http://127.0.0.1:3001/status | jq .Use variant-specific ports when running abap profile.
Build and Setup Scripts
Script names remain shared (setup, build, start, start:streamable).
Behavior changes by variant config:
setup.shonly initializes variant-allowed submodulesbuild-indexonly includes variant-allowed librariesbuild-ftsonly indexes variant-allowed libraries
This keeps abap faster and smaller without maintaining a separate build script set.
Docker
Build image for a variant:
# sap-docs image
docker build --build-arg MCP_VARIANT=sap-docs -t mcp-sap-docs .
# abap image
docker build --build-arg MCP_VARIANT=abap -t abap-mcp-server .Run streamable server:
# sap-docs
docker run --rm -p 3122:3122 \
-e MCP_VARIANT=sap-docs \
-e MCP_PORT=3122 \
mcp-sap-docs
# abap
docker run --rm -p 3124:3124 \
-e MCP_VARIANT=abap \
-e MCP_PORT=3124 \
abap-mcp-serverOne-Way Sync to abap-mcp-server
This repository contains direct sync automation:
Workflow:
.github/workflows/sync-to-abap-main.ymlScript:
scripts/sync-to-abap.sh
Flow:
Push to
mcp-sap-docs/mainWorkflow clones
abap-mcp-serverTracked upstream files are synced (with exclude rules)
ABAP overlay is applied
.mcp-variantis forced toabapABAP package identity is patched
Commit is pushed to
abap-mcp-server/main
Required secret in mcp-sap-docs repo:
ABAP_REPO_SYNC_TOKEN
Commit message controls:
[skip-sync]skips sync workflow
Deployment Model
mcp-sap-docs: upstream implementation + sync triggerabap-mcp-server: deployment trigger remains push-to-main in that repository
This preserves ABAP deployment automation while keeping one shared upstream codebase.
PM2 Runtime
ecosystem.config.cjs is variant-aware and resolves:
process names
ports
deploy path
from config/variants/*.json.
Validation Commands
npm run build:tsc
npm run test:url-generation
npm run test:integration
npm run test:software-heroes
# Variant-specific build checks
MCP_VARIANT=sap-docs npm run build:index
MCP_VARIANT=abap npm run build:index
MCP_VARIANT=sap-docs npm run build:fts
MCP_VARIANT=abap npm run build:ftsAdditional Docs
docs/ARCHITECTURE.mddocs/DEV.mddocs/TESTS.mddocs/UPSTREAM-ONE-WAY-SYNC-IMPLEMENTATION.mdREMOTE_SETUP.md