Defang CLI & MCP server – take apps defined with Docker Compose from local dev to secure, scalable cloud deployments in minutes.
https://github.com/DefangLabs/defangSkip the cloud deployment headaches. Defang's MCP server takes your existing Docker Compose setup and handles all the infrastructure complexity—security groups, load balancers, container registries, auto-scaling—so you can deploy production-ready apps without becoming a DevOps expert.
You've got a perfectly working Docker Compose file. Local development is smooth, but now you need to deploy to production. Suddenly you're wrestling with:
Most developers either spend weeks learning infrastructure-as-code or compromise on production readiness. Defang eliminates this choice.
Defang acts as an intelligent bridge between your Docker Compose file and production infrastructure. Point it at your docker-compose.yml, and it:
The generated infrastructure follows cloud best practices—private subnets, security groups, auto-scaling groups, and proper IAM roles—without you having to learn any of it.
Rapid Prototyping to Production
# You have a working compose file
defang init --provider aws
defang deploy
# Your app is now running on AWS with production-grade infrastructure
Multi-Environment Deployments Deploy the same compose file to staging and production with different configurations:
defang deploy --env staging
defang deploy --env prod
IDE Integration for Seamless Workflow With the MCP server running in VS Code, Cursor, or Windsurf, you can deploy directly from your editor. No context switching between terminal and IDE—just ask your AI assistant to deploy your changes.
Multi-Cloud Strategy Test your app across different cloud providers without rewriting infrastructure:
defang init --provider aws # Deploy to AWS
defang init --provider gcp # Same app, now on Google Cloud
defang init --provider do # Or DigitalOcean
MCP Server Mode When running as an MCP server, Defang integrates directly with AI-powered editors. You can:
CLI Integration The CLI works alongside your existing development workflow:
defang generate uses AI to scaffold new servicesdefang preview shows you exactly what infrastructure will be createddefang status gives you real-time deployment informationdefang destroy cleans up everything when you're doneInstall Defang
brew install DefangLabs/defang/defang
Initialize your project
cd your-docker-compose-project
defang init --provider aws
Deploy
defang deploy
Your Docker Compose services are now running in production with enterprise-grade infrastructure.
Every developer knows Docker Compose, but most don't want to become infrastructure specialists. Defang keeps you in your comfort zone while ensuring your deployments are secure, scalable, and maintainable. You write applications, not YAML manifests.
The MCP server integration means you can stay in your editor and deploy through natural language commands. No more switching between documentation, CLI tools, and cloud consoles—just describe what you want to deploy, and it happens.
Whether you're building a side project that needs to scale or migrating legacy applications to the cloud, Defang handles the infrastructure complexity so you can focus on building features your users actually care about.