Best-of MCP topic
Best MCP Servers for AI Memory & Context
Top MCP servers for persistent memory, sequential reasoning, and context management. Make AI agents smarter.
20 servers · Updated 2026 · From 2805 reviewed
Top Picks
Cognitive memory for AI agents with Hebbian learning, 3-tier architecture, and knowledge graphs. Single ~15MB binary, runs offline on edge devices.
Git-native project memory for AI assistants with enterprise-grade audit compliance
Compatibility
Install
Claude Code
claude mcp add memdocs -- uvx memdocsProduction-ready RAG platform combining Graph RAG, vector search, and full-text search. Best choice for building your own Knowledge Graph and for Context Engineering
All AI Memory & Context Servers
Codebase Memory
Scan found nothingPersistent codebase knowledge graph. Survives session restarts and context compaction.
Rust Docs MCP Server
Scan found nothingProvides up-to-date documentation context for a specific Rust crate to LLMs via an MCP tool, using semantic search (embeddings) and LLM summarization.
MCP Ragdocs
Scan found nothingAn MCP server implementation that provides tools for retrieving and processing documentation through vector search, enabling AI assistants to augment their responses with relevant documentation context
Mengram
Scan found nothingHuman-like memory layer for AI agents with semantic, episodic, and procedural memory. Claude Code hooks (auto-save, auto-recall, cognitive profile). 29 MCP tools, knowledge graph, smart triggers, multi-user isolation. Python & JS SDKs.
Ragieai MCP Server
Scan found nothingRetrieve context from your Ragie (RAG) knowledge base connected to integrations like Google Drive, Notion, JIRA and more.
Ldclabs MCP Server
Scan found nothingKnowledge Graphs to enable memory persistence, knowledge evolution, explainable interaction.
claude mcp add kip -- uvx kip Omega Memory
Scan found nothingPersistent memory for AI coding agents with semantic search, auto-capture, cross-session learning, and intelligent forgetting. 12 MCP tools, local-first.
claude mcp add omega-memory -- uvx omega-memory Core
Scan found nothingPersistent memory for AI coding agents. #1 on LongMemEval. Local-first.
claude mcp add core -- uvx core Mnemex
Scan found nothingTemporal memory for AI with decay and reinforcement. Two-layer storage (JSONL + Markdown).
Engram
Scan found nothingIntelligent agent memory with semantic recall, automatic consolidation, contradiction detection, and bi-temporal knowledge graph. 80% on LOCOMO benchmark using 96% fewer tokens than full-context approaches.
claude mcp add tstockham96-engram -- npx -y engram Documentation Extractor
Scan found nothingExtract llms.txt from any docs site - Mintlify Docusaurus GitBook parser
claude mcp add extract-llms-docs -- npx -y extract-llms-docs Neverinfamous Memory Journal MCP
Scan found nothingA MCP server built for developers enabling Git based project management with project and personal…
claude mcp add memory-journal-mcp -- npx -y memory-journal-mcp Remembra
Scan found nothingPersistent memory layer for AI agents with entity resolution, PII detection, AES-256-GCM encryption at rest, and hybrid search. 100% on LoCoMo benchmark. Self-hosted.
Connapse
Scan found nothingSelf-hosted knowledge backend for AI agents with hybrid vector + keyword search, container-isolated indexes, and 11 MCP tools. .NET, Docker-ready.
Cogmemai MCP
Scan found nothingPersistent cognitive memory for Claude Code. Cloud-first with semantic search, AI-powered extraction, and project scoping. Zero local databases.
claude mcp add cogmemai-mcp -- npx -y cogmemai MCP Context Server
Scan found nothingAn MCP server that provides persistent multimodal context storage for LLM agents.
claude mcp add mcp-context-server -- uvx mcp-context-server Context7
Scan found nothingUp-to-date code documentation for LLMs and AI code editors.
claude mcp add context7 -- npx -y @upstash/context7-mcp FAQ
What are the best MCP servers for AI Memory & Context?
These are the 20 highest-signal AI Memory & Context servers from a directory of 2805, ranked by stars, maintenance recency and what our automated scan returned. Nobody here has used them: this is a sort, not a review. Shodh Memory is top of the list.
How do I install these MCP servers?
Each server page includes one-click install commands for Claude Code, Cursor, and VS Code. Click on any server above to see its install instructions.
Are these MCP servers safe to use?
No. 2,316 of the 2,805 servers here were shallow-cloned and put through five keyword searches in March 2026; 489 were never scanned at all. A green badge means those five searches matched nothing, which is not the same as safe — a grep cannot follow a variable or tell you what a server does once it is running. Read what the scan actually checks at /mcp/security, and read the source before you run anything.
Use the shortlist, then open a concrete workflow
Best-of pages are useful for narrowing options. The next practical move is a specific server detail page or a focused browser-first tool route.