Docker Forge MCP
Generates, audits, and tunes Docker Compose stacks inside Claude Code.
README
Docker Forge MCP
Generate, audit, and tune Docker Compose stacks inside Claude Code — before you copy-paste anything.
Most DevOps work in AI assistants means prompting for a compose file, getting something almost-right, then spending 30 minutes fixing healthchecks, resource limits, and Traefik labels by hand. Docker Forge does all that before the compose file lands in your project.
Pure logic, no API keys, $0 to run.
4 tools
| Tool | What it does | Tier |
|---|---|---|
generate_stack |
Generate a production-ready Docker Compose from a description | Free |
audit_compose |
Audit your compose for security & best-practice issues (scored 0-100) | Free |
add_traefik |
Generate Traefik v3 labels with middlewares | Free |
list_stacks |
List all available stack templates | Free |
generate_dockerfile |
Multi-stage, hardened Dockerfile for Node/Python/Go | Pro |
generate_env |
Extract all ${VARS} from a compose and generate .env template |
Pro |
Quick start
npx -y docker-forge-mcp
Or add to your Claude Code MCP config:
{
"mcpServers": {
"docker-forge": {
"command": "npx",
"args": ["-y", "docker-forge-mcp"]
}
}
}
Usage examples
Generate a stack:
"Generate a Docker Compose for a Node.js API with PostgreSQL and Redis, domain api.myapp.com"
Audit an existing compose:
"Audit this docker-compose.yml for security issues" → paste your file
Add Traefik:
"Add Traefik v3 labels for my 'backend' service on port 3000 at api.example.com with rate limiting"
Supported stacks
| Stack type | Services |
|---|---|
node-postgres-redis |
Node.js + PostgreSQL + Redis |
node-postgres |
Node.js + PostgreSQL |
node-redis |
Node.js + Redis |
python-postgres-redis-celery |
FastAPI + PostgreSQL + Redis + Celery |
python-postgres |
FastAPI/Django + PostgreSQL |
wordpress |
WordPress + MySQL |
nextjs-postgres |
Next.js standalone + PostgreSQL |
monitoring |
Prometheus + Grafana + node-exporter |
nginx |
Nginx static server |
What's in every generated stack
restart: unless-stoppedon all servicesdeploy.resources.limits(CPU + memory) on every containerhealthcheckon every servicedepends_onwithcondition: service_healthy- Named volumes (not anonymous)
- PostgreSQL pinned to
16-alpine, Redis to7-alpine - Optional Traefik v3 labels + HTTP→HTTPS redirect
Audit checks
Critical (score -20 each): privileged mode, root user, docker socket mounted, plaintext secrets in env, database ports exposed to internet
Warning (score -5 each): missing restart policy, no resource limits, :latest image tag, no healthcheck, bare depends_on without service_healthy
Info (score -1): no network isolation, simple depends_on
Traefik middleware presets
rate-limit, security-headers (HSTS + XSS + nosniff), auth-basic, compress, redirect-https
License
MIT — frederic.suretat.com/lab
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.