TutorialTutorialtypeA step-by-step walkthrough. The steps are the part that ages.See every one →SAP Developer Center

Add MCP capabilities to a CAP service

A fifteen-minute walkthrough of turning a plain CAP service into an MCP server: annotate the service with @mcp, install @cap-js/mcp, and it is served alongside OData at /mcp/<path>. The part worth reading it for is what happens next — cds watch writes the endpoint into the local agent's own configuration file, so OpenCode or Claude Code can call the service without anyone editing JSON by hand. It is built on the tiny-sample facet, so there is nothing to prepare, and it shows the protocol traffic rather than only the result. Written while the adapter was in beta, and it says so.

Where it sits

Explains
Serve your application over MCPCAPServe your application over MCPcapabilityExposing selected application data and business operations to an AI agent through the Model Context Protocol. An application may also integrate remote services through [service integration](capability:service-integration), connecting its exposed contract with [agent access to your systems](capability:agent-systems-access). Development assistance belongs to [agent access to your code](capability:agent-code-access).@cap-js/mcpCAP@cap-js/mcpcds-pluginA CAP plugin that serves an `@mcp`-annotated service over MCP with three generated tools, describe, query and call_action, and writes its endpoint into the local agent's configuration in development.
Since then
No major release of @cap-js/mcp since this was published
Source
reachable

Who is behind it

DJ AdamsDJ AdamsPersonWrote this
Developer Advocate
In the atlas: contributes to 20, wrote 22
@qmacro
author

Properties

About this work

declared and crawled
Published
declared
Published on
declared

For mcp-servers

on the edge
Covers
authored
CAP Node.js setup, @mcp service exposure, local client discovery and querying through the official adapter.
Applies in
authored
cap
Applies to
authored
Node

More on this47

