About udjin-labs/mnemostack
udjin-labs/mnemostack is an MCP server published by udjin-labs in the RAG category: hosted with Qdrant backend. 82.5% strict accuracy on LoCoMo benchmark. `pip install 'mnemostack[mcp]'`. Conduid read 10 tools from its source: mnemostack_answer, mnemostack_feedback, mnemostack_graph_add_triple, mnemostack_graph_invalidate, mnemostack_graph_query, mnemostack_health and 4 more. No package is published for it, so it installs from a source checkout.
The repository has 11 stars and 2 forks, and its last commit was on 2 Dec 2026. Conduid has no tagged release on record for it. Its topics include agent-memory, hybrid-retrieval, llm-memory, long-term-memory, memgraph and memory-retrieval.
Install
git clone https://github.com/udjin-labs/mnemostackTools (10)
mnemostack_answer| Parameter | Type | Description |
|---|---|---|
| as_of | string | Point-in-time recall (ISO-8601); same contract as mnemostack_search. |
| filters | object | Payload filters applied inside every retriever (exact match or gte/lte ranges); the answer is generated only from memories inside the filtered scope. |
| include_invalidated | boolean | Include facts marked stale (default false; same as mnemostack_search). |
| limit | integer | Maximum number of results to return (default 10) |
| query * | string | Natural language question or keyword to search memories for |
| token_budget | integer | Hard cap on the total (estimated) text tokens of the memories fed to the answer LLM (same contract as mnemostack_search). Unset uses the server-wide default. |
mnemostack_feedbackRecord explicit feedback for stateful recall learning.| Parameter | Type | Description |
|---|---|---|
| hit_id * | string | |
| query | string | Natural language question or keyword associated with the feedback |
| query_type | string | |
| reward | number | |
| signal * | string | |
| source | string | |
| sources | array |
mnemostack_graph_add_tripleAdd a temporal fact (subject, predicate, object) to the graph.| Parameter | Type | Description |
|---|---|---|
| obj * | string | |
| predicate * | string | |
| restore | boolean | Allow changing a closed graph fact in keep mode. |
| subject * | string | |
| valid_from | string | |
| valid_until | string |
mnemostack_graph_invalidateRetract one graph triple by closing matching open facts.| Parameter | Type | Description |
|---|---|---|
| obj * | string | |
| predicate * | string | |
| subject * | string | |
| valid_until | string |
mnemostack_graph_queryQuery knowledge graph with optional SPO filters and point-in-time.| Parameter | Type | Description |
|---|---|---|
| as_of | string | |
| limit | integer | Maximum number of graph triples to return (default 50) |
| obj | string | |
| predicate | string | |
| subject | string |
mnemostack_healthCheck health of all mnemostack components.mnemostack_invalidate| Parameter | Type | Description |
|---|---|---|
| ids * | any | Point id(s) to mark stale (string or integer) |
| index_root | string | Owner guard: when set, points owned by a different index_root are skipped, so one root cannot invalidate another's chunks in a shared collection. |
| invalidated_at | string | System-time stamp (ISO-8601); default: now (UTC) |
| valid_until | string | World-time the fact stopped being true (ISO-8601); optional, separate from the system-time invalidation stamp. Null preserves the stored value; clearing it is unsupported. |
mnemostack_remember| Parameter | Type | Description |
|---|---|---|
| chunk | boolean | Split a long document server-side into the same fixed character windows `mnemostack index` uses (identical chunk ids). Requires a non-empty source. |
| metadata | object | Free payload fields, filterable at recall. Server-reserved keys (underscore-prefixed, structural ones like tenant_id/source, tags/timestamp — use their dedicated parameters — and the lifecycle marker invalidated_at, settable only via mnemostack_invalidate) are rejected. |
| offset | integer | Position within `source` for multi-part documents. |
| restore | boolean | Reactivate matching retracted memories in keep mode. |
| source | string | Logical origin (e.g. 'chat/2026-08-19'). With `offset` it forms the deterministic id. Re-sending the same content reuses the stored vector. |
| tags | array | Optional tags stored in the payload. |
| text * | string | The memory content to store. Embedded server-side. Plain |
| timestamp | string | Event time of the content (ISO-8601); drives temporal recall. |
mnemostack_resolveVerify a citation: resolve a chunk id back to its source document.| Parameter | Type | Description |
|---|---|---|
| chunk_id * | string | The [id:...] value from a recall result or answer citation |
mnemostack_search| Parameter | Type | Description |
|---|---|---|
| as_of | string | Point-in-time recall (ISO-8601): return facts valid at this world-time instant, ignoring later invalidation. |
| filters | object | Payload filters applied inside every retriever: exact match ({"tenant": "a"}) or gte/lte range ({"timestamp": {"gte": "2026-01-01"}}). Results never include points outside the filtered scope. |
| include_invalidated | boolean | Include facts marked stale. Default false: memories with an invalidated_at marker are hidden from recall. |
| include_trace | boolean | Include the per-retriever recall trace (debug; verbose) |
| limit | integer | Maximum number of results to return (default 10) |
| query * | string | Natural language question or keyword to search memories for |
| token_budget | integer | Hard cap on the total (estimated) text tokens of the returned results; the final ranking is cut to the prefix that fits. Unset uses the server-wide default, if any. |
Security checks
6 checks have not been run yet.