2026-06-30
How to give Claude Code persistent memory
By default, Claude Code starts each session fresh. MADB fixes that in one command — here’s the whole flow.
1. Install
claude mcp add madb -- uvx madb-mcp-server
That registers MADB as an MCP memory server. A bundled skill makes Claude reach for it automatically.
2. Store something
Ask Claude to remember a decision, or call remember directly:
remember(content="Chose Postgres over SQLite for the billing service", tags=["architecture"], importance=0.7)
3. Recall in a new session
Quit, reopen Claude Code, and ask what you decided about the billing database. It recalls — because the memory is on disk, not in the session.
4. Ask why
Later, ask why a choice was made and Claude can walk the lineage with trace_cause. Memory stays local; nothing leaves your machine. See the full quickstart for Codex and the Anthropic SDK.
Try MADB
Local causal memory for your agents, free in one command.