Skip to main content
Glama
mcp-abap-keyword

mcp-abap-keyword

by yynhr

MCP ABAP Keyword Server

A Model Context Protocol (MCP) server for accessing ABAP Keyword Documentation from SAP's official documentation site (https://help.sap.com).

πŸ“š Available Languages:

Features

  • πŸ” Search for ABAP keywords in the official ABAP Index

  • πŸ“– Look up terms in the ABAP Glossary

  • πŸ“š Browse ABAP topics (Dictionary, CDS, Programming Language, RAP, etc.)

  • πŸ—‚οΈ Navigate the main documentation structure

  • ⚑ Intelligent caching system for fast repeated queries (1-year cache TTL)

  • πŸš€ Up to 44x faster response times for cached content

Related MCP server: ADT MCP Server

Prerequisites

  • Node.js 18.0.0 or higher

  • npm 9.0.0 or higher

  • TypeScript 5.3.0 or higher

Node.js Setup Guide

macOS

# Install Homebrew if not already installed
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

# Install Node.js
brew install node

# Verify installation
node --version
npm --version

Option 2: Direct Download

  1. Visit https://nodejs.org/

  2. Download the LTS (Long Term Support) version for macOS

  3. Run the installer and follow the prompts

  4. Verify installation by opening Terminal and running:

node --version
npm --version

Windows

  1. Visit https://nodejs.org/

  2. Download the LTS version for Windows

  3. Run the .msi installer

  4. Follow the installation wizard (accept default settings)

  5. Open Command Prompt and verify:

node --version
npm --version

Option 2: Using Chocolatey

# If Chocolatey is installed
choco install nodejs

# Verify installation
node --version
npm --version

Option 3: Using Windows Package Manager

winget install OpenJS.NodeJS

# Verify installation
node --version
npm --version

Installation

npm install

Build

npm run build

Development

npm run dev

Testing

Test scripts are located in the test/ directory (excluded from version control).

# Run cache performance test
node test/test-cache.js

# Run RAP behavior definition test
node test/test-rap-detailed.js

# Run basic functionality tests
node test/test.js

See test/README.md for more details.

Available Tools

1. search_abap_keyword

Search for ABAP keywords in the official ABAP Index.

Parameters:

  • keyword (required): The ABAP keyword to search for (e.g., 'SELECT', 'DATA', 'CLASS')

Example:

{
  "keyword": "SELECT"
}

2. lookup_glossary

Look up a term in the ABAP Glossary to get its definition and explanation.

Parameters:

  • term (required): The term to look up (e.g., 'ABAP Objects', 'CDS', 'RAP')

Example:

{
  "term": "ABAP Objects"
}

3. get_abap_topic

Get detailed information about a specific ABAP topic area.

Parameters:

  • topic (required): The topic to explore. Available topics:

    • dictionary or ddic - ABAP Dictionary

    • cds - ABAP Core Data Services

    • programming or language - ABAP Programming Language

    • rap or restful - ABAP RESTful Application Programming Model

    • examples - ABAP Examples

    • news or releases - Release News

Example:

{
  "topic": "cds"
}

4. browse_main_topics

Browse all main topics in the ABAP Keyword Documentation. Returns a categorized overview of available documentation sections.

Parameters: None

Configuration

Claude Desktop / Claude Code

To use this MCP server with Claude Desktop or Claude Code, add the configuration to your Claude config file:

macOS/Linux

Edit ~/Library/Application Support/Claude/claude_desktop_config.json (Claude Desktop) or ~/.config/claude-code/config.json (Claude Code):

{
  "mcpServers": {
    "mcp-abap-keyword": {
      "command": "node",
      "args": ["/absolute/path/to/mcp-abap-keyword/build/index.js"]
    }
  }
}

Command Line Method:

# Add the MCP server using claude command
claude mcp add mcp-abap-keyword node /absolute/path/to/mcp-abap-keyword/build/index.js

Windows

Edit %APPDATA%\Claude\claude_desktop_config.json (Claude Desktop) or %APPDATA%\claude-code\config.json (Claude Code):

{
  "mcpServers": {
    "mcp-abap-keyword": {
      "command": "node",
      "args": ["C:\\absolute\\path\\to\\mcp-abap-keyword\\build\\index.js"]
    }
  }
}

Command Line Method:

# Add the MCP server using claude command
claude mcp add mcp-abap-keyword node C:\absolute\path\to\mcp-abap-keyword\build\index.js

Note: After adding the configuration, restart Claude Desktop or Claude Code for the changes to take effect.

Cline (VS Code Extension)

To use this MCP server with Cline, follow these steps:

macOS

  1. Install the Cline extension in VS Code

  2. Open VS Code settings (Code > Preferences > Settings or Cmd+,)

  3. Search for "Cline" and find the MCP settings section

  4. Add the server configuration to your settings.json:

