keycloak-mcp-server

by christianhuth

Helm chartv1.3.1App 0.4.0Verified publisher

An MCP server for Keycloak, designed to work with Keycloak for identity and access management, covering, Users, Realms, Clients, Roles, Groups, IDPs, Authentication

About this chart

keycloak-mcp-server

An MCP server for Keycloak, designed to work with Keycloak for identity and access management, covering, Users, Realms, Clients, Roles, Groups, IDPs, Authentication

TL;DR;

helm repo add christianhuth https://charts.christianhuth.de
helm repo update
helm install my-release christianhuth/keycloak-mcp-server

Or install it from the OCI registry:

helm install my-release oci://ghcr.io/christianhuth/helm-charts/keycloak-mcp-server

Introduction

This chart bootstraps a MCP Server for Keycloak using the Helm package manager.

Prerequisites

  • Kubernetes 1.19+

Installing the Chart

To install the chart with the release name my-release:

helm repo add christianhuth https://charts.christianhuth.de
helm repo update
helm install my-release christianhuth/keycloak-mcp-server

The chart is also published as an OCI artifact which can be installed like this:

helm install my-release oci://ghcr.io/christianhuth/helm-charts/keycloak-mcp-server

These commands deploy the MCP Server on the Kubernetes cluster in the default configuration. The Values section lists the values that can be configured during installation.

Tip: List all releases using helm list

Uninstalling the Chart

To uninstall the my-release deployment:

helm uninstall my-release

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

Values

KeyTypeDefaultDescription
affinityobject{}Affinity settings for pod assignment
autoscaling.enabledboolfalse
autoscaling.maxReplicasint100
autoscaling.minReplicasint1
autoscaling.targetCPUUtilizationPercentageint80
deploymentStrategyobject{}Update strategy for the deployment
extraEnvlist[]additional environment variables to be added to the pods
extraEnvFromlist[]additional environment variables from ConfigMaps or Secrets
fullnameOverridestring""String to fully override "keycloak-mcp-server.fullname"
image.pullPolicystring"Always"image pull policy
image.registrystring"quay.io"image registry
image.repositorystring"sshaaf/keycloak-mcp-server"image repository
image.tagstring"0.4.0"Overrides the image tag
imagePullSecretslist[]If defined, uses a Secret to pull an image from a private Docker registry or repository.
ingress.annotationsobject{}
ingress.classNamestring""
ingress.enabledboolfalse
ingress.hosts[0].hoststring"chart-example.local"
ingress.hosts[0].paths[0].pathstring"/"
ingress.hosts[0].paths[0].pathTypestring"ImplementationSpecific"
ingress.tlslist[]
keycloak.auth.oidcClientIdstring""OIDC Client ID for JWT token validation. Used to validate incoming user JWT tokens (no secret needed)
keycloak.auth.tls.castring""CA certificate in PEM format to validate Keycloak server certificate
keycloak.auth.tls.enabledboolfalseWhether to add the ca certificate to the MCP Server
keycloak.auth.tls.existingResourceNamestring""Whether to use an existing resource for obtaining the CA certificate. The key needs to be ca.crt
keycloak.auth.tls.existingResourceTypestring"configmap"Type of the existing resource: secret or configmap
keycloak.auth.tls.useOpenshiftServiceCAboolfalseWhether to use the OpenShift Service CA. When true, the Service CA will be injected and used to validate the Keycloak server certificate
keycloak.realmstring"master"Name of the Keycloak realm
keycloak.urlstring""URL of the Keycloak instance to connect to
livenessProbe.failureThresholdint3Failure threshold for livenessProbe
livenessProbe.httpGet.pathstring"/q/health/live"Path for livenessProbe
livenessProbe.initialDelaySecondsint30Initial delay seconds for livenessProbe
livenessProbe.periodSecondsint10Period seconds for livenessProbe
livenessProbe.successThresholdint1Success threshold for livenessProbe
livenessProbe.timeoutSecondsint3Timeout seconds for livenessProbe
nameOverridestring""Provide a name in place of keycloak-mcp-server
nodeSelectorobject{}Node labels for pod assignment
podAnnotationsobject{}Annotations to be added to pods
podSecurityContextobjectsee values.yamlpod-level security context
readinessProbe.failureThresholdint3Failure threshold for readinessProbe
readinessProbe.httpGet.pathstring"/q/health/ready"Path for readinessProbe
readinessProbe.initialDelaySecondsint10Initial delay seconds for readinessProbe
readinessProbe.periodSecondsint5Period seconds for readinessProbe
readinessProbe.successThresholdint1Success threshold for readinessProbe
readinessProbe.timeoutSecondsint3Timeout seconds for readinessProbe
replicaCountint1Number of replicas
resourcesobjectsee values.yamlResource limits and requests for the pods.
revisionHistoryLimitint10The number of old ReplicaSets to retain
route.main.additionalRuleslist[]Additional custom rules that can be added to the route
route.main.annotationsobject{}Add annotations to the route
route.main.apiVersionstring"gateway.networking.k8s.io/v1"Set the route apiVersion, e.g. gateway.networking.k8s.io/v1 or gateway.networking.k8s.io/v1alpha2
route.main.enabledboolfalseEnables or disables the route
route.main.filterslist[]Filters define the filters that are applied to requests that match this rule.
route.main.hostnameslist[]Hostnames to be matched
route.main.httpsRedirectboolfalseadds a filter for redirecting to https (HTTP 301 Moved Permanently). To redirect HTTP traffic to HTTPS, you need to have a Gateway with both HTTP and HTTPS listeners. Matches and filters do not take effect if enabled. Ref. https://gateway-api.sigs.k8s.io/guides/http-redirect-rewrite/
route.main.kindstring"HTTPRoute"Set the route kind Valid options are GRPCRoute, HTTPRoute, TCPRoute, TLSRoute, UDPRoute
route.main.labelsobject{}Add labels to the route
route.main.matcheslistsee values.yamldefine conditions used for matching the rule against incoming HTTP requests.
route.main.parentRefslist[]Parent references (Gateway)
route.main.timeoutsobject{}defines the timeouts that can be configured for an HTTP request
securityContextobjectsee values.yamlcontainer-level security context
service.portint80Kubernetes port where service is exposed
service.typestring"ClusterIP"Kubernetes service type
serviceAccount.annotationsobject{}Annotations to add to the service account
serviceAccount.createbooltrueSpecifies whether a service account should be created
serviceAccount.namestring""The name of the service account to use. If not set and create is true, a name is generated using the fullname template
startupProbe.failureThresholdint30Failure threshold for startupProbe
startupProbe.httpGet.pathstring"/q/health/started"Path for startupProbe
startupProbe.initialDelaySecondsint0Initial delay seconds for startupProbe
startupProbe.periodSecondsint10Period seconds for startupProbe
startupProbe.successThresholdint1Success threshold for startupProbe
startupProbe.timeoutSecondsint3Timeout seconds for startupProbe
tolerationslist[]Toleration labels for pod assignment

Specify each parameter using the --set key=value[,key=value] argument to helm install.

Alternatively, a YAML file that specifies the values for the parameters can be provided while installing the chart. For example,

helm install my-release -f values.yaml christianhuth/keycloak-mcp-server

Deploy keycloak-mcp-server with OpenTenant

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