Skip to main content

The #1 agentic semantic tool search: 91.6% first-try accuracy on S1 Search Bench Explore Tool Discovery

Live 117 Actions

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.

SAP S/4HANA logo
SAP S/4HANA MCP Server
Built by StackOne StackOne
DrataGPLocalyzeFlipMindtoolsScreenloop

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.

Invoice Processing

Automate invoice processing with AI agents connected to your ERP, accounting software, and AP tools through StackOne.

View
QuickBooks OnlineXeroNetSuiteSage IntacctBillFreshBooksWaveZoho Books
Accounts Receivable Dunning

Use StackOne to connect your AI agent to your accounting, CRM, and messaging systems to automate Accounts Receivable dunning and payment follow-up.

View
QuickBooksXeroFreshBooksStripePayPalSalesforceHubSpotGmail
Invoice Processing

Use StackOne to connect your AI agent to your accounting, email, and document management systems to automate invoice processing and purchase order matching.

View
QuickBooks OnlineXeroGmailOutlookGoogle DriveSharePointDropboxSlack

Set 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

Claude Desktop
{
  "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

SAP S/4HANA MCP Server FAQ

Does StackOne have a SAP S/4HANA MCP server?
Yes. StackOne offers a hosted SAP S/4HANA MCP server with 117 pre-built actions, and every action is tested and QA'd by StackOne. Connect it to Claude, Cursor, and any other MCP client, or to any agent framework through the AI Action SDK. It ships with managed agent authentication, prompt injection defense, and tool discovery with server-side execution that preserve your agent's context window and keep reasoning performance.
SAP S/4HANA MCP server vs direct API integration — what's the difference?
A SAP S/4HANA MCP server and direct API integration serve different use cases. Direct API integration is for software-to-software — backend code calling SAP S/4HANA. A SAP S/4HANA MCP server is for AI agents — MCP clients like Claude and Cursor, plus framework agents built with OpenAI, LangChain, or Vercel AI — discovering and calling SAP S/4HANA at runtime. StackOne provides both.
How does SAP S/4HANA authentication work for AI agents?
SAP S/4HANA authentication for AI agents works through a StackOne Connect Session. Create one via the dashboard or the SDK — you get an auth link and ready-to-paste config for Claude Desktop, Cursor, and other MCP clients. Your user authenticates their own SAP S/4HANA account; StackOne handles token exchange, storage, and refresh. Credentials never reach the LLM, and each user is isolated via origin_owner_id.
Are SAP S/4HANA MCP tools vulnerable to prompt injection?
Yes — SAP S/4HANA MCP tools can be vulnerable to indirect prompt injection. Any tool that reads user-written content — documents, messages, tickets, records, or free-text fields — is a potential vector. StackOne Defender scans every tool response before it enters the agent's context — regex patterns in ~1ms, then a MiniLM classifier in ~4ms. 88.7% accuracy, CPU-only.
What is the context bloat of a SAP S/4HANA agent and how do I avoid it?
Context bloat happens when SAP S/4HANA tool schemas and API responses eat your SAP S/4HANA agent's memory, preventing it from reasoning effectively. A single SAP S/4HANA query can return a massive JSON response, and connecting multiple tools compounds the problem. Tools Discovery and Code Mode reduce context bloat — loading only relevant tools per query and keeping raw responses out of the agent's context.
Can I limit which actions my SAP S/4HANA agent can access?
Yes — you can limit which actions your SAP S/4HANA agent can access directly from the StackOne dashboard. Toggle actions on or off, or restrict them to specific accounts, with no code changes to your agent. Session tokens can be scoped to exact actions so if one leaks, exposure stays contained.
Can I create custom agent actions for my SAP S/4HANA MCP server?
Yes — you can create custom agent actions for your SAP S/4HANA MCP server using Connector Builder. It's an integration agent your coding assistant (Claude Code, Cursor, or Copilot) can invoke to research SAP S/4HANA's API, generate production-ready connector YAML, test against the live API, and validate before you ship.
When should I NOT use a SAP S/4HANA MCP server?
Skip a SAP S/4HANA MCP server if your integration is purely software-to-software — direct SAP S/4HANA API integration is simpler when no AI agent is involved. For deterministic, compliance-critical operations (financial transactions, regulatory reporting), direct API gives you predictable behavior without agent-driven decision-making. MCP shines when AI agents need to dynamically discover and call SAP S/4HANA actions at runtime.
What AI frameworks and AI clients does the StackOne SAP S/4HANA MCP server support?
The StackOne SAP S/4HANA MCP server supports both. MCP clients (paste-and-go apps): Claude Desktop, Claude Code, Cursor, VS Code, Goose. Agent frameworks (code SDKs you build with): OpenAI Agents SDK, Anthropic, Vercel AI, Google ADK, CrewAI, Pydantic AI, LangChain, LangGraph, Azure AI Foundry.

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.