New advertisers: 50% off your first month with code FIRSTMONTHSee slots
musyg avatar

persistent-memory

musyg/persistent-memory

Agent memory that tracks source versions and blocks anything derived from withdrawn facts.

tools
5
transport
STDIO
last updated
Nov 17, 2026
View on GitHub

What it does

  • Reads with memory_search and memory_notices, filtered to items the current authority still allows, with notices on changed or withdrawn items
  • Writes with memory_remember and memory_derive, which record exact parent versions, and memory_withdraw, which blocks every item derived from a withdrawn source
  • Runs locally over stdio using SQLite with FTS5 and the Python standard library only, with no API key required
  • Designed for coding assistants and multi-tool agent setups where corrected or withdrawn facts must stop being served

Tools

5 tools

Public tool metadata for what this MCP can expose to an agent.

memory_rememberRecords a source fact in the memory store.

Records a source fact in the memory store.

No parameter schema in public metadata yet.

memory_deriveStores a derived item built from exact parent versions.

Stores a derived item built from exact parent versions.

No parameter schema in public metadata yet.

memory_searchSearches memory for items the current authority still allows.

Searches memory for items the current authority still allows.

No parameter schema in public metadata yet.

memory_withdrawWithdraws a source so everything derived from it is blocked.

Withdraws a source so everything derived from it is blocked.

No parameter schema in public metadata yet.

memory_noticesReturns pending notices about changed or withdrawn items for a session.

Returns pending notices about changed or withdrawn items for a session.

No parameter schema in public metadata yet.

Readme

persistent-memory

PyPI Python Tests License: MIT

AI agents act on what they remember, whatever they are built with: a coding assistant, a LangGraph or CrewAI graph, an OpenAI Agents SDK app, your own loop. They remember facts, summaries, procedures and lessons from earlier tasks. When a source is corrected or withdrawn, whatever was built from it keeps being served, and nothing tells the agent. persistent-memory records the exact source versions behind every derived item, refuses to serve anything that depends on a withdrawn or replaced version, and notifies each client that was shown it.


View the full README on GitHub

Details

Repository
github.com/musyg/persistent-memory
Website
github.com/Musyg/persistent-memory#readme
Categories
Memory & Context, AI Agents & LLM Apps
Package
persistent-memory-mcp
Transport
STDIO
Registry
MCP registry, active

Similar to persistent-memory

More Memory & Context