Deployment guide1-minute readEN · DE · IT

Deploy AnythingMCP on Microsoft Azure

Deploy AnythingMCP on an Azure Virtual Machine with Docker Compose and automatic HTTPS. Enterprise-ready MCP gateway on Azure.

HCBy HelpCode teamUpdated 1 min read Open source on GitHub

No credit card · 7-day trial · Self-host alternative available

  • 7-day free trial
    No credit card required
  • GDPR & SOC 2 ready
    EU data residency, audit logs
  • Open-source on GitHub
    Source-available BSL-1.1
  • Works with ChatGPT, Claude, Gemini
    Any MCP-compatible client

Summary

Deploy AnythingMCP on an Azure Virtual Machine with Docker Compose and automatic HTTPS. Enterprise-ready MCP gateway on Azure.

Prerequisites

  • An Azure account with permission to create VMs
  • A domain name with DNS access

Create a Virtual Machine

In the Azure Portal:

  1. Click Create a resource > Virtual Machine
  2. Image: Ubuntu 24.04 LTS
  3. Size: B2s (2 vCPU, 4 GB) or B2ms for heavier workloads
  4. Authentication: SSH public key
  5. Inbound ports: allow SSH (22)

After creation, assign a static public IP to the VM.

Install Docker

ssh azureuser@VM_PUBLIC_IP
curl -fsSL https://get.docker.com | sh
sudo usermod -aG docker $USER
newgrp docker

Configure DNS

Create an A record (Azure DNS or external provider):

RecordTypeValue
mcp.example.comAVM_PUBLIC_IP

Network Security Group

In the Azure Portal, go to your VM's Networking tab and add inbound rules:

PortProtocolPriorityDescription
80TCP100HTTP (Caddy redirect)
443TCP110HTTPS

SSH (port 22) should already be allowed from creation.

Deploy AnythingMCP

git clone https://github.com/HelpCode-ai/anythingmcp.git
cd anythingmcp
bash setup.sh

Enter your domain when prompted. The script configures Caddy for automatic SSL and starts all services.

Verify & Next Steps

Open https://mcp.example.com. Register your admin account — the first user becomes administrator.

Your MCP endpoint: https://mcp.example.com/mcp

# Update to latest version
git pull && docker compose up -d --build

Was this guide helpful?

Ready to ship

Ship MCP to your stack in 60 seconds.

Spin up AnythingMCP on managed Cloud or self-host it on your infrastructure. Free for 7 days, no credit card.

Related guides