mcpo
by whitediver
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
| Name | Description | Value |
|---|---|---|
replicaCount | Number of mcpo replicas to deploy | 1 |
nameOverride | String to partially override mcpo.fullname | "" |
fullnameOverride | String to fully override mcpo.fullname | "" |
Image parameters
| Name | Description | Value |
|---|---|---|
image.repository | mcpo image repository | ghcr.io/open-webui/mcpo |
image.tag | mcpo image tag (immutable tags recommended) | main |
image.pullPolicy | mcpo image pull policy | IfNotPresent |
imagePullSecrets | mcpo image pull secrets | [] |
Service Account parameters
| Name | Description | Value |
|---|---|---|
serviceAccount.create | Specifies whether a service account should be created | true |
serviceAccount.annotations | Annotations to add to the service account | {} |
serviceAccount.name | The name of the service account to use | "" |
Service parameters
| Name | Description | Value |
|---|---|---|
service.type | mcpo service type | ClusterIP |
service.port | mcpo service HTTP port | 8000 |
Ingress parameters
| Name | Description | Value |
|---|---|---|
ingress.enabled | Enable ingress record generation for mcpo | false |
ingress.className | IngressClass that will be used to implement the Ingress | "" |
ingress.annotations | Additional annotations for the Ingress resource | {} |
ingress.path | Base path for the service | / |
ingress.pathType | Path matching behavior | Prefix |
ingress.hosts | List of hostnames | ["mcpo.local"] |
ingress.tls | TLS configuration for ingress | [] |
When ingress.path is not /, the annotation nginx.ingress.kubernetes.io/use-regex: "true" is automatically added.
Environment variables
| Name | Description | Value |
|---|---|---|
env | Environment variables to be set on the container | {} |
envSecrets | Environment variables from external secrets | {} |
secretEnv | Environment variables to be set from created secret | {} |
Configuration file
| Name | Description | Value |
|---|---|---|
config | Structure used to generate config.json | see values.yaml |
existingConfigSecret | Name 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
| Name | Description | Value |
|---|---|---|
autoscaling.enabled | Enable Horizontal Pod Autoscaler (HPA) | false |
autoscaling.minReplicas | Minimum number of mcpo replicas | 1 |
autoscaling.maxReplicas | Maximum number of mcpo replicas | 100 |
autoscaling.targetCPUUtilizationPercentage | Target CPU utilization percentage | 80 |
autoscaling.targetMemoryUtilizationPercentage | Target 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:
-
Use port forwarding (for development):
kubectl port-forward svc/mcpo 8000:8000 -
Enable ingress (for production):
ingress: enabled: true className: "nginx" path: / hosts: - mcpo.your-domain.com -
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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartmcpo is pinned at v0.2.8 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