SAP Docs MCP server

Provides offline access to SAP documentation and community content with searchable indexes across SAPUI5, CAP, OpenUI5 API documentation, and real-time SAP Community integration for fast technical reference without web-based searches.
Back to servers
Setup instructions
Provider
marianfoo
Release date
Jun 13, 2025
Language
Go
Stats
54 stars

This MCP server provides unified access to official SAP documentation through efficient BM25 full-text search. You can use it remotely via the hosted server or run it locally with STDIO or HTTP options.

Getting Started

Using the Hosted Server (Recommended)

Point your MCP client to the SSE URL:

https://mcp-sap-docs.marianzeis.de/sse

Or use the Streamable HTTP URL:

https://mcp-sap-docs.marianzeis.de/mcp

Verify the connection from a shell:

# Should return JSON with api_last_activity
curl -sS https://mcp-sap-docs.marianzeis.de/status | jq .

# Should return an SSE line like: "event: endpoint" with a /messages path
curl -i -H 'Accept: text/event-stream' https://mcp-sap-docs.marianzeis.de/sse | head

Running Locally

# 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

Verify local health:

# MCP proxy (SSE gateway)
curl -sS http://127.0.0.1:18080/status | jq .

# HTTP server
curl -sS http://127.0.0.1:3001/status | jq .

# Streamable HTTP server
curl -sS http://127.0.0.1:3122/health | jq .

Available Tools

  • sap_docs_search – Unified search across multiple SAP documentation sources
  • sap_docs_get – Fetches full documents/snippets with smart formatting
  • sap_community_search – Real-time SAP Community posts with full content of top 3 results
  • sap_help_search – Comprehensive search across all SAP Help Portal documentation
  • sap_help_get – Retrieves complete SAP Help pages with metadata

Connecting with MCP Clients

Claude (Desktop / Web)

Remote (Recommended)

  1. Open Claude Settings → Connectors → Add custom connector
  2. Paste the URL: https://mcp-sap-docs.marianzeis.de/sse
  3. Save; Claude will perform the SSE handshake automatically.

Local (STDIO) Point Claude to the command and args:

command: node
args: ["<absolute-path-to-your-repo>/dist/src/server.js"]

Local (Streamable HTTP)

  1. Start the streamable HTTP server: npm run start:streamable
  2. Add a custom connector with URL: http://127.0.0.1:3122/mcp

Cursor

Remote (SSE URL) Create or edit ~/.cursor/mcp.json:

{
  "mcpServers": {
    "sap-docs-remote": {
      "url": "https://mcp-sap-docs.marianzeis.de/sse"
    }
  }
}

Local (STDIO) ~/.cursor/mcp.json:

{
  "mcpServers": {
    "sap-docs": {
      "command": "node",
      "args": ["/absolute/path/to/dist/src/server.js"]
    }
  }
}

VS Code (GitHub Copilot Chat)

Remote (Recommended) Create .vscode/mcp.json in your workspace:

{
  "servers": {
    "sap-docs": {
      "type": "http",
      "url": "https://mcp-sap-docs.marianzeis.de/mcp"
    }
  }
}

Alternative (SSE): Use "type": "sse" with "url": "https://mcp-sap-docs.marianzeis.de/sse" if HTTP doesn't work.

Local STDIO Server

{
  "servers": {
    "sap-docs-local": {
      "type": "stdio",
      "command": "node",
      "args": ["<absolute-path>/dist/src/server.js"]
    }
  }
}

Local HTTP Server

{
  "servers": {
    "sap-docs-http": {
      "type": "http", 
      "url": "http://127.0.0.1:3122/mcp"
    }
  }
}

(Start local server with npm run start:streamable first)

Raycast

Remote (SSE URL) 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/sse"]
    }
  }
}

Local (STDIO) Open Raycast → Open Command "Manage Servers (MCP) → Import following JSON:

{
  "mcpServers": {
    "sap-docs": {
      "command": "node",
      "args": ["/absolute/path/to/dist/src/server.js"]
    }
  }
}

Usage Examples

Search Official Documentation

Use sap_docs_search with: "wdi5 configuration"

Get Specific Documentation

Use sap_docs_get with: /wdi5

Search SAP Community (with Full Content)

Use sap_community_search with: "wdi5 best practices"

Search SAP Help Portal

Use sap_help_search with: "S/4HANA Fiori configuration"

Get SAP Help Content

Use sap_help_get with: sap-help-12345abc

Example Prompts

Official Documentation:

  • "How do I implement authentication in SAPUI5?"
  • "Show me wdi5 testing examples for forms"
  • "Find OpenUI5 button control examples with click handlers"

Community Knowledge:

  • "What are the latest CAP authentication best practices from the community?"
  • "Find community examples of OData batch operations with complete implementation"
  • "Search for temporal data handling in CAP with real-world solutions"

SAP Help Portal:

  • "How to configure S/4HANA Fiori Launchpad?"
  • "Find BTP integration documentation for Analytics Cloud"
  • "Search for ABAP development best practices in S/4HANA"

Troubleshooting

Claude Connection Issues

  • Make sure you're using the SSE URL: https://mcp-sap-docs.marianzeis.de/sse
  • Test SSE from your machine:
curl -i -H 'Accept: text/event-stream' https://mcp-sap-docs.marianzeis.de/sse | head

VS Code Detection Problems

  • Try adding it as URL first. If your network blocks SSE, use your local server.
  • Refer to Microsoft's documentation on adding MCP servers.

Local Server Issues

  • Ensure you're pointing to the built entry: node dist/src/server.js
  • Check status with:
curl -fsS http://127.0.0.1:3001/status | jq .
curl -fsS http://127.0.0.1:18080/status | jq .

How to install this MCP server

For Claude Code

To add this MCP server to Claude Code, run this command in your terminal:

claude mcp add-json "sap-docs" '{"command":"node","args":["/path/to/sap-docs-mcp/dist/index.js"]}'

See the official Claude Code MCP documentation for more details.

For Cursor

There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json file so that it is available in all of your projects.

If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json file.

Adding an MCP server to Cursor globally

To add a global MCP server go to Cursor Settings > Tools & Integrations and click "New MCP Server".

When you click that button the ~/.cursor/mcp.json file will be opened and you can add your server like this:

{
    "mcpServers": {
        "sap-docs": {
            "command": "node",
            "args": [
                "/path/to/sap-docs-mcp/dist/index.js"
            ]
        }
    }
}

Adding an MCP server to a project

To add an MCP server to a project you can create a new .cursor/mcp.json file or add it to the existing one. This will look exactly the same as the global MCP server example above.

How to use the MCP server

Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.

The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.

You can also explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.

For Claude Desktop

To add this MCP server to Claude Desktop:

1. Find your configuration file:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
  • Linux: ~/.config/Claude/claude_desktop_config.json

2. Add this to your configuration file:

{
    "mcpServers": {
        "sap-docs": {
            "command": "node",
            "args": [
                "/path/to/sap-docs-mcp/dist/index.js"
            ]
        }
    }
}

3. Restart Claude Desktop for the changes to take effect

Want to 10x your AI skills?

Get a free account and learn to code + market your apps using AI (with or without vibes!).

Nah, maybe later