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 "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., "@sap-s4hana-odata-mcp List 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: MCP ABAP 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
Available Tools
2 toolsget_business_partnerA
Get a specific business partner by ID from SAP S/4HANA. Returns full details. Use $expand to include related data like addresses or roles.
Inputs: id (required), expand, select.
list_business_partnersB
List business partners from SAP S/4HANA. Supports OData filtering, sorting, pagination, and field selection. Category '1' = Person, '2' = Organization. Use $filter for search, e.g. substringof('keyword',BusinessPartnerFullName).
Inputs: top, skip, expand, filter, +2 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 2 tools
list_business_partners and get_business_partner are clearly distinct: one handles collection-level querying with filters/pagination, the other handles single-record retrieval by ID. There is no overlap or ambiguity between them.
Both tools follow the same verb_noun convention: list/get + business_partner, with plural for the collection and singular for the individual resource. The naming is clean, predictable, and consistent.
Two tools is borderline for the server's stated scope. It is sufficient for a minimal business partner lookup server, but the generic 'sap-s4hana-odata-mcp' name suggests a broader OData surface, so the tool count feels thin at the low end.
The tool set covers basic read/query needs for business partners via list and get, but it lacks create/update/delete operations and exposes no other S/4HANA entities. Agents needing write capabilities or non-business-partner data will hit dead ends.
Related MCP Connectors
List, filter and count records, read dropdown values, and create or update records in SugarCRM.
Search B2B contacts and business leads through an OAuth-secured MCP server with masked results.
Manage products, EU Digital Product Passports, operator parties, and GS1 EPCIS supply-chain events.
Read-only access to a company's ERP for Claude, ChatGPT and Gemini, with OAuth and an audit trail.
Related MCP Servers
- FlicenseAqualityDmaintenanceEnables interaction with SAP S/4HANA systems via OData, allowing service discovery, metadata exploration, field value retrieval, and CRUD operations through natural language.45-
- AlicenseBqualityDmaintenanceEnables querying ABAP programs, classes, function modules, and other objects from SAP systems with OAuth 2.0 authentication.2MIT
- FlicenseNot gradedqualityDmaintenanceEnables natural language querying of SAP business partner data by exposing OData APIs as MCP tools for LLM agents.1-
- AlicenseNot gradedqualityBmaintenanceEnables interaction with SAP S/4HANA systems, providing 38 tools to search and manage business partners, products, pricing, purchase orders, supplier invoices, service entry sheets, journal entries, and cost centers via OData V2/V4 and SOAP.MIT