mcp-orchestrator
by curtis
Magertron™ AI Orchestrator — Kubernetes-native governance, metering and audit for LLM, MCP and API traffic
About this chart
Magertron™ AI Orchestrator — Helm Chart
Current release: see the Helm chart on magertron.com/charts.
For the exact version being served: helm repo update magertron && helm search repo magertron/mcp-orchestrator --versions | head -3
Install guide for the Magertron™ AI Orchestrator Helm chart, focused on on-prem and private-cloud Kubernetes deployments. If you're on a managed cloud (EKS / GKE / AKS), the chart works there too — see the last appendix.
Sizing. The core platform requests just under 4 cores of CPU and about 4.5 GB of memory — orchestrator, three Envoy replicas, two PostgreSQL instances, the inventory service, and the two bundled MCP servers. Memory is not the constraint; CPU requests are, and a 4-core node has no room left for a server of your own. 8 cores is the practical floor unless you trim replica counts. Add roughly 5 GB and a GPU-free core if you enable the local LLM (Ollama), and more again for the embedded GRC service (Probo) — both are off by default.
Quickstart
The fastest path to a working install is the bundled script. It does
everything below (preflight, license setup, node labeling, helm install,
post-install verification) with one command:
git clone https://github.com/magertron/orchestrator.git
cd orchestrator
./install.sh --license /path/to/your-license.json
The script supports both fresh installs and upgrade-in-place. Pass
--mode reinstall for a destructive fresh start (it requires typing
'destroy' to confirm); the default --mode upgrade preserves data.
The rest of this README walks through the same install manually — use it to understand exactly what the script is doing, or when your environment needs custom values the script doesn't expose.
Installing the CLI
mcpctl is the command-line client. It talks to a running orchestrator over
HTTPS to deploy MCP servers, manage users and service accounts, and inspect
cluster state. The CLI is Apache 2.0 licensed and free for all customers.
Pick your platform:
# Homebrew (macOS or Linux)
brew install magertron/tap/mcpctl
# curl one-liner (macOS or Linux)
curl -fsSL https://magertron.com/install-mcpctl.sh | sh
# Debian / Ubuntu (one-time setup, then apt install)
curl -fsSL https://magertron.com/apt/magertron-archive-keyring.gpg \
| sudo tee /etc/apt/trusted.gpg.d/magertron-archive-keyring.gpg > /dev/null
echo "deb [signed-by=/etc/apt/trusted.gpg.d/magertron-archive-keyring.gpg] https://magertron.com/apt stable main" \
| sudo tee /etc/apt/sources.list.d/magertron.list
sudo apt update && sudo apt install mcpctl
# RHEL / Fedora / Rocky
sudo curl -fsSL https://magertron.com/yum/magertron.repo -o /etc/yum.repos.d/magertron.repo
sudo dnf install mcpctl
Full CLI usage guide: see mcpctl/README.md.
What you're installing
The chart deploys the full Magertron™ AI Orchestrator platform to your cluster:
- Orchestrator (2 replicas by default) — the control plane, REST API, and admin UI
- Envoy gateway — TLS termination and HTTP routing to MCP servers
- PostgreSQL (×2) — one in-cluster database for orchestrator identity & audit, one for the mcp-inventory service that tracks deployed servers, service accounts, and grants
- mcp-sync sidecar — watches MCP server CRDs and pushes Envoy routes
- mcp-inventory — durable store for service accounts, orgs, and per-SA lifecycle state (expiry, rotation, last-used, owner email)
- Namespaces for MCP servers (
mcp-prod,mcp-staging,mcp-dev) - Network policies isolating MCP server namespaces
- RBAC — a ServiceAccount + ClusterRole granting the orchestrator the k8s permissions it needs to deploy MCP servers on your behalf
- CRDs — the
mcp.io/McpRoutecustom resource used internally
After install you retrieve the auto-generated admin password from the
Kubernetes Secret (instructions printed in the post-install notes), log
in, change the password, optionally apply an Enterprise license, and
start deploying MCP servers.
Prerequisites
You need these BEFORE running helm install. The chart can auto-generate
TLS certificates, JWT keys, and the database/admin passwords for you (the
default behavior, suitable for dev/PoC), but for production deployments
we recommend providing your own — see the relevant prerequisite sections
below and the production-hardening guidance in the post-install notes.
1. A Kubernetes cluster
- Version: 1.28 or newer
- Who you talk to when you configure it: k8s admin (you)
- Supported flavors for on-prem:
- k3s — recommended for single-box deployments
- kubeadm-installed — for multi-node production clusters
- RKE2 / OpenShift / Rancher — also fine, not explicitly tested
If using k3s, disable its bundled Traefik:
curl -sfL https://get.k3s.io | sh -s - --disable=traefikOtherwise Traefik and Envoy both try to bind port 443 and one will fail.
2. Helm 3.x and kubectl
helm version # want v3.x
kubectl version --client
kubectl get nodes # confirms you can reach the cluster
3. A TLS certificate for your hostname
Magertron™ AI Orchestrator terminates TLS at the Envoy gateway using a cert you
provide. Pick the hostname customers will use to reach the orchestrator
(e.g. mcp.yourcompany.com) and get a cert+key for it.
Options to get a cert:
- Let's Encrypt via certbot (free, 90-day rotation)
- Your company's internal CA
- A commercial cert vendor
You need two files: tls.crt (full chain) and tls.key (private key).
The chart CAN generate a self-signed cert if you don't provide one, but self-signed certs only work for testing — browsers warn and IdPs will reject them.
4. JWT signing keypair
The orchestrator signs session tokens with RS256. Generate a keypair:
openssl genpkey -algorithm RSA -out jwt.key -pkeyopt rsa_keygen_bits:2048
openssl rsa -in jwt.key -pubout -out jwt.pub
Keep these files safe. Rotating them invalidates all active user sessions AND all service-account JWTs (existing SAs will need to be re-rotated through the API or UI to mint new tokens).
5. metrics-server (optional but recommended)
Needed for CPU/memory charts in the UI and for HorizontalPodAutoscaler on Envoy. Most production clusters have it already. If not:
kubectl apply -f https://github.com/kubernetes-sigs/metrics-server/releases/latest/download/components.yaml
For non-cloud clusters you may need to add --kubelet-insecure-tls to the
metrics-server deployment args.
6. License file (optional — Enterprise tier only)
Free tier covers core deployment, health monitoring, scaling, RBAC. Enterprise tier adds SSO, SCIM, governance, audit export, webhooks, deployment history, rollback.
If you have a license JSON file, you can apply it at install time or later. See "Apply a license" below.
Choose your ingress path
Your cluster needs to expose the Envoy gateway to the outside world somehow. This is the single biggest decision for on-prem installs.
Pick one of these based on your environment:
NodePort (recommended for single-box / small installs)
Envoy runs as a NodePort Service on port 30444. You configure your
firewall, router or tunnel to forward external 443 to
<cluster-node-ip>:30444. Works everywhere, no k8s add-ons required.
values.yaml:
loadBalancer:
provider: nodeport
envoy:
v3:
nodePort: 30444 # can be 30000-32767
If you have read an older copy of this guide, it said 30443. That was the legacy Envoy data plane, retired once every server moved to
routing_mode: v3. The port is pinned by the chart and needs nokubectl patchstep.
k3s ships Traefik, which takes 443. Nothing routes through it to Magertron, so a request to
https://<node-ip>returns Traefik's own 404 rather than the dashboard. Either disable it —--disable traefik, ordisable: traefikin/etc/rancher/k3s/config.yaml— or reach the UI on 30444 directly.
MetalLB (multi-node bare-metal with LAN IP pool)
MetalLB assigns a "real" LoadBalancer IP from a pool you give it. Good when you have multiple cluster nodes and want a single stable IP that follows the Envoy pod.
Requires: a block of IPs on your LAN that aren't being used by DHCP.
values.yaml:
loadBalancer:
provider: metallb
metallb:
install: true # chart installs MetalLB
ipRange: "10.0.1.240-10.0.1.250" # adjust to YOUR LAN
Existing ingress controller (nginx-ingress, Traefik, etc.)
If your cluster already has an ingress controller handling TLS and HTTP routing for other apps, use it for the orchestrator too.
values.yaml:
loadBalancer:
provider: existing
existing:
ingress:
enabled: true
className: nginx
host: mcp.yourcompany.com
tls: true
tlsSecretName: mcp-envoy-tls
Cloud LoadBalancer (EKS / GKE / AKS)
Default mode. Your cloud provider's LoadBalancer controller assigns a public IP automatically. See the cloud appendix at the bottom.
Install (manual)
Most users should use the
install.shscript above. This section documents the same steps the script performs, useful when you need to customize values the script doesn't expose, or when you want to read every step before running anything.
Add the helm repo (one time)
helm repo add magertron https://magertron.com/charts
helm repo update
Minimum viable install (Free tier, self-signed cert, NodePort)
Fine for kicking the tires. Not for production.
helm install mcp magertron/mcp-orchestrator \
--namespace mcp-system --create-namespace \
--set loadBalancer.provider=nodeport \
--set-file secrets.jwtPrivateKey=jwt.key \
--set-file secrets.jwtPublicKey=jwt.pub
Production install (Free tier)
helm install mcp magertron/mcp-orchestrator \
--namespace mcp-system --create-namespace \
--set loadBalancer.provider=nodeport \
--set orchestrator.env.apiPublicUrl=https://mcp.yourcompany.com \
--set secrets.dbPassword='<strong-password>' \
--set-file secrets.jwtPrivateKey=jwt.key \
--set-file secrets.jwtPublicKey=jwt.pub \
--set-file tls.cert=tls.crt \
--set-file tls.key=tls.key
Production install (Enterprise tier with license)
Same as above plus the license. The license JWT lives in a Secret:
kubectl create namespace mcp-system
kubectl create secret generic mcp-license \
--from-file=license.json=/path/to/license.json \
-n mcp-system
Then helm install ... as above. The orchestrator reads the license from
this Secret at startup.
What the flags mean
| Flag | Purpose |
|---|---|
--namespace mcp-system --create-namespace | Install into a dedicated namespace |
loadBalancer.provider=... | Pick your ingress path (see above) |
orchestrator.env.apiPublicUrl=... | Public HTTPS URL for SCIM meta.location + OIDC redirects. Must match the URL customers actually use. |
secrets.dbPassword=... | Set the PostgreSQL password. Default is changeme — don't ship it that way. |
--set-file secrets.jwtPrivateKey=... | JWT signing key (RS256 PEM) |
--set-file secrets.jwtPublicKey=... | JWT verification key (RS256 PEM) |
--set-file tls.cert=... | Your TLS cert (full chain PEM) |
--set-file tls.key=... | Your TLS private key (PEM) |
After install
1. Watch the rollout
kubectl get pods -n mcp-system -w
Expected pods (give it 2-3 minutes on first install):
mcp-orchestrator-xxxxx 2/2 Running
mcp-orchestrator-xxxxx 2/2 Running
mcp-orchestrator-envoy-xxxxx 1/1 Running
mcp-orchestrator-envoy-xxxxx 1/1 Running
mcp-orchestrator-postgres-xxxxx 1/1 Running
mcp-orchestrator-inventory-xxxxx 1/1 Running
mcp-orchestrator-inventory-postgres-xxxxx 1/1 Running
If anything stays in Init or Pending for more than a minute, see
Troubleshooting below.
Note:
mcp-orchestrator-inventorytypically restarts once or twice in the first 30 seconds while it waits for its Postgres to accept connections. This is normal and self-resolves.
2. Access the dashboard
For NodePort mode, if you haven't configured your firewall yet, quick test via port-forward:
kubectl port-forward svc/mcp-orchestrator-envoy \
-n mcp-system 8443:443
Then open https://localhost:8443 in your browser. Self-signed cert warning
expected if you didn't provide a real cert.
Log in as admin. Retrieve the auto-generated password from the
Kubernetes Secret:
kubectl get secret -n mcp-system mcp-orchestrator-secrets \
-o jsonpath='{.data.MCP_SEED_ADMIN_PASSWORD}' | base64 -d ; echo
(If you supplied your own password via --set seed.adminPassword=... at
install, use that instead.)
Change the password immediately via Users tab → admin → Password.
This is a bootstrap credential — treat it like an initial root password:
use it once, change it, then rotate the Secret value to invalidate the
bootstrap. See the post-install notes (helm get notes mcp -n mcp-system)
for full rotation guidance.
Set the admin email while you're there — Users → admin → Email. As of v2.4.x, email is required for new users and is used for password reset and account event notifications. See Identity linking.
3. Configure SSO (Enterprise — optional)
Admin → "Identity Providers" tab → "+ Add provider"
Fill in the OIDC or SAML details from your IdP (Okta, Azure AD, Google Workspace, etc.). For OIDC you'll typically need:
- Discovery URL (e.g.
https://your-org.okta.com/.well-known/openid-configuration) - Client ID
- Client Secret
- Redirect URI:
<apiPublicUrl>/api/v1/auth/sso/oidc/callback
If you want users to be auto-provisioned on first SSO login, set:
orchestr
Deploy mcp-orchestrator with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has mcp-orchestrator 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 chartmcp-orchestrator is pinned at v4.3.69 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