bettermemory
This MCP memory server gives coding agents a durable, filesystem-backed memory with automatic staleness checking against the working tree and git, plus a separate episodic journal for run-state.
Search memories (
memory_search): deterministic keyword/BM25/hybrid ranking with relevance, staleness verdicts, path drift, commit drift, and related-context expansion.Read and list memories (
memory_show,memory_list): fetch full memory contents or cheap one-line summaries, with optional inline bodies for small stores.Write memories (
memory_write,memory_write_confirm,memory_write_cancel): proactively store facts, user inferences, or ambient context; gates reject transient state, credentials, duplicates, and ungrounded claims.Update and remove (
memory_update,memory_remove): refine memories in place, replace scopes/links, tombstone stale facts with reasons, and restore if needed.Verify memories (
memory_verify): re-check cited paths, claims, commits, and versions against reality, stampinglast_verified_atwhen they hold.Record outcomes (
memory_record_use): mark memories as ignored, contradicted, or corrected so future searches surface recent negative outcomes.Session scoping: disable/enable scopes for the rest of the session (
memory_scope_disable,memory_scope_enable).Overview and audit (
memory_scope_overview,memory_audit_turn): get per-scope counts, curation pressure, conflict/removal signals, and silent-miss telemetry.Episodic journaling (
episode_write,episode_handoff,episode_search,episode_promote): record transient iteration state, hand off takeaways across sessions, search journal entries, and promote lasting lessons into durable memories.
Uses Git to check stored memories against the working tree and commit history, providing staleness verdicts and detecting path/commit drift so outdated facts are flagged rather than trusted.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@bettermemory what's stored about the checkout flow?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
An MCP memory server for coding agents. Stored facts get checked against the filesystem and git before the model relies on them, so a memory that has rotted is flagged instead of quoted back at you.
Install
Claude Code — two slash commands, zero config:
/plugin marketplace add 0Mattias/bettermemory
/plugin install bettermemory@bettermemoryAnything else that speaks MCP:
uv tool install bettermemory
bettermemory init --client claude-desktop # or cursor / cline / claude-code / hermesRestart the client. bettermemory doctor exits 0 when it's wired
correctly and prints a one-line fix for anything that isn't.
Try it without installing: uvx bettermemory try writes a memory
citing a file, deletes the file, and shows the next search flagging it.
Offline, throwaway store.
Related MCP server: memory-ai-local
What it does
Checks memory before believing it. Every hit carries a staleness verdict: calendar age, whether the paths it cites still exist, the commits landed since it was last confirmed, and how the record entered the store (written here, pulled, or placed by hand). Declared claims (
path,path::symbol,path::NAME=literal) are re-checked against the working tree; a claim that stops being true blocks the stamp instead of riding along.Retrieval is deliberate. Memory is a tool call, not an injection. Write gates bounce transient state, secret-shaped tokens and near-duplicates; claims about you are labelled as inferences, so they stay distinguishable and correctable.
The code is the model. Search is deterministic lexical ranking — keyword + BM25, fused — over your own vocabulary. No embedding models, no downloads, nothing to warm up, same answer every time.
Plain files. One markdown file per memory. Greppable, git-syncable, no cloud, no account. The SQLite index beside the files is a derived cache you can delete;
bettermemory reindexrebuilds it.Rot gets acted on, not accumulated. Episodes journal per-session run-state without polluting durable search; health telemetry and curation tools surface what drifted, what went cold, and what contradicts what.
Receipts, not adjectives. The claims above are measured by preregistered benchmarks whose frozen result artifacts — misses included — live in bench/ (
results/*.json, each carrying the declared terms it was scored under), andbettermemory evalscores whether memory actually helped against your own log (ours is published).
For agents
You were likely handed this link with "set this up." On Claude Code, the two plugin commands above are the whole install — skip to step 3. Everywhere else, steps are idempotent and safe to re-run:
uv tool install bettermemory— orpipx install bettermemory, orpip install bettermemoryinto a venv. Python 3.11–3.14.bettermemory init --client claude-code— likewiseclaude-desktop,cursor,cline,hermes. For any other MCP host, plainbettermemory initprints the canonicalmcpServersJSON snippet plus known config locations. (Continue needs a hand-written YAML entry — see docs/clients.md.)bettermemory doctor— exit 0 means correctly wired; every failed check prints a one-line fix.Have the user restart the client so the server loads, then confirm by asking the model "what memory tools do you have?"
Your operating contract — tool signatures, retrieval discipline,
write gates — is docs/api.md; the server's
instructions block delivers the core policy automatically. For the
long-form policy in your system prompt: bettermemory init --with-addendum. Migrating from Claude Code's built-in auto-memory:
bettermemory ingest imports those files once.
Everything else
The rest is written down: mechanics, storage format, the full tool surface, CLI, configuration and limitations in internals; per-client setup in clients and installation; eval methodology in eval; postmortems in incidents; release history in CHANGELOG; dev setup and the compatibility contract in CONTRIBUTING.
MIT licensed — see LICENSE.
Available Tools
18 toolsepisode_handoffA
Read the most-recent journal takeaways from a prior session in this worktree. Call this FIRST at a /loop iteration entry: it answers 'what did the last session conclude here?' without memory_search. Episodes are the sibling-to-memory primitive for journal-shaped writes (see episode_write).
When prior_session_id is omitted the handler auto-resolves it from the event log under two implicit filters: caller-worktree strict equality (None matches only None) and the disabled_scopes cascade (a session whose only takeaways are scope-disabled is skipped; surviving episodes are scope-filtered). Pass it explicitly to override.
Returns a dict:
prior_session_id: the resolved session id, or None when no prior session exists in the log.episodes: list of {id, created, takeaway, scopes, provenance} dicts, oldest first, capped atmax_episodes(default 5, cap 50).provenanceis read from the event log:local(an episode_write event names the id),untracked(no event could have) orunaccounted(the file appeared with no event: the planted shape).bodyis present only withinclude_bodies=True(default False) and never for an unaccounted episode; episode_search(ids=[...]) is the explicit read for one body.note(optionalstr): set ONLY when the immediately-prior worktree session left nothing visible; names the cause: floor-only, zero-episode, promoted-out, or all-scope-hidden. The last two DID journal, so anotenever means 'wrote no journal'.episodesMAY be non-empty: the walk rewinds to an older takeaway.
Inputs: max_episodes, include_bodies, prior_session_id. Returns: object
episode_promoteA
Promote a journal entry (episode) into a durable memory. Routes through memory_write — the durability gate, scope-mismatch detection, dedup, and the opt-in confirmation flow all apply.
Use this when an iteration's takeaway turns out to be a fact worth keeping across sessions, not just a run-state note.
Loop/working state belongs in episodes; session close is when to promote the takeaways that hardened.
On successful commit the source episode is deleted (its content has been distilled). On pending (require_write_confirmation), the source episode is held for memory_write_confirm to delete — memory_write_cancel keeps the episode so you can retry. On any other non-committed status (duplicate, previously_removed, transient_warning, scope_mismatch, ungrounded) the source episode is left untouched so you can adjust and re-promote.
Body default: when use_body=False (default), the durable memory's body is the episode's takeaway. Set use_body=True to use the full episode body. An episode with no takeaway requires use_body=True.
Returns the memory_write response shape plus promoted_from_episode_id, on every outcome.
Parameters:
episode_id: ULID of the source episode.scopes: scopes for the durable memory. Required.category(default 'fact'): memory category, as on memory_write.confidence(default 'medium'),source(default 'explicit-statement'): standard memory_write fields.use_body=False: when True, use the episode's body instead of its takeaway.
Inputs: scopes (required), episode_id (required), source, category, +2 more. Returns: object
episode_searchA
Cross-session lookup for journal-shaped entries (episodes). NOT ranked — episodes are chronological and the filter set (scope / since / session_id) is the discovery surface. For the loop-iteration-entry case prefer episode_handoff, which auto-resolves the prior session and caps the surface.
Rows are oldest-first INSIDE the most-recent-max_results window: over the cap it keeps the MOST-RECENT N, so 'what did I conclude lately?' reads the tail, not the head.
WORKTREE SCOPING: by default (auto_scope=True) the bare discovery walk (no swarm_id / parent_session_id) drops episodes whose captured git worktree differs from yours. PERMISSIVE, not a boundary, and weaker than the strict equality episode_handoff applies — it passes an episode through when there is nothing to compare (none captured, or you outside any git checkout), when the recorded worktree is gone from disk, and when you are in a LINKED worktree of the checkout that wrote it, so under agent fan-out the primary checkout's episodes stay visible. An EXPLICIT swarm_id / parent_session_id / ids is never worktree-filtered: naming a cohort or session is deliberate cross-worktree intent.
Parameters (full reference in docs/api.md):
scopes(optional): keep only episodes whose scope list intersects this filter.parent_session_id(optional): restrict to one session's directory. Composes withswarm_idto narrow a fan-in.swarm_id(optional): fan-in filter — episodes tagged with this cohort id, across all sessions.since(optional ISO-8601): created at-or-after this instant.auto_scope(default True): worktree-scope the bare walk (see WORKTREE SCOPING). False sweeps every worktree sharing the root.max_results(default 20, cap 200): surfaces the most-recent N.ids(optional): only these episode ULIDs — explicit selector, never worktree-filtered; unknown ids are absent, not an error.include_bodies(default True): False OMITSbody— takeaway-only rows. Scan, then re-read one viaids.
Inputs: ids, since, scopes, swarm_id, +4 more. Returns: result
episode_writeA
Append a journal-shaped entry for the current session — for run-state, iteration takeaways, 'what we tried'. Episodes are NOT durable facts; the durability gate that rejects transient memory_write content (TRANSIENT_PHRASE_MARKERS) does not apply here. Stored at /episodes/<session_id>/.md with a default 30-day TTL.
Use this for content memory_write would reject as transient:
'iteration N tried X, fell over at step 3'
'currently blocked on Y; next step is Z'
'this branch's release plan' (state that changes weekly)
Episodes are invisible to memory_search / memory_health / memory_list — they are a sibling tier, not a memory category. Surface them via episode_handoff at iteration entry or episode_search for cross-session lookup. Promote a takeaway to durable memory via episode_promote (routes through memory_write, durability gate fires as normal).
Parameters:
body: free-form markdown. Required, non-empty. Capped bymax_content_bytes(default 1 MB).swarm_id(optional): cohort id for multi-agent fan-in — a sub-agent passes the coordinator's session id so the coordinator can gather every sub-agent's takeaways viaepisode_search(swarm_id=…). A cross-cutting label, not a move: the episode still lives under this writer's own session, and it is distinct fromepisode_handoff's predecessor link.takeaway(optional): one-sentence summary. Surfaced preferentially at episode_handoff; when None, handoff falls back to the first line of body. Capped bymax_takeaway_bytes(default 4 KB).scopes(optional): list of scope tags. Empty list is valid (handoff keys on session_id, not scope). Capped bymax_scopes_per_write(default 64).
Both caps guard one thing: takeaway and scopes serialise into the YAML frontmatter (64 KB ceiling), so an over-cap value corrupts the file and the episode vanishes from every read surface despite the write returning committed.
Inputs: body (required), scopes, swarm_id, takeaway. Returns: object
memory_audit_turnA
Not for in-conversation use. This tool is dispatched by the client's end-of-turn Stop hook; the model should never call this directly.
Silent-miss telemetry (full reference in docs/api.md). Runs the search probe memory_search would have run for user_message (assistant_response optional), then checks whether a memory_search, memory_show, memory_list, or hook-injected prompt_recall event fired in the same session within lookback_seconds (default 60). A high-relevance probe hit with no retrieval in that window is a miss. Auto-scopes to the caller's repo so the probe matches the model's view; honours session-disabled scopes. Returns a MissReport with verdict in {'miss', 'ok', 'no_signal'} plus the top probe hits. Side-effects: emits turn_audited always, plus search_miss when the verdict is miss.
Inputs: user_message (required), lookback_seconds, assistant_response. Returns: object
memory_listA
List active memories. By default returns one-line summaries (IDs, scopes, summary, no body) — cheap triage. Pass with_bodies=True to inline full bodies in one call; useful for small stores where N round trips of list -> show -> show would be wasteful. Don't reach for with_bodies casually — it pulls every memory in scope into your context, which is the failure mode this project exists to avoid. Filter by scopes if you only care about a subset, or by client / model — each row's DECLARED actor, exact. A row's staleness_verdict is CALENDAR-ONLY — no path, claim or commit drift — so a row can read fresh while memory_show on it returns spot_check_required. Read a non-fresh row as a signal to look, never a fresh one as a clearance.
Inputs: model, client, scopes, with_bodies. Returns: result
memory_record_useA
Override the auto-applied outcome. Default behavior: every memory_search hit settles as applied at turn end (excerpts when the reply used it, auto=true otherwise). The common case handles itself — only call this tool when the model needs to record one of the three actionable outcomes below.
Outcome | When | What it does |
| retrieved but off-topic | annotates later hits; under |
| stored fact disagreed AND not yet fixed | raises the unresolved-contradiction flag until a later memory_update or memory_verify clears it; demotes 2x under the same flag |
| drifted and you fixed it inline (memory_update and/or memory_verify already called) | audit-only; does NOT raise the flag, never demotes |
applied is also accepted explicitly (rarely needed — auto handles it; call only to force-commit early).
Parameters:
memory_ids: list (1+).outcome: see table above.note(optional, ≤800 chars): free-form context.claim_excerpts(optional): list parallel tomemory_ids(same length,Noneslots OK) carrying the load-bearing phrase that shaped the response. ≤500 chars per excerpt. PassNonefor 'no specific claim' — empty strings are rejected (they're ambiguous: missing claim vs. zero-length claim). Especially useful oncontradicted/correctedso the audit log records WHICH claim was wrong, not just that the memory drifted. Surfaces back inrecent_negative_outcomeson later search hits.
Inputs: outcome (required), memory_ids (required), note, claim_excerpts. Returns: object
memory_removeA
Tombstone a memory. The file is moved to .tombstones/ with a removal reason and the originating session id — never hard-deleted. Use when a stored fact is wrong or no longer relevant. Tombstones remain searchable via memory_list_tombstones and are surfaced as removed_matches on memory_write when a new body looks similar to a previously-removed fact, so the lesson encoded in the removal reason isn't lost. Use memory_restore(id) to undo an accidental removal.
Inputs: id (required), reason (required). Returns: object
memory_scope_disableA
Disable a scope for the rest of this session. Subsequent memory_search and memory_list calls will exclude memories tagged with this scope. Useful when the user says 'this is unrelated to project X'. Resets when the server restarts.
Inputs: scope (required). Returns: object
memory_scope_enableA
Re-enable a previously disabled scope for this session.
Inputs: scope (required). Returns: object
memory_scope_overviewA
Cheap session-start hint: per-scope counts, no bodies / ids / summaries. Call once at the start of a conversation; if total is 0, skip memory_search for the rest of the session unless explicitly asked.
proposals_pending is the count of write-reflex proposals the Stop hook has captured awaiting review via memory_proposals (0 unless the opt-in [proposals] auto_propose is on). pending_writes is this session's staged writes awaiting memory_write_confirm/cancel — a dangling confirmation (silent 1h expiry). curation_pending is an integer-count rollup the model should branch on; the response names its legs. conflicts = contradiction pairs awaiting a memory_conflicts verdict. unaccounted = memories that entered outside every recorded path. curation_unmeasured names legs whose 0 is not a measurement (git or the index did not answer); never read a listed leg's 0 as clean. Non-zero dead or drifted is a cue to suggest a curation pass when there is time; non-zero silent_misses / cold_endorsement_memories is actionable audit backlog. A memory retrieved many times with zero explicit applies is weakly endorsed — worth a look, not a verdict.
Non-zero recently_removed_in_worktree is a 'where did X go?' signal — material was deliberately trimmed here recently; don't blindly re-suggest it.
curation_pending_new_since_last_session is the same shape, filtered to events emitted and memories created since the previous session ended (not memories that aged into a bucket; an older record aging into stale between sessions stays visible only in the absolute curation_pending view — note this is distinct from the separate drifted bucket, which tracks working-tree drift). Branch on it when deciding whether to prompt about curation — non-zero means new rot since the last session, vs. the absolute view which persists until resolved. null on the very first session — fall back to curation_pending.
Default-scoped to the caller's current repository; memories with no origin always pass as global. Set auto_scope=False for the cross-project view. Counts respect session-disabled scopes.
Inputs: auto_scope. Returns: object
memory_searchA
Search stored memories. Default: do NOT call — reach for it only when the user references shared context you lack ("my project", "the script we wrote") or a request is ambiguous in a way stored preferences could resolve. When a hit shapes your reply, announce it ("Using your stored preference for…") — non-negotiable. (Full policy: the server instructions block.)
Returns ranked hits with snippets. Per-hit fields the model should branch on:
relevance(high/medium/low) — how much of your query wording the hit literally contains, not how good it is. Weak hits: re-query with different nouns.staleness_verdict(fresh / spot_check_recommended / spot_check_required) — rolled-up signal; != fresh, act onpath_driftbelow.match_terms— which query words actually hit.path_drift_missing(int) +path_drift({checked, missing, verified} when drift detected) — body-cited paths gone.claim_anchored_missing(added when non-empty) is the escalating subset: memory_update those, memory_verify the rest. Prose-scrapedmissingridesfresh— evidence, not a tier.commit_drift_count(int, when applicable) — commits since last_verified_at on the memory's origin repo. Non-zero means the project moved even if calendar-fresh.depends_on_resolved(when present) — bounded auto-pull ofdepends_onlink targets (max 3 per hit, max 10 per call). Each entry:{id, scopes, summary, link_note}. Surfaces context the query wouldn't on its own; saves a memory_show round-trip. OMITTED when the hit has nodepends_onlinks.recent_negative_outcomes(when present) — list of recent ignored/contradicted events for this memory (max two, one per outcome). The user already rejected this; don't re-surface unless you have new reason. OMITTED when none.
Parameters:
query: nouns a memory would contain (tool, file, error names) — vocabulary is the lever, not question phrasing. Weak hits: re-query, different nouns.scopes(optional): filter to scope union.client/model: writer's DECLARED actor, exact; undeclared matches neither.max_results(default 5, cap 50).expand_top=True: inline the full body of the top hit when it has highrelevanceor a decisive score lead over the runner-up — saves a memory_show round trip and surfaces the full path_drift + commit_drift detail.auto_scope=True(default): filter to current repo+worktree; memories with no recorded origin always pass as global. Set False for explicit cross-project queries.since_prior_session=False(default): when True, filter to memories whoseupdatedis strictly after the prior session boundary (latest event from a different session_id in the log). The semantic is 'what has changed in the current session, since the last activity by other sessions' — i.e. this session's intra-session diff. A /loop iteration uses this to track what IT has written/updated; for what the prior iteration did, call episode_handoff instead. Returns empty when there's no prior session in the log; distinguish 'nothing new' (results=[]) from 'no baseline' by also calling memory_scope_overview and checkingcuration_pending_new_since_last_session is None.mode(optional, default from config; package defaulthybrid):keyword,bm25, orhybrid(RRF fusion of both). Every mode is deterministic lexical ranking, so vocabulary is the lever — seequery.
Outcome is recorded automatically via the use_token within ~2 turns; only call memory_record_use to override (ignored / contradicted / corrected).
Inputs: query (required), mode, model, client, +5 more. Returns: result
memory_showA
Fetch a single memory's full content by id. Typically used after a memory_search snippet looks relevant. The response carries the same staleness signals as a search hit:
verification.status('never' / 'stale' / 'fresh') with an actionablerecommendationwhen not fresh.staleness_verdict(fresh / spot_check_recommended / spot_check_required) — rolled-up signal across calendar, path and commit drift.path_drift(the full report; missing-on-disk paths listed).commit_drift(when caller is inside the memory's origin repo) —status: 'clean' | 'drift'+commits_since_verify.Forward
linksandreverse_linksfor navigation.
When the verdict isn't fresh, spot-check one claim before relying. memory_verify(id, …) if it holds; memory_update if drifted (content updates reset last_verified_at, so verify again after the fix).
Inputs: id (required). Returns: object
memory_updateA
Body edits clear last_verified_at; scope-only edits preserve it. Bundling a scope rename with a body edit clears verification.
Refine an existing memory in place. Preferred over memory_remove + memory_write when correcting a stored fact — preserves id, created, and source; bumps updated.
Parameters (pass at least one):
id: required.content: new body. Replacing the body clearslast_verified_at, the verified-* attestations, andclaims(the prior verification was for prose that no longer exists; call memory_verify again after, re-declaring claims). A body that reads as a claim ABOUT THE USER returnsuser_claim_warningunless the record is alreadyuser-inference; passacknowledge_user_claim=Trueif the subject is someone else. A transient-state body returnstransient_warning;acknowledge_transient=Trueoverrides. An edit that SHRINKS the body and leaves it ending mid-sentence returnstruncation_warning; passacknowledge_truncation=Truewhen the cut is deliberate.scopes/links: REPLACE semantics — pass the full new list, or[]to clear.confidence: low / medium / high.category: acceptsfactandambient.user-inferenceis REJECTED here — file a claim about the user with memory_write.
Returns status="stale" when another agent updated the memory first; the hint says to re-fetch and retry. Each links entry is {type, target_id (a ULID), note?}. The types: supersedes (prefer this over the target), contradicts (both cannot be true), extends (adds nuance to it), depends_on (only makes sense in its context). docs/api.md carries the rest.
Inputs: id (required), links, scopes, content, +6 more. Returns: object
memory_verifyA
Bump last_verified_at to now after spot-checking that a memory's claims still match reality (file paths exist, version still matches, configuration still what it says).
Orthogonal to content edits: this tool does NOT bump updated; memory_update does NOT bump last_verified_at. A typo fix bumps updated only; a verify call bumps last_verified_at only. Idempotent — calling twice slides the timestamp forward.
Parameters:
id: memory id.note(optional, ≤800 chars): what was checked, for the event log.verified_paths(optional list of strings): the ONLY attestation the drift legs read — checked against the memory's own worktree, and the anchor narrowing commit drift. Prefer it when the memory cites paths. Paths absent here are REFUSED. Stored entries re-check whenNonepreserves them — a vanished one blocks the stamp; pass a corrected list.verified_commits/verified_versions(optional lists): audit trail only; nothing on the read path resolves them.verified_absent_paths(optional): attest paths INTENTIONALLY absent here (remote host, other platform, not-the-location) — reported underexpected_absent, notmissing. Never for real drift.claims(optional): memory_write's claim syntax; checked NOW, false ⇒ refused. Stored claims re-check on every verify — a false one blocks the stamp; memory_update first. All five lists are REPLACE, not append —Nonepreserves the prior attestation,[]clears it, a populated list supersedes it. Attest the full set each time. A verify attesting nothing on a memory whose cited paths resolve is refused; the error lists them as the paths to attest.
The stamp records the origin checkout's HEAD as verified_head; commit drift then counts the commits reachable since it (basis: reachability), which sees a branch merged after the stamp.
After memory_update on a memory you later spot-check, verify again — memory_update clears last_verified_at because the prior verification was for prose that no longer exists.
Returns status="stale" when another agent verified first; the hint says to re-fetch and re-attest.
Also resolves an unresolved record_use(contradicted) flag in memory_health when the body still matches reality.
Inputs: id (required), note, claims, verified_paths, +3 more. Returns: object
memory_writeA
Create a new memory. Call PROACTIVELY when something durable enters the conversation — aggressive writing is safe; the gates below catch bad writes.
Parameters:
content: the memory body.scopes: non-empty list. Avoid the catch-all 'general'; prefer narrow tags liketools,infrastructure,projects:<name>.category(default 'fact'): one offact,user-inference,ambient.fact: project / infra / reference / tooling. Commits immediately (unlessrequire_write_confirmation).user-inference: claims ABOUT THE USER. Commits like fact; the label keeps an inference distinguishable from an established fact, and correctable.ambient: context that shapes replies without being cited. Commits like fact, excluded from dead-weight curation; a body over 500 words gets a non-blockingambient_body_longwarning.
confidence('low' / 'medium' / 'high'),source('explicit-statement' / 'inferred').claims(optional): claims the body makes about this repo —path,path::symbol,path::NAME=literal,!path(absent). Checked against the worktree NOW (false ⇒ refused); drift watches the claimed bindings, not whole files. Declare when citing code.groundedness_check=True+source_transcript: optional gate. Sentences with <30% token overlap to the transcript return {status:'ungrounded', claims:[…]}. Override viaacknowledge_ungrounded=Truewhen grounding came from outside the transcript (file reads, tool results).supersedes(optional): ids of active memories this write replaces (each gets asupersedeslink,superseded_byon the stale hit). Also set unasked when a claim-sized body updates a stored claim — a change cue plus a diverging value; with no cue the pair is filed for memory_conflicts.
Return statuses:
committed— write succeeded; payload carries the new id,relatedmatches, and anysupersedes/conflicts_filedrows.duplicate— content dedup fired; the matched memory is credited a corroboration (corroboration_recorded: true, once per session); thehintcarries the remedy.transient_warning/credential_warning/previously_removed/scope_mismatch— gate rejects; each returns what matched and ahintwith the remedy and itsacknowledge_*/force=Trueoverride.user_claim_warning— the body reads as a claim ABOUT THE USER butcategoryisn'tuser-inference. Re-issue as that or passacknowledge_user_claim=Trueif the subject is someone else.pending—require_write_confirmationis on (any category); memory_write_confirm or memory_write_cancel.ungrounded— groundedness gate fired.
A committed or confirm response may carry a one-shot per-session curation_hint block ({pressure, threshold, counts, message}) when curation pressure (dead_weight + drifted + cold_endorsement_memories) crosses the configured threshold; memory_health has the full buckets.
Inputs: scopes (required), content (required), force, claims, +11 more. Returns: object
memory_write_cancelA
Drop a pending memory_write without committing. Pass the pending_id from the original write response. Pending writes expire after 1 hour; if the TTL elapsed (or the id never existed) the call returns existed=False.
Inputs: pending_id (required). Returns: object
memory_write_confirmA
Commit a memory_write that returned status='pending'. Pass the pending_id from that response. Pending writes expire after 1 hour; the confirm call will tell you which case fired (expired vs. never-existed). Re-gated at commit: duplicate / previously_removed / credential_warning can return instead of committed when the store changed during the wait. The staged write survives (pending_retained: true, same pending_id) — memory_write_cancel or resolve the match. The original write's overrides carry over.
Inputs: pending_id (required). Returns: object
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 18 tools
The memory_* and episode_* prefixes cleanly separate two tiers (durable memories vs. journal entries), and within each tier the operation verbs (search/list/show vs. write/update/remove/verify) are clearly distinct. The confirm/cancel and scope_disable/enable pairs are unambiguous complements. Even the two search tools are well-differentiated: memory_search is ranked while episode_search is explicitly chronological.
All 18 tools follow a strict resource_prefix + action_verb pattern in snake_case: memory_search, memory_write, episode_handoff, memory_scope_disable. Compound names like memory_write_confirm and memory_scope_overview extend the pattern predictably. No camelCase, no vague verbs, no mixed conventions.
18 tools is slightly above the ideal 3-15 band, but the domain is genuinely rich — memory lifecycle, verification, drift detection, scoping, episodes, and audit all earn dedicated tools. One or two (memory_audit_turn, which is hook-dispatched) could arguably be trimmed from the model-facing surface, but none feels redundant.
The core CRUD lifecycle is well covered (write/update/remove/show/verify/search), but the tool descriptions repeatedly reference tools that are absent from the exposed surface: memory_restore, memory_list_tombstones, memory_health, memory_proposals, and memory_conflicts are all invoked as if callable but not listed. An agent following the memory_remove description's 'use memory_restore(id) to undo' instruction would hit a dead end. There is also no episode_update or episode_remove, leaving the journal tier with no correction path other than promotion.
Maintenance
Related MCP Connectors
Long-term memory for AI coding agents: durable project facts, recalled by every MCP client.
Team memory for AI coding agents and code reviews, reviewed by humans and served over MCP.
An MCP memory server. One memory your agents share — across models, devices and apps.
Hosted MCP memory for coding agents: persistent across sessions, editable markdown, team sharing.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceA local MCP memory server that gives AI assistants durable project memory across coding sessions, storing context, changes, and decisions.1MIT
- FlicenseNot gradedqualityDmaintenanceA local-first MCP server that manages developer memory for coding agents, enabling shared project context, permissions, and audit trails across different agents.1-
- AlicenseAqualityBmaintenanceMCP server that gives coding agents persistent, verified memory of codebase decisions, conventions, and skills, with evidence-based claims that are re-checked via git hooks and human-gated review. Enables memory search, propose/approve, chat harvesting, and critique across MCP-compatible tools.21102 npm1MIT
- AlicenseNot gradedqualityDmaintenanceAn MCP server that gives AI agents persistent, file-based memory stored as plain markdown files in a local git repository, enabling agents to remember, recall, and build on information across sessions.1MIT