Defang
@DefangLabs
About Defang
Defang CLI. Develop Once, Deploy Anywhere. Take your app from Docker Compose to a secure and scalable deployment on your favorite cloud in minutes.
Config
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"defang": {
"command": "npx",
"args": [
"-y",
"defang@latest",
"mcp",
"serve"
]
}
}
}Tools
No tools detected
Fetch the live tool list by running this server in a temporary sandbox using the button above.
Overview
What is Defang?
The Defang MCP Server is an MCP server equipped with Defang tools (deploy, services, destroy) to help users manage their services seamlessly using AI coding agents within supported IDEs.
How to use Defang?
Install the npm package manager, then run npx -y defang@latest mcp setup --client=<your-ide> to connect to your IDE. After setup, start the server with npx -y defang@latest mcp serve. You can then access the Defang MCP tools through the AI agent chat in your IDE.
Key features of Defang
- Offers three MCP tools: deploy, services, destroy.
- Deploy scans for Dockerfiles and compose.yaml files.
- Services displays deployed service details and status.
- Destroy terminates all deployed services for a project.
- Supports multiple IDEs: Cursor, Windsurf, Codex, VS Code, VS Code Insiders, and Claude Desktop.
- Setup and serve via simple npx commands.
Use cases of Defang
- Deploy services from a project directory using an AI coding agent.
- Monitor deployed services' status, public URLs, and IDs.
- Quickly tear down all services associated with a project.
- Integrate service management into an AI-assisted development workflow.
FAQ from Defang
What IDEs are supported?
Supported IDEs include Cursor, Windsurf, Codex, VS Code, VS Code Insiders, and Claude Desktop.
What does the deploy tool do?
The deploy tool scans your project directory for Dockerfiles and compose.yaml files, then deploys the detected service(s) using Defang. Deployment progress can be monitored in the Defang Portal.
How do I set up the Defang MCP Server?
Run npx -y defang@latest mcp setup --client=<your-ide> for your preferred IDE, then start the server with npx -y defang@latest mcp serve.
What information does the services tool provide?
The services tool shows Service Name, Deployment ID, Public URL, and Service Status for all currently deployed services.
What does the destroy tool require?
Given a project name or directory, the destroy tool identifies and terminates all services deployed with Defang.
Frequently asked questions
What IDEs are supported?
Supported IDEs include Cursor, Windsurf, Codex, VS Code, VS Code Insiders, and Claude Desktop.
What does the `deploy` tool do?
The `deploy` tool scans your project directory for Dockerfiles and `compose.yaml` files, then deploys the detected service(s) using Defang. Deployment progress can be monitored in the Defang Portal.
How do I set up the Defang MCP Server?
Run `npx -y defang@latest mcp setup --client=<your-ide>` for your preferred IDE, then start the server with `npx -y defang@latest mcp serve`.
What information does the `services` tool provide?
The `services` tool shows Service Name, Deployment ID, Public URL, and Service Status for all currently deployed services.
What does the `destroy` tool require?
Given a project name or directory, the `destroy` tool identifies and terminates all services deployed with Defang.
Basic information
More Cloud & Infrastructure MCP servers
Terraform MCP Server
hashicorpThe Terraform MCP Server provides seamless integration with Terraform ecosystem, enabling advanced automation and interaction capabilities for Infrastructure as Code (IaC) development.
MCP Server Kubernetes
Flux159MCP Server for kubernetes management commands
MCP Server that interacts with Azure AI Foundry (experimental)
azure-ai-foundryA MCP Server for Azure AI Foundry: it's now moved to cloud, check the new Foundry MCP Server
tfmcp: Terraform Model Context Protocol Tool
nwiizo🌍 Terraform Model Context Protocol (MCP) Tool - An experimental CLI tool that enables AI assistants to manage and operate Terraform environments. Supports reading Terraform configurations, analyzing plans, applying configurations, and managing state with Claude Desktop integrati
container-use
daggerDevelopment environments for coding agents. Enable multiple agents to work safely and independently with your preferred stack.
Comments