mcpo

by whitediver

Helm chartv0.2.8App mainVerified publisher

A Helm chart for deploying the mcpo proxy server

About this chart

mcpo Helm Chart

This Helm chart deploys the mcpo proxy server based on the ghcr.io/open-webui/mcpo Docker image to a Kubernetes cluster.

Prerequisites

  • Kubernetes 1.16+
  • Helm 3.2.0+

Installing the Chart

To install the chart with the release name mcpo:

helm install mcpo ./charts/mcpo

The command deploys the mcpo proxy on the Kubernetes cluster in the default configuration. The Parameters section lists the parameters that can be configured during installation.

Uninstalling the Chart

To uninstall/delete the mcpo deployment:

helm delete mcpo

The command removes all the Kubernetes components associated with the chart and deletes the release.

Parameters

Global parameters

NameDescriptionValue
replicaCountNumber of mcpo replicas to deploy1
nameOverrideString to partially override mcpo.fullname""
fullnameOverrideString to fully override mcpo.fullname""

Image parameters

NameDescriptionValue
image.repositorymcpo image repositoryghcr.io/open-webui/mcpo
image.tagmcpo image tag (immutable tags recommended)main
image.pullPolicymcpo image pull policyIfNotPresent
imagePullSecretsmcpo image pull secrets[]

Service Account parameters

NameDescriptionValue
serviceAccount.createSpecifies whether a service account should be createdtrue
serviceAccount.annotationsAnnotations to add to the service account{}
serviceAccount.nameThe name of the service account to use""

Service parameters

NameDescriptionValue
service.typemcpo service typeClusterIP
service.portmcpo service HTTP port8000

Ingress parameters

NameDescriptionValue
ingress.enabledEnable ingress record generation for mcpofalse
ingress.classNameIngressClass that will be used to implement the Ingress""
ingress.annotationsAdditional annotations for the Ingress resource{}
ingress.pathBase path for the service/
ingress.pathTypePath matching behaviorPrefix
ingress.hostsList of hostnames["mcpo.local"]
ingress.tlsTLS configuration for ingress[]

When ingress.path is not /, the annotation nginx.ingress.kubernetes.io/use-regex: "true" is automatically added.

Environment variables

NameDescriptionValue
envEnvironment variables to be set on the container{}
envSecretsEnvironment variables from external secrets{}
secretEnvEnvironment variables to be set from created secret{}

Configuration file

NameDescriptionValue
configStructure used to generate config.jsonsee values.yaml
existingConfigSecretName of a pre-existing Secret (key config.json) used as the mcpo config instead of rendering config into a ConfigMap. When set, config is ignored and no ConfigMap is created.""

Default config structure:

mcpServers:
  memory:
    command: npx
    args:
      - -y
      - "@modelcontextprotocol/server-memory"

See the commented example in values.yaml for a more complete configuration with additional MCP servers.

Autoscaling parameters

NameDescriptionValue
autoscaling.enabledEnable Horizontal Pod Autoscaler (HPA)false
autoscaling.minReplicasMinimum number of mcpo replicas1
autoscaling.maxReplicasMaximum number of mcpo replicas100
autoscaling.targetCPUUtilizationPercentageTarget CPU utilization percentage80
autoscaling.targetMemoryUtilizationPercentageTarget Memory utilization percentage""

Configuration and installation details

mcpo proxies another MCP server. The chart mounts a config.json file from a ConfigMap and starts the container with --config /opt/mcpo/config.json. config.json is generated from the config values found in values.yaml. The default configuration defines a single MCP server, but you can customize this to define multiple servers by editing the config section.

Sensitive config (existingConfigSecret)

mcpo reads its whole configuration from config.json and does not expand environment variables inside it, so any secret it carries (e.g. an Authorization: Bearer … header for an upstream MCP server) would otherwise end up verbatim in a plaintext ConfigMap. To keep such values out of a ConfigMap (and out of git), provide the full config as a pre-existing Secret and point the chart at it:

# 1. Build config.json with the real secret(s) and create the Secret out-of-band:
kubectl create secret generic mcpo-secrets \
  --from-file=config.json=./config.json

# 2. Reference it from values:
#    existingConfigSecret: mcpo-secrets

When existingConfigSecret is set the chart skips the ConfigMap entirely and mounts config.json from that Secret at /opt/mcpo/config.json. The Secret is not managed by the chart — create and rotate it yourself. Because the config is external, changing it requires a pod restart for mcpo to pick it up.

Exposing the application

To access the mcpo server from outside the cluster, you can:

  1. Use port forwarding (for development):

    kubectl port-forward svc/mcpo 8000:8000
    
  2. Enable ingress (for production):

    ingress:
      enabled: true
      className: "nginx"
      path: /
      hosts:
        - mcpo.your-domain.com
    
  3. Use LoadBalancer service type:

    service:
      type: LoadBalancer
    

Troubleshooting

Check pod status

kubectl get pods -l app.kubernetes.io/name=mcp-mcpo-helm

Check logs

kubectl logs -l app.kubernetes.io/name=mcp-mcpo-helm

Test connection

helm test mcpo

Deploy mcpo with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has mcpo 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 chartmcpo is pinned at v0.2.8 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