cds-kb-mcp

cds-kb-mcp

A dataless MCP server that searches the SAP CDS knowledge base, allowing users to query view metadata and retrieve full view details using local or remote data sources.

Category
访问服务器

README

cds-kb-mcp

A dataless MCP server that gives AI agents instant, ranked access to 7,355 SAP S/4HANA released CDS views via semantic search, business taxonomy, and on-demand definition retrieval.

TL;DR: No installation, no data download, no cloning required. The server is centrally hosted on SAP BTP Cloud Foundry. Just configure your MCP client to connect via supergateway using the provided URL. See Client Configuration.

Benchmark vs. raw file access: ~830× faster, ~94× cheaper in tokens, better top-3 relevance — full numbers in BENCHMARK.md.


Table of Contents


What you get

Coverage 7,355 released CDS views for S/4HANA Cloud Public Edition
Enrichment 7,160 / 7,355 views have a semantic description + synonyms
Taxonomy 12 Lines of Business → 829 Business Objects → keyword map
Search ranking Field-boosted MiniSearch (name×3, semanticDescription×2.5, synonyms×2)
Module aliasing Filter by "Finance" / "Procurement" / "Sales" instead of FI / MM / SD
Tools 5 MCP tools: search_cds, get_cds_view, get_views_by_tag, get_taxonomy, kb_info
Bundle Single 784 KB .mjs file, Node ≥ 18, zero runtime deps to install
Data isolation The server ships no view data. Data lives in a separate repo, served over GitHub or via a local clone.

Prerequisites

Before configuring your client, ensure your local machine meets the following requirements:

  1. Node.js: Must be installed (minimum version Node.js v18 or above). Verify by running node -v in your terminal.
  2. Network Connectivity:
    • Outbound HTTPS access to the hosted server: https://cds-kb-mcp.cfapps.ap21.hana.ondemand.com
    • Access to registry.npmjs.org to fetch supergateway. If your machine is behind a corporate firewall/VPN/proxy that blocks npm registry downloads, you must use the global installation method (Option 2 below).
  3. Compatible IDE: An IDE supporting MCP (e.g. Cursor, Claude Desktop, VS Code, Gemini IDE).

Client Configuration

Because the MCP server is hosted on SAP BTP Cloud Foundry, you do not need to clone this repository or install any local dependencies.

For any IDE that supports MCP via standard commands (Cursor, Claude Desktop, Gemini IDE), use the supergateway package to securely bridge the remote SSE server back into local stdio.

To ensure 100% stability across all devices (preventing version mismatch or Node.js v18 compatibility issues), use one of the two configurations below:

Option 1: Lock Version with npx (Recommended & Easiest)

Locks the supergateway version to 2.0.0. This works on all devices with Node.js v18 or above, and prevents NPM from dynamically fetching the latest v3.x which requires Node v20+.

Add this block to your mcpServers configuration file (e.g., claude_desktop_config.json or mcp_config.json):

{
  "mcpServers": {
    "cds-kb": {
      "command": "npx",
      "args": [
        "-y",
        "supergateway@2.0.0",
        "--sse",
        "https://cds-kb-mcp.cfapps.ap21.hana.ondemand.com/sse"
      ]
    }
  }
}

Option 2: Global Installation (Offline & Network-Resilient)

Best for enterprise environments behind corporate firewalls, VPNs, or proxy servers where running npx dynamically on every IDE startup might fail or time out.

  1. Install supergateway globally on your machine once:

    npm install -g supergateway@2.0.0
    
  2. Update your IDE's mcpServers configuration to use the globally installed tool directly:

    {
      "mcpServers": {
        "cds-kb": {
          "command": "supergateway",
          "args": [
            "--sse",
            "https://cds-kb-mcp.cfapps.ap21.hana.ondemand.com/sse"
          ]
        }
      }
    }
    

    (Note for Windows users: If your IDE cannot locate the global command, use supergateway.cmd as the command, or specify the absolute path to your global npm prefix).

Once configured, restart your IDE. The tools will immediately be available for your agent to use.


