MCP Server for CAP
Integrates with a document processing backend built on SAP CAP, providing tools to list, upload, process, and retrieve documents, as well as access audit logs and aggregate statistics.
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., "@MCP Server for CAPlist pending documents"
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.
Build a Production-Grade MCP Server for CAP
Related MCP server: paperless-ngx-mcp
Overview
The server exposes a set of MCP tools and resources that let Claude interact with a document processing backend. It uses the MCP SDK with a StreamableHTTPServerTransport, meaning each session is stateful and tracked by a mcp-session-id header.
Authentication
The token is never exposed to the client — it lives only in the server process via process.env.BEARER_TOKEN. The MCP endpoint itself (POST /mcp) does not require authentication from Claude's side
Tool Reference
list_documents : Lists all documents, with an optional status filter.
get_document : Retrieves full details for a single document, including its parsed invoice and line items.
upload_document : Uploads a document as a base64-encoded string to the backend.
process_document : process_document
get_audit_log : Returns all audit log entries for a given document.
Resources
documents://pending : List of documents with PENDING status
documents://stats : Returns aggregate statistics across all documents:
Total document count
Count of DONE documents
Count of FAILED documents
Average AI confidence score (from expanded invoice data)Retry Strategy
All OData calls go through withRetry(), an exponential backoff wrapper:
Attempt 1 ──► fail ──► wait 500ms
Attempt 2 ──► fail ──► wait 1000ms
Attempt 3 ──► fail ──► throwConnecting from SAP BTP / Cloud Foundry
Create an Node.js application. npm install .env.example .env # fill in APP_URL and BEARER_TOKEN node index.js # To run the application locally
Push to CF
cf push # To push the code to CF After deploying the application i tested from the POSTMAN.
NOTE : By using the VScode, I cloned the application and i tested via the official MCP Inspector. node index.js # To run the application locally. For MCP Inspector # npx @modelcontextprotocol/inspector.
NOTE : When iam trying to connect the Claude code with my application, It is not working. (It may work with a licensed Claude account).
This server cannot be deployed
Maintenance
Related MCP Connectors
Document processing over MCP: merge, split and compress PDFs, run OCR, extract document text.
Composable APIs for document extraction, image transformation, and document & sheet generation.
Ingest, manage, and retrieve documents for RAG-powered AI applications
Convert files, run PDF/image tools, create billing links, and report feedback.
Related MCP Servers
- FlicenseNot gradedqualityNot gradedmaintenanceEnables Claude to interact with Google Docs to list, read, create, search, and update documents in a user's Google Drive. It provides a suite of tools and prompts for document management and content analysis using OAuth 2.0 authentication.885 npm-
- AlicenseNot gradedqualityDmaintenanceEnables Claude AI to interact with Paperless-NGX document management through natural language, offering 50 tools for full CRUD operations and management.138 npmMIT

docuprox-mcpofficial
AlicenseAqualityDmaintenanceEnables AI clients like Claude to process documents (invoices, passports, etc.) via the DocuProx API, with tools for submitting jobs, checking status, and retrieving results.55 npmMIT- AlicenseBqualityDmaintenanceProvides a document database with search, retrieval, and creation tools, and a task tracker with search and status filtering, enabling AI agents to manage documents and tasks via natural language.3MIT