claude-memory

by janip81

Helm chartv0.1.10App 0.1.0Verified publisher

MCP memory server — mem0 + pgvector + Ollama embeddings

About this chart

claude-memory

MCP memory server — mem0 + pgvector + Ollama embeddings

Homepage: https://github.com/janip81/helm-charts/tree/main/charts/claude-memory

Maintainers

NameEmailUrl
janip81[email protected]https://github.com/janip81

Source Code

Overview

Helm chart for deploying claude-memory — a self-hosted MCP memory server built on mem0, pgvector (via CNPG), and Ollama embeddings.

Gives Claude Code persistent semantic memory across sessions. Facts are stored directly in pgvector and retrieved via semantic search — no LLM API calls required.

Adding this helm repository

helm repo add janip81 https://janip81.github.io/helm-charts/
helm search repo claude-memory

Prerequisites

  • Ollama running and reachable with nomic-embed-text pulled:
    ollama pull nomic-embed-text
    
  • CNPG operator installed in the cluster (for the managed PostgreSQL cluster)
  • A Kubernetes Secret with BEARER_TOKEN key (pre-created or via AVP):
    kubectl -n claude-memory create secret generic claude-memory-auth \
      --from-literal=BEARER_TOKEN='your-token'
    

TL;DR

helm repo add janip81 https://janip81.github.io/helm-charts/
helm install claude-memory janip81/claude-memory \
  --namespace claude-memory \
  --create-namespace \
  --set gatewayApi.host=mem0-mcp.your-domain.com \
  --set ollama.baseUrl=http://your-ollama-host:11434 \
  --set cnpg.storage.storageClass=your-storage-class

Connecting Claude Code

After deployment:

claude mcp add --transport http --scope user mem0-mcp https://mem0-mcp.your-domain.com/mcp

Enter the bearer token when prompted.

Gateway API (HTTPRoute)

gatewayApi:
  enabled: true
  host: mem0-mcp.your-domain.com
  parentRefs:
    - name: internal-shared
      namespace: kube-system

CNPG Backup (Barman S3)

cnpg:
  backup:
    enabled: true
    destinationPath: s3://my-bucket/claude-memory
    endpointURL: https://s3.example.com
    s3CredentialsSecret: cnpg-barman-s3-creds
    retentionPolicy: "30d"

The s3CredentialsSecret must contain keys: access-key-id, secret-access-key, region.

Values

KeyTypeDefaultDescription
auth.secretNamestring"claude-memory-auth"Name of the Secret containing BEARER_TOKEN (pre-created or rendered by AVP)
cnpg.backup.destinationPathstring"s3://my-bucket/claude-memory"S3 destination path
cnpg.backup.enabledboolfalseEnable Barman S3 backup
cnpg.backup.endpointURLstring"https://s3.example.com"S3 endpoint URL
cnpg.backup.retentionPolicystring"30d"Backup retention policy
cnpg.backup.s3CredentialsSecretstring"cnpg-barman-s3-creds"Name of the Secret containing S3 credentials (keys: access-key-id, secret-access-key, region)
cnpg.enabledbooltrueEnable CNPG PostgreSQL cluster
cnpg.instancesint1Number of CNPG instances
cnpg.storage.sizestring"5Gi"Storage size for the CNPG cluster
cnpg.storage.storageClassstring""Storage class for the CNPG cluster
dedup.enabledbooltrueEnable the deduplication CronJob
dedup.resources.limits.cpustring"500m"
dedup.resources.limits.memorystring"256Mi"
dedup.resources.requests.cpustring"100m"
dedup.resources.requests.memorystring"128Mi"
dedup.schedulestring"30 3 * * *"Cron schedule (default: 03:30 daily, after CNPG backup window)
dedup.semanticThresholdstring"0.92"Cosine similarity threshold for semantic near-dedup (0–1, higher = stricter)
dedup.suspendboolfalseSuspend the CronJob without deleting it
gatewayApi.enabledbooltrueEnable Gateway API HTTPRoute
gatewayApi.hoststring"mem0-mcp.prod.example.com"Hostname for the MCP HTTPRoute
gatewayApi.parentRefslist[{"name":"internal-shared","namespace":"kube-system"}]Gateway parentRefs
image.pullPolicystring"IfNotPresent"Image pull policy
image.repositorystring"ghcr.io/janip81/claude-memory"Image repository
image.tagstring"latest"Image tag
imagePullSecretslist[]Image pull secrets for private registries (e.g. ghcr.io)
mem0.agentIdstring"default"Default agent ID tag (overridden per client via X-Agent-ID header)
mem0.inferstring"true"Enable LLM extraction and deduplication on add_memory calls
mem0.userIdstring"default"User ID namespace for stored memories
ollama.baseUrlstring"http://ollama:11434"Ollama server URL
ollama.embedModelstring"nomic-embed-text"Embedding model (must be pulled in Ollama)
ollama.modelstring"qwen2.5:7b"Chat model for LLM operations
replicaCountint1Number of replicas
resources.limits.cpustring"500m"CPU limit
resources.limits.memorystring"512Mi"Memory limit
resources.requests.cpustring"100m"CPU request
resources.requests.memorystring"256Mi"Memory request
service.portint8080Service port
service.typestring"ClusterIP"Service type
ui.enabledbooltrueEnable the memory browser UI (separate pod, separate image)
ui.hoststring""Hostname for the UI HTTPRoute (leave empty to share MCP hostname with path routing)
ui.image.pullPolicystring"IfNotPresent"Image pull policy
ui.image.repositorystring"ghcr.io/janip81/claude-memory-ui"UI image repository (separate from MCP image)
ui.image.tagstring"latest"Image tag
ui.portint8081Port the UI listens on inside the container
ui.resources.limits.cpustring"200m"
ui.resources.limits.memorystring"128Mi"
ui.resources.requests.cpustring"50m"
ui.resources.requests.memorystring"64Mi"

Autogenerated from chart metadata using helm-docs v1.14.2

Deploy claude-memory with OpenTenant

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