CAP MCP Plugin
MCP (Model Context Protocol) server plugin for CAP NodeJS
What is CAP MCP Plugin?
CAP MCP Plugin is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to mcp (model context protocol) server plugin for cap nodejs
MCP (Model Context Protocol) server plugin for CAP NodeJS
This server falls under the Business Applications category on MCPgee, the world's largest MCP server directory with 33,000+ servers.
Features
- MCP (Model Context Protocol) server plugin for CAP NodeJS
Use Cases
Maintainer
Works with
Installation
NPM
npx -y @gavdi/cap-mcpManual Installation
npx -y @gavdi/cap-mcpConfiguration
Configuration Details
claude_desktop_config.json
Performance
Response Metrics
Resource Usage
How to Set Up and Use CAP MCP Plugin
The CAP MCP Plugin is an npm package that automatically generates a fully functional MCP server from your SAP Cloud Application Programming (CAP) NodeJS services using simple CDS annotations. By adding @mcp annotations to your CAP entities, functions, and actions, you expose them as MCP resources, tools, and prompts that any MCP-compatible AI agent can query or invoke using natural language. This eliminates the need to manually write MCP glue code, allowing enterprise developers to make their SAP CAP business data and logic immediately accessible to AI assistants like Claude.
Prerequisites
- Node.js 18 or higher
- SAP CAP (Cloud Application Programming) version 9 or higher
- Express version 5 or higher
- @sap/cds CLI installed and a working CAP project
- An MCP-compatible AI client such as Claude Desktop
Install the CAP MCP plugin
Add the @gavdi/cap-mcp package to your CAP project. The plugin integrates automatically with CAP's standard plugin architecture upon installation — no additional wiring is required.
npm install @gavdi/cap-mcpConfigure MCP settings in package.json
Add an mcp block under the cds key in your package.json to give the generated MCP server a name, authentication strategy, and optional agent instructions.
{
"cds": {
"mcp": {
"name": "my-cap-mcp",
"auth": "inherit",
"wrap_entities_to_actions": false,
"instructions": "This MCP server exposes SAP CAP business data."
}
}
}Annotate your CAP service with @mcp
Open your service definition file and add @mcp annotations to entities you want to expose as MCP resources, and mark functions or actions as tools. The resource array controls which OData query options ($filter, $orderby, $top, $skip, etc.) are enabled.
// srv/catalog-service.cds
service CatalogService {
@mcp: {
name: 'books',
description: 'Book catalog with search and filtering',
resource: ['filter', 'orderby', 'select', 'top', 'skip']
}
entity Books as projection on my.Books;
@mcp: {
name: 'get-recommendations',
description: 'Get personalized book recommendations',
tool: true
}
function getRecommendations(genre: String) returns array of String;
}Start your CAP application
Run cds serve as normal. The plugin will automatically create and register the MCP endpoint. The MCP server will be available at http://localhost:4004/mcp.
cds serveTest with MCP Inspector
Use the MCP Inspector to browse the generated resources, tools, and prompts before connecting a full AI client.
npx @modelcontextprotocol/inspectorCAP MCP Plugin Examples
Client configuration
Configure Claude Desktop or another MCP client to connect to the locally running CAP MCP endpoint. The plugin runs as part of your cds serve process, not as a standalone binary.
{
"mcpServers": {
"cap-mcp": {
"command": "npx",
"args": ["-y", "@gavdi/cap-mcp"],
"env": {}
}
}
}Prompts to try
Example prompts that leverage CAP entities and functions exposed through the MCP plugin:
- "List the top 10 books in the fantasy genre ordered by stock descending"
- "Find all books where the price is less than 20 and stock is greater than 0"
- "Get book recommendations for the mystery genre"
- "Show me all authors and expand their associated books"
- "Filter orders from the last 30 days and group them by status"Troubleshooting CAP MCP Plugin
MCP endpoint not available after cds serve
Verify that @gavdi/cap-mcp appears in your package.json dependencies and that you are running CAP version 9+. Check the cds serve output for any plugin loading errors and ensure the mcp config block is under the cds key, not at the top level.
Annotated entities not appearing as MCP resources
Ensure the @mcp annotation is on the entity within the service definition (not on the underlying model entity). Restart cds serve after adding annotations. Use the MCP Inspector at http://localhost:4004/mcp to verify what is being exposed.
Authentication errors when AI client queries the MCP endpoint
The plugin inherits CAP's authentication by default (auth: 'inherit'). During development, set "auth": false in the cds.mcp config block or configure cds.requires.auth.kind = 'dummy' in your development profile to bypass auth.
Frequently Asked Questions about CAP MCP Plugin
What is CAP MCP Plugin?
CAP MCP Plugin is a Model Context Protocol (MCP) server that mcp (model context protocol) server plugin for cap nodejs It connects AI assistants to external tools and data sources through a standardized interface.
How do I install CAP MCP Plugin?
Install via npm with the command: npx -y @gavdi/cap-mcp. Then add the server configuration to your AI client's JSON config file (e.g., claude_desktop_config.json or .cursor/mcp.json).
Which AI clients work with CAP MCP Plugin?
CAP MCP Plugin works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.
Is CAP MCP Plugin free to use?
Yes, CAP MCP Plugin is open source and available under the NOASSERTION license. You can use it freely in both personal and commercial projects.
CAP MCP Plugin Alternatives — Similar Business Applications Servers
Looking for alternatives to CAP MCP Plugin? Here are other popular business applications servers you can use with Claude, Cursor, and VS Code.
n8n
★ 189.1kA comprehensive MCP server that provides full control over n8n automation workflows through natural language. It offers 43 tools for managing workflows, executions, credentials, and data tables, with safety features like write-mode protection and dou
LobeHub
★ 77.5k🤯 LobeHub is your Chief Agent Operator, organizing your agents into 7×24 operations by hiring, scheduling, and reporting on your entire AI team.
Jeecgboot
★ 46.4kAI 低代码平台,「低代码 + 零代码」双模式驱动:低代码一键生成前后端代码,零代码 5 分钟搭建系统,AI Skills 一句话画流程、设计表单、生成整套系统。内置 AI聊天、知识库、流程编排、MCP插件等,兼容主流大模型。引领「AI 生成 → 在线配置 → 代码生成 → 手工合并->AI修改」开发模式,消除 Java 项目 80% 的重复工作,提效而不失灵活。
CowAgent
★ 44.7kCowAgent (chatgpt-on-wechat) 是基于大模型的超级AI助理,能主动思考和任务规划、访问操作系统和外部资源、创造和执行Skills、通过长期记忆和知识库不断成长,比OpenClaw更轻量和便捷。同时支持微信、飞书、钉钉、企微、QQ、公众号、网页等接入,可选择DeepSeek/OpenAI/Claude/Gemini/ MiniMax/Qwen/GLM/LinkAI,能处理文本、语音、图片和文件,可快速搭建个人AI助理和企业数字员工。
Minds Platform
★ 39.2kPlatform dedicated to building an open foundation for applied Artificial Intelligence, designed for people seeking production-ready AI systems they can truly control, extend and deploy anywhere.
Astrbot
★ 32.8kAI Agent Assistant & development framework that integrates lots of IM platforms, LLMs, plugins and AI feature, and can be your openclaw alternative. ✨
Browse More Business Applications MCP Servers
Explore all business applications servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.
Set Up CAP MCP Plugin in Your Editor
Choose your AI client for step-by-step setup instructions.
Quick Config Preview
Add this to your claude_desktop_config.json or .cursor/mcp.json
Ready to use CAP MCP Plugin?
Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.