metamcp
MetaMCP aggregator Helm chart for Kubernetes
About this chart
MetaMCP Helm Chart
Deploys MetaMCP and a declarative provisioning system that:
- Aggregates many MCP servers behind a single endpoint (namespace) for clients.
- Optionally deploys your HTTP/SSE MCP servers as Pods and auto‑registers them as remote servers in MetaMCP.
- Can also register remote URLs you host elsewhere (no Pod created here).
- Can run STDIO servers inside MetaMCP itself when configured (ensure required runtimes exist in the MetaMCP image).
In short: this chart both installs MetaMCP and can pre‑configure it (servers → namespaces → endpoints) from values.yaml. No manual clicking or ad‑hoc scripts required.
Endpoints
- Frontend (dashboard):
http://<service>:12008 - Backend (internal):
http://<service>:12009 - MCP endpoint examples after provisioning namespace
lab:- SSE:
http://<service>:12008/metamcp/lab/sse - Streamable HTTP:
http://<service>:12008/metamcp/lab/mcp
- SSE:
Ingress tRPC routing
MetaMCP's browser client calls /trpc/<procedure>, while the backend Express router is mounted at /trpc/frontend/<procedure>. The chart maps backend routes (/metamcp, /trpc, /api) to port 12009 and, by default, rewrites tRPC short paths for supported standard Ingress controllers:
ingress.className: nginxinjects annginx.ingress.kubernetes.io/configuration-snippetunless you provide one yourself.ingress.className: traefikrenders atraefik.io/v1alpha1MiddlewarewithreplacePathRegexand adds it totraefik.ingress.kubernetes.io/router.middlewaresonly when Helm discoverstraefik.io/v1alpha1/Middlewarein the target cluster. This requires Traefik's Kubernetes Ingress provider and Kubernetes CRD provider; it is not an IngressRoute or Gateway API HTTPRoute rewrite.
Set ingress.rewriteTrpcShortPathController: nginx or traefik when your IngressClass has a custom name. The explicit traefik mode is still gated on the traefik.io/v1alpha1/Middleware API so upgrades do not fail on clusters without that CRD. Set ingress.rewriteTrpcShortPath: false only when you provide equivalent ingress-controller rewrite behavior yourself. Set ingress.localePrefixes when localized backend paths such as /de/trpc/... should be routed and rewritten directly to the backend.
Install
helm upgrade --install metamcp icoretech/metamcp \
-n metamcp --create-namespace \
--set auth.betterAuthSecret=change-me \
--set env.APP_URL=http://metamcp-metamcp.metamcp.svc.cluster.local:12008
Notes
- Internal Postgres is bundled and
DATABASE_URLis auto‑injected. To point to an external DB, just overrideenv.DATABASE_URL; there is no dedicatedexternalPostgresblock. - Required: set
auth.betterAuthSecret. Setenv.APP_URLto the in‑cluster Service URL (or your public hostname) so cookies work correctly. - Pod rollouts on change: the chart annotates the MetaMCP Deployment with checksums of the base ConfigMap/Secret and every
extraEnvFromSecret/ConfigMap it references (looked up at render time). When those objects change and Helm/Flux reconciles, Pods restart to pick up new values.
Provisioning model
Declare everything under provision.*:
- Servers:
type: STDIO→ MetaMCP spawns the process inside its container usingcommand+args(+ optionalenv). Ensure the MetaMCP image contains the required runtime (e.g., Node/PNPM/NPM or Python/uv).type: STREAMABLE_HTTPorSSE:- remote: provide
urlorurlFrom(no Pod is created here) + optionalbearerToken/headers. - deploy: provide one of
node/python/imageand optionallyport(defaults to3001); the chart creates a Deployment/Service and auto‑derives the URL for registration.
- remote: provide
- Namespaces: group servers by name.
- Endpoints: expose a namespace. MetaMCP serves both SSE and Streamable HTTP for each endpoint; no transport field is required.
Example
auth:
betterAuthSecret: dev-secret
env:
APP_URL: http://metamcp-metamcp.<namespace>.svc.cluster.local:12008
users:
- email: [email protected]
name: Admin
passwordFrom:
secretKeyRef:
name: metamcp-admin-credentials
key: password
provision:
enabled: true
servers:
# STDIO executed by MetaMCP
- name: stdio-everything
type: STDIO
command: "npx"
args: ["-y","@modelcontextprotocol/server-everything","stdio"]
# Streamable HTTP & SSE servers deployed by this chart and auto-registered
- name: http-everything
type: STREAMABLE_HTTP
port: 3001
node:
package: "@modelcontextprotocol/server-everything"
version: "latest"
args: ["streamableHttp","--port","3001"]
- name: sse-everything
type: SSE
port: 3001
node:
package: "@modelcontextprotocol/server-everything"
version: "latest"
args: ["sse","--port","3001"]
namespaces:
- name: lab
description: "Sandbox tools"
servers: ["stdio-everything","http-everything","sse-everything"]
endpoints:
- name: lab
namespace: lab
description: "Public lab endpoint"
transport: SSE
# Optional auth controls (match UI):
enableApiKeyAuth: true
useQueryParamAuth: false
enableOauth: false
User seeding (required when provisioning is enabled)
Provisioning authenticates using the first user in the bootstrap config.
When provision.enabled: true, you must provide either:
users[].password(dev-only), orusers[].passwordFrom.secretKeyRef(recommended).
The chart can also generate an API key for that user and store it in a Secret named like <release>-metamcp-apikey-<email-slug>.
disablePublicSignup: true
users:
- email: [email protected]
name: Admin
passwordFrom:
secretKeyRef:
name: metamcp-admin-credentials
key: password
createApiKey: true
apiKeyName: cli
Reconciliation modes (Flux/Helm upgrades)
By default the provisioning job runs after every Helm install and upgrade and will upsert Namespaces/Endpoints to match values. You can tune this behavior:
-
provision.runOnUpgrade(bool, defaulttrue)true: run provisioning on every Helm upgrade (continuous upsert)false: run only on initial install (post-install). Upgrades do not re-run provisioning
-
provision.updateExisting(bool, defaulttrue)true: update existing Namespaces (description + membership) and Endpoints when names already existfalse: create-only; existing objects are left untouched (good for “seed once, then manage via UI”)
-
provision.prune(bool, defaultfalse)true: delete previously chart-managed servers, namespaces, and endpoints that are no longer present in values- requires
provision.runOnUpgrade=trueandprovision.updateExisting=true - managed objects are tracked in a Kubernetes ConfigMap so UI-created objects are not pruned just because their names are absent from Helm values
- prune also deletes orphan MetaMCP-generated
<endpoint>-endpointserver rows when the matching endpoint no longer exists
Notes
- Servers are created by name and updated in place when
provision.updateExisting=true - Namespace server refs can be either a bare server name or an object like
{ name: billing-production, active: false }when you want Helm to keep the server configured but disabled in that namespace - With
provision.prune=false, removing items from values does not delete them in MetaMCP; the chart only records them as previously managed so a later declarative prune run can remove them safely - With
provision.prune=true, the job prunes only the objects that this chart previously managed; it does not sweep arbitrary UI-created objects by name
Examples
Continuous upsert (Git is the source of truth):
provision:
enabled: true
runOnUpgrade: true
updateExisting: true
Continuous upsert with prune:
provision:
enabled: true
runOnUpgrade: true
updateExisting: true
prune: true
Seed once, keep UI changes later:
provision:
enabled: true
runOnUpgrade: false
updateExisting: false
Provisioning authentication
- The provisioning Job authenticates using the first entry in
users(email/password). - In production you must set
users[0]. The jobs mirror the signed session cookie to the in‑cluster host to perform admin tRPC calls. - API keys are for endpoint/client auth; they are not used for admin tRPC.
STDIO examples
Inline env (awsdocs):
provision:
enabled: true
servers:
- name: awsdocs
type: STDIO
command: "uvx"
args: ["awslabs.aws-documentation-mcp-server@latest"]
env:
FASTMCP_LOG_LEVEL: "ERROR"
AWS_DOCUMENTATION_PARTITION: "aws"
Secret-backed env (figma):
provision:
enabled: true
servers:
- name: figma
type: STDIO
command: "npx"
args: ["-y", "figma-developer-mcp", "--stdio"]
envFrom:
- secretRef:
name: figma-mcp-env
Secret-backed remote headers (Airbroke):
provision:
enabled: true
servers:
- name: airbroke-example
type: STREAMABLE_HTTP
url: https://errors.example.com/api/mcp
headersFrom:
- secretRef:
name: metamcp-remote-headers
Secret-backed remote URL (Windmill):
provision:
enabled: true
servers:
- name: automation-remote
type: SSE
urlFrom:
- secretRef:
name: metamcp-remote-url
Namespace-scoped inactive server:
provision:
enabled: true
namespaces:
- name: workspace
servers:
- name: billing-sandbox
active: false
- billing-production
Configuration reference
Values
| Key | Type | Default | Description |
|---|---|---|---|
| affinity | object | {} | |
| auth.betterAuthSecret | string | "" | |
| autoscaling.enabled | bool | false | |
| autoscaling.maxReplicas | int | 5 | |
| autoscaling.minReplicas | int | 1 | |
| autoscaling.targetCPUUtilizationPercentage | int | 80 | |
| autoscaling.targetMemoryUtilizationPercentage | string | nil | |
| disablePublicSignup | bool | false | |
| env | object | {} | |
| extraEnv | list | [] | |
| extraEnvFrom | list | [] | |
| fullnameOverride | string | "" | |
| gatewayAPI.enabled | bool | false | |
| gatewayAPI.hosts | list | [] | |
| gatewayAPI.mapBackendPaths | bool | true | |
| image.pullPolicy | string | "IfNotPresent" | |
| image.repository | string | "ghcr.io/metatool-ai/metamcp" | |
| image.tag | string | "" | |
| imagePullSecrets | list | [] | imagePullSecrets allows pulling the MetaMCP image from private registries. Example: imagePullSecrets: - name: regcred |
| ingress.annotations | object | {} | |
| ingress.className | string | "" | |
| ingress.enabled | bool | false | |
| ingress.hosts[0].host | string | "metamcp.local" | |
| ingress.hosts[0].paths[0].path | string | "/" | |
| ingress.hosts[0].paths[0].pathType | string | "ImplementationSpecific" | |
| ingress.localePrefixes | list | [] | Locale prefixes whose backend paths should be routed and rewritten too, e.g. ["en", "de"]. |
| ingress.mapBackendPaths | bool | true | Also map backend routes (/metamcp, /trpc, /api) to port 12009 by default. |
| ingress.rewriteTrpcShortPath | bool | true | Rewrite frontend tRPC short paths such as /trpc/frontend.logs.get to the backend route /trpc/frontend/frontend.logs.get. Supported controllers are nginx and Traefik standard Ingress. Traefik rewrite rendering requires Helm to discover traefik.io/v1alpha1/Middleware. Set rewriteTrpcShortPathController when your IngressClass is not literally nginx or traefik. |
| ingress.rewriteTrpcShortPathController | string | "auto" | tRPC short-path rewrite controller mode: auto, nginx, or traefik. The traefik mode renders a traefik.io Middleware only when that API is available and attaches it to this standard Ingress; it does not apply to Traefik IngressRoute or Gateway API HTTPRoute resources. |
| ingress.tls | list | [] | |
| nameOverride | string | "" | |
| nodeSelector | object | {} | |
| podAnnotations | object | {} | |
| podLabels | object | {} | |
| podSecurityContext | object | {} | |
| postgres.auth.database | string | "metamcp" | |
| postgres.auth.password | string | "metamcp" | |
| postgres.auth.username | string | "metamcp" | |
| postgres.enabled | bool | true | |
| postgres.image | string | "postgres:16" | |
| postgres.persistence.enabled | bool | false | |
| postgres.persistence.size | string | "1Gi" | |
| postgres.persistence.storageClassName | string | "" | |
| provision.enabled | bool | false | |
| provision.endpoints | list | [] | |
| provision.namespaces | list | [] | |
| provision.prune | bool | false | |
| provision.runOnUpgrade | bool | true | |
| provision.servers | list | [] | |
| provision.updateExisting | bool | true | |
| replicaCount | int | 1 | |
| resources | object | {} | |
| securityContext | object | {} | |
| service.port | int | 12008 | |
| service.type | string | "ClusterIP" | |
| serviceAccount.annotations | object | {} | |
| serviceAccount.automount | bool | true | |
| serviceAccount.create | bool | true | |
| serviceAccount.name | string | "" | |
| tolerations | list | [] | |
| users | list | [] |
Deploy metamcp with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has metamcp on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartmetamcp is pinned at v0.3.11 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below opentenant validate opentenant.yaml terraform init && terraform apply