Skip to main content

MCP server for searching SAP test cases using Azure AI Search

Project description

SAP Search MCP Server v2.0

Enterprise MCP server for semantic search over SAP S/4HANA test cases using Azure AI Search.

Features

2-Tool Architecture - Lightweight summaries + on-demand details
Markdown Tables - Procedure steps in clean table format
Auto-Upload - Documents uploaded automatically on first run
Vector Search - Semantic search using Azure OpenAI embeddings
240+ SAP Test Cases - S/4HANA 2023 FPS02 Business Process Documents

Quick Start

1. Install

pip install sap-search-mcp

2. Set Environment Variables

Create a .env file:

# Azure AI Search
AZURE_SEARCH_ENDPOINT=https://your-service.search.windows.net
AZURE_SEARCH_KEY=your_key

# Azure OpenAI (for embeddings)
AZURE_SEARCH_OPENAI_ENDPOINT=https://your-openai.cognitiveservices.azure.com/
AZURE_SEARCH_OPENAI_KEY=your_key

# Optional
INDEX_KNOWLEDGEHOUSE=knowledgehouse-en
INDEX_QUERYTABLE=querytable
EMBEDDING_MODEL=text-embedding-3-large

3. Use with Claude Desktop

Edit %APPDATA%\Claude\claude_desktop_config.json:

{
  "mcpServers": {
    "sap-search": {
      "command": "sap-search-mcp",
      "env": {
        "AZURE_SEARCH_ENDPOINT": "https://your-service.search.windows.net",
        "AZURE_SEARCH_KEY": "your_key",
        "AZURE_SEARCH_OPENAI_ENDPOINT": "https://your-openai.cognitiveservices.azure.com/",
        "AZURE_SEARCH_OPENAI_KEY": "your_key"
      }
    }
  }
}

Restart Claude Desktop.

Tools

1. search_sap_test_cases

Search SAP test cases with flexible results.

Single result (full details):

{"prompt": "Create purchase order", "top_k": 1}

Multiple summaries:

{"prompt": "Invoice processing", "top_k": 5}

2. get_test_case_details

Get full procedure table for a specific test case.

{
  "section_header": "Create Purchase Order - ME21N",
  "original_prompt": "purchase order"
}

Example Usage

User: "Show me 5 test cases for sales orders"
→ Returns 5 lightweight summaries

User: "Show me details for option 2"
→ Returns full procedure table in markdown format

Manual Upload (Optional)

Documents are uploaded automatically on first run. To manually re-upload:

sap-search-upload

Development

git clone <repo>
cd sap_search_mcp
pip install -e .
python test.py

What's New in v2.0

  • 🎯 Simplified 2-tool architecture (was 3 tools)
  • 📊 Markdown table formatting for procedures
  • 🚀 Auto-upload on server start
  • ⚡ Lightweight summaries for multiple results
  • 🎨 Better output formatting

License

MIT

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

sap_search_mcp-1.1.4.tar.gz (28.0 MB view details)

Uploaded Source

Built Distribution

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

sap_search_mcp-1.1.4-py3-none-any.whl (28.0 MB view details)

Uploaded Python 3

File details

Details for the file sap_search_mcp-1.1.4.tar.gz.

File metadata

  • Download URL: sap_search_mcp-1.1.4.tar.gz
  • Upload date:
  • Size: 28.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for sap_search_mcp-1.1.4.tar.gz
Algorithm Hash digest
SHA256 b7472edc206c1b5c76a48edfe2449e069986266cf098c5623f79786f541873ee
MD5 669ad51a4352a88b637d3414c5a80954
BLAKE2b-256 7f590b2bfbdfda1211e03e6f01efa42a95a4bf56ee2701644a6ad10d6c9b1aef

See more details on using hashes here.

File details

Details for the file sap_search_mcp-1.1.4-py3-none-any.whl.

File metadata

  • Download URL: sap_search_mcp-1.1.4-py3-none-any.whl
  • Upload date:
  • Size: 28.0 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for sap_search_mcp-1.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 8223b1d1335a14104dc8ce204a4624aac502b21d775d7aaf268a58e3bb17b28e
MD5 d6434a123b4d4855926a89b927dbe029
BLAKE2b-256 ea68ea4e81a5393d19b8963e6e8c85bbcc3efe37d4e84e3ee434dca51e117e9c

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