By sergesha
Persistent cross-session memory for AI agents. Two storage modes: semantic vector search (mem_*) for knowledge found by meaning, and key-value store (kv_*) for instant lookup. Auto-expiry via TTL + volatile-lru eviction.
Persistent cross-session memory for AI agents — semantic search + KV store with auto-expiry
Long-term self-managing memory for LLM agents (Cursor, Claude Code, etc.) via MCP.
mem_*) — save facts with vector embeddings, find by meaningkv_*) — instant O(1) lookup for named facts# 1. Clone
git clone https://github.com/yourname/redis-memory-mcp
cd redis-memory-mcp
# 2. Start infrastructure
docker compose up -d
# 3. Add to your AI tool's MCP config
~/.cursor/mcp.json){
"mcpServers": {
"redis-memory-mcp": {
"command": "docker",
"args": [
"run", "--rm", "-i",
"-e", "REDIS_URL=redis://host.docker.internal:6379/0",
"-e", "EMBED_URL=http://host.docker.internal:8081",
"-e", "INDEX_NAME=idx:memories",
"redis-memory-mcp"
]
}
}
}
Works automatically via .mcp.json in the repo root when using as a Claude plugin.
| Tool | Description |
|---|---|
kv_set(key, value, tags?, ttl_days?) | Store a named fact |
kv_get(key) | Retrieve by exact key (refreshes TTL) |
kv_delete(key) | Delete by key |
kv_list(tag?, pattern?) | List entries with filtering |
| Tool | Description |
|---|---|
mem_save(text, code?, tags?, ttl_days?) | Save fact with embedding |
mem_search(query, tags?, top_k?) | Find by meaning (refreshes TTL on hits) |
mem_list(limit?, tag?) | Browse by recency |
mem_delete(memory_id) | Delete by ID |
| TTL | Use case |
|---|---|
ttl_days=90 (default) | Normal facts — expire if unused for 90 days |
ttl_days=0 | Permanent — API keys, critical config |
ttl_days=7 | Short-lived context |
volatile-lru evicts least-recently-used facts under memory pressurettl_days=0) are safe┌─────────────────┐ ┌────────────────────┐ ┌───────────────────┐
│ Cursor / Claude │────▶│ redis-memory-mcp │────▶│ Redis Stack │
│ (MCP client) │ MCP │ (Python, stdio) │ │ + RediSearch │
└─────────────────┘ └────────┬───────────┘ │ + HNSW index │
│ └───────────────────┘
▼
┌────────────────────┐
│ HuggingFace TEI │
│ (embeddings, CPU) │
└────────────────────┘
paraphrase-multilingual-mpnet-base-v2 (multilingual, runs on CPU)| Variable | Default | Description |
|---|---|---|
REDIS_URL | redis://localhost:6379/0 | Redis connection URL |
EMBED_URL | http://localhost:8081 | TEI embeddings endpoint |
INDEX_NAME | idx:memories | Redis search index name |
DEFAULT_TTL | 7776000 (90 days) | Default TTL in seconds |
RedisInsight is included at http://localhost:8001 — browse keys, run queries, analyze memory usage.
redis-memory-mcp/
├── .claude-plugin/marketplace.json # Marketplace registry
├── .claude/settings.json # Auto-load config
├── redis-memory-mcp/ # Claude plugin
│ ├── .claude-plugin/
│ │ ├── plugin.json # Plugin metadata
│ │ └── mcp.json # MCP server docs
│ ├── .mcp.json # Runtime MCP config
│ ├── hooks/project-init.json # Session start hook
│ └── skills/persistent-memory/
│ └── SKILL.md # Memory management skill
├── server/ # MCP server source
│ ├── memory_mcp.py
│ ├── Dockerfile
│ └── pyproject.toml
├── docker-compose.yaml # Full stack
└── README.md
MIT
External network access
Connects to servers outside your machine
Own this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimOwn this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimBased on adoption, maintenance, documentation, and repository signals. Not a security audit or endorsement.
npx claudepluginhub sergesha/redis-memory-mcp --plugin redis-memoryAI-powered technology scout: monitors news via SearXNG, stores summaries with semantic search in Redis, generates HTML dashboards.
Deja Vu memory layer for AI applications. Add persistent memory, personalization, and semantic search to Claude workflows using the Deja Vu Platform MCP server.
Persistent agent memory that survives across sessions — auto-compacting 3-tier memory with hybrid search. Your agent remembers what it learned, decided, and built.
Persistent memory for Claude Code — memories survive across sessions, projects, and machines
The memory layer for agent teams. Deterministic retrieval, hard per-project isolation, zero LLM in the critical path.
Memory → Evaluation → Credential → Access Control for AI agents. Persistent memory with W3C Verifiable Credentials, capability-based access control, drift detection, and FSRS-6 spaced repetition.
Captures user prompts and agent responses to Memory Engine for persistent context across sessions