MCP Server logo

MCP Server

by cap-js

Search CAP documentation locally and query compiled CDS models through MCP for AI-assisted application development.

Install MCP Server

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "mcp-server-107": {
      "command": "npx",
      "args": [
        "-y",
        "@cap-js/mcp-server"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Install not yet sandbox-tested— we haven't run this command through our automated sandbox yet. Not a red flag; we're working through the catalog.

Overview

cap-js/mcp-server connects MCP-compatible AI clients to SAP Cloud Application Programming Model projects. It searches locally stored CAP documentation with vector embeddings and performs fuzzy searches across definitions in the compiled CDS model, including relationships, annotations, and HTTP endpoints. Run it through npx or install it globally for the cds-mcp CLI. Reach for it when an agent needs project-specific CAP model context or guidance on CAP APIs, CDS, and CLI usage.

Use cases

  • Search CAP guidance before changing CDS models
  • Find entities and services in a compiled project model
  • Inspect CDS definitions and their relationships
  • Locate HTTP endpoints exposed by CAP services
  • Query CAP documentation from an AI coding client

Key features

  • Local vector search over preprocessed CAP documentation
  • Fuzzy lookup of compiled CDS definitions
  • Runtime-aware documentation filtering
  • Optional local cross-encoder reranking
  • Direct CLI commands through cds-mcp

Tools2

What MCP Server lets your agent do. Expand a tool for its parameters.

Self-reported~70 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked 1d ago

Recent health check succeeded.

15/15 checks healthy over the last 56d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 15d ago via OSV.dev · @cap-js/mcp-server (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars118Stargazers on the source repository.
npm downloads228kPackage downloads in the last 30 days.
Last commit2d agoMost recent push to the default branch.
Tools exposed2Callable tools this server registers over MCP.
Directory activity7 viewsConfig copies, upvotes, and views on AllMCPs.

How MCP Server works

What cap-js/mcp-server does

cap-js/mcp-server supplies two MCP tools for AI-assisted development with SAP Cloud Application Programming Model applications. search_docs retrieves relevant passages from preprocessed CAP documentation using semantic similarity rather than exact keyword matching. search_model looks up definitions in the compiled CDS model, making it useful for finding entities, services, fields, relationships, annotations, and HTTP endpoints.

The server is intended for questions such as identifying services and their routes, understanding how entities relate, or checking the CAP-specific approach to a Node.js query. Its tools are designed for AI clients and are not presented as a stable programming API.

How it works

Documentation queries are converted into embedding vectors and compared with locally stored documentation chunks. The documentation search can select content for the detected project runtime, keeping Node.js or Java material along with runtime-independent content. CDS_MCP_GENERIC_EMBEDDINGS can disable that runtime filtering. Optional local reranking can further reorder documentation results with a cross-encoder model.

Model searches operate on the unified representation produced when CDS compiles the project’s .cds files. Fuzzy matching supports partial or approximate definition names, so a query such as book can find a definition named Books.

Setup and configuration

An MCP client can start the server with:

Terminal
npx -y @cap-js/mcp-server

The documented configurations include Claude Code, VS Code MCP configuration, Cline, OpenAI Codex, and opencode. It can also be installed globally with npm i -g @cap-js/mcp-server, which provides the cds-mcp command:

sh
cds-mcp search_docs "how to add columns to a select statement in CAP Node.js" 1
cds-mcp search_model . Books entity

Global installations must be updated manually with npm update -g @cap-js/mcp-server; otherwise, npx uses the installed package version.

Environment settings are experimental. CDS_MCP_OFFLINE=true uses cached embeddings without checking for updates. CDS_MCP_MODEL selects the embedding model, while timeout variables control manifest and bundle-download requests. Result limits, runtime filtering, and optional reranking can also be configured through the documented CDS_MCP_* variables.

Tools and capabilities

  • search_docs performs local semantic search over preprocessed CAP documentation.
  • search_model performs fuzzy searches against names in the compiled CDS model.
  • Documentation results can be capped with CDS_MCP_MAX_RESULTS.
  • Reranking can be enabled with CDS_MCP_RERANK_ENABLED=true and configured with a cross-encoder model and runtime options.
  • The compiled model search exposes project definitions and related model information, including service endpoints.

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about MCP Server

cap-js/mcp-server is an MCP server that connects AI coding clients to SAP Cloud Application Programming Model projects. Its main tools are search_docs, which semantically searches local CAP documentation, and search_model, which fuzzily searches compiled CDS definitions, relationships, annotations, and HTTP endpoints for project-aware development assistance.

Run `npx -y @cap-js/mcp-server` from your MCP client configuration. For command-line use, install it globally with `npm i -g @cap-js/mcp-server`; this provides the `cds-mcp` command. Global installations need manual updates with `npm update -g @cap-js/mcp-server`.

Run `claude mcp add --scope user cds-mcp -- npx -y @cap-js/mcp-server` for a user-wide registration. Use the command without `--scope user` for the current project, or `--scope project` to commit the project configuration.

Yes, cap-js/mcp-server works with VS Code MCP configuration and Cline. Add an entry that starts `npx` with `-y` and `@cap-js/mcp-server`; VS Code’s global `mcp.json` uses a stdio server entry.

Run `cds-mcp search_model . Books entity` to search the compiled CDS model from the command line. Through MCP, use `search_model` for fuzzy searches across definition names and related compiled model information.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewMCP Server AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/mcp-server-107?style=directory)](https://allmcps.com/mcp/mcp-server-107)
HTML Embed
<a href="https://allmcps.com/mcp/mcp-server-107"><img src="https://allmcps.com/api/badge/mcp-server-107?style=directory" alt="MCP Server on AllMCPs" /></a>