MCP Server for SAP OData v4
An MCP (Model Context Protocol) server that exposes SAP OData v4 actions as AI-callable tools. Designed to be used with MCP-compatible AI clients such as Claude.
Tools
| Tool | Description |
|---|---|
hello |
Smoke test โ returns a hello message |
schedule_background_job |
Calls a SAP OData v4 action with a given option |
Setup
- Clone the repo:
git clone https://github.com/your-username/mcp.git
cd mcp
- Install dependencies:
npm install
- Copy
.env.exampleto.envand fill in your SAP credentials:
cp .env.example .env
- Build the TypeScript source:
npm run build
- Start the MCP server:
npm start
Configuration
| Variable | Description |
|---|---|
SAP_URL |
Base URL of your SAP OData v4 service |
SAP_USER |
SAP username |
SAP_PASSWORD |
SAP password |
SAP_CLIENT |
SAP client number (required) |
SAP_ACTION_PATH |
OData action path (e.g. your-namespace/your-namespace.your-service.ActionName) |
Requirements
- Node.js 18+
- A SAP system exposing an OData v4 service
License
ISC