SAP文档
STDIO提供SAP文档和社区内容访问的MCP服务器
提供SAP文档和社区内容访问的MCP服务器
A fast, lightweight MCP server that provides unified access to official SAP documentation (SAPUI5, CAP, OpenUI5 APIs & samples, wdi5) using efficient BM25 full-text search. Use it remotely (hosted URL) or run it locally.
Public server (MCP Streamable HTTP): https://mcp-sap-docs.marianzeis.de/mcp
Local Streamable HTTP (default: 3122, configurable via MCP_PORT): http://127.0.0.1:3122/mcp
Local HTTP status: http://127.0.0.1:3001/status
Point your MCP client to the Streamable HTTP URL:
https://mcp-sap-docs.marianzeis.de/mcp
Verify from a shell:
# Should return JSON with api_last_activity curl -sS https://mcp-sap-docs.marianzeis.de/status | jq . # Should return HTTP 410 with migration info (SSE endpoint deprecated) curl -i https://mcp-sap-docs.marianzeis.de/sse
# From repo root npm ci ./setup.sh # execute this script to clone the github documentation submodules npm run build # Start the MCP server (STDIO) node dist/src/server.js # OR start the Streamable HTTP server npm run start:streamable
Local health checks
# HTTP server curl -sS http://127.0.0.1:3001/status | jq . # Streamable HTTP server (local & deployment default) curl -sS http://127.0.0.1:3122/health | jq .
✅ Remote URL: use the public MCP Streamable HTTP endpoint
✅ Local/STDIO: run node dist/src/server.js and point the client to a command + args
✅ Local/Streamable HTTP: run npm run start:streamable and point the client to http://127.0.0.1:3122/mcp
Below are copy-paste setups for popular clients. Each block has remote, local, and streamable HTTP options.
https://mcp-sap-docs.marianzeis.de/mcp
Docs: Model Context Protocol "Connect to Remote MCP Servers" (shows how Claude connects to MCP servers).
Point Claude to the command and args:
command: node
args: ["<absolute-path-to-your-repo>/dist/src/server.js"]
Claude's user quickstart shows how to add local servers by specifying a command/args pair.
For the latest MCP protocol (2025-03-26) with Streamable HTTP support:
npm run start:streamable
http://127.0.0.1:3122/mcp
This provides better performance and supports the latest MCP features including session management and resumability.
Create or edit ~/.cursor/mcp.json:
{ "mcpServers": { "sap-docs-remote": { "url": "https://mcp-sap-docs.marianzeis.de/mcp" } } }
~/.cursor/mcp.json:
{ "mcpServers": { "sap-docs": { "command": "node", "args": ["/absolute/path/to/dist/src/server.js"] } } }
Eclipse users can integrate the SAP Docs MCP server with GitHub Copilot for seamless access to SAP development documentation.
Install GitHub Copilot Extension
Open MCP Configuration
Add SAP Docs MCP Server Add the following to the "Server Configurations" and click on "Apply"
{ "servers": { "SAPDocs": { "type": "http", "url": "https://mcp-sap-docs.marianzeis.de/mcp" } } }
Verify Configuration
Once configured, you can use Copilot Chat in Eclipse with enhanced SAP documentation:
Example queries:
How do I implement a Wizard control in UI5?
What is the syntax for inline declarations in ABAP 7.58?
Show me best practices for RAP development
Find wdi5 testing examples for OData services
Available Tools:
search - Unified search for all SAP development (UI5, CAP, ABAP, testing) with intelligent ABAP version filteringfetch - Retrieve complete documentation for any sourcesap_community_search - SAP Community integrationsap_help_search - SAP Help Portal access{ "name": "SAP Docs MCP (Local)", "description": "Local SAP documentation server", "command": "npm", "args": ["start"], "cwd": "/absolute/path/to/your/sap-docs-mcp", "env": { "NODE_ENV": "production" } }
Prerequisites for local setup:
npm run setup to initialize all documentation sourcesnpm startPrerequisites: VS Code 1.102+ with MCP support enabled (enabled by default).
Create .vscode/mcp.json in your workspace:
{ "servers": { "sap-docs": { "type": "http", "url": "https://mcp-sap-docs.marianzeis.de/mcp" } } }
.vscode/mcp.json file in your workspaceBenefits:
Note: You'll be prompted to trust the remote MCP server when connecting for the first time.
{ "servers": { "sap-docs-local": { "type": "stdio", "command": "node", "args": ["<absolute-path>/dist/src/server.js"] } } }
{ "servers": { "sap-docs-http": { "type": "http", "url": "http://127.0.0.1:3122/mcp" } } }
(Start local server with npm run start:streamable first)
MCP: Add Server → choose server type → provide details → select scopeMCP: Open User Configuration for global setup across all workspacesSee Microsoft's "Use MCP servers in VS Code" for complete documentation.
Open Raycast → Open Command "Manage Servers (MCP) → Import following JSON
{ "mcpServers": { "sap-docs": { "command": "npx", "args": ["mcp-remote@latest", "https://mcp-sap-docs.marianzeis.de/mcp"] } } }
Open Raycast → Open Command "Manage Servers (MCP) → Import following JSON
{ "mcpServers": { "sap-docs": { "command": "node", "args": ["/absolute/path/to/dist/src/server.js"] } } }
Raycast by default asks to confirm each usage of an MCP tool. You can enable automatic confirmation:
Open Raycast → Raycast Settings → AI → Model Context Protocol → Check "Automatically confirm all tool calls"
This MCP server provides unified access to comprehensive SAP development documentation across multiple product areas. All sources are searched simultaneously through the search tool, with intelligent filtering and ranking.
| Source Category | Sources | File Count | Description | 
|---|---|---|---|
| ABAP Development | 4 sources | 40,800+ files | Official ABAP keyword docs (8 versions), cheat sheets, Fiori showcase, community guidelines | 
| UI5 Development | 6 sources | 12,000+ files | SAPUI5 docs, OpenUI5 APIs/samples, TypeScript, tooling, web components, custom controls | 
| CAP Development | 2 sources | 250+ files | Cloud Application Programming model docs and Fiori Elements showcase | 
| Cloud & Deployment | 3 sources | 500+ files | SAP Cloud SDK (JS/Java), Cloud SDK for AI, Cloud MTA Build Tool | 
| Testing & Quality | 2 sources | 260+ files | wdi5 E2E testing framework, SAP style guides | 
/abap-docs) - 40,761+ curated ABAP files across 8 versions (7.52-7.58 + latest) with intelligent version filtering/abap-cheat-sheets) - 32 comprehensive cheat sheets covering core ABAP concepts, SQL, OOP, RAP, and more/abap-fiori-showcase) - Complete annotation reference for ABAP RESTful Application Programming (RAP)/dsag-abap-leitfaden) - German ABAP community best practices and development standards/sapui5-docs) - 1,485+ files - Complete official developer guide, controls, and best practices/openui5) - 20,000+ files - Complete OpenUI5 source including 500+ control APIs with detailed JSDoc and 2,000+ working examples from demokit samples/ui5-typescript) - Official TypeScript setup guides, type definitions, and migration documentation/ui5-tooling) - Complete UI5 Tooling documentation for project setup, build, and development workflows/ui5-webcomponents) - 4,500+ files - Comprehensive web components documentation, APIs, and implementation examples/ui5-cc-spreadsheetimporter) - Spreadsheet importer and other community custom control documentation/cap-docs) - 195+ files - Complete Cloud Application Programming model documentation for Node.js and Java/cap-fiori-showcase) - Comprehensive annotation reference and examples for CAP-based Fiori Elements applications/cloud-sdk) - Complete SDK documentation, tutorials, and API references for JavaScript/TypeScript/cloud-sdk) - Comprehensive Java SDK documentation and integration guides/cloud-sdk-ai) - Latest AI capabilities integration documentation for both JavaScript and Java/cloud-mta-build-tool) - Complete documentation for Multi-Target Application development and deployment/wdi5) - 225+ files - End-to-end testing documentation, setup guides, and real-world examples/sap-styleguides) - Official SAP coding standards, clean code practices, and development guidelinesTry these with any connected MCP client to explore the comprehensive documentation:
ABAP Keyword Documentation (8 versions with intelligent filtering):
ABAP Best Practices & Guidelines:
SAPUI5 & OpenUI5:
Modern UI5 Development:
CAP Framework:
Cloud SDK & Deployment:
Testing Frameworks:
Code Quality:
Community Knowledge (with full content):
SAP Help Portal:
https://mcp-sap-docs.marianzeis.de/mcp (not /sse, which is deprecated).curl -i https://mcp-sap-docs.marianzeis.de/mcp
You should see JSON indicating MCP protocol support.
node <absolute-path>/dist/src/server.js
node dist/src/server.js
pm2 status mcp-sap-http pm2 status mcp-sap-proxy curl -fsS http://127.0.0.1:3001/status | jq . curl -fsS http://127.0.0.1:18080/status | jq .
npm run build:tsc # Compile TypeScript npm run build:index # Build search index from sources npm run build:fts # Build FTS5 database npm run build # Complete build pipeline (tsc + index + fts) npm run setup # Complete setup (submodules + build)
npm start # Start STDIO MCP server npm run start:http # Start HTTP status server (port 3001) npm run start:streamable # Start Streamable HTTP MCP server (port 3122)
git clone https://github.com/marianfoo/mcp-sap-docs.git cd mcp-sap-docs npm ci # Install dependencies npm run setup # Enhanced setup (optimized submodules + complete build)
The build process creates optimized search indices for fast offline access while maintaining real-time connectivity to the SAP Community API.
# Check server status curl -sS https://mcp-sap-docs.marianzeis.de/status | jq . # Test MCP endpoint curl -i https://mcp-sap-docs.marianzeis.de/mcp
# HTTP server status curl -sS http://127.0.0.1:3001/status | jq . # MCP Streamable HTTP server status curl -sS http://127.0.0.1:3122/health | jq .
This project includes dual automated workflows:
Main Deployment (on push to main or manual trigger)
Daily Documentation Updates (4 AM UTC)
Trigger documentation updates anytime via GitHub Actions → "Update Documentation Submodules" workflow.