btp-sap-odata-to
BTP CloudFoundry Node.js MCP server for SAP OData services integration
claude mcp add --transport stdio lemaiwo-btp-sap-odata-to-mcp-server npx -y lemaiwo-btp-sap-odata-to-mcp-server \ --env MCP_DEBUG="true or false" \ --env SAP_BTP_XSUAA="XSUAA security configuration or alias" \ --env SAP_S4HANA_URL="URL of SAP S/4HANA or ECC OData endpoint" \ --env BTP_DESTINATION_SERVICE="Name of SAP BTP Destination service"
How to use
This MCP server exposes SAP OData services as dynamic MCP tools to enable natural language interactions with your ERP data. It implements a 3-level progressive discovery approach: Level 1 discover-sap-data provides lightweight service and entity lists, Level 2 get-entity-metadata returns full schemas for a selected entity, and Level 3 execute-sap-operation performs authenticated CRUD operations against the SAP OData services. Through this flow, you can ask questions like 'Show me top 10 banks' or 'Update bank with ID 1 to have street number 5', and the server translates your intent into appropriate MCP tools and OData calls. The built-in translation, parameter inference, and capability detection help ensure that your natural language requests map to valid OData operations with proper security and session handling.
How to install
Prerequisites:
- Node.js 18.x or higher
- Access to SAP S/4HANA or ECC with OData services enabled
- SAP BTP account with Destination and Connectivity services
Installation steps:
- Install Node.js (if not already installed)
- Download from https://nodejs.org/ or use a package manager
- Install the MCP server package via npm (example using npx):
- npm install -g lemaiwo-btp-sap-odata-to-mcp-server
- Verify installation:
- npx -y lemaiwo-btp-sap-odata-to-mcp-server --version
- Configure environment variables as needed (see mcp_config.env example below) and start the server:
- npx -y lemaiwo-btp-sap-odata-to-mcp-server
If you prefer a direct npm run approach, you can also install locally:
- npm install --save-dev lemaiwo-btp-sap-odata-to-mcp-server
- npx lemaiwo-btp-sap-odata-to-mcp-server
Note: Depending on your deployment model, you can also run via a package manager wrapper (npm/yarn) or use a containerized setup if provided by the package maintainers.
Additional notes
Tips and common issues:
- Ensure your SAP BTP Destination service and connectivity settings are correctly configured so the MCP server can reach your SAP OData endpoints.
- The 3-level discovery model helps minimize payloads; Level 1 returns lightweight data, while Level 2/3 fetch metadata and perform operations only as needed.
- Use the Level 1 tool discover-sap-data to identify available services and entities before requesting full metadata.
- Ensure proper authentication for CRUD operations (Level 3); authenticated operations may require XSUAA tokens or SAP-specific session handling.
- If you modify entity schemas or add new services, refresh metadata via Level 2 to ensure tools reflect current capabilities.
- Logs and error messages are designed to be user-friendly but may include technical details for debugging; enable MCP_DEBUG for verbose output during troubleshooting.
Related MCP Servers
iterm
A Model Context Protocol server that executes commands in the current iTerm session - useful for REPL and CLI assistance
mcp
Octopus Deploy Official MCP Server
furi
CLI & API for MCP management
editor
MCP Server for Phaser Editor
DoorDash
MCP server from JordanDalton/DoorDash-MCP-Server
mcp
MCP сервер для автоматического создания и развертывания приложений в Timeweb Cloud