Material Master Data MCP

Material Master Data MCP

s4mcpdemo•byshenruiyang

An MCP service that queries SAP material master data, runnable as an HTTP API or in stdio mode for integration with smart assistants like Cursor.

License: MIT•Runtime: Awaiting documentation review•Category: databases storage

WHAT IT DOES

  • •Retrieves detailed attributes and characteristics of SAP materials.
  • •Searches for materials based on description text.
  • •Supports querying material descriptions in multiple languages such as Chinese, English, and German.
  • •Operates in both HTTP API and stdio modes.

BEST FOR

  • •Querying SAP material master data from compatible smart assistants.
  • •Looking up a material's basic attributes by material number.
  • •Finding materials by description across languages.

ABOUT S4MCPDEMO

Material Master Data MCP is cataloged as an MCP server attributed to shenruiyang. An MCP service that queries SAP material master data, runnable as an HTTP API or in stdio mode for integration with smart assistants like Cursor. It is categorized under databases storage. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: MIT. Check the source repository's current license and terms before using, modifying or distributing this software.

能力检查器

能力定义尚未审核。未核验的采集内容不会作为可信接口展示。

Tools (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Resources (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Prompts (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for Material Master Data MCP are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

What SAP material fields can the BasicData tool return?

It returns fields including material type, creation date, gross weight, base unit of measure, and material group, plus many more SAP material master data fields.

How is the service authenticated?

It uses JWT-based API key authentication, with API keys containing user email, SAP connection information, and an expiration date.

上游原版 README

在 GitHub 查看同一版本原文

Readme.md · 13297143750c · 采集于 2026-11-13 14:03:12 UTC

保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。

当前显示最后一次成功采集的文档快照,请以来源页面为准。

Material Master Data MCP

Version: 1.0.1
Author: ORBIS Consulting Shanghai Co.,Ltd
License: MIT
Last Updated: April 11, 2025
Limitation: This function is only for demonstration, cannot use in a productive environment. If you need, please contact the author: ruiyang.shen@orbis.de

Material Master Data MCP (Master Control Program) is a service for interacting with SAP systems to provide master data query functionality. The service can run as an HTTP API server or as a tool in standard input/output mode, supporting integration with smart assistants like Cursor.

Features

  • Dual Mode Operation: Supports both HTTP API and standard input/output (stdio) modes
  • Material Basic Information Query: Retrieves detailed attributes and characteristics of materials
  • Material Description Search: Finds relevant materials based on description text
  • Multilingual Support: Supports querying material descriptions in different languages (Chinese, English, German, etc.)
  • Type Safety: Uses Pydantic models for input validation
  • Complete API Documentation: Built-in API documentation using OpenAPI specification
  • MCP.so Hosting Support: Can be deployed to MCP.so for cloud-based access
  • API Key Authentication: Uses JWT for secure authentication

Installation

Requirements

  • Python 3.7+
  • Access to a SAP S/4HANA system

Installation Steps

  1. Clone this repository:
git clone https://github.com/SHENRUIYANG/S4MCPDEMO.git
cd S4MCPDEMO
  1. Install dependencies:
pip install -r requirements.txt
  1. Configure SAP connection (optional, can also use environment variables):

Create a .env file in the project root directory with the following content:

SAP_HOST=your_sap_host
SAP_PORT=your_sap_port
SAP_USER=your_sap_username
SAP_PASSWORD=your_sap_password
JWT_SECRET=your-secret-key  # 用于生成和验证 API Key 的密钥
  1. Generate API Key:

For security reasons, the API key generation script is not included in the public repository. If you need to generate API keys for this service, please contact the author directly.

API keys use JWT format and include:

  • User email
  • SAP connection information (host, port, username, password)
  • Expiration date

Note: API keys contain sensitive connection information and should be kept secure.

Usage

Start as HTTP Server

python MM03_MCP.py --mode=http --host=0.0.0.0 --port=5003

This will start a FastAPI server, listening on the specified port (default 5003).

Start as Standard Input/Output (stdio) Tool

python MM03_MCP.py --mode=stdio

This will start the program and wait for commands on standard input, suitable for integration with smart assistants like Cursor.

Start as REST Server (for MCP.so)

python MM03_MCP.py --mode=rest --host=0.0.0.0 --port=5003 --endpoint=/rest

This will start a REST server suitable for MCP.so hosting.

API Endpoints

After starting the HTTP server, the following API endpoints are available:

  • GET /.well-known/mcp-manifest.json: Get API manifest
  • POST /mcp_MM03_BasicData: Get material basic information
  • POST /mcp_MM03_DescToMaterial: Search materials by description
  • POST /mcp_MM03_Description_Search: Get material descriptions in specific languages
  • GET /health: Health check endpoint

API Documentation

After starting the HTTP server, you can view the complete API documentation by visiting http://localhost:5003/docs.

Example Usage

Get Material Basic Information

curl -X POST "http://localhost:5003/mcp_MM03_BasicData" \
  -H "Content-Type: application/json" \
  -d '{"material": "FG126"}' \
  -H "Authorization: Bearer your-api-key"

Search Materials by Description

curl -X POST "http://localhost:5003/mcp_MM03_DescToMaterial" \
  -H "Content-Type: application/json" \
  -d '{"description": "serial", "language": "EN"}' \
  -H "Authorization: Bearer your-api-key"

Get Material Description in a Specific Language

curl -X POST "http://localhost:5003/mcp_MM03_Description_Search" \
  -H "Content-Type: application/json" \
  -d '{"material": "FG126", "language": "EN"}' \
  -H "Authorization: Bearer your-api-key"

MCP.so Integration

This project is designed to be compatible with MCP.so hosting. The repository includes all necessary files:

  • chatmcp.yaml: Configuration for MCP.so integration
  • Dockerfile: Container image definition for deployment
  • LICENSE: MIT license as required for commercial-friendly deployment

To deploy this service to MCP.so:

  1. Submit the GitHub repository URL to the MCP.so platform
  2. The service will be reviewed and deployed by the MCP.so team
  3. Once approved, it will be available for use in the MCP Playground

Docker Deployment

You can also run the service in a Docker container:

# Build the Docker image
docker build -t mcp/mm03-mcp .

# Run the container
docker run -i --rm -e SAP_USER=your_username -e SAP_PASSWORD=your_password mcp/mm03-mcp

API Details

BasicData

Get basic information for a material.

Input Parameters:

  • material: Material number (e.g., "FG126")

Return Fields:

  • Material type (ProductType)
  • Creation date (CreationDate)
  • Gross weight (GrossWeight)
  • Base unit of measure (BaseUnit)
  • Material group (ProductGroup)
  • And many more SAP material master data fields

DescToMaterial

Search materials by description text.

Input Parameters:

  • description: Description text (e.g., "valve")
  • max_results: Maximum number of results (default: 50)
  • language: Language code (e.g., "EN" for English, "ZH" for Chinese, "ALL" for all languages, default is "ZH")

Return Fields:

  • material: Material number
  • description: Material description
  • language: Language code

Get description information for a specific material in a specified language.

Input Parameters:

  • material: Material number (e.g., "FG126")
  • language: Language code (e.g., "EN" for English, "ZH" for Chinese, default is "EN")

Return Fields:

  • material: Material number
  • description: Material description
  • language: Language code

Dependencies

  • FastAPI: Web framework
  • Uvicorn: ASGI server
  • httpx: Asynchronous HTTP client
  • python-dotenv: Environment variable management
  • Pydantic: Data validation
  • FastMCP: MCP core library

Security Considerations

  • In production environments, it is recommended to enable HTTPS
  • Do not hardcode credentials in code; use environment variables or secure credential management solutions
  • Ensure that only authorized users can access the API

License

MIT License

Contributing

Issues and pull requests are welcome!

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for Material Master Data MCP from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/s4mcpdemo)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

下载与拉取统计

来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。

尚无已审核的包 / 镜像标识,暂不展示下载统计。

Related databases storage MCP Servers

Alternative and complementary servers in the same category

View all in databases storage →
AIStor MCP server
mcp-server-aistor•minio

This is a Model Context Protocol (MCP) server for interacting with AIStor object stores.

Repository stats unavailable
Databases & Storage
InfluxDB v2 MCP Server
influxdb-mcp-server•idoru

A Model Context Protocol (MCP) server that exposes access to an InfluxDB v2 instance using the InfluxDB OSS API v2.

Repository stats unavailable
Databases & Storage