Defang
About
Defang CLI. Develop Once, Deploy Anywhere. Take your app from Docker Compose to a secure and scalable deployment on your favorite cloud in minutes.
Details
- Author
- DefangLabs
- GitHub stars
- 165
- Downloads
- 458
- Categories
- Cloud Service, Infrastructure
Jump to
- 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.
Setting up with Highlight
This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:
- Download and install Highlight from highlightai.com/download
- Navigate to the plugins tab and select "Add Custom Plugin"
-
Configure the plugin with the settings below
Plugin Name
DefangCommand (node, npx, python, etc.)Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.
- Enable "Start Automatically" if you want the plugin to start when Highlight launches
From the repository
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.
create_aws_stack
Create a defang stack file to deploy to AWS
create_azure_stack
Create a defang stack file to deploy to Azure
create_gcp_stack
Create a defang stack file to deploy to GCP
current_stack
Get the currently selected stack
deploy
Initiate deployment of the application stack defined in the docker-compose files in the current working directory
destroy
Destroy the deployed application in the selected stack, defined in the docker-compose files in the current working directory
estimate
Estimate the cost of deploying a Defang project to AWS or GCP
list_configs
List config variables for the currently selected stack in the Defang project
list_stacks
List all the Defang stack(s) for the current project
logs
Fetch logs for the application in the selected stack, in pages of up to 100 lines. You can use the 'since' and 'until' parameters to page through logs by time.
project_name
Get the current project name
remove_config
Remove a config variable from the currently selected stack in the Defang project
select_stack
Select the deployment stack for the Defang project
services
List deployed services for the selected project stack in the current working directory
set_config
Set a config variable for the currently selected stack in the Defang project
Claude Desktop / Cursor
Paste into your MCP client config file to install this server.
{
"mcpServers": {
"defang": {
"defang": {
"command": "npx",
"args": [
"-y",
"defang@latest",
"mcp",
"serve"
]
}
}
}
}
McpServers
{
"defang": {
"command": "npx",
"args": [
"-y",
"defang@latest",
"mcp",
"serve"
]
}
}
Sign in to leave a review
Use Google, GitHub, or an email account so ratings stay tied to real people.
No reviews posted yet.