Group by39 of 39 pieces
Piece, what it offersStill applies
CAP in the age of AI #7 - vector embeddings wrap-up
YouTube — SAP Developers playlists, DJ Adams, Johannes Vogt, part 7 of 7
nothing recorded
SAP Meets the Agentic Web: CAP MCP - UI5 WebMCP
YouTube — SAP Developers playlists, Mauricio Lauffer
nothing recorded
What's in Daniel Hutzel's brain?
YouTube — SAP Developers playlists, Daniel Hutzel, DJ Adams
nothing recorded
CAP: The Road Ahead - Simplicity in an AI Era
YouTube — SAP Developers playlists, SAP Developers
nothing recorded
From SAP Sales and Service Cloud V2 APIs to AI: Building an MCP Server with CAP Node.js
SAP Community, pvsbprasad
nothing recorded
From Dashboard to Conversational AI in Minutes: Adding MCP to an Existing CAP Application
SAP Community, i533678
nothing recorded
CAP in the age of AI #3 - from MCP to A2A
YouTube — SAP Developers playlists, DJ Adams, Johannes Vogt, Stefan Rudi, part 3 of 7
nothing recorded
MCP Servers are the New Z-Tables
SAP Community, shiromani_soni1
nothing recorded
CAP in the age of AI #2 - more on the MCP adapter
YouTube — SAP Developers playlists, DJ Adams, Johannes Vogt, Simon Engel, Stefan Rudi, part 2 of 7
nothing recorded
CAP in the age of AI #1 - the MCP adapter
YouTube — SAP Developers playlists, DJ Adams, Johannes Vogt, Simon Engel, Stefan Rudi, Daniel Schlachter, part 1 of 7
nothing recorded
CAP in the age of AI
YouTube — SAP Developers playlists, DJ Adams, Johannes Vogt, Simon Engel, Stefan Rudi, Daniel Schlachter
nothing recorded
Expose S/4HANA Cloud OData API as an MCP Server via CAP Node.js
SAP Community, Jacky Liu
nothing recorded
Expose S/4HANA Cloud OData API as an MCP Server via CAP Node.js
SAP Community, Jacky_Liu1
nothing recorded
API Composition: Seamless Enterprise Data Access for Developers and AI Agents
SAP Community, Palak
nothing recorded
The Easiest Way to Expose a CAP Node.js Project as an MCP Server
SAP Community, Jacky LiuA recipe
nothing recorded
Natural Language Queries for SAP CAP via MCP: The LLM Translates, CDS Executes
SAP Community, ShahidThe reasoningA recipeRunnable code
nothing recorded
AI-native North Star architecture — Platform Layer
SAP Architecture Center, SAP Architecture CenterThe reasoningA reference
Core changed
Agentic AI on BTP: a Multi‑Agent App with Pydantic AI
SAP Community, Wouter Lemaire
nothing recorded
Agentic AI on BTP: a Single Agent with LangGraph
SAP Community, Wouter Lemaire
nothing recorded
BTP Audit Log MCP Server: Security Monitoring with AI Assistants
SAP Community, Wouter Lemaire
nothing recorded
UI5 MCP Server Got Extended for UI Integration Cards Generation
SAP Community, daniel_vladinov
nothing recorded
Third-Party MCP Server Access to SAP Solutions on BTP
SAP Architecture Center, Dhawal Joshi, Harut Ter-Minasyan, Mirko GüntherThe reasoningA reference
nothing recorded
Model Context Protocol Adapter — CAP guide
capire, Capire Docs & SamplesA referenceA recipe
nothing recorded
CAP Node.js Expert Session #6 - The MCP Adapter
YouTube — SAP Developers playlists, Daniel Schlachter, DJ AdamsThe reasoningA recipe
nothing recorded
Examine the details of the Model Context Protocol on startup
SAP Developer Center, DJ AdamsThe reasoningA recipe
nothing recorded
Agentic CAP: Build MCP servers and enterprise AI agents
SAP TechEd — session catalogue, Daniel Hutzel, Daniel SchlachterA recipe
nothing recorded
Also byDJ Adams21
CAP in the age of AI #7 - vector embeddings wrap-up
YouTube — SAP Developers playlists, DJ Adams, Johannes Vogt, part 7 of 7
nothing recorded
What's in Daniel Hutzel's brain?
YouTube — SAP Developers playlists, Daniel Hutzel, DJ Adams
nothing recorded
CAP in the age of AI #3 - from MCP to A2A
YouTube — SAP Developers playlists, DJ Adams, Johannes Vogt, Stefan Rudi, part 3 of 7
nothing recorded
CAP in the age of AI #2 - more on the MCP adapter
YouTube — SAP Developers playlists, DJ Adams, Johannes Vogt, Simon Engel, Stefan Rudi, part 2 of 7
nothing recorded
CAP in the age of AI #1 - the MCP adapter
YouTube — SAP Developers playlists, DJ Adams, Johannes Vogt, Simon Engel, Stefan Rudi, Daniel Schlachter, part 1 of 7
nothing recorded
CAP in the age of AI
YouTube — SAP Developers playlists, DJ Adams, Johannes Vogt, Simon Engel, Stefan Rudi, Daniel Schlachter
nothing recorded
CAP Node.js Expert Session #6 - The MCP Adapter
YouTube — SAP Developers playlists, Daniel Schlachter, DJ AdamsThe reasoningA recipe
nothing recorded
Examine the details of the Model Context Protocol on startup
SAP Developer Center, DJ AdamsThe reasoningA recipe
nothing recorded
CAP in the age of AI #6 - vector embeddings
YouTube — SAP Developers playlists, DJ Adams, Johannes Vogt, Daniel Schlachter, part 6 of 7
nothing recorded
Custom Business Logic Extensibility in CAP (CDS-Oyster)
YouTube — SAP Developers playlists, Nick Josipovic, DJ Adams
nothing recorded
CAP in the age of AI #5 - agents wrap-up
YouTube — SAP Developers playlists, DJ Adams, Johannes Vogt, Simon Engel, Stefan Rudi, Daniel Schlachter, part 5 of 7
nothing recorded
CAP in the age of AI #4 - more on agents
YouTube — SAP Developers playlists, DJ Adams, Johannes Vogt, part 4 of 7
nothing recorded
Avoid design time CAP server restarts when maintaining local data files
SAP Community, DJ AdamsThe reasoningRunnable code
Core changed
CAP, CDS, CDL, CSN and jq - finding associations
SAP Community, DJ AdamsThe reasoning
nothing recorded
CAP, CORS and custom headers
SAP Community, DJ AdamsThe reasoningRunnable code
nothing recorded
ISO content for common CAP types
SAP Community, DJ AdamsThe reasoningRunnable code
Core changed
CAP is important because it's not important
SAP Community, DJ AdamsThe reasoning
nothing recorded
Computed field example in CAP
SAP Community, DJ AdamsThe reasoningA recipeRunnable code
Core changed
Set up VS Code on Chrome OS for local Application Programming Model development
SAP Community, DJ AdamsThe reasoningRunnable code
Core changed
SAP Cloud Application Programming Model (CAP) - start here
SAP Community, DJ AdamsThe reasoning
nothing recorded
Define, generate, deploy: AI-driven spec-first Terraform
SAP TechEd — session catalogue, Christian Lechner, DJ AdamsA recipe
nothing recorded

Details

Graph5 edges
← POINTS HERE
POINTS OUT →
explainsServe your application over MCPcapability, core and community
explains@cap-js/mcpartifact
published onSAP Developer Centerpublishing source
discovered viaAdded by hand
Source
Type
tutorial
Host
developers.sap.com
Signals as of
Discovered via
First seen
History1
  • Entered the atlasDiscovered via Added by hand.
For your agent
Ref
content:sap-tutorial-add-mcp-capabilities-to-a-cap-service
JSON
/content/sap-tutorial-add-mcp-capabilities-to-a-cap-service.json
MCP
Connecting an agent