graphiti-mcp

by upstreamyard

Helm chartv0.1.1App 1.1.5Apache-2.0Verified publisher

Graphiti MCP server Helm chart for Kubernetes. Zep's open-source temporal knowledge graph memory for AI agents (Claude, Cursor, any MCP client) over streamable HTTP, on the official knowledge-graph-mcp image, with FalkorDB or Neo4j, OpenAI, Azure OpenAI, Anthropic, Gemini, Groq or any OpenAI-compatible LLM (vLLM, Ollama, LiteLLM), API keys in Secrets, non-root on a read-only filesystem, NetworkPolicy, Ingress or Gateway API and helm test. Community chart by upstreamyard, not an official Graphiti chart. Graphiti is licensed under Apache-2.0.

About this chart

Graphiti MCP server Helm chart: Zep's Graphiti knowledge graph memory for AI agents on Kubernetes

Questions about this chart? We build and test it, and we answer every email ourselves, usually within two days. Ask about upgrades, configuration, hardened or custom images, or anything else. A one-line question is fine: [email protected]

Helm chart for the Graphiti MCP server, Zep's open-source temporal knowledge graph memory for AI agents. Agents in Claude Code, Claude Desktop, Cursor or any other Model Context Protocol (MCP) client store conversations and facts as episodes and search them later as entities and relationships (GraphRAG, long-term agent memory). The chart runs the server over streamable HTTP on Zep's official image zepai/knowledge-graph-mcp (1.1.5), with FalkorDB or Neo4j as the graph database and OpenAI, Azure OpenAI, Anthropic, Gemini, Groq or any OpenAI-compatible LLM (vLLM, Ollama, LiteLLM). API keys and passwords live in Secrets, the server runs as non-root on a read-only filesystem, a NetworkPolicy limits who can reach it, Ingress or Gateway API expose it, upgrades keep queued episodes, and helm test checks the MCP session and the database.

Community chart by upstreamyard, not an official Graphiti chart. Graphiti is licensed under Apache-2.0.

AI agents and coding assistants: this README is the complete reference for this chart. Every example was run as written.

Install

The chart needs a running graph database. The quickest way is our FalkorDB chart in the same namespace, whose generated password Graphiti then reads from FalkorDB's Secret:

helm repo add upstreamyard https://upstreamyard.github.io/helm-charts
helm install falkordb upstreamyard/falkordb -n memory --create-namespace --wait
helm install graphiti-mcp upstreamyard/graphiti-mcp -n memory \
  --set database.falkordb.uri=redis://falkordb.memory.svc:6379 \
  --set database.falkordb.existingSecret=falkordb \
  --set apiKeys.OPENAI_API_KEY=sk-... \
  --wait
helm test graphiti-mcp -n memory

Or from the OCI registry:

helm install graphiti-mcp oci://ghcr.io/upstreamyard/charts/graphiti-mcp -n memory \
  --set database.falkordb.uri=redis://falkordb.memory.svc:6379 \
  --set database.falkordb.existingSecret=falkordb \
  --set apiKeys.OPENAI_API_KEY=sk-... \
  --wait

By default the server uses OpenAI for extraction (gpt-6-luna) and embeddings (text-embedding-3-small). The image is large (3.3 GB compressed for amd64), so the first start on a node waits for the pull; after that, the pod is ready within seconds.

Verifying the chart

Chart packages are PGP-signed. Import the public key (fingerprint 9B416F989B7E6C65F7F3BFAE7689688B20EC7813) and install with --verify:

curl -s https://upstreamyard.github.io/helm-charts/pgp_keys.asc | gpg --dearmor > upstreamyard.gpg
helm install graphiti-mcp upstreamyard/graphiti-mcp --verify --keyring upstreamyard.gpg -f values.yaml

The OCI copy on GHCR is signed with cosign instead (see the repository README).

Why this chart

This chartOlder community Graphiti MCP chart
Graphiti MCP server1.1.5, updated with every release0.2.1 (July 2025, before the 1.0 server)
Graph databaseFalkorDB or Neo4j, checked at installNeo4j variables only
Configurationthe server's full config.yaml from values: providers, models, entity and edge typesenvironment variables
CredentialsAPI keys and passwords in Secrets, or your own Secrets (existingSecret)plain values, or a Secret you add yourself
Replicas1, and the chart explains why (in-memory MCP sessions)replicaCount and an autoscaler option (up to 100 replicas), which break MCP sessions
SecurityUID 10001, read-only root filesystem, no capabilities, RuntimeDefault seccompthe image's defaults (root)
Access controlNetworkPolicy for a server without authentication–
ExposureIngress, or Gateway API HTTPRoute without the gateway's request timeoutIngress
Upgradesa stopping pod finishes its queued episodes: 6 of 6 kept in our test, 0 of 6 without–
helm testopens an MCP session and checks the database–

What the chart does

  • Runs the server only. The chart uses the image's -standalone variant and never installs a database. It renders the server's config.yaml from config and database, mounts it read-only, and passes passwords and API keys as environment variables from Secrets (${OPENAI_API_KEY} in the config).
  • Non-root. The image runs as root and starts with uv from /root. The chart runs /app/mcp/.venv/bin/python main.py as UID 10001 instead, with a read-only root filesystem and an emptyDir at /tmp.
  • One replica. MCP sessions and the queue of episodes waiting for processing live in the server's memory. The chart refuses replicaCount above 1.
  • Probes use /health. The server only listens once it has connected to the database and built its indices, so a pod is ready only with a working database. Without one, the server exits and the pod restarts until the database is reachable.
  • Upgrades start the new pod first. The old pod then keeps running for preStopSleepSeconds (30 s) without new requests, so it can finish the episodes it has queued.
  • No Service links (enableServiceLinks: false): Kubernetes would otherwise add variables such as FALKORDB_PORT and NEO4J_PORT_7687_TCP_PORT for Services in the namespace, and the server and Neo4j read such variables as settings.

Graph database

FalkorDB (default)

A single FalkorDB instance, e.g. our FalkorDB chart with architecture: standalone (its default). In the same namespace, read the password from its Secret (<release>-falkordb, key password):

database:
  provider: falkordb
  falkordb:
    uri: redis://falkordb.memory.svc:6379
    existingSecret: falkordb
    existingSecretKey: password

