btp-sap-odata-to -optimized
Optimized SAP OData to MCP Server for BTP - Hierarchical tool registry solving the tool explosion problem
claude mcp add --transport stdio raistlin82-btp-sap-odata-to-mcp-server-optimized node dist/server.js \ --env SAP_IAS_URL="https://your-tenant.accounts.ondemand.com" \ --env SAP_IAS_CLIENT_ID="your-client-id" \ --env ODATA_MAX_SERVICES="50" \ --env ODATA_DISCOVERY_MODE="pattern" \ --env SAP_DESTINATION_NAME="SAP_S4HANA" \ --env SAP_IAS_CLIENT_SECRET="your-secret" \ --env ODATA_EXCLUDE_PATTERNS="*_TEST*,*_TEMP*" \ --env ODATA_INCLUDE_PATTERNS="*API*,Z*"
How to use
This MCP server bridges SAP OData services with AI-powered capabilities by discovering OData sources, routing requests through a modular authentication layer, and enabling AI-assisted tooling workflows. The server exposes an integrated set of 17+ tools organized in logical layers to perform tasks such as smart query routing, natural language to OData conversion, and workflow orchestration. Use the built-in UI tool suite (ui-form-generator, ui-data-grid, ui-dashboard-composer, ui-workflow-builder, ui-report-builder) to configure interfaces, forms, dashboards, and reports for your SAP data and AI workflows. Ensure your environment is prepared with SAP IAS/XSUAA authentication, OData discovery patterns, and destinations, then start the server to access both the OData endpoints and the AI-enabled tooling stack. The documentation hub provides detailed usage scenarios, including how to authenticate, discover services, and compose AI-driven workflows with the provided tools.
How to install
Prerequisites:
- Node.js (v18 or newer)
- npm (v6+)
- Access to SAP BTP, Cloud Foundry environment or equivalent
- SAP IAS/XSUAA configured (clientId, clientSecret, and URL)
- Clone the repository
git clone <this-repo>
cd btp-sap-odata-to-optimized
- Install dependencies
npm install
- Configure environment Copy the example env and edit with your values
cp .env.example .env
- Build the server (TypeScript to JS)
npm run build:btp
- Run the server
npm start
- Validate deployment
curl -i http://localhost:3000/health
Notes:
- The server expects environment variables as described in the Configuration guide. See docs/CONFIGURATION.md for detailed options.
- In production, wire up proper CF services, logging, and health probes as described in Deployment docs.
Additional notes
Tips and common issues:
- Ensure SAP IAS URL, clientId, and clientSecret are correct; invalid credentials will cause authentication failures.
- If OData discovery fails, verify ODATA_DISCOVERY_MODE and pattern strings (ODATA_INCLUDE_PATTERNS, ODATA_EXCLUDE_PATTERNS).
- Enable structured logging to SAP Cloud Logging for better observability.
- For stable sessions, ensure proper secret rotation and secure storage of credentials.
- If upgrading, review Changes/Changelog for breaking changes in tool APIs or authentication flows.
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