Deploy AnythingMCP on DigitalOcean
Deploy AnythingMCP on a DigitalOcean Droplet with Docker Compose and automatic HTTPS. Quick setup for your MCP gateway.
Prerequisites
- A DigitalOcean account — digitalocean.com
- A domain name with DNS access
Create a Droplet
In the DigitalOcean console:
| Setting | Recommended | |---------|-------------| | Image | Ubuntu 24.04 LTS | | Plan | Basic — 2 GB RAM / 1 vCPU (minimum) | | Region | Closest to your users | | Authentication | SSH key |
You can select the Docker image from the Marketplace to get Docker pre-installed, or install it manually:
ssh root@DROPLET_IP
curl -fsSL https://get.docker.com | sh
Configure DNS
Create an A record pointing to the Droplet IP:
| Type | Name | Value |
|------|------|-------|
| A | mcp (or @) | DROPLET_IP |
You can manage DNS in Networking > Domains on DigitalOcean or use your external DNS provider.
Deploy AnythingMCP
git clone https://github.com/HelpCode-ai/anythingmcp.git
cd anythingmcp
bash setup.sh
The setup script handles everything:
- Generates
.envwith secure secrets - Asks for your domain and configures Caddy for automatic SSL
- Starts all services via
docker compose
Firewall
In Networking > Firewalls, create a Cloud Firewall:
| Port | Protocol | Description | |------|----------|-------------| | 22 | TCP | SSH | | 80 | TCP | HTTP (Caddy redirect) | | 443 | TCP | HTTPS |
Attach it to your Droplet.
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