Skip to main content

SAP Agent AI Demo MCP

This project implements a Model Context Protocol (MCP) server for a specific SAP Agent AI demo scenario. It simulates a connection to an SAP ERP system (SD, MM, FI, PP modules) without requiring a real SAP instance.

Features

  • Mock SAP Connector: Simulates RFC calls and data retrieval.
  • MCP Tools:
    • get_sales_orders: Query sales orders.
    • create_sales_order: Simulate order creation.
    • get_purchase_orders: Query purchase orders.
    • check_inventory: Check stock levels.
    • get_account_balance: Query financial balances.
    • process_customer_document: Simulate document intelligence processing.

Installation

  1. Install dependencies:
    pip install -r requirements.txt
    

Usage

Run Local Verification

To test the tools without an MCP client:

python test_tools.py

Run MCP Server

To start the MCP server (stdio mode) for use with an Agent/Client:

python server.py

Configuration

The mock data logic is located in sap_connector.py. You can modify the _mock_* methods to change the returned data.

Metadata

Release files for mcp-sap-demo 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mcp-sap-demo 0.1.1
File Size Uploaded
mcp_sap_demo-0.1.1.tar.gz 3.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for mcp-sap-demo 0.1.1
File Interpreter ABI Platform
mcp_sap_demo-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 9.0 kB

Release files / mcp_sap_demo-0.1.1.tar.gz

Download URL mcp_sap_demo-0.1.1.tar.gz
Size 3.7 kB
Tags Source
SHA-256 checksum
How to use checksums
09e66367a872890acef459e0235a64db41d6cc8a60b3040ef9c1dea52a8ee393
BLAKE2b-256 checksum
How to use checksums
c47e57de3df2c3305a67a240321d9dbea49c929d747e13c70ac850488df9d82b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.0

Release files / mcp_sap_demo-0.1.1-py3-none-any.whl

Download URL mcp_sap_demo-0.1.1-py3-none-any.whl
Size 5.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2daa5e0bc652c7f33b1d2feacce6f61ae62d55e4eac16ac65fda9bbb71ad0a87
BLAKE2b-256 checksum
How to use checksums
00de3122ec434adfe70f51875155ba2ad60392af99fbc5a0edb3b9c99e1e79c0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.0

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page