mcp-homeassistant
by whitediver
A Helm chart for deploying Home Assistant MCP server
About this chart
Home Assistant MCP Helm Chart
This Helm chart deploys the Home Assistant MCP (Model Context Protocol) server based on the voska/hass-mcp 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 hass-mcp:
helm install hass-mcp ./charts/homeassistant
The command deploys the Home Assistant MCP server 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 hass-mcp deployment:
helm delete hass-mcp
The command removes all the Kubernetes components associated with the chart and deletes the release.
Parameters
Global parameters
| Name | Description | Value |
|---|---|---|
replicaCount | Number of Home Assistant MCP replicas to deploy | 1 |
nameOverride | String to partially override hass-mcp.fullname | "" |
fullnameOverride | String to fully override hass-mcp.fullname | "" |
Image parameters
| Name | Description | Value |
|---|---|---|
image.repository | Home Assistant MCP image repository | voska/hass-mcp |
image.tag | Home Assistant MCP image tag (immutable tags are recommended) | latest |
image.pullPolicy | Home Assistant MCP image pull policy | IfNotPresent |
imagePullSecrets | Home Assistant MCP 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 | Home Assistant MCP service type | ClusterIP |
service.port | Home Assistant MCP service HTTP port | 8080 |
Ingress parameters
| Name | Description | Value |
|---|---|---|
ingress.enabled | Enable ingress record generation for Home Assistant MCP | false |
ingress.className | IngressClass that will be 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 | ["hass-mcp.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 | {} |
Autoscaling parameters
| Name | Description | Value |
|---|---|---|
autoscaling.enabled | Enable Horizontal Pod Autoscaler (HPA) | false |
autoscaling.minReplicas | Minimum number of Home Assistant MCP replicas | 1 |
autoscaling.maxReplicas | Maximum number of Home Assistant MCP replicas | 100 |
autoscaling.targetCPUUtilizationPercentage | Target CPU utilization percentage | 80 |
autoscaling.targetMemoryUtilizationPercentage | Target Memory utilization percentage | "" |
Configuration and installation details
Setting up Home Assistant access
The Home Assistant MCP server requires access to your Home Assistant instance. You can configure this using environment variables:
-
Using plain environment variables (not recommended for production):
env: HA_URL: "http://homeassistant.local:8123" HA_TOKEN: "your-long-lived-access-token" -
Using secrets (recommended for production):
secretEnv: data: HA_TOKEN: "your-long-lived-access-token" env: HA_URL: "http://homeassistant.local:8123"
Exposing the application
To access the Home Assistant MCP server from outside the cluster, you can:
-
Use port forwarding (for development):
kubectl port-forward svc/hass-mcp 8080:8080 -
Enable ingress (for production):
ingress: enabled: true className: "nginx" path: / hosts: - hass-mcp.your-domain.com -
Use LoadBalancer service type:
service: type: LoadBalancer
Troubleshooting
Check pod status
kubectl get pods -l app.kubernetes.io/name=mcp-homeassistant-helm
Check logs
kubectl logs -l app.kubernetes.io/name=mcp-homeassistant-helm
Test connection
helm test hass-mcp
Deploy mcp-homeassistant with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has mcp-homeassistant 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-homeassistant is pinned at v0.2.4 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