metamcp

by iCoreTech, Inc.

Helm chartv0.3.11App 2.4.22MITVerified publisher

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

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: nginx injects an nginx.ingress.kubernetes.io/configuration-snippet unless you provide one yourself.
  • ingress.className: traefik renders a traefik.io/v1alpha1 Middleware with replacePathRegex and adds it to traefik.ingress.kubernetes.io/router.middlewares only when Helm discovers traefik.io/v1alpha1/Middleware in 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_URL is auto‑injected. To point to an external DB, just override env.DATABASE_URL; there is no dedicated externalPostgres block.
  • Required: set auth.betterAuthSecret. Set env.APP_URL to 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 extraEnvFrom Secret/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 using command + args (+ optional env). Ensure the MetaMCP image contains the required runtime (e.g., Node/PNPM/NPM or Python/uv).
    • type: STREAMABLE_HTTP or SSE:
      • remote: provide url or urlFrom (no Pod is created here) + optional bearerToken/headers.
      • deploy: provide one of node/python/image and optionally port (defaults to 3001); the chart creates a Deployment/Service and auto‑derives the URL for registration.
  • 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), or
  • users[].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, default true)

    • 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, default true)

    • true: update existing Namespaces (description + membership) and Endpoints when names already exist
    • false: create-only; existing objects are left untouched (good for “seed once, then manage via UI”)
  • provision.prune (bool, default false)

    • true: delete previously chart-managed servers, namespaces, and endpoints that are no longer present in values
    • requires provision.runOnUpgrade=true and provision.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>-endpoint server 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

KeyTypeDefaultDescription
affinityobject{}
auth.betterAuthSecretstring""
autoscaling.enabledboolfalse
autoscaling.maxReplicasint5
autoscaling.minReplicasint1
autoscaling.targetCPUUtilizationPercentageint80
autoscaling.targetMemoryUtilizationPercentagestringnil
disablePublicSignupboolfalse
envobject{}
extraEnvlist[]
extraEnvFromlist[]
fullnameOverridestring""
gatewayAPI.enabledboolfalse
gatewayAPI.hostslist[]
gatewayAPI.mapBackendPathsbooltrue
image.pullPolicystring"IfNotPresent"
image.repositorystring"ghcr.io/metatool-ai/metamcp"
image.tagstring""
imagePullSecretslist[]imagePullSecrets allows pulling the MetaMCP image from private registries. Example: imagePullSecrets: - name: regcred
ingress.annotationsobject{}
ingress.classNamestring""
ingress.enabledboolfalse
ingress.hosts[0].hoststring"metamcp.local"
ingress.hosts[0].paths[0].pathstring"/"
ingress.hosts[0].paths[0].pathTypestring"ImplementationSpecific"
ingress.localePrefixeslist[]Locale prefixes whose backend paths should be routed and rewritten too, e.g. ["en", "de"].
ingress.mapBackendPathsbooltrueAlso map backend routes (/metamcp, /trpc, /api) to port 12009 by default.
ingress.rewriteTrpcShortPathbooltrueRewrite 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.rewriteTrpcShortPathControllerstring"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.tlslist[]
nameOverridestring""
nodeSelectorobject{}
podAnnotationsobject{}
podLabelsobject{}
podSecurityContextobject{}
postgres.auth.databasestring"metamcp"
postgres.auth.passwordstring"metamcp"
postgres.auth.usernamestring"metamcp"
postgres.enabledbooltrue
postgres.imagestring"postgres:16"
postgres.persistence.enabledboolfalse
postgres.persistence.sizestring"1Gi"
postgres.persistence.storageClassNamestring""
provision.enabledboolfalse
provision.endpointslist[]
provision.namespaceslist[]
provision.pruneboolfalse
provision.runOnUpgradebooltrue
provision.serverslist[]
provision.updateExistingbooltrue
replicaCountint1
resourcesobject{}
securityContextobject{}
service.portint12008
service.typestring"ClusterIP"
serviceAccount.annotationsobject{}
serviceAccount.automountbooltrue
serviceAccount.createbooltrue
serviceAccount.namestring""
tolerationslist[]
userslist[]

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.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartmetamcp is pinned at v0.3.11 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. 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