one-kash/sap-ec2-converter-mcp-server
If you are the rightful owner of sap-ec2-converter-mcp-server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
The SAP EC2 Converter MCP Server is designed to convert VM specifications into SAP-certified EC2 instances, supporting both SAP HANA and general SAP certifications.
convert_vm_to_sap_ec2
Converts VM CPU and memory specifications to matching SAP-certified EC2 instances.
list_sap_certified_instances
Lists all available SAP-certified EC2 instances with their specifications.
get_sap_instance_details
Gets detailed information about a specific SAP-certified EC2 instance.
SAP EC2 Converter MCP Server
An MCP (Model Context Protocol) server that converts VM CPU and memory specifications to SAP-certified EC2 instances, with differentiation between SAP HANA and general SAP certifications.
Features
- Convert VM specifications (CPU cores, memory GB) to matching SAP-certified EC2 instances
- Differentiate between SAP HANA certified instances and general SAP certified instances
- Provide detailed instance information including pricing estimates
- Support for different AWS regions
- Filter by specific SAP workload requirements
Installation
pip install -e .
Usage
The server provides the following tools:
1. convert_vm_to_sap_ec2
Converts VM CPU and memory specifications to matching SAP-certified EC2 instances.
Parameters:
cpu_cores
(int): Number of CPU cores requiredmemory_gb
(int): Amount of memory in GB requiredsap_certification_type
(str): Type of SAP certification ("hana", "general", or "both")region
(str, optional): AWS region (defaults to "us-east-1")workload_type
(str, optional): Specific SAP workload type
2. list_sap_certified_instances
Lists all available SAP-certified EC2 instances with their specifications.
Parameters:
certification_type
(str): Type of SAP certification ("hana", "general", or "both")region
(str, optional): AWS region (defaults to "us-east-1")
3. get_sap_instance_details
Gets detailed information about a specific SAP-certified EC2 instance.
Parameters:
instance_type
(str): EC2 instance type (e.g., "r5.xlarge")region
(str, optional): AWS region (defaults to "us-east-1")
SAP Certification Types
SAP HANA Certified
These instances are specifically certified for SAP HANA workloads and meet strict requirements for:
- Memory-to-CPU ratios
- Network performance
- Storage performance
- Memory bandwidth
General SAP Certified
These instances are certified for general SAP applications including:
- SAP NetWeaver
- SAP S/4HANA (application layer)
- SAP Business Suite
- Other SAP applications
Example Usage
# Convert VM specs to SAP-certified instances
result = await convert_vm_to_sap_ec2(
cpu_cores=8,
memory_gb=64,
sap_certification_type="hana",
region="us-east-1"
)
# List all SAP HANA certified instances
instances = await list_sap_certified_instances(
certification_type="hana",
region="us-east-1"
)
# Get details for a specific instance
details = await get_sap_instance_details(
instance_type="r5.2xlarge",
region="us-east-1"
)
Configuration
The server can be configured using environment variables:
SAP_EC2_DEFAULT_REGION
: Default AWS region (default: "us-east-1")SAP_EC2_PRICING_CACHE_TTL
: Cache TTL for pricing data in seconds (default: 3600)
Development
# Install development dependencies
pip install -e ".[dev]"
# Run tests
pytest
# Format code
black src/
isort src/
# Type checking
mypy src/
License
MIT License