Bookshop MCP Example
Provides tools for interacting with SAP CAP services, enabling querying of bookshop data models including entities, actions, and functions.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Bookshop MCP Examplelist books with authors and genres"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Bookshop MCP Example
A minimal CAP bookshop sample that exposes its service via the Model Context Protocol (MCP), letting AI agents and LLM tools query it directly.
Official CAP MCP docs: https://cap.cloud.sap/docs/guides/protocols/mcp
Setup
npm installRelated MCP server: CAP MCP Plugin
Run
cds watchThe MCP server starts automatically and is registered with local MCP clients (Claude Code, Opencode).
How it works
The CatalogService in srv/cat-service.cds is annotated with @mcp, which is all that's needed to expose it as an MCP server:
annotate CatalogService with @mcp;The adapter creates three tools per service:
Tool | Purpose |
| Returns the data model (entities, actions, functions) |
| Reads data — supports |
| Invokes unbound actions/functions (e.g. |
Try it
With Claude Code or Opencode running, just ask:
list books with authors and genresInspect tools
npm run inspectorOpens the MCP Inspector at http://localhost:5173. Connect to http://localhost:4004/mcp/browse to browse tools interactively.
This server cannot be deployed
Maintenance
Related MCP Connectors
Let AI agents query data and act across all your business apps via MCP.
Hosted MCP for e-commerce: live product catalog, stock, and pricing for AI agents.
MCP server unifying ERPs, CRMs, APIs and knowledge base for Claude, ChatGPT and Gemini.
Build and run grounded business agents over MCP: agents, knowledge bases, skills, Storylines.
Related MCP Servers
AlicenseNot gradedqualityBmaintenanceMCP server for SAP CAP that enables AI-assisted development by searching CDS model definitions and CAP documentation.43,166112Apache 2.0- AlicenseNot gradedqualityAmaintenanceA CAP plugin that automatically generates MCP servers from your CAP services, transforming OData services into AI-accessible resources, tools, and prompts with minimal configuration.39761Apache 2.0
- AlicenseNot gradedqualityCmaintenanceDynamically generates MCP tools from any OData or OpenAPI spec, enabling natural-language queries via SAP AI Core.MIT
- FlicenseNot gradedqualityCmaintenanceEnables natural language querying of SAP business partner data by exposing OData APIs as MCP tools for LLM agents.-