sap-s4hana-odata-mcp
Provides tools to query SAP S/4HANA Business Partner data via OData V2 API, enabling listing and retrieving business partners with filtering, sorting, pagination, and field selection.
Click on "Install 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., "@sap-s4hana-odata-mcpList first 10 business partners"
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.
sap-s4hana-odata-mcp
An MCP (Model Context Protocol) server for querying SAP S/4HANA Business Partner data via OData V2 API. Connects directly to on-premise S/4HANA systems using Basic Authentication.
Tools
Tool | Description |
| List business partners with OData filtering, sorting, pagination, and field selection |
| Get a specific business partner by ID with optional |
Related MCP server: SAP S/4HANA MCP Server
Setup
npm install
cp .env.example .env # then edit with your S/4HANA connection details
npm run buildConfiguration
All settings are in .env:
Variable | Required | Description | Example |
| Yes | S/4HANA application server hostname |
|
| Yes | SAP system number (00-99) |
|
| No | Use HTTPS (default: |
|
| Yes | SAP technical user |
|
| Yes | Password |
|
| No | SAP client number |
|
| No | OData service path (default: |
|
Port Calculation
The HTTP/HTTPS port is derived from the system number:
HTTPS port =
443+ system number (e.g. sysnr50-> port44350)HTTP port =
80+ system number (e.g. sysnr50-> port8050)
Finding Your Connection Details
Run transaction SMICM in SAP GUI to find the hostname, system number, and active ports:
Open SAP GUI and enter tcode
SMICMGo to Goto > Services to see the list of active HTTP/HTTPS services
Note the hostname and port numbers — the system number is the last two digits of the port (e.g. port
44350means sysnr50)
Usage with Claude Code
Add to .claude.json:
{
"mcpServers": {
"s4hana-bp": {
"command": "node",
"args": ["/path/to/sap-s4hana-odata-mcp/dist/index.js"]
}
}
}Example Queries
List first 10 business partners:
Show me the first 10 business partners
Search by name:
Find business partners with "SAP" in the name
Filter by category (1=Person, 2=Organization):
List all person-type business partners
Get details with address:
Get business partner 21 with their address
Tech Stack
TypeScript
Axios for OData HTTP calls
Zod for input validation
dotenv for configuration
License
MIT
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/ethanhan2014/sap-s4hana-odata-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server