claude-memory
by janip81
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
| Name | Url | |
|---|---|---|
| janip81 | [email protected] | https://github.com/janip81 |
Source Code
- https://github.com/janip81/helm-charts/tree/main/charts/claude-memory/
- https://github.com/janip81/claude-memory
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-textpulled:ollama pull nomic-embed-text - CNPG operator installed in the cluster (for the managed PostgreSQL cluster)
- A Kubernetes Secret with
BEARER_TOKENkey (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
| Key | Type | Default | Description |
|---|---|---|---|
| auth.secretName | string | "claude-memory-auth" | Name of the Secret containing BEARER_TOKEN (pre-created or rendered by AVP) |
| cnpg.backup.destinationPath | string | "s3://my-bucket/claude-memory" | S3 destination path |
| cnpg.backup.enabled | bool | false | Enable Barman S3 backup |
| cnpg.backup.endpointURL | string | "https://s3.example.com" | S3 endpoint URL |
| cnpg.backup.retentionPolicy | string | "30d" | Backup retention policy |
| cnpg.backup.s3CredentialsSecret | string | "cnpg-barman-s3-creds" | Name of the Secret containing S3 credentials (keys: access-key-id, secret-access-key, region) |
| cnpg.enabled | bool | true | Enable CNPG PostgreSQL cluster |
| cnpg.instances | int | 1 | Number of CNPG instances |
| cnpg.storage.size | string | "5Gi" | Storage size for the CNPG cluster |
| cnpg.storage.storageClass | string | "" | Storage class for the CNPG cluster |
| dedup.enabled | bool | true | Enable the deduplication CronJob |
| dedup.resources.limits.cpu | string | "500m" | |
| dedup.resources.limits.memory | string | "256Mi" | |
| dedup.resources.requests.cpu | string | "100m" | |
| dedup.resources.requests.memory | string | "128Mi" | |
| dedup.schedule | string | "30 3 * * *" | Cron schedule (default: 03:30 daily, after CNPG backup window) |
| dedup.semanticThreshold | string | "0.92" | Cosine similarity threshold for semantic near-dedup (0–1, higher = stricter) |
| dedup.suspend | bool | false | Suspend the CronJob without deleting it |
| gatewayApi.enabled | bool | true | Enable Gateway API HTTPRoute |
| gatewayApi.host | string | "mem0-mcp.prod.example.com" | Hostname for the MCP HTTPRoute |
| gatewayApi.parentRefs | list | [{"name":"internal-shared","namespace":"kube-system"}] | Gateway parentRefs |
| image.pullPolicy | string | "IfNotPresent" | Image pull policy |
| image.repository | string | "ghcr.io/janip81/claude-memory" | Image repository |
| image.tag | string | "latest" | Image tag |
| imagePullSecrets | list | [] | Image pull secrets for private registries (e.g. ghcr.io) |
| mem0.agentId | string | "default" | Default agent ID tag (overridden per client via X-Agent-ID header) |
| mem0.infer | string | "true" | Enable LLM extraction and deduplication on add_memory calls |
| mem0.userId | string | "default" | User ID namespace for stored memories |
| ollama.baseUrl | string | "http://ollama:11434" | Ollama server URL |
| ollama.embedModel | string | "nomic-embed-text" | Embedding model (must be pulled in Ollama) |
| ollama.model | string | "qwen2.5:7b" | Chat model for LLM operations |
| replicaCount | int | 1 | Number of replicas |
| resources.limits.cpu | string | "500m" | CPU limit |
| resources.limits.memory | string | "512Mi" | Memory limit |
| resources.requests.cpu | string | "100m" | CPU request |
| resources.requests.memory | string | "256Mi" | Memory request |
| service.port | int | 8080 | Service port |
| service.type | string | "ClusterIP" | Service type |
| ui.enabled | bool | true | Enable the memory browser UI (separate pod, separate image) |
| ui.host | string | "" | Hostname for the UI HTTPRoute (leave empty to share MCP hostname with path routing) |
| ui.image.pullPolicy | string | "IfNotPresent" | Image pull policy |
| ui.image.repository | string | "ghcr.io/janip81/claude-memory-ui" | UI image repository (separate from MCP image) |
| ui.image.tag | string | "latest" | Image tag |
| ui.port | int | 8081 | Port the UI listens on inside the container |
| ui.resources.limits.cpu | string | "200m" | |
| ui.resources.limits.memory | string | "128Mi" | |
| ui.resources.requests.cpu | string | "50m" | |
| ui.resources.requests.memory | string | "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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartclaude-memory is pinned at v0.1.10 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