mcp-abap-keyword

mcp-abap-keyword

Enables searching and browsing ABAP keyword documentation from SAP's official help site, including keyword lookup, glossary terms, and topic exploration.

Category
访问服务器

README

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

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

Option 1: Using Homebrew (Recommended)

# 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

Option 1: Using Installer (Recommended)

  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

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选