Back to Apps

Container Diet
by k1lgor
AI-powered Docker image optimization tool that analyzes Dockerfiles and images to reduce bloat and security risks.
0 stars
Works in:CursorCodex
Exposes:Tools
What it does
Container Diet acts as an AI-driven dietician for your Docker containers. It analyzes Docker images and Dockerfiles to identify bloated layers, security vulnerabilities, and missing best practices, providing actionable (and often sassy) advice to slim down your images for better performance and security.
Tools
analyze_dockerfile: Performs AI analysis on a Dockerfile with optional auto-fix generation to create a optimizedDockerfile.diet.analyze_image: Breaks down image layers and provides AI-driven optimization advice.get_optimization_advice: Provides general container optimization guidance based on provided context.get_image_summary: Returns quick metrics and summaries of an image without consuming AI tokens.
Installation
Add the following to your claude_desktop_config.json:
{
"mcpServers": {
"container-diet": {
"command": "container-diet",
"args": ["mcp", "server"]
}
}
}
Note: Ensure you have run container-diet init-config to set up your AI provider keys in ~/.config/container-diet/config.yaml.
Supported hosts
- Claude Desktop
- Cursor
- Claude Code
- Codex
Quick install
go install github.com/k1lgor/container-diet/cmd/cli@latestInformation
- Pricing
- free
- Published
- 6/14/2026
- stars
- 0
Categories
Choose your AI client and follow the steps below.
Codex
Add to mcp config: { "container-diet": { "command": "container-diet", "args": ["mcp", "server"] } }Cursor
Add to mcp.json: { "container-diet": { "command": "container-diet", "args": ["mcp", "server"] } }Claude Desktop
{
"mcpServers": {
"container-diet": {
"command": "container-diet",
"args": ["mcp", "server"]
}
}
}





