About Mnem
Mnem is an MCP server published by Uranid in the RAG category: git for AI Agent Knowledge. A persistent, versioned memory layer for AI systems. Hybrid GraphRAG retrieval. Runs entirely offline. Conduid read 22 tools from its source: mnem_commit, mnem_commit_relation, mnem_community_summarize, mnem_delete_node, mnem_get_node, mnem_global_add and 16 more. No package is published for it, so it installs from a source checkout.
The repository has 123 stars and 34 forks, is licensed Apache-2.0, and its last commit was on 3 Aug 2026. The latest release is v0.1.7 (21 May 2026). It follows v0.1.6 (6 May 2026), and the 5 most recent releases go back to v0.1.1 (2 May 2026). It passes all 5 static checks Conduid ran on the repository. Its topics include agent-memory, graphrag, knowledge-graph, local-first, vector-search and version-control.
Install
git clone https://github.com/Uranid/mnemTools (22)
mnem_commitAdd nodes and/or edges as a single commit. Returns the new op-id, commit CID, and created node UUIDs.mnem_commit_relationCompound write: resolve-or-create a subject node, resolve-or-create an object node, and connect them with a typed edge - all in one call. Prevents the duplicate-entity problem (see example below).mnem_community_summarizeExtractive Centroid + MMR (Maximal Marginal Relevance, diversity-promoting selection) summarizer over a caller-supplied set of node UUIDs. No LLM call - picks `k` sentences balancing proximity to the community centroid against diversity. Enabled via the `summarize` cargo feature.mnem_delete_nodeHard-delete: removes the node from the current head commit. Prior commits that referenced it remain addressable. Use only when the goal is to free storage, not memory hygiene.mnem_get_nodeFetch a single node by UUID. Returns full props, content size, and outgoing edge count.mnem_global_addWrite nodes and/or edges directly to the global graph. Use for shared entities (people, orgs, conventions) that appear across multiple projects.mnem_global_ingestSame as `mnem_ingest` but writes to the global graph. Use for documents that should be queryable across all sessions and projects.mnem_global_retrieveSame as `mnem_retrieve` but always targets the global graph (`~/.mnemglobal/.mnem/`). Use for cross-project, cross-session memory.mnem_global_tombstone_nodeSame as `mnem_tombstone_node` but operates on the global graph.mnem_incoming_edgesList all edges pointing to a node (reverse lookup). Equivalent to `mnem blame` in the CLI.mnem_ingestIngest a file path or inline text as a `Doc + Chunk + Entity` subgraph. Accepts `{path: "notes.md"}` or `{text: "...", source: "label"}`. Chunker options: `auto`, `paragraph`, `recursive`, `sentence_recursive`, `session`, `structural`.mnem_list_nodesEnumerate nodes at the current head, optionally filtered by label. Returns UUID + label + summary per node.mnem_list_tagsList all named tags (`refs/tags/*`) in the repository.mnem_recentWalk the op-log from HEAD backwards. Returns the last N operations with time, author, `agent_id`, `task_id`, and message.mnem_resolve_or_createFind-or-create a node by a primary-key property. If a matching `(label, anchor-property) == value` exists, its UUID is returned; otherwise a new node is committed.mnem_retrievePrimary retrieval tool. Hybrid semantic + sparse + graph search. Returns nodes pre-rendered to text plus `tokens_used` / `dropped` / `candidates_seen` metadata. Supports graph-expand, community filter, PPR, and cross-encoder rerank.mnem_schemaInspect node labels and edge predicates in the current commit. Use before writing queries or traversals to discover what's in the graph.mnem_searchExact-property match with optional edge traversal. Fast and deterministic - no embedding required.mnem_statsRepository overview: op-head, head commit, ref summary, known labels. Cheap; call this first to orient an agent to a new graph.mnem_tombstone_nodeSoft-delete: marks a node as forgotten. Hidden from retrieval by default, but the node CID and all prior commits remain intact for auditing. Use when a user says "forget X" or revokes consent.mnem_traverseFrom a start node, list outgoing neighbours reachable via specified edge labels.mnem_vector_searchRaw cosine-similarity nearest-neighbour search over stored node embeddings. Pass a model name and query vector; receive top-k matches.Security checks
Static checks derived from the repository 10 days ago. Heuristics on the source, not an audit.
- ✓README presentThe repository's README runs to about 8.9K words.
- ✓License declaredThe repository declares the Apache-2.0 license.
- ✓Tests presentA test suite exists in the repository.
- ✓Dependencies pinnedDependency versions are pinned by Cargo.lock.
- ✓No dynamic code executionScanned 271 source files and found no eval, dynamic Function or shell execution.
1 check has not been run yet.
What the source scan found
- Transport
- None found in the source
- Starts other programs
- 11 callscrates/mnem-cli/src/doctor.rs:863, crates/mnem-cli/src/doctor.rs:865, crates/mnem-cli/src/integrate.rs:2376
- Outbound network calls
- 13 callscrates/mnem-bench/src/datasets/convomem.rs:158, crates/mnem-bench/src/datasets/convomem.rs:215, crates/mnem-bench/src/datasets/mod.rs:141
- Writes or deletes files
- 75 callscrates/mnem-ann/src/hnsw.rs:345, crates/mnem-ann/src/hnsw.rs:349, crates/mnem-ann/src/hnsw.rs:917
- Lockfile
- Cargo.lock
Pattern matches on the source text of 271 files: places to read, not proof of what the code does at run time.
Releases
README
The repository's README runs to about 8.9K words, fetched a month ago. The original in the repository is authoritative.
Read full README