Defang MCP Server

Defang CLI. Develop Once, Deploy Anywhere. Take your app from Docker Compose to a secure and scalable deployment on your favorite cloud in minutes.

Remote serverstreamable-httpPython

What is the Defang MCP Server?

Defang CLI. Develop Once, Deploy Anywhere. Take your app from Docker Compose to a secure and scalable deployment on your favorite cloud in minutes.

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

How to install the Defang MCP Server

{
  "mcpServers": {
    "defanglabs": {
      "command": "npx",
      "args": ["-y", "defang"],
      "env": {
        "DEFANG_ACCESS_TOKEN": "your-value",
        "DEFANG_AWS_APN_ID": "your-value",
        "DEFANG_MODEL_ID": "your-value",
        "PULUMI_ACCESS_TOKEN": "your-value"
      }
    }
  }
}

Add to claude_desktop_config.json, then restart Claude Desktop.

Configuration

VariableDescriptionRequired
DEFANG_ACCESS_TOKENCredential the server authenticates with.Yes
DEFANG_AWS_APN_IDConfiguration value read at startup.Optional
DEFANG_MODEL_IDConfiguration value read at startup.Optional
PULUMI_ACCESS_TOKENCredential the server authenticates with.Yes

Example prompts to try

  • “Use Defang to Built.”
  • “Use Defang to COMPOSE DISABLE ENV FILE.”
  • “Use Defang to COMPOSE ENV FILES.”

Frequently asked questions

Supported IDEs include Cursor, Windsurf, Codex, VS Code, VS Code Insiders, and Claude Desktop.