Skip to main content

SAP Agent AI Demo MCP

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mcp_sap_demo-0.1.1.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mcp_sap_demo-0.1.1-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

Details for the file mcp_sap_demo-0.1.1.tar.gz.

File metadata

  • Download URL: mcp_sap_demo-0.1.1.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.0

File hashes

Hashes for mcp_sap_demo-0.1.1.tar.gz
Algorithm Hash digest
SHA256 09e66367a872890acef459e0235a64db41d6cc8a60b3040ef9c1dea52a8ee393
MD5 2cb931e34cb556bec31c7e8213da74a9
BLAKE2b-256 c47e57de3df2c3305a67a240321d9dbea49c929d747e13c70ac850488df9d82b

See more details on using hashes here.

File details

Details for the file mcp_sap_demo-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: mcp_sap_demo-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 5.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.0

File hashes

Hashes for mcp_sap_demo-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2daa5e0bc652c7f33b1d2feacce6f61ae62d55e4eac16ac65fda9bbb71ad0a87
MD5 8dc43a629e039b2a95853f7dd8137286
BLAKE2b-256 00de3122ec434adfe70f51875155ba2ad60392af99fbc5a0edb3b9c99e1e79c0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page