{
  "cline.mcpServers": {
    "mcp-abap-keyword": {
      "command": "node",
      "args": ["/absolute/path/to/mcp-abap-keyword/build/index.js"]
    }
  }
}

Alternatively, edit .vscode/settings.json in your workspace:

{
  "cline.mcpServers": {
    "mcp-abap-keyword": {
      "command": "node",
      "args": ["${workspaceFolder}/../mcp-abap-keyword/build/index.js"]
    }
  }
}

Windows

  1. Install the Cline extension in VS Code

  2. Open VS Code settings (File > Preferences > Settings or Ctrl+,)

  3. Search for "Cline" and find the MCP settings section

  4. Add the server configuration to your settings.json:

{
  "cline.mcpServers": {
    "mcp-abap-keyword": {
      "command": "node",
      "args": ["C:\\absolute\\path\\to\\mcp-abap-keyword\\build\\index.js"]
    }
  }
}

Alternatively, edit .vscode\settings.json in your workspace:

{
  "cline.mcpServers": {
    "mcp-abap-keyword": {
      "command": "node",
      "args": ["${workspaceFolder}\\..\\mcp-abap-keyword\\build\\index.js"]
    }
  }
}

Make sure to replace the path with the actual absolute path to your project's build directory.

Data Source

All information is retrieved from SAP's official ABAP Keyword Documentation: https://help.sap.com/doc/abapdocu_latest_index_htm/latest/en-US/ABENABAP.html

Caching

The server implements an efficient file-based caching system to improve performance:

  • Cache Location: cache/ directory (relative to the script location)

  • Cache Format: Gzip-compressed HTML files (.html.gz)

  • File Naming: SHA256 hashes of page URLs (12-character hex) + .html.gz extension

  • Cache TTL: 365 days (1 year) - configurable

  • HTML Cleaning: Automatically removes unnecessary elements before caching:

    • External scripts (<script src>)

    • Stylesheet links (<link> tags)

    • Metadata (<meta> tags)

    • Inline styles (<style> tags)

    • Noscript fallbacks (<noscript> tags)

    • HTML comments

  • Compression: Uses gzip with maximum compression (level 9) for efficient storage

  • Automatic Management: No manual cache management required

  • Cache Invalidation: Automatic after 365 days

  • Performance: Up to 44x faster response times for cached content

To clear the cache manually:

rm -rf cache

License

MIT

Available Tools

6 tools
browse_main_topicsA

Browse all main topics in the ABAP Keyword Documentation. Returns a categorized overview of available documentation sections.

Inputs: no named parameters.

get_abap_indexA

Get the complete ABAP Keyword Index with all entries. Returns all keywords/terms with their documentation page references, organized alphabetically. Use this to let the LLM search for specific ABAP keywords.

Inputs: no named parameters.

get_abap_subjectsA

Get the complete ABAP Subject Directory with all entries. Returns all subjects/topics with their documentation page references, organized alphabetically. Use this to let the LLM search for specific ABAP subjects.

Inputs: no named parameters.

get_abap_topicB

Get detailed information about a specific ABAP topic area (Dictionary, CDS, Programming Language, RAP, etc.)

Inputs: topic (required).

lookup_glossaryA

Look up a term in the ABAP Glossary to get its definition and explanation.

Inputs: term (required).

search_abap_keywordA

Search for ABAP keywords in the official ABAP Index. Returns matching keywords with links to their documentation.

Inputs: keyword (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.6/5.0

    Scored across 6 tools

    Disambiguation3/5

    Some overlap exists between search_abap_keyword and get_abap_index, as both are described as methods for finding ABAP keywords. The descriptions clarify that one is a search and the other returns the full index, but the stated use cases overlap. Other tools like lookup_glossary and get_abap_topic are distinct.

    Naming Consistency4/5

    Tool names follow a consistent verb_noun pattern with snake_case, e.g., search_abap_keyword, get_abap_topic. Minor inconsistency is lookup_glossary not including 'abap' as a descriptor, but the pattern remains readable. Overall, the naming is predictable.

    Tool Count5/5

    With 6 tools, the server is well-scoped for its purpose of providing ABAP keyword documentation. Each tool serves a function in searching and browsing the documentation, and the count is within the ideal range.

    Completeness4/5

    The tool set covers searching keywords, browsing main topics, retrieving topic details, glossary lookup, and full index/subject directories. A minor gap is the lack of a direct tool for retrieving full documentation for a specific keyword beyond the index links, but the core browsing and search capabilities are well covered.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      D
      maintenance
      Enables interaction with SAP ABAP systems through ABAP Development Tools (ADT), providing access to repository objects, source code, where-used analysis, and SQL queries with support for both on-premise and BTP systems.
      3
      -
    • A
      license
      Not graded
      quality
      Not graded
      maintenance
      Provides unified ABAP and RAP documentation search, document retrieval, and ABAP feature matrix lookups. It also enables local ABAP linting to streamline development and documentation workflows via the Model Context Protocol.
      -