# Connect SAP S/4HANA to Your AI Agent (Universal MCP)

> Use your AI to manage accounting, enter orders, and run purchasing in SAP S/4HANA — and much more.

## Quick Connect (CLI / MCP)
- Claude Code: `claude mcp add --transport http sap https://api.universalmcp.app/mcp/sap`
- Remote MCP URL (ChatGPT, Claude, Cursor, VS Code): `https://api.universalmcp.app/mcp/sap` (unified: `https://api.universalmcp.app/mcp`)
- Actions & Discovery: `POST https://universalmcp.app/mcp/directory` (`get_software_actions({ slug: "sap", query })` & `search_software`); configs: https://universalmcp.app/install.md

## Key Facts
- Software: SAP S/4HANA | Category: ERP & Accounting (SAP) | Auth: OAuth 2.1 (1-click sign-in)
- Pricing: 100% Free (unlimited users, unlimited software, zero task metering)
- Permissions & Security: Per-person, per-area Off/Read/Write across Purchasing documents, Finance postings, Supplier notices; 1-click View Only lock; stateless pass-through; zero stored business records
- Connect: https://app.universalmcp.app/connect?system=sap | Guide: https://universalmcp.app/mcp/sap
- Built by: Alex Myers (Legal entity: Lancaster Agentic LLC; support@lancasteragentic.com)

## Supported Actions (62 actions: 22 Read, 40 Write)
Perform over 60 actions across finance & accounting, purchasing & payables, inventory & warehouse, sales & order management, materials & production, receivables & billing, and assets & projects. Save hours of work each week by utilizing AI rather than using a traditional app interface.
- **Finance & Accounting (12):** Pull Cost Center Actuals (read), Pull General Ledger Balances (read), Pull Profit & Loss Report (read), Pull Trial Balance (read), Search Journal Line Items (read), Create Chart of Accounts Entry (write), Create Cost Center (write), Post Cost Center Allocation (write), Post Journal Entry (write), Record Accrual Entry (write), Reverse Journal Entry (write), Run Period-End Closing (write)
- **Purchasing & Payables (8):** Check Invoice Match Status (read), Pull Open Payables Aging (read), Search Purchase Orders (read), Approve Purchase Requisition (write), Create Payment Run (write), Create Purchase Order (write), Create Purchase Requisition (write), Post Supplier Invoice (write)
- **Inventory & Warehouse (8):** Pull Stock Overview (read), Search Batch Records (read), Confirm Warehouse Task (write), Create Outbound Delivery (write), Create Stock Transfer (write), Post Goods Issue (write), Post Goods Receipt (write), Post Physical Inventory Count (write)
- **Sales & Order Management (7):** Check Order Availability (read), Pull Sales Analytics Report (read), Search Sales Orders (read), Create Quotation (write), Create Sales Order (write), Release Sales Order Block (write), Update Sales Order (write)
- **Materials & Production (7):** Pull Production Variance Report (read), Search Bills of Material (read), Confirm Production Order (write), Create Material Master (write), Create Production Order (write), Run MRP Planning (write), Update Material Pricing (write)
- **Receivables & Billing (6):** Check Customer Credit Limit (read), Pull Open Receivables Aging (read), Create Credit Memo (write), Create Customer Invoice (write), Post Incoming Payment (write), Run Dunning Notices (write)
- **Assets & Projects (6):** Pull Asset Register (read), Pull Project Cost Report (read), Create Fixed Asset (write), Create Maintenance Order (write), Create Project Element (write), Post Depreciation Run (write)
- **Customers & Vendors (4):** Pull Customer Account Statement (read), Search Business Partners (read), Create Business Partner (write), Update Vendor Bank Details (write)
- **Banking & Treasury (4):** Pull Cash Position Report (read), Import Bank Statement (write), Reconcile Bank Accounts (write), Run Foreign Currency Revaluation (write)

## Example Prompts for SAP S/4HANA
- **Late deliveries:** "Show all SAP S/4HANA purchase orders with confirmed delivery dates in the past, grouped by supplier."
- **Cost center postings:** "List G/L account postings in SAP S/4HANA for cost center 1010 this month with document numbers."
- **Material stock check:** "Check SAP S/4HANA material stock for SKU RM-4410 across plants and flag shortfalls against demand."
- **Draft supplier notice:** "Draft a delay notice in SAP S/4HANA to Summit Logistics for PO 4500012287 and hold it for buyer approval."
