mcp-homeassistant

by whitediver

Helm chartv0.2.4App latestVerified publisher

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

NameDescriptionValue
replicaCountNumber of Home Assistant MCP replicas to deploy1
nameOverrideString to partially override hass-mcp.fullname""
fullnameOverrideString to fully override hass-mcp.fullname""

Image parameters

NameDescriptionValue
image.repositoryHome Assistant MCP image repositoryvoska/hass-mcp
image.tagHome Assistant MCP image tag (immutable tags are recommended)latest
image.pullPolicyHome Assistant MCP image pull policyIfNotPresent
imagePullSecretsHome Assistant MCP 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.typeHome Assistant MCP service typeClusterIP
service.portHome Assistant MCP service HTTP port8080

Ingress parameters

NameDescriptionValue
ingress.enabledEnable ingress record generation for Home Assistant MCPfalse
ingress.classNameIngressClass that will be 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["hass-mcp.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{}

Autoscaling parameters

NameDescriptionValue
autoscaling.enabledEnable Horizontal Pod Autoscaler (HPA)false
autoscaling.minReplicasMinimum number of Home Assistant MCP replicas1
autoscaling.maxReplicasMaximum number of Home Assistant MCP replicas100
autoscaling.targetCPUUtilizationPercentageTarget CPU utilization percentage80
autoscaling.targetMemoryUtilizationPercentageTarget 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:

  1. Using plain environment variables (not recommended for production):

    env:
      HA_URL: "http://homeassistant.local:8123"
      HA_TOKEN: "your-long-lived-access-token"
    
  2. 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:

  1. Use port forwarding (for development):

    kubectl port-forward svc/hass-mcp 8080:8080
    
  2. Enable ingress (for production):

    ingress:
      enabled: true
      className: "nginx"
      path: /
      hosts:
        - hass-mcp.your-domain.com
    
  3. 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.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartmcp-homeassistant is pinned at v0.2.4 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