mcp-playwright

by whitediver

Helm chartv0.1.1App v0.0.43Verified publisher

A Helm chart for deploying the Playwright MCP server

About this chart

Playwright MCP Helm Chart

This Helm chart deploys the Playwright MCP (Model Context Protocol) server using the mcr.microsoft.com/playwright/mcp container image. The chart runs the server in headless Chromium mode and exposes the SSE transport so MCP clients can connect over HTTP.

Prerequisites

  • Kubernetes 1.16+
  • Helm 3.2.0+

Installing the Chart

To install the chart with the release name mcp-playwright:

helm install mcp-playwright ./charts/playwright

The command deploys the Playwright MCP server on the Kubernetes cluster with the default configuration. The Parameters section lists the configuration values you can override during installation.

Uninstalling the Chart

To uninstall/delete the mcp-playwright deployment:

helm delete mcp-playwright

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

Parameters

Global parameters

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

Image parameters

NameDescriptionValue
image.repositoryMCP image repositorymcr.microsoft.com/playwright/mcp
image.tagMCP image tag (immutable tags are recommended)v0.0.43
image.pullPolicyMCP image pull policyIfNotPresent
imagePullSecretsMCP 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.typeKubernetes service typeClusterIP
service.portService port that exposes the MCP server8931
service.targetPortContainer port the MCP server listens on8931

Ingress parameters

NameDescriptionValue
ingress.enabledEnable ingress record generation for the MCP serverfalse
ingress.classNameIngressClass 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["playwright.local"]
ingress.tlsTLS configuration for ingress[]

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

When you set an ingress host to "*", the chart omits the host field from the generated Ingress rule so that controllers that support wildcard routing (for example, NGINX) can match any hostname. Some ingress controllers may require explicit hostnames instead.

Environment variables

NameDescriptionValue
envEnvironment variables to set on the container{}
envSecretsEnvironment variables sourced from existing secrets{}
secretEnvEnvironment variables to create from chart-managed secret{}

[!IMPORTANT] The secretEnv section is intended for quick experiments only. For production deployments, prefer sourcing sensitive data from existing Kubernetes Secrets (via envSecrets) or from an external secret manager to avoid storing credentials in plaintext values files.

Command line arguments

NameDescriptionValue
extraArgsAdditional CLI arguments appended after the automatically managed port and path flags[]

Autoscaling parameters

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

Configuration and installation details

Exposing the application

The container entrypoint already launches the server in headless Chromium mode. The chart passes the configured service port to the server so it listens for HTTP connections. To make the MCP server reachable from outside the cluster, you can:

  1. Use port forwarding during development:

    kubectl port-forward svc/mcp-playwright 8931:8931
    
  2. Enable ingress for production traffic:

    ingress:
      enabled: true
      className: "nginx"
      hosts:
        - playwright.your-domain.com
    
  3. Switch to the LoadBalancer service type when your cluster supports it:

    service:
      type: LoadBalancer
    

Troubleshooting

Check pod status

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

Check logs

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

Test connection

helm test mcp-playwright

Deploy mcp-playwright with OpenTenant

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