redis/agent-memory-server
Fast and flexible memory for agents and AI applications using Redis
What it solves
AI agents often need to remember information across conversations, but replaying entire chat histories is costly and slow. Agent Memory Server addresses this by giving agents a fast session memory for the active conversation and a durable long-term memory for facts, preferences, and summaries, so later sessions can recall without reprocessing everything.
How it works
The server uses Redis to store two memory tiers: session (working) memory for the current conversation and long-term memory for enduring knowledge. A background process extracts important details from session data and moves them into long-term memory automatically, keeping the agent loop responsive. Retrieval uses vector search in Redis (via RedisVL) combined with metadata filters. The server exposes a REST API, a Python client, a command-line interface, and an MCP server for desktop agent integration.
Who it's for
Developers building AI agents who need persistent memory, or those studying how agent memory systems are designed. Because it is deprecated, new projects should use the supported Redis Agent Memory service instead; this repository is preserved as a reference implementation and for existing deployments during migration.
Highlights
- Two-tier memory design: session memory for active context, long-term memory for durable facts and preferences.
- Background extraction, so the agent loop stays fast without manual memory writing.
- Retrieval using Redis vector search with metadata filters.
- Multiple interfaces: REST API, Python client, CLI, and MCP server.
- Includes a LongMemEval benchmark harness for evaluating memory providers.
- Deprecated but documented as the research basis for Redis Agent Memory.
Related
- Project
- Project
- Project
- Project
- Dispatch