Tools Reference

The server exposes five tools. They are designed so an AI agent can go from a vague business question to a complete CDS view definition in two or three calls.

1. search_cds

Find CDS views by business meaning, name, tag, or classic SAP keyword (VBAK, BSEG, etc.). Returns a ranked shortlist.

Parameter Type Required Description
query string Natural language or keyword (e.g. "overdue customer invoices")
module string optional Module filter — code (FI, SD, MM) or natural name ("Finance", "Procurement")
lob string optional Line-of-business filter (partial match)
bo string optional Business object filter (partial match, e.g. "salesorder")
limit int 1-50 optional Max results (default 10)

Returns: ranked list with name, score, module, short description, and path.

1. **I_CAOPENITEMLIST**  [FI-FIO-AR-2CL]  (score 14.2)
   List of open items across customer and vendor accounts.
   path: views/I_CAOPENITEMLIST.md
2. **I_PARKEDOPLACCTGDOCRBLSITEM**  ...

2. get_cds_view

Fetch one view's definition by exact name. Default: full markdown (metadata + fields + associations + source). Use sections to slim down the response.

Parameter Type Required Description
name string Exact view name (case-insensitive), e.g. I_SalesDocument
sections string[] optional Subset of ["metadata", "fields", "associations", "source"]. Default: all.

Typical pattern: search_cds → pick a hit → get_cds_view(name, sections=["metadata", "fields"]) to confirm the field list without pulling 5-10 KB of DDL source.

3. get_views_by_tag

Deterministic listing by tag. Use when search_cds is too fuzzy.

Parameter Type Required Description
tag string Exact tag, e.g. "bo:salesorder", "lob:finance"
limit int 1-200 optional Default 50

Discover valid tags with get_taxonomy first.

4. get_taxonomy

Returns the semantic map: 12 Lines of Business → 829 Business Objects, each with keywords and synonyms. Useful for the agent to orient itself before issuing a search, or to discover valid tags for get_views_by_tag.

No parameters.

5. kb_info

Report the active data source, view count, enrichment coverage, and index build timestamp. Use this to verify which version of the KB you're talking to.

source: remote:https://raw.githubusercontent.com/truongdva2/cds-kb-data/main (cache ~/.cache/cds-kb/...)
views: 7355
enriched: 7160
modules: 31
builtAt: 2026-06-25T09:13:52.301Z


Architecture

┌──────────────────────────────────────────────────────────────────┐
│                         AI Client (Claude)                       │
│              search_cds("vendor open items", "FI")               │
└──────────────────────────┬───────────────────────────────────────┘
                           │  MCP / JSON-RPC over stdio
┌──────────────────────────▼───────────────────────────────────────┐
│                   cds-kb-mcp (this server)                       │
│  ┌───────────┐ ┌───────────┐ ┌───────────┐ ┌───────────┐         │
│  │ search_cds│ │ get_view  │ │ taxonomy  │ │ kb_info   │  ...    │
│  └─────┬─────┘ └─────┬─────┘ └─────┬─────┘ └─────┬─────┘         │
│        └─────────────┴─────────────┴─────────────┘               │
│                       │                                          │
│  ┌────────────────────▼───────────────────┐                      │
│  │   MiniSearch (in-memory, 5.7 MB index) │                      │
│  └────────────────────┬───────────────────┘                      │
│                       │                                          │
│  ┌────────────────────▼───────────────────┐                      │
│  │   DataSource (Local | Remote)          │                      │
│  │   • ETag-validated cache               │                      │
│  │   • Atomic writes, SWR, retry          │                      │
│  └─────────┬───────────────────┬──────────┘                      │
└────────────┼───────────────────┼─────────────────────────────────┘
             │                   │
       ┌─────▼────┐         ┌────▼──────────────┐
       │ Local FS │         │ GitHub Raw / CDN  │
       │ cds-kb-  │         │ raw.github...     │
       │ data/    │         └───────────────────┘
       └──────────┘

推荐服务器

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 模型以安全和受控的方式获取实时的网络信息。

官方
精选