← Back to directory
C

CAP MCP Server

Official
AI-assisted development for SAP CAP applications.
Category
Dev Tools #207 of 751
Stars
★ 120 Very popular
Transport
stdio (local process)
Runtime
Node.js
Credentials
No credential needed
License
Apache-2.0
Last commit
Tools
2
55FMRS · C

This stdio MCP server supports CAP application development with semantic search over CAP documentation and definition search in compiled CDS models. It fits CAP development workflows; setup and search behavior depend on the local project, embedding cache, and experimental environment variables.

Strongest · Setup experience 14/20 Weakest · Reliability 8/20

Reliability
8/20
Security and permissions
10/20
Maintenance
10/20
Documentation
13/20
Setup experience
14/20
Why each score
Reliability 8/20
The manifest declares an npm package using stdio, and the README lists search_docs and search_model with a high-level description of their behavior. These materials do not verify the initialization handshake, tool parameters, error handling, tests, or CI, so the static-review score is limited.
Security and permissions 10/20
The materials describe searches over local CAP models and documentation, alongside network retrieval for documentation or model-related resources. They do not show credential handling, data-flow boundaries, permission controls, or confirmation for dangerous operations. No red-line behavior is evidenced, but the missing evidence limits the score.
Maintenance 10/20
The project states an Apache-2.0 license and provides GitHub issues and a security disclosure channel; the manifest specifies version 0.1.0. Release history, commit activity, dependency updates, and issue-response evidence are absent, so sustained maintenance is unverified.
Documentation 13/20
The README provides setup examples for several mainstream clients, CLI and JavaScript API examples, and descriptions of experimental environment variables and tool purposes. It lacks complete tool parameter definitions, troubleshooting guidance, and dependency or network cost details; some behavior also cannot be verified from the supplied materials.
Setup experience 14/20
The README gives direct npx configuration examples for Claude Code, VS Code, Codex, and opencode. Runtime prerequisites, platform compatibility evidence, and verifiable CI or test evidence are not supplied, which limits the score under static calibration.

Static review · not runReviewed 2026-11-29

Read the FMRS scoring method →

Fit and risk

What it can accessReads local filesUses the network

Best for

  • Developers building SAP CAP applications who want an AI assistant to search CAP documentation or project CDS models.
  • Teams working with Node.js or Java CAP projects that want documentation search filtered by the detected project runtime.

Not for

  • Projects that do not use SAP CAP or CDS.
  • Use cases requiring a stable API; the README says the tools are intended for AI models and do not constitute a stable API.

Required permissions

  • Can read project CDS files to compile and search model definitions.
  • Uses a local CAP documentation embedding cache; online documentation embedding may require fetching CAP documentation and related data.
  • Can receive environment-variable configuration from the client, including offline mode, cache directory, and embedding model settings.

Risks and side effects

  • The README labels the listed environment variables as experimental.
  • `search_docs` retrieves semantically similar documentation chunks; results are not guaranteed to cover every relevant detail.
  • Offline directory and model settings affect documentation search behavior.

Setup

Before you start

Runtime:Node.js

Other optional settings (12)
CDS_MCP_OFFLINE optional Set to true to use cached embeddings without checking for updates; accepts true or false.
CDS_MCP_OFFLINE_DIR optional Folder to use instead of the local cache when offline mode is enabled.
CDS_MCP_MODEL optional Optional embedding model name; the docs give nomic-ai/nomic-embed-text-v1.5 as an example.
CDS_MCP_MANIFEST_TIMEOUT optional Manifest request timeout in positive integer milliseconds; defaults to 15000.
CDS_MCP_DOWNLOAD_TIMEOUT optional Bundle response-header timeout in positive integer milliseconds; defaults to 30000.
CDS_MCP_GENERIC_EMBEDDINGS optional Set to true to skip runtime filtering and search across all runtimes; accepts false as well.
CDS_MCP_MAX_RESULTS optional Positive integer upper limit for search_docs results.
CDS_MCP_RERANK_ENABLED optional Set to true to rerank search_docs results with a local cross-encoder model; accepts false as well.
CDS_MCP_RERANK_MODEL optional Cross-encoder model name for reranking; defaults to Xenova/ms-marco-MiniLM-L-6-v2.
CDS_MCP_RERANK_DTYPE optional Data type used to load the reranking model; defaults to q8, or set to fp32 for models without model_quantized.onnx.
CDS_MCP_RERANK_EXTERNAL_DATA optional Set to true for reranking models whose ONNX weights are stored in external .onnx_data files; accepts false as well.
CDS_MCP_RERANK_BATCH_SIZE optional Positive integer number of results processed per reranking batch; defaults to 1.

Configure your MCP client to run npx -y @cap-js/mcp-server. The stdio configuration uses command npx with arguments -y and @cap-js/mcp-server. The README includes setup examples for Claude Code, VS Code, OpenAI Codex, and opencode.

.mcp.json
{"mcpServers":{"cds-mcp":{"command":"npx","args":["-y","@cap-js/mcp-server"],"env":{}}}}

Shown for Claude Code. Other clients may use a different file or key (VS Code uses "servers") — the configurator below converts it.

.vscode/mcp.json
{
  "servers": {
    "cds-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@cap-js/mcp-server"
      ],
      "env": {}
    }
  }
}

Goes in your project's .vscode/mcp.json (VS Code uses a "servers" key).

~/.codex/config.toml
[mcp_servers.cds-mcp]
command = "npx"
args = ["-y", "@cap-js/mcp-server"]

Append to ~/.codex/config.toml (OpenAI Codex CLI uses TOML).

Terminal
claude mcp add cds-mcp -- npx -y @cap-js/mcp-server

Run it in a terminal; replace any <…> placeholders with your own values first.

Check that it works

After installing and connecting, check that search_docs and search_model appear in the client's tool list. Ask it to search CAP documentation or CDS definitions in the project and confirm it returns relevant results.

Troubleshooting

  1. Check that the client command is `npx` and its arguments are `-y` and `@cap-js/mcp-server`.
  2. Check that the MCP client supports and has enabled a stdio server.
  3. In offline mode, verify that `CDS_MCP_OFFLINE_DIR` points to a directory containing generated embeddings.
  4. Check experimental environment-variable values and formats; for example, timeouts must be positive integer milliseconds.

Things to try

Once connected, you can ask your AI assistant things like:

  • Which CDS services are in this project, and where are they served?
  • Find the Books entity and explain its relationships.
  • How do I add columns to a select statement in CAP Node.js?

Tools 2

search_docs read-only
Performs semantic search over locally preprocessed CAP documentation using vector embeddings.
search_model read-only
Fuzzy-searches definition names in the compiled CDS model, which includes definitions, relationships, annotations, and HTTP endpoints.

Use cases

Find CDS services and their HTTP endpoints in a project.
Understand what CDS entities represent and how they relate.
Search CAP documentation, such as how to add columns to a select statement in CAP Node.js.

Supported clients

Claude Code
VS Code
Codex
OpenCode

Listed from the project's documentation, not tested by this site.

Overview

CAP MCP Server is a Model Context Protocol server for SAP Cloud Application Programming Model (CAP) projects. It helps AI assistants explore project services, entities, and relationships through semantic search over CAP documentation and fuzzy search of definitions in the compiled CDS model.

Similar servers

Source revision 5d827a88700a Data synced 2026-12-05 Read the FMRS scoring method Markdown

Maintainer badge: embed FMRS score

Paste this Markdown into your repository README to display a live score badge:

README.md
[![FollowMCP](https://followmcp.com/badges/cap-js-mcp-server.svg)](https://followmcp.com/en/servers/cap-js-mcp-server)