Self-host MetaMCP with Levelrail
An MCP aggregator and gateway that groups many MCP servers behind one endpoint with auth, namespaces and middleware.
- Authormetatool-ai
- LicenceMIT
- Memory1 GiB
- Archarm64
- Services2
How to self-host MetaMCP
-
Pull the images
2 images are pulled on your server.
Show images
postgres:16-alpineghcr.io/metatool-ai/metamcp:2.4
-
Create the app
2 services start in a single Compose app, with 1 named volume mount for your data, on port 12008.
-
Fill in the secrets
4 secrets are generated and stored encrypted, 9 settings are preset, you do not have to fill in anything.
-
Open it
Without a domain the app gets an sslip.io address; add --domain SERVICE=HOST to use your own.
MetaMCP requirements
- Memory
- About 1 GiB
- Architectures
- amd64 image published, arm64 image published
- Ports
- 12008
- Domain
- Optional, an sslip.io address is used without one
- Settings
- none to fill in
- License
- MIT, permissive license
- Listed. It is in the catalog but not verified. Back up the data volume before changing an image tag.
Install Levelrail first
On a server with Levelrail running, run the command above, or open the dashboard: Apps, New app, Browse templates, then MetaMCP. New to Levelrail? Install it on a fresh VPS first.
docker pull ghcr.io/glincker/levelrail:latest Then levelrail-cli login --device. See Getting started and the MetaMCP docs page.
Deploy MetaMCP your way
Every format below deploys the same pinned images. Pick the one that fits how you work.
Deploy MetaMCP from the CLI
levelrail-cli templates install metamcp --name my-metamcp Deploy MetaMCP with the API
curl -X POST -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" \
https://levelrail.example.com/api/v1/service-templates/metamcp/install \
-d '{
"name": "my-metamcp"
}' MetaMCP configuration
MetaMCP services
| Service | Image | Ports | Volumes |
|---|---|---|---|
| db | postgres:16-alpine | none | pgdata -> /var/lib/postgresql/data |
| metamcp | ghcr.io/metatool-ai/metamcp:2.4 | 12008 | none |
MetaMCP environment variables
| Variable | Service | Value |
|---|---|---|
| POSTGRES_DB | db | Preset by the template |
| POSTGRES_PASSWORD | db | Generated at deploy |
| POSTGRES_USER | db | Preset by the template |
| APP_URL | metamcp | Preset by the template |
| BETTER_AUTH_SECRET | metamcp | Generated at deploy |
| DATABASE_URL | metamcp | Generated at deploy |
| NEXT_PUBLIC_APP_URL | metamcp | Preset by the template |
| POSTGRES_DB | metamcp | Preset by the template |
Show all 13 variables
- POSTGRES_HOSTmetamcpPreset by the template
- POSTGRES_PASSWORDmetamcpGenerated at deploy
- POSTGRES_PORTmetamcpPreset by the template
- POSTGRES_USERmetamcpPreset by the template
- TRANSFORM_LOCALHOST_TO_DOCKER_INTERNALmetamcpPreset by the template
Ports and volumes
- Ports
- 12008
- Volumes
- 1 named mount: pgdata -> /var/lib/postgresql/data
MetaMCP FAQ
How much memory does MetaMCP need?
The catalog lists about 1 GiB of memory for MetaMCP across its 2 services.
Does MetaMCP run on arm64?
For MetaMCP, an arm64 image is published; amd64 is image published.
What licence is MetaMCP under?
MetaMCP is licensed under MIT, which is permissive, with few conditions on reuse.
Does MetaMCP need configuration before it starts?
No. The template fills in its own defaults and generates secrets at deploy time.
Which database does MetaMCP bundle?
The template includes Postgres, running as its own service.
Which ports does MetaMCP use?
MetaMCP listens on port 12008 inside the stack.
Where does MetaMCP keep its data?
In a named volume: pgdata mounted at /var/lib/postgresql/data.
Can I deploy MetaMCP on Dokploy or Dokku?
The services and pinned images on this page can be run on any Docker host. The public Dokploy templates list we compared does not have an entry with the same id for MetaMCP, so on Dokploy you would use a Docker Compose application with the file from this page. Dokku deploys container images with its own commands, so the pinned image postgres:16-alpine, ghcr.io/metatool-ai/metamcp:2.4 is what you deploy there.