Agentmem logo

Agentmem

by Thezenmonster

Governed local memory for coding agents with lifecycle states, conflict checks, stale detection, and MCP tools.

Install Agentmem

Pick your client, then add it in one click or paste the config.

STDIOPython
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "thezenmonster-agentmem": {
      "command": "uvx",
      "args": [
        "quilmem",
        "--db",
        "./memory.db",
        "--project",
        "myproject",
        "serve"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Claude Code command
claude mcp add --transport stdio thezenmonster-agentmem -- uvx quilmem --db ./memory.db --project myproject serve

Run in your terminal. Add --scope project to share it with your team through .mcp.json.

We couldn’t confirm it starts correctly

We ran the install command but it didn't respond within our test window — this can mean a slow first-time install rather than a real problem.

uvx quilmem --db ./memory.db --project myproject serve

Process exited before answering initialize.

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

Thezenmonster/agentmem MCP server gives coding agents local, trust-ranked memory backed by SQLite and FTS5. It stores decisions, bugs, sessions, and other records with lifecycle states from hypothesis through validation or deprecation, while checking for conflicts, stale sources, and memory health. The MCP interface exposes memory operations to Cursor and other MCP clients, and the project also provides Python and CLI interfaces. Reach for it when an agent needs project memory that distinguishes current guidance from outdated or unconfirmed information without external infrastructure.

Use cases

  • Persist decisions between coding sessions
  • Recall trusted project guidance within a token budget
  • Detect conflicting or outdated engineering rules
  • Track source-backed memories as files change

Key features

  • SQLite and FTS5 local storage
  • Trust lifecycle for memory records
  • Conflict and staleness detection
  • Health scoring
  • Provenance-aware markdown synchronization
  • Built-in MCP, Python, and CLI interfaces

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

14/15 checks healthy over the last 117d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 14d ago via OSV.dev · quilmem (PyPI)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars6Stargazers on the source repository.
Last commit7mo agoMost recent push to the default branch.
Install checkInconclusiveDidn't respond in our test window — often a slow first install.
Directory activity5 viewsConfig copies, upvotes, and views on AllMCPs.

How Agentmem works

What Thezenmonster/agentmem does

Thezenmonster/agentmem MCP server provides governed memory for coding-agent workflows. It stores typed records such as decisions and bugs, preserves session notes, and supports search and context-limited recall. Records carry a trust lifecycle: new observations can begin as hypotheses, move to active, become validated, or be deprecated when they no longer apply. Superseded records remain available for history and link to their replacements.

The storage layer uses SQLite with FTS5 full-text search, so the project can run locally without a separate database or hosted service. Recall ranks validated and active records above hypotheses, while deprecated and superseded records are left out of normal recall. This makes it suitable for projects where old implementation rules or previous mistakes could mislead an agent.

How it works

Thezenmonster/agentmem MCP server can be used through its built-in MCP service, Python API, or command-line interface. The MCP tool set includes operations for adding, finding, listing, updating, and deleting memories, along with session persistence and governance actions. A client can promote a record, deprecate it with a reason, or supersede it with a newer record.

Conflict detection compares related memories using topic overlap and sentence-level negation checks. It distinguishes duplicates from contradictions and reports severity based on the records' states. Staleness checks identify records that have aged beyond a chosen threshold, reference missing files, or no longer match a tracked source hash.

Health reporting combines conflict and stale-memory findings with orphaned references, deprecated-memory weight, and the presence of validated records. The result is a score from 0 to 100 with associated details.

Setup and configuration

Install the MCP extra with pip install quilmem[mcp]. The CLI initialization command accepts a tool and project, for example agentmem init --tool claude --project myapp. The MCP service itself runs with agentmem serve.

A stdio configuration can invoke agentmem with serve, plus --db for the SQLite database path and --project for the project name. Agent-specific instructions can be copied into files such as CLAUDE.md, .cursorrules, or AGENTS.md so the agent knows when to use memory.

The Python API also accepts a database path and project name when creating a Memory instance. Provenance fields can record a source path, section, and content hash.

Tools and capabilities

The documented MCP tools are:

  • add_memory, search_memory, and recall_memory
  • update_memory, delete_memory, and list_memories
  • save_session and load_session
  • promote_memory, deprecate_memory, and supersede_memory
  • memory_health and memory_conflicts

The sync behavior is hash-aware: an unchanged source is skipped, a changed source updates the related memory, a removed section causes deprecation, and a restored section can reactivate a deprecated memory.

Limitations and notes

The package name used for installation is quilmem, while the command-line executable and MCP configuration use agentmem.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Agentmem

Install the MCP extra with `pip install quilmem[mcp]`, then run `agentmem serve`.

Yes.

It checks record age, missing referenced files, and source-hash changes. The CLI can run a stale check with a chosen day threshold.

Yes. It compares topic overlap and sentence-level negation, separates duplicates from contradictions, and reports conflict severity.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewAgentmem AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/thezenmonster-agentmem?style=directory)](https://allmcps.com/mcp/thezenmonster-agentmem)
HTML Embed
<a href="https://allmcps.com/mcp/thezenmonster-agentmem"><img src="https://allmcps.com/api/badge/thezenmonster-agentmem?style=directory" alt="Agentmem on AllMCPs" /></a>