Prerequisites
- A DigitalOcean account
- A domain name pointing to your VPS
- Basic knowledge of Linux command line
System Requirements
MetaMCP requires at least 2GB-4GB of memory for optimal performance. The larger the instance, the better the performance due to MCP server pre-allocation and Docker operations. Recommended DigitalOcean Droplet:- Basic/Regular: 2GB RAM, 1 vCPU, 50GB SSD ($12/month)
- Better Performance: 4GB RAM, 2 vCPU, 80GB SSD ($24/month)
Step 1: Create and Configure Your VPS
1.1 Create a Droplet
- Log into your DigitalOcean account
- Click “Create” → “Droplets”
- Choose Ubuntu 22.04 LTS as the OS
- Select a plan with at least 2GB RAM
- Choose a datacenter region close to your users
- Add your SSH key for secure access
- Create the droplet
1.2 Initial Server Setup
Connect to your server via SSH:Step 2: Install Docker and Docker Compose
2.1 Install Docker
First, update your package index and install prerequisites:2.2 Install Docker Compose
Download and install Docker Compose:2.3 Configure Docker User (Optional)
To run Docker commands withoutsudo
:
Step 3: Deploy MetaMCP
3.1 Clone the Repository
3.2 Configure Environment
.env
file with your domain and settings:
POSTGRES_PASSWORD
and BETTER_AUTH_SECRET
from their default values. Also ensure you use HTTPS. A typical way to generate secure secrets is:
3.3 Update Docker Compose for Production
Editdocker-compose.yml
to ensure proper volume naming:
3.4 Start MetaMCP
Step 4: Configure Nginx Reverse Proxy
4.1 Create Nginx Configuration
Create a new site configuration:yourdomain.com
with your actual domain):