Memory & Knowledge Graph MCP Servers
Choose an MCP server that gives AI agents persistent memory across sessions—using knowledge graphs, temporal facts, semantic vector recall, or private local SQLite and Markdown files.
10 selected servers
Docs reviewed
Selected for practical persistent agent memory workflows across knowledge graphs, temporal memory, semantic recall, and local-first storage with active directory listings.
Knowledge graph & temporal memory
Model entities, relationships, and time-aware facts so agents understand how projects, people, and decisions connect.
MCP Reference Memory
OfficialThe canonical lightweight starting point—stores entities, relations, and observations in a local JSONL knowledge graph with zero external services.
You’ll need: Node.js / npx or Docker and a local file path for the JSONL memory graph.
Neo4j Memory
OfficialCombines a production Neo4j graph database with dedicated graph-backed memory tools when your entity graph outgrows flat files.
You’ll need: Neo4j Aura or local Neo4j instance plus database credentials.
Graphiti
CommunityImplements temporally aware knowledge graphs so agents can track when facts became true or changed rather than overwriting history.
You’ll need: Graph database backend (such as Neo4j/FalkorDB) and an LLM/embedding provider.
Graphiti Local
CommunityA privacy-first local temporal knowledge graph using Ollama inference and embedded storage, separating read-only MCP recall from approved writes.
You’ll need: Local Ollama installation and Python runtime; no cloud LLM or external graph DB needed.
Recall all architectural decisions and related services connected to our billing migration, noting which decisions superseded earlier ones.
Semantic & hosted agent memory
Automatic memory extraction, semantic recall, and cross-device persistence backed by dedicated memory services.
Mem0 MCP
CommunityConnects MCP clients to Mem0’s semantic memory layer so agents can add, search, and update distilled user or project memories.
You’ll need: Mem0 Cloud API key or a self-hosted Mem0 stack (LLM + vector store).
Zep Memory
CommunityBrings Zep’s long-term conversational memory and context retrieval to MCP clients for teams already building on Zep.
You’ll need: Zep account and ZEP_API_KEY configured via environment variable.
Engram
OfficialHosted MCP memory server aimed at teams that want managed, reliable agent memory without running local storage or vector databases.
You’ll need: Engram account / API credentials connected to the hosted MCP server.
Save my preferred TypeScript testing conventions and deployment checklist to memory, then verify you can recall them with a fresh query.
Local-first SQLite & Markdown memory
Keep every memory inspectable, versionable, and offline on your own disk while sharing it across coding tools.
Basic Memory
CommunityBuilds a readable, local Markdown knowledge base with semantic links that you can edit directly in Obsidian or any text editor alongside your LLM.
You’ll need: Python / uv locally and a folder on disk for your Markdown notes.
ai-memory
OfficialLocal SQLite memory with multi-factor ranking and on-demand recall so stored memories consume zero tokens until queried.
You’ll need: Local runtime with a local SQLite database file; no external API keys required.
Make0 Brain
CommunityDesigned for developers switching between Claude Code, Cursor, and Codex—stores one versioned, offline SQLite memory shared across agents.
You’ll need: Local SQLite storage; runs offline with no external API keys.
Record a short project note summarizing why we chose Postgres over SQLite for job queues, and link it to our infrastructure notes.
Where Memory MCP fits
Stop re-explaining architecture decisions, coding conventions, and project context every time you start a new chat or coding session.
Share persistent project knowledge across multiple MCP clients (such as Claude Desktop, Cursor, and CLI agents) from one memory store.
Track time-bound facts, relationships, and evolving preferences with temporal or graph-based memory instead of flat text dumps.
Setup checklist
- 1Pick a storage model that matches your privacy and team needs: local Markdown/SQLite for solo work, or Neo4j/Mem0/Zep for shared or semantic recall.
- 2Configure a dedicated memory file, database, or project namespace so personal preferences do not mix with work repositories.
- 3Add brief client instructions telling the agent when to search memory before answering and what facts are worth saving.
- 4Periodically audit and prune stale or contradictory memories so recall stays concise and accurate.
How to choose
- Choose local-first Markdown or SQLite servers (Basic Memory, ai-memory, Make0 Brain) when privacy, offline access, and zero API fees matter most.
- Choose knowledge-graph or temporal servers (Neo4j, Graphiti, Reference Memory) when relationships between people, services, and time-varying facts are central.
- Choose hosted semantic memory (Mem0, Zep, Engram) when you want automatic extraction, cross-device sync, and multi-agent recall without managing storage.