From another namespace, copy the password into a Secret there, or set database.falkordb.password. FalkorDB stores each group ID (Graphiti's namespace for memories) in a graph of its own; database.falkordb.database names the graph of the default group.

Not supported: FalkorDB with Sentinel failover, including our FalkorDB chart's replication mode. Graphiti's FalkorDB driver connects to one host and port. Pointed at the Service of a replicated FalkorDB, it reaches replicas too and stops with You can't write against a read only replica. TLS (rediss://) isn't supported either: the driver ignores the scheme and connects in plain text, so the chart refuses such URIs.

Neo4j

database:
  provider: neo4j
  neo4j:
    uri: bolt://neo4j.db.svc:7687
    username: neo4j
    existingSecret: neo4j-auth
    existingSecretKey: password

Tested: Neo4j 5 Community, episodes added and found with search_nodes.

LLM and embedding providers

config.llm picks the model that extracts entities and facts from each episode; config.embedder the embedding model for search. Put the matching keys into apiKeys (or a Secret named in existingApiKeysSecret). The variable names are those in the default config: OPENAI_API_KEY, ANTHROPIC_API_KEY, GOOGLE_API_KEY, GROQ_API_KEY, AZURE_OPENAI_API_KEY and VOYAGE_API_KEY.

OpenAI (default)

config:
  llm:
    model: gpt-6-luna
  embedder:
    model: text-embedding-3-small
    dimensions: 1536
existingApiKeysSecret: graphiti-api-keys   # kubectl create secret generic graphiti-api-keys --from-literal=OPENAI_API_KEY=sk-...

Anthropic for extraction, OpenAI for embeddings

Anthropic has no embedding models, so the embedder stays on OpenAI (or Voyage):

config:
  llm:
    provider: anthropic
    model: claude-haiku-5-5
apiKeys:
  ANTHROPIC_API_KEY: sk-ant-...
  OPENAI_API_KEY: sk-...

OpenAI-compatible servers (vLLM, Ollama, LiteLLM)

Keep the openai provider and point it at your server. Graphiti then uses the Chat Completions API with JSON schema output. For servers that don't enforce JSON schemas, set config.llm.structured_output_mode: json_object.

config:
  llm:
    provider: openai
    model: qwen3-32b
    providers:
      openai:
        api_url: http://vllm.ai.svc:8000/v1
  embedder:
    provider: openai
    model: nomic-embed-text
    dimensions: 768
    providers:
      openai:
        api_url: http://vllm.ai.svc:8000/v1
apiKeys:
  OPENAI_API_KEY: not-needed   # the server refuses to start without a key, even if yours ignores it

Tested: with an OpenAI-compatible test server in the cluster, episodes were extracted, embedded, stored in FalkorDB and Neo4j, and found with search_nodes.

Azure OpenAI, Gemini, Groq and Voyage are configured the same way through config.llm.provider, config.embedder.provider and their block under providers (e.g. providers.azure_openai.api_url and deployment_name). We didn't test these.

Rate limits: semaphoreLimit (default 10) caps how many episodes are processed at once. Lower it when the provider answers with HTTP 429.

Connecting clients

The MCP endpoint (streamable HTTP) in the cluster is

http://<release>-graphiti-mcp.<namespace>.svc:8000/mcp

or http://graphiti-mcp.<namespace>.svc:8000/mcp for a release named graphiti-mcp. The install notes print it. Use /mcp without a trailing slash: /mcp/ answers with a redirect to http://…/mcp, which behind HTTPS points to plain HTTP.

Claude Code (from your machine, through a port-forward):

kubectl port-forward -n memory svc/graphiti-mcp 8000:8000
claude mcp add --transport http graphiti http://localhost:8000/mcp

Other MCP clients take the same URL as a "streamable HTTP" (not SSE) server, e.g. in a .mcp.json file:

{
  "mcpServers": {
    "graphiti": { "type": "http", "url": "http://localhost:8000/mcp" }
  }
}

Tested: Claude Code 2.1 called the server's tools through this configuration.

Restarts end MCP sessions. Sessions live in the pod's memory. After an upgrade or restart, a client's next request gets 404 Session not found, and the client has to open a new session (the MCP protocol requires clients to do so).

Access control

The Graphiti MCP server has no authentication. Whoever reaches it can read every group's memories and delete them (clear_graph, delete_episode). Keep the Service internal and restrict it with the NetworkPolicy, which only lets the listed sources and pods with the label <release>-graphiti-mcp-client: "true" connect:

networkPolicy:
  enabled: true
  from:
    - namespaceSelector:
        matchLabels:
          kubernetes.io/metadata.name: agents

Tested in kind: pods in agents and the labelled test pod connected; a pod without the label in the same namespace timed out. NetworkPolicies need a CNI that enforces them.

Exposing the server

For clients outside the cluster, use a Gateway or Ingress with authentication in front (e.g. oauth2-proxy, or your gateway's auth policy), and let only the gateway through the NetworkPolicy:

httpRoute:
  enabled: true
  parentRefs:
    - name: internal
      namespace: memory
  hostnames:
    - graphiti-mcp.example.com
networkPolicy:
  enabled: true
  from:
    - namespaceSelector:
        matchLabels:
          kubernetes.io/metadata.name: envoy-gateway-system

The route sets timeouts.request: 0s (httpRoute.timeouts). Tested with Envoy Gateway 1.10: with its default 15-second request timeout, an open MCP stream was cut after 17 s; with 0s, it stayed open, and tool calls and search worked through the gateway. Ingresses need the same: turn off response buffering and raise the read timeout of your controller. The Ingress template was only rendered and validated, not tested with a controller.

Upgrades and queued episodes

add_memory returns at once and processes the episode in the background, one episode per group at a time. When the server gets SIGTERM, it cancels this queue, and the episodes still in it are lost. That's why a stopping pod first keeps running for preStopSleepSeconds without getting new requests.

Tested in kind: 6 episodes queued (about 4 s of LLM time each), then a rolling upgrade: with preStopSleepSeconds: 0, none of the 6 was stored; with the default 30 s, all 6 were. If your agents queue more, raise both values, e.g. preStopSleepSeconds: 120 and terminationGracePeriodSeconds: 150.

To change the image version, set image.tag (e.g. 1.1.5-standalone; always the -standalone variant) or upgrade the chart.

Graphiti configuration

Your config values are merged into the defaults in values.yaml, so you only set what you change. Lists replace the default list:

config:
  graphiti:
    group_id: support            # default group when a client doesn't name one
    entity_types:
      - name: Customer
        description: A company or person that buys from us
      - name: Product
        description: A product or service we sell
      - name: Issue
        description: A pr

Deploy graphiti-mcp with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has graphiti-mcp 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 chartgraphiti-mcp 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