AWS Deep Learning Containers MCP Server
Provides tools for discovering, building, deploying, and troubleshooting AWS Deep Learning Containers (DLC) images. Supports multiple frameworks and instance recommendations.
README
AWS Deep Learning Containers MCP Server
A Model Context Protocol (MCP) server for AWS Deep Learning Containers (DLC) that provides tools for discovering, building, deploying, and troubleshooting DLC images.
Features
- Dynamic DLC Image Discovery: Automatically fetches latest images from AWS DLC GitHub - always up-to-date
- Image Building: Create custom Dockerfiles and build images based on DLC base images
- Multi-Platform Deployment: Deploy to SageMaker, EC2, ECS, and EKS
- Instance Recommendations: Get GPU instance recommendations based on model size and budget
- Upgrade Support: Analyze upgrade paths and generate migration Dockerfiles
- Troubleshooting: Diagnose common DLC issues with actionable solutions
- Best Practices: Security, cost optimization, and deployment guidance
- No AWS Credentials Required: Discovery tools work without AWS credentials
Quick Start
Option 1: Run with uv (Recommended)
# Clone the repo
git clone https://github.com/aws-samples/sample-dlc-mcp-server.git
cd sample-dlc-mcp-server
# Run directly with uv
uv run dlc-mcp-server
Option 2: Run with Docker
# Build the image
docker build -t dlc-mcp-server .
# Run the container
docker run -it --rm \
-v ~/.aws:/root/.aws:ro \
dlc-mcp-server
Option 3: Install locally
pip install -e .
dlc-mcp-server
MCP Client Configuration
For Amazon Q CLI
Add to ~/.aws/amazonq/mcp.json:
{
"mcpServers": {
"dlc-mcp-server": {
"command": "uv",
"args": ["--directory", "/path/to/sample-dlc-mcp-server", "run", "dlc-mcp-server"],
"timeout": 120000
}
}
}
For Kiro
Add to .kiro/settings/mcp.json:
{
"mcpServers": {
"dlc-mcp-server": {
"command": "uv",
"args": ["--directory", "/path/to/sample-dlc-mcp-server", "run", "dlc-mcp-server"],
"timeout": 120000
}
}
}
Using Docker
{
"mcpServers": {
"dlc-mcp-server": {
"command": "docker",
"args": ["run", "-i", "--rm", "-v", "~/.aws:/root/.aws:ro", "dlc-mcp-server"],
"timeout": 120000
}
}
}
Available Tools
DLC Discovery
| Tool | Description |
|---|---|
search_dlc_images |
Search DLC images by framework, version, accelerator, platform |
get_dlc_recommendation |
Get image recommendations based on model type and size |
list_dlc_frameworks |
List all available frameworks with versions |
get_llm_serving_options |
Compare vLLM, SGLang, DJL, NeuronX options |
compare_dlc_images |
Side-by-side image comparison |
refresh_dlc_catalog |
Force refresh image catalog from GitHub |
Image Building
| Tool | Description |
|---|---|
create_custom_dockerfile |
Generate Dockerfile with custom packages |
build_custom_dlc_image |
Build and optionally push to ECR |
Deployment
| Tool | Description |
|---|---|
deploy_to_sagemaker |
Deploy to SageMaker endpoint |
deploy_to_ec2 |
Launch EC2 instance with DLC |
deploy_to_ecs |
Deploy to ECS cluster |
deploy_to_eks |
Deploy to EKS cluster |
get_sagemaker_endpoint_status |
Check endpoint status |
Instance Advisor
| Tool | Description |
|---|---|
get_instance_recommendation |
GPU instance recommendations by model size |
list_gpu_instances |
List available GPU instances with pricing |
estimate_training_cost |
Estimate training job costs |
Troubleshooting
| Tool | Description |
|---|---|
analyze_dlc_error |
Analyze error logs with root cause analysis |
diagnose_common_issues |
Diagnose common DLC problems |
get_framework_compatibility_info |
Check framework version compatibility |
Best Practices
| Tool | Description |
|---|---|
get_security_best_practices |
Security guidelines |
get_cost_optimization_tips |
Cost reduction strategies |
get_deployment_best_practices |
Platform-specific guidance |
get_framework_specific_best_practices |
Framework optimization tips |
Supported Frameworks
| Framework | Latest Version | Use Cases |
|---|---|---|
| PyTorch | 2.9.0 | Training, Inference |
| TensorFlow | 2.19.0 | Training, Inference |
| vLLM | 0.15.1 | LLM Inference |
| SGLang | 0.5.8 | LLM Inference |
| HuggingFace PyTorch | 2.6.0 | NLP Training/Inference |
| AutoGluon | 1.5.0 | AutoML |
| DJL | 0.36.0 | Large Model Inference |
| PyTorch NeuronX | 2.9.0 | Trainium/Inferentia |
Example Usage
Find vLLM images
Search for vLLM images for SageMaker inference
Deploy LLM to SageMaker
Deploy Qwen2.5-32B using vLLM on SageMaker with the right instance type
Get instance recommendations
What instance should I use for a 35GB model?
Troubleshoot errors
Help me fix this CUDA out of memory error: [paste error]
Configuration
Environment variables:
| Variable | Description | Default |
|---|---|---|
ALLOW_WRITE |
Enable build/deploy operations | false |
ALLOW_SENSITIVE_DATA |
Enable detailed logs access | false |
FASTMCP_LOG_LEVEL |
Logging level | ERROR |
FASTMCP_LOG_FILE |
Log file path | None |
Development
# Install dev dependencies
pip install -e ".[dev]"
# Run tests
python -m pytest tests/ -v
# Run linting
ruff check .
See DEVELOPMENT.md for more details.
License
This library is licensed under the MIT-0 License.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。
mcp-server-qdrant
这个仓库展示了如何为向量搜索引擎 Qdrant 创建一个 MCP (Managed Control Plane) 服务器的示例。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。