SAP S/4HANA MCP Server
for AI Agents
Connect your AI agent to StackOne's SAP S/4HANA MCP server and give it 117 MCP tools out of the box. Auth, tool execution, and security all managed.
Coverage
117 Agent Actions
Create, read, update, and delete across SAP S/4HANA — and extend your agent's capabilities with custom actions.
Authentication
Agent Tool Authentication
Per-user OAuth in one call. Your SAP S/4HANA MCP server gets session-scoped tokens with zero credentials stored on your infra.
Agent Auth →Security
Agent Protection
Every SAP S/4HANA tool response scanned for prompt injection in milliseconds — 88.7% accuracy, all running on CPU.
Prompt Injection Defense →Performance
Max Agent Context. Min Cost.
Free up to 96% of your agent's context window to enhance reasoning and reduce cost, on every SAP S/4HANA call.
Tools Discovery →What is the SAP S/4HANA MCP Server?
A SAP S/4HANA MCP server lets AI agents read and write SAP S/4HANA data through the Model Context Protocol — Anthropic's open standard for connecting LLMs to external tools. StackOne's SAP S/4HANA MCP server ships with 117 pre-built actions, fully extensible via the Connector Builder — plus managed authentication, prompt injection defense, observability, and agent execution runtime. Connect it from MCP clients like Claude Desktop, Claude Code, Cursor, Goose, and VS Code, or from agent frameworks like OpenAI Agents SDK, LangChain, and Vercel AI SDK.
All SAP S/4HANA MCP Tools
Every action from SAP S/4HANA's API, ready for your agent. Create, read, update, and delete — scoped to exactly what you need.
Business Partners
- Create Business Partner
Create a new business partner (person, organization, or group), optionally with nested addresses, roles, customer, and supplier data via OData v4 deep insert.
- List Business Partners
Retrieve a list of business partners with OData filtering, projection, expansion, and server-driven pagination.
- Get Business Partner
Retrieve a single business partner by its 10-character key.
- Update Business Partner
Update an existing business partner's master data. Uses PATCH semantics — only the fields you provide are changed.
- Delete Business Partner
Delete a BusinessPartner record by its key.
Customers
- List Customers
Retrieve a list of customers — business partners with a Customer role assigned.
- Get Customer
Retrieve a single customer by its 10-character key.
- Update Customer
Update an existing Customer record. PATCH semantics — only supplied fields are changed.
Suppliers
- List Suppliers
Retrieve a list of suppliers — business partners with a Supplier role assigned.
- Get Supplier
Retrieve a single supplier by its 10-character key.
- Update Supplier
Update an existing Supplier record. PATCH semantics — only supplied fields are changed.
Business Partner Address
- Create Business Partner Address
Create a new BusinessPartner record.
- Get Business Partner Address
Retrieve a single BusinessPartnerAddress record by its OData key.
- Update Business Partner Address
Update an existing BusinessPartnerAddress record. PATCH semantics — only supplied fields are changed.
- Delete Business Partner Address
Delete a BusinessPartnerAddress record by its key.
Business Partner Roles
- List Business Partner Roles
List BusinessPartnerRole records with OData v4 filtering, projection, and server-driven pagination.
- Get Business Partner Role
Retrieve a single BusinessPartnerRole record by its OData key.
Business Partner Banks
- Create Business Partner Bank
Create a new BusinessPartner record.
- List Business Partner Banks
List BusinessPartnerBank records with OData v4 filtering, projection, and server-driven pagination.
- Get Business Partner Bank
Retrieve a single BusinessPartnerBank record by its OData key.
- Update Business Partner Bank
Update an existing BusinessPartnerBank record. PATCH semantics — only supplied fields are changed.
- Delete Business Partner Bank
Delete a BusinessPartnerBank record by its key.
Business Partner Contacts
- Create Business Partner Contact
Create a new BusinessPartnerContact record.
- List Business Partner Contacts
List BusinessPartnerContact records with OData v4 filtering, projection, and server-driven pagination.
- Get Business Partner Contact
Retrieve a single BusinessPartnerContact record by its OData key.
- Update Business Partner Contact
Update an existing BusinessPartnerContact record. PATCH semantics — only supplied fields are changed.
- Delete Business Partner Contact
Delete a BusinessPartnerContact record by its key.
Business Partner Tax Numbers
- Create Business Partner Tax Number
Create a new BusinessPartner record.
- List Business Partner Tax Numbers
List BusinessPartnerTaxNumber records with OData v4 filtering, projection, and server-driven pagination.
- Get Business Partner Tax Number
Retrieve a single BusinessPartnerTaxNumber record by its OData key.
- Update Business Partner Tax Number
Update an existing BusinessPartnerTaxNumber record. PATCH semantics — only supplied fields are changed.
- Delete Business Partner Tax Number
Delete a BusinessPartnerTaxNumber record by its key.
Sales Orders
- Create Sales Order
Create a new sales order with header data and one or more line items via OData v4 deep insert.
- List Sales Orders
Retrieve a list of sales orders with OData filtering, projection, expansion, and server-driven pagination.
- Get Sales Order
Retrieve a single sales order by its 10-character order number.
- Update Sales Order
Update an existing SalesOrder record. PATCH semantics — only supplied fields are changed.
Sales Order Items
- Create Sales Order Item
Create a new SalesOrder record.
- List Sales Order Items
Retrieve a flat list of sales order line items across all orders.
- Get Sales Order Item
Retrieve a single sales order line item by its composite key (sales order + item number).
- Update Sales Order Item
Update an existing SalesOrderItem record. PATCH semantics — only supplied fields are changed.
- Delete Sales Order Item
Delete a SalesOrderItem record by its key.
Sales Order Header Partners
- Create Sales Order Header Partner
Create a new SalesOrder record.
- List Sales Order Header Partners
List SalesOrderHeaderPartner records with OData v4 filtering, projection, and server-driven pagination.
- Get Sales Order Header Partner
Retrieve a single SalesOrderHeaderPartner record by its OData key.
- Update Sales Order Header Partner
Update an existing SalesOrderHeaderPartner record. PATCH semantics — only supplied fields are changed.
- Delete Sales Order Header Partner
Delete a SalesOrderHeaderPartner record by its key.
Sales Order Item Partners
- Create Sales Order Item Partner
Create a new SalesOrderItem record.
- List Sales Order Item Partners
List SalesOrderItemPartner records with OData v4 filtering, projection, and server-driven pagination.
- Get Sales Order Item Partner
Retrieve a single SalesOrderItemPartner record by its OData key.
- Update Sales Order Item Partner
Update an existing SalesOrderItemPartner record. PATCH semantics — only supplied fields are changed.
- Delete Sales Order Item Partner
Delete a SalesOrderItemPartner record by its key.
Sales Order Header Pricing Elements
- Create Sales Order Header Pricing Element
Create a new SalesOrder record.
- List Sales Order Header Pricing Elements
List SalesOrderHeaderPricingElement records with OData v4 filtering, projection, and server-driven pagination.
- Delete Sales Order Header Pricing Element
Delete a SalesOrderHeaderPricingElement record by its key.
Sales Order Item Pricing Elements
- Create Sales Order Item Pricing Element
Create a new SalesOrderItem record.
- List Sales Order Item Pricing Elements
List SalesOrderItemPricingElement records with OData v4 filtering, projection, and server-driven pagination.
- Delete Sales Order Item Pricing Element
Delete a SalesOrderItemPricingElement record by its key.
Sales Order Schedule Lines
- List Sales Order Schedule Lines
List SalesOrderScheduleLine records with OData v4 filtering, projection, and server-driven pagination.
- Get Sales Order Schedule Line
Retrieve a single SalesOrderScheduleLine record by its OData key.
Sales Order Texts
- Create Sales Order Text
Create a new SalesOrder record.
- List Sales Order Texts
List SalesOrderText records with OData v4 filtering, projection, and server-driven pagination.
- Update Sales Order Text
Update an existing SalesOrderText record. PATCH semantics — only supplied fields are changed.
- Delete Sales Order Text
Delete a SalesOrderText record by its key.
Sales Order Item Texts
- Create Sales Order Item Text
Create a new SalesOrderItem record.
- List Sales Order Item Texts
List SalesOrderItemText records with OData v4 filtering, projection, and server-driven pagination.
Products
- Create Product
Create a new Product record.
- List Products
Retrieve a list of products (materials) with OData filtering, projection, and server-driven pagination.
- Get Product
Retrieve a single product by its product (material) number.
- Update Product
Update an existing product (material) master record. Uses PATCH semantics — only the fields you provide are changed.
- Delete Product
Delete a Product record by its key.
Product Descriptions
- Create Product Description
Create a new ProductDescription record.
- List Product Descriptions
Retrieve a flat list of product descriptions across all products and languages.
- Get Product Description
Retrieve a single product description by its composite key (product + language).
- Update Product Description
Update an existing ProductDescription record. PATCH semantics — only supplied fields are changed.
- Delete Product Description
Delete a ProductDescription record by its key.
Product Plants
- Create Product Plant
Create a new ProductPlant record.
- List Product Plants
Retrieve a flat list of product-plant assignments across all products and plants.
- Get Product Plant
Retrieve a single product-plant assignment by composite key (product + plant).
- Update Product Plant
Update an existing ProductPlant record. PATCH semantics — only supplied fields are changed.
- Delete Product Plant
Delete a ProductPlant record by its key.
Product Sales Deliverys
- Create Product Sales Delivery
Create a new ProductSalesDelivery record.
- List Product Sales Delivery
List ProductSalesDelivery records with OData v4 filtering, projection, and server-driven pagination.
- Get Product Sales Delivery
Retrieve a single ProductSalesDelivery record by its OData key.
- Update Product Sales Delivery
Update an existing ProductSalesDelivery record. PATCH semantics — only supplied fields are changed.
- Delete Product Sales Delivery
Delete a ProductSalesDelivery record by its key.
Product Supply Plannings
- List Product Supply Planning
List ProductSupplyPlanning records with OData v4 filtering, projection, and server-driven pagination.
- Get Product Supply Planning
Retrieve a single ProductSupplyPlanning record by its OData key.
- Update Product Supply Planning
Update an existing ProductSupplyPlanning record. PATCH semantics — only supplied fields are changed.
Product Mrp Areas
- Create Product Mrp Area
Create a new ProductMRPArea record.
- List Product Mrp Areas
List ProductMRPArea records with OData v4 filtering, projection, and server-driven pagination.
- Get Product Mrp Area
Retrieve a single ProductMRPArea record by its OData key.
- Update Product Mrp Area
Update an existing ProductMRPArea record. PATCH semantics — only supplied fields are changed.
- Delete Product Mrp Area
Delete a ProductMRPArea record by its key.
Product Work Schedulings
- List Product Work Scheduling
List ProductWorkScheduling records with OData v4 filtering, projection, and server-driven pagination.
- Get Product Work Scheduling
Retrieve a single ProductWorkScheduling record by its OData key.
- Update Product Work Scheduling
Update an existing ProductWorkScheduling record. PATCH semantics — only supplied fields are changed.
Product Storage Locations
- Create Product Storage Location
Create a new ProductStorageLocation record.
- List Product Storage Locations
List ProductStorageLocation records with OData v4 filtering, projection, and server-driven pagination.
- Get Product Storage Location
Retrieve a single ProductStorageLocation record by its OData key.
- Update Product Storage Location
Update an existing ProductStorageLocation record. PATCH semantics — only supplied fields are changed.
- Delete Product Storage Location
Delete a ProductStorageLocation record by its key.
Product Sales Taxs
- Create Product Sales Tax
Create a new ProductSalesTax record.
- List Product Sales Tax
List ProductSalesTax records with OData v4 filtering, projection, and server-driven pagination.
- Get Product Sales Tax
Retrieve a single ProductSalesTax record by its OData key.
- Update Product Sales Tax
Update an existing ProductSalesTax record. PATCH semantics — only supplied fields are changed.
- Delete Product Sales Tax
Delete a ProductSalesTax record by its key.
Other (11)
- Create Customer Company Data
Create a new Customer record.
- Create Customer Sales Area
Create a new Customer record.
- Create Supplier Company Data
Create a new Supplier record.
- Create Supplier Purchasing Org
Create a new Supplier record.
- List Business Partner Addresses
List BusinessPartnerAddress records with OData v4 filtering, projection, and server-driven pagination.
- List Addresses For Business Partner
List the addresses belonging to a specific Business Partner via the navigation property.
- List Descriptions For Product
List the descriptions belonging to a specific Product via the navigation property.
- List Plants For Product
List the plant assignments for a specific Product via the navigation property.
- Assign Business Partner Role
Create a new BusinessPartner record.
- Unassign Business Partner Role
Delete a BusinessPartnerRole record by its key.
- Cancel Sales Order
Update an existing SalesOrderItem record. PATCH semantics — only supplied fields are changed.
SAP S/4HANA AI Agent Use Cases
Connect your AI agent to SAP S/4HANA and help your team scale the finance operations they run by hand today.
Automate invoice processing with AI agents connected to your ERP, accounting software, and AP tools through StackOne.
ViewUse StackOne to connect your AI agent to your accounting, CRM, and messaging systems to automate Accounts Receivable dunning and payment follow-up.
ViewUse StackOne to connect your AI agent to your accounting, email, and document management systems to automate invoice processing and purchase order matching.
ViewSet Up Your SAP S/4HANA MCP Server in Minutes
One endpoint. Any framework. Your agent is talking to SAP S/4HANA in under 10 lines of code.
Agent Frameworks
{
"mcpServers": {
"stackone": {
"command": "npx",
"args": [
"-y",
"mcp-remote@latest",
"https://api.stackone.com/mcp?x-account-id=<account_id>",
"--header",
"Authorization: Basic <YOUR_BASE64_TOKEN>"
]
}
}
}Check More ERP / ITSM MCP Servers
128+ actions
120+ actions
98+ actions
92+ actions
80+ actions
77+ actions
72+ actions
Platform Resources
MCP Code Mode: Keeping Tool Responses Out of Agent Context
Anthropic's code_execution processes data already in context. Custom MCP code mode keeps raw tool responses in a sandbox. 14K tokens vs 500.
11 min
Comparing BM25, TF-IDF, and Hybrid Search for MCP Tool Discovery
Benchmarking BM25, TF-IDF, and hybrid search for MCP tool discovery across 916 tools. The 80/20 TF-IDF/BM25 hybrid hits 21% Top-1 accuracy in under 1ms.
10 min
Indirect Prompt Injection Defense for MCP Tools: A Technical Guide
MCP tools that read emails, CRM records, and tickets are indirect prompt injection vectors. Here's how we built a two-tier defense that scans tool results in ~11ms.
12 min
MCP vs A2A: Architecture, Security, and When to Use Each
MCP vs A2A: what each protocol standardizes, how they differ, their shared security risks including indirect prompt injection, and when to use one, both, or a hybrid architecture.
12 min
MCP vs API: What 200+ Connector Builds Taught Us
MCP wraps APIs, it doesn't replace them. After building 200+ connectors that serve both, here's when each approach wins.
14 min read
SAP S/4HANA MCP Server FAQ
Does StackOne have a SAP S/4HANA MCP server?
SAP S/4HANA MCP server vs direct API integration — what's the difference?
How does SAP S/4HANA authentication work for AI agents?
origin_owner_id.Are SAP S/4HANA MCP tools vulnerable to prompt injection?
What is the context bloat of a SAP S/4HANA agent and how do I avoid it?
Can I limit which actions my SAP S/4HANA agent can access?
Can I create custom agent actions for my SAP S/4HANA MCP server?
When should I NOT use a SAP S/4HANA MCP server?
What AI frameworks and AI clients does the StackOne SAP S/4HANA MCP server support?
Put your AI agents to work
All the tools you need to build and scale AI agent integrations, with best-in-class connectivity, execution, and security.