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

The SAP Documentation MCP Server provides offline access to SAP documentation and real-time SAP Community content in one place. It integrates official documentation with community-driven solutions, giving developers access to both authoritative information and practical insights from the SAP Community.

Features

  • Dual Search System: Search official SAP documentation or SAP Community content
  • Comprehensive Coverage: Contains SAPUI5 files, CAP files, OpenUI5 APIs, sample files, wdi5 docs, and real-time community content
  • SAP Community Integration: Search high-quality community blog posts, solutions, and discussions
  • Smart Formatting: Automatic code highlighting, sample categorization, and content formatting
  • Source-Specific Results: Choose between official documentation or community experiences

Installation

  1. Clone and install dependencies:

    git clone <repository-url>
    cd sap-docs-mcp
    npm install
    
  2. Download and prepare documentation sources:

    chmod +x setup.sh
    ./setup.sh
    
  3. Build the search index:

    npm run build-index
    
  4. Build the server:

    npm run build
    

Configuration

Add to your Cursor settings.json:

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

Available Libraries

  • /sapui5 - SAPUI5 Developer Documentation (1,485 files)
  • /cap - CAP Documentation (195 files)
  • /openui5-api - OpenUI5 Control APIs (500+ controls)
  • /openui5-samples - OpenUI5 Sample Code (2,000+ examples)
  • /wdi5 - wdi5 End-to-End Test Framework Documentation
  • /community - SAP Community Posts (real-time)

Usage Examples

Searching Official Documentation

Use sap_docs_search with: "wdi5 configuration"

This will return wdi5 documentation about configuration, setup, and usage.

Getting wdi5 Documentation

Use sap_docs_get with: /wdi5

This will return the wdi5 documentation overview.

Searching for wdi5 Topics

Use sap_docs_search with: "wdi5 cli"

This will return wdi5 CLI documentation and related guides.

Searching SAP Community

Use sap_community_search with: "wdi5 best practices"

This will return recent community posts, blog articles, and discussions about wdi5 best practices.

Getting Specific Documentation

Use sap_docs_get with: /sapui5

This will return the SAPUI5 documentation overview.

Getting Community Insights

Use sap_docs_get with: community-12345

This will return the full content of a specific community post with metadata.

Finding Sample Implementations

Use sap_docs_search with: "button click handler"

This will return:

  • Official button documentation
  • Sample button implementations with JS controllers
  • XML view examples

Test Cases

Official Documentation Search

  • Tool: sap_docs_search
  • Query: "wdi5"
  • Expected Results:
    • wdi5 documentation overview
    • wdi5 guides and API references
    • wdi5 usage and configuration examples

Community Content Search

  • Tool: sap_community_search
  • Query: "wdi5"
  • Expected Results:
    • Community blog posts about wdi5
    • Real developer solutions and code examples
    • Discussion threads about wdi5 best practices

Sample Code Discovery

  • Tool: sap_docs_search
  • Query: "data binding"
  • Expected Results:
    • Official data binding documentation
    • Working sample code with models and binding
    • Practical examples from sample implementations

Community Best Practices

  • Tool: sap_community_search
  • Query: "authentication best practices"
  • Expected Results:
    • Community blog posts about auth implementation
    • Real developer solutions and code examples
    • Discussion threads about common auth issues

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