# CAP MCP Server

> AI-assisted development for SAP CAP applications.

- **URL**: https://followmcp.com/en/servers/cap-js-mcp-server
- **Category**: Dev Tools
- **Origin**: Official
- **Stars**: 120
- **FMRS Score**: 55/100 (Grade C)
- **Source**: https://github.com/cap-js/mcp-server
- **Transports**: stdio (local process)
- **Runtimes**: Node.js
- **Auth**: No credential needed

## 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.

## 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
- 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.

## Client config (JSON)
```json
{"mcpServers":{"cds-mcp":{"command":"npx","args":["-y","@cap-js/mcp-server"],"env":{}}}}
```

## Tools (2)
- `search_docs`: Performs semantic search over locally preprocessed CAP documentation using vector embeddings.
- `search_model`: Fuzzy-searches definition names in the compiled CDS model, which includes definitions, relationships, annotations, and HTTP endpoints.
