Use SAP S/4HANA with AI via MCP
S/4HANA holds the numbers everything else depends on – orders, documents, stock levels, cost centers. SAP does not currently provide an MCP server for S/4HANA business data, so we connect the system to CompanyGPT through its documented OData APIs instead.
What is SAP S/4HANA?
SAP S/4HANA is SAP SE’s flagship ERP suite, covering finance, logistics, procurement, manufacturing and sales in one consistent data model. It runs on the SAP HANA in-memory database and is deployed as public cloud, private cloud (RISE with SAP) or classically in the customer’s own data center. Across large German enterprises and the upper mid-market, it is the most widely used ERP platform.
What makes S/4HANA compelling for AI work is that it holds structured truth: an agent reading document line items, vendor master data or order status straight from the ERP has nothing to guess at. At the same time, access for business departments is usually tied to transaction codes and report authorizations – a conversational interface lowers that barrier noticeably without bypassing the authorization model.
Connection at a Glance
- MCP server
- None from the vendor – custom integration
- Interfaces
- OData v2/v4, REST, SOAP, RFC/BAPI, IDoc
- Authentication
- OAuth 2.0, basic, X.509 or SAML depending on deployment
- Operating model
- Public cloud, private cloud (RISE) or on-premises
- Enablement
- Communication arrangement set up by your SAP team
- Note
- Scoped per service and field, read-only possible
How to Connect SAP S/4HANA to CompanyGPT
For S/4HANA business data, SAP does not currently provide an MCP server, and the community projects circulating today are still at an early stage. The dependable route therefore runs through the documented standard interfaces.
S/4HANA exposes its business objects via OData v2 and v4 APIs documented in the SAP Business Accelerator Hub, complemented by REST, SOAP and the classic RFC/BAPI and IDoc channels. Together with your SAP team we select the services you actually need, set up a dedicated communication arrangement with its own technical user, and publish those services as an MCP integration inside your CompanyGPT environment. The general rule: any API with an OpenAPI or OData description can be made available as an MCP tool this way.
Authentication uses OAuth 2.0, basic auth, X.509 certificates or SAML depending on the deployment. Access is scoped to exactly the services and fields a given use case requires – read-only or read-write. Inside CompanyGPT, your administrators then decide by role and group which teams see the SAP integration at all. If S/4HANA runs in a private cloud or on-premises landscape, the link is established through the SAP Cloud Connector or a dedicated network connection.
Note for on-premises operation: CompanyGPT runs in your own Azure tenant – so your on-premises network can be connected directly: via a site-to-site VPN (Azure VPN Gateway) or ExpressRoute between your corporate network and the virtual network of your CompanyGPT environment. The system does not need to be publicly reachable; we set up the connection together with your IT team.
Typical Use Cases
How AI agents in CompanyGPT work with SAP S/4HANA
Order status without transaction codes
Sales and customer service ask in plain language for delivery dates, order line items or invoice status – the agent reads the values through the approved OData service and cites the document number.
Condense a supplier file
Ahead of a negotiation, procurement has purchase history, open items and pricing master data for a supplier summarized into a single briefing.
Comment on the monthly close
Controlling pulls cost center and margin figures from S/4HANA and has variances against the prior period drafted into the management report template.
Frequently Asked Questions
SAP S/4HANA and AI – the most important answers
Is there an official MCP server for SAP S/4HANA?
Not for S/4HANA business data as things stand, and no mature community projects exist either. Business data is therefore connected individually through the OData APIs.
How is S/4HANA connected to CompanyGPT then?
Through the documented OData services. We select the required services with your SAP team, set up a communication arrangement with a technical user, and expose them as MCP tools inside your CompanyGPT environment.
Can the AI change data in SAP?
Only if you explicitly want it to. The technical user receives exactly the authorizations the use case needs; many customers deliberately start read-only and add write capabilities later.
What applies to on-premises or RISE deployments?
In those cases the system is not publicly reachable. The link runs through the SAP Cloud Connector or a secured network connection between your CompanyGPT environment and the SAP landscape, agreed with your IT and Basis teams.
Are SAP authorizations preserved?
The technical connection uses a defined service user with a tightly scoped authorization profile. Who in the company may use the integration is additionally controlled by your administrators in CompanyGPT via roles and groups.
Related Integrations
ERP & Merchandise Management
SAP S/4HANA and Your AI – GDPR-Compliant with CompanyGPT
CompanyGPT is the enterprise AI assistant in your own cloud tenant: all relevant AI models, your company data and integrations like SAP S/4HANA – centrally managed, with roles and permissions. We set up the connection together with you.
SAP S/4HANA is a trademark of its respective owner (SAP SE). Its mention describes compatibility and does not imply any partnership or endorsement. Availability and scope of the connection depend on the respective vendor.
