Deployment guide1-minute read7 languages

Deploy AnythingMCP on AWS (EC2)

Deploy AnythingMCP on an AWS EC2 instance with Docker Compose and automatic SSL via Caddy. Production-ready setup for your MCP gateway.

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
    Open source · AGPL-3.0
  • Works with ChatGPT, Claude, Gemini
    Any MCP-compatible client

Summary

Deploy AnythingMCP on an AWS EC2 instance with Docker Compose and automatic SSL via Caddy. Production-ready setup for your MCP gateway.

Prerequisites

  • An AWS account with EC2 permissions
  • A domain name you can point to your server
  • An SSH key pair in your AWS region

Launch an EC2 Instance

  1. Open the EC2 Dashboard and click Launch Instance
  2. Choose Ubuntu 24.04 LTS AMI
  3. Instance type: t3.small (2 vCPU, 2 GB) or t3.medium for heavier workloads
  4. Storage: at least 20 GB gp3
  5. Security group — add these inbound rules:
PortProtocolSourcePurpose
22TCPYour IPSSH
80TCP0.0.0.0/0HTTP (Caddy redirect)
443TCP0.0.0.0/0HTTPS
  1. Launch and allocate an Elastic IP to the instance

Install Docker

ssh -i ~/.ssh/your-key.pem ubuntu@ELASTIC_IP
curl -fsSL https://get.docker.com | sh
sudo usermod -aG docker $USER
newgrp docker

Configure DNS

Create an A record pointing your domain to the Elastic IP (Route 53 or external DNS):

RecordTypeValue
mcp.example.comAELASTIC_IP

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?

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