Memory Backends

The FL Repos MCP server can be paired with a memory backend to give AI agents persistent, searchable memory across sessions. This allows the agent to remember previous analyses, team decisions, and contextual notes about the codebase. Two memory backends are supported: Graphiti (the default and recommended option) and Zep (an alternative).

Graphiti

Graphiti is a temporal knowledge graph built on top of Neo4j/FalkorDB. It stores memory as episodes (timestamped facts and observations) and automatically extracts entities and relationships from natural language, weaving them into a knowledge graph alongside the FL Repos data.

Deployment

The Graphiti server is deployed at:

Pre-loaded episodes

The Graphiti instance for FL Repos has 641 episodes already ingested. These include:
  • Repository analysis summaries from previous AI sessions
  • Architectural observations and cross-repo patterns
  • Team-added notes about specific services and components
  • Historical context about why certain design decisions were made

Configuration

Set the GRAPHITI_URL environment variable in your MCP server config:

How Graphiti stores memory

When the AI agent calls add_memory, Graphiti:
  1. Parses the episode content for named entities (repos, functions, contributors, etc.)
  2. Links extracted entities to existing nodes in the knowledge graph
  3. Timestamps the episode for temporal reasoning (“what did we know last week?”)
  4. Indexes the content for semantic similarity search
When the agent calls search_memory, Graphiti:
  1. Embeds the search query
  2. Searches both the graph structure (entity links) and vector index (semantic similarity)
  3. Ranks results by relevance and recency
  4. Returns the most relevant episodes with their timestamps and extracted entities

Temporal reasoning

Graphiti’s temporal model means the agent can reason about how knowledge changes over time:

Zep

Zep is an episodic memory service designed for AI applications. It stores sessions, messages, and facts, and provides semantic search over them.

When to use Zep

Use Zep instead of Graphiti when:
  • You prefer a managed cloud service with a dashboard
  • You want tight integration with LangChain or LlamaIndex
  • You need session-level memory (conversation history) rather than graph-linked facts

Configuration

If both GRAPHITI_URL and ZEP_API_URL are set, Graphiti takes precedence. To use Zep, set only the Zep variables.

Backend Comparison


Using Memory in Practice

Adding a note about a repository

Searching for past decisions

Combining memory with graph queries

The most powerful pattern is combining live graph data with stored memory context: