Dev.to
7/18/2026

memcp: An open-source tool for persistent Claude Code session memory
Original: Claude Code Forgets Everything Between Sessions. I Built a Fix.
Short summary
memcp is an open-source tool that gives Claude Code persistent memory by storing session logs in a local SQLite database and exposing them via MCP tools. When a session ends, logs are automatically ingested; future sessions can call search_memory to retrieve past design decisions and context. All data stays local with no cloud sync or telemetry, and setup takes a single command.
- •memcp stores Claude Code session logs in local SQLite for cross-session memory
- •Exposes four MCP tools: search_memory, read_session, list_recent_sessions, ingest_session
- •Fully local, no telemetry, single-command setup with automatic ingestion
Generated with AI, which can make mistakes.
Is this a good recommendation for you?



