mnestic-mcp
v0.3.0Local memory MCP server backed by mnestic — hybrid BM25+vector+graph recall with per-leg attribution and time travel, all on your machine.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
store_memory
Store one memory (a durable fact, preference, decision, or outcome). `source` names the evidence (a message, document, URL). `valid_from` (ISO-8601) says when the fact became true, if not now. Returns its id.
| Parameter | Type | Description |
|---|---|---|
text * | string | |
id | ||
meta | ||
source | ||
valid_from |
store_batch
Store many memories atomically. Each item: {text, meta?, id?, source?, valid_from?}.
| Parameter | Type | Description |
|---|---|---|
items * | array |
search
Search memories. mode: auto (keyword-first, hybrid fallback), keyword (BM25), semantic (vector), hybrid (BM25+vector+graph fused). explain=true returns per-leg attribution for every result. Output is byte-budgeted: an over-budget result is cut at item boundaries and carries a `continuation` token for continue_result.
| Parameter | Type | Description |
|---|---|---|
query * | string | |
expand_graph | boolean | |
explain | boolean | |
k | integer | |
max_bytes | integer | |
mode | string |
list_recent
The most recently stored or updated memories. Byte-budgeted output (see search).
| Parameter | Type | Description |
|---|---|---|
max_bytes | integer | |
n | integer |
continue_result
Next slice of a byte-budgeted result, by its `continuation` token. Tokens are single-use and do not survive a server restart.
| Parameter | Type | Description |
|---|---|---|
token * | string | |
max_bytes | integer |
update
Correct or extend a memory (meta is merged). Pass `valid_from` when the change took effect earlier than now (a backdated correction) and `source` for the evidence. Earlier beliefs stay queryable.
| Parameter | Type | Description |
|---|---|---|
id * | string | |
meta | ||
source | ||
text | ||
valid_from |
delete
Delete a memory: it stops being true from `valid_until` (default now). Its history stays queryable via recall_believed and memory_timeline.
| Parameter | Type | Description |
|---|---|---|
id * | string | |
source | ||
valid_until |
link
Create a typed, weighted edge between two memories (rel names a mechanism, e.g. relates_to / follows / contradicts).
| Parameter | Type | Description |
|---|---|---|
dst * | string | |
src * | string | |
rel | string | |
weight | number |
recall_as_of
What the memory store contained at ISO-8601 instant t, by write time (updates/deletes are never destructive). For "what was true then" versus "what was known then", use recall_believed. Byte-budgeted output (see search).
| Parameter | Type | Description |
|---|---|---|
t * | string | |
k | integer | |
max_bytes | integer | |
query |
recall_believed
Two-axis recall: what was true at `valid_at`, according to what had been recorded by `known_at` (both ISO-8601, default now). Each result carries valid_from, recorded_at (stamped by the database, not the caller) and source. Byte-budgeted output (see search).
| Parameter | Type | Description |
|---|---|---|
k | integer | |
known_at | ||
max_bytes | integer | |
query | ||
valid_at |
memory_timeline
Every recorded belief about one memory: each assertion and retraction with when it was valid, when it was recorded, and its source.
| Parameter | Type | Description |
|---|---|---|
id * | string | |
limit | integer | |
max_bytes | integer |
stats
Store diagnostics: counts, indices, db path, embedding model.