1. Conduid
  2. RAG
  3. LLM Wiki Memory
MCP server · RAG

LLM Wiki Memory

Local, git-versioned memory for AI coding agents. No RAG, no Docker, no external service. Capture, compile, recall over a local LLM wiki with on-device embeddings and an MCP server.

64Good

Scored 4 hours ago · breakdown

About LLM Wiki Memory

LLM Wiki Memory is an MCP server published by ctxr-dev in the RAG category: local, git-versioned memory for AI coding agents. No RAG, no Docker, no external service. Capture, compile, recall over a local LLM wiki with on-device embeddings and an MCP server. Conduid read 20 tools from its source: absorb_document, audit_memory, consolidate_memory, delete_document, disable_document, enable_document and 14 more. No package is published for it, so it installs from a source checkout.

The repository has 130 stars and 3 forks, is licensed MIT, and its last commit was on 9 Sep 2026. The latest release is v0.5.0 (5 Jul 2026): Startup memory now carries a lightweight "what is this" layer so the assistant can see a note without loading its body, and reminds you what you worked on recently. It follows v0.4.0 (3 Jul 2026), and the 4 most recent releases go back to v0.2.0 (13 Jun 2026). It passes all 5 static checks Conduid ran on the repository. Its topics include agent-memory, andrej-karpathy, andrej-karpathy-llm-wiki, andrej-karpathy-skills, embeddings and llm-wiki.

Install

From source
git clone https://github.com/ctxr-dev/llm-wiki-memory

Tools (20)

absorb_documentAbsorb ONE whole markdown document into a wiki as a single FULL leaf (stored verbatim, embedded whole — never shortened into an atomic note). Send `write:{ text, name, category, metadata?, dryRun? }`. `write.text` is the full document; `write.name` is the leaf filename (e.g. "checkout-design.md"); `write.category` is a FACET-PLACED category (knowledge or any non-gated, non-topology category in <wiki>/.layout/layout.yaml) — the model infers the within-category placement (area / subject) from the content, and `write.metadata` overrides any inferred facet. `write.dryRun:true` returns the proposed placement without writing. Gated (self_improvement) and topology (issues) categories are REFUSED — they cannot be auto-placed from content. To absorb a directory / glob of files, use the `cli.mjs absorb` command (it reads the filesystem); this tool takes one inline document. REQUIRES `scopes`: the directories you are working in. Inputs are a single nested context object; unknown keys are rejected. REQUIRED top-level `target` — the destination is explicit (no default): pass "brain" for private memory, or a context level's wiki root / mount directory for a project (discover levels via get_memory_config). NEVER absorb into a shared repo without the user choosing it; a shared write is only staged (the engine runs no git) — tell the user to commit and push it.
ParameterTypeDescription
writeobject
audit_memoryWalk categories for cleanup candidates; never mutates. Classes: duplicate-error-pattern (self_improvement lessons sharing an error_pattern), missing-metadata (lessons/bug-root-cause missing required fields). REQUIRES `scopes`: the directories you are working in (your cwd and any repos in play); the engine walks up to your home wiki.
ParameterTypeDescription
auditobject
consolidate_memoryRun the AutoDream-style consolidation orchestrator. For each active leaf in self_improvement + knowledge, finds its similarity cluster via internal vector search, then applies deterministic passes (sha256 dedup, lesson-key dedup, cosine archive, staleness flag, orphan archive, compress-archived bodies, embedding-cache GC, index rebuild) and the LLM passes (merge near-duplicate bodies, refresh stale leaves) when enabled. Never hard-deletes; always uses disable_document. Throttled via `consolidate.intervalDays` in settings.yaml when ifDue=true. Internal writes are system-maintenance-tagged so the write-gate exempts them. Daily cron + the hook-less `consolidate` skill rule run this on a schedule; invoke manually only when the user asks. NOT subject to the L3 write-gate (it's a system tool, not a save). Consolidate is BRAIN-ONLY in v1: passing a `target` that resolves to a shared/non-brain mount is refused (shared-target consolidate is deferred to v1.1). REQUIRES `scopes`: the directories you are working in (your cwd and any repos in play); the engine walks up to your home wiki.
ParameterTypeDescription
consolidateobject
targetstring
delete_documentPermanently remove a leaf file. Prefer disable_document unless you are sure. Primary safe use: clean up a stale plan-<old-slug>.md after a rename. REQUIRES `scopes`: the directories you are working in (your cwd and any repos in play); the engine walks up to your home wiki.
disable_documentSoft-delete: mark a leaf archived so search_memory / recall_lessons skip it, while keeping it on disk and in git history. Reversible via enable_document. REQUIRES `scopes`: the directories you are working in (your cwd and any repos in play); the engine walks up to your home wiki.
enable_documentSymmetric counterpart to disable_document: brings an archived leaf back into recall results. REQUIRES `scopes`: the directories you are working in (your cwd and any repos in play); the engine walks up to your home wiki.
get_memory_configInspect the local LLM-wiki memory configuration (wiki root, embed backend, categories, active LLM provider, the resolved scope `levels`, and the `diagrams` / `dedupe` policy you must honour). The `levels` array lists every level in your resolved scope chain — `{root, mountDir, projectModule, ownership, depth, gated, autoDistillOff}` — so you can choose an explicit write `target` by path (the ONLY way to distinguish two identical sibling clones, which share a projectModule but differ by root) AND know each level's write policy: `gated` names the categories that require the consent gate at that level (CHECK it before a write — self_improvement is gated by default; a wiki may opt others in), and `autoDistillOff` names categories compile will not auto-promote into. The `llm` block reports the resolved provider, model, baseUrl (for openai / openai-compatible), and a cheap local-only `available` probe (CLI on PATH / API key in env). It does NOT touch the network. REQUIRES `scopes`: the directories you are working in (your cwd and any repos in play); the engine walks up to your home wiki.
list_datasetsList the wiki memory categories (knowledge, self_improvement, plans, investigations, daily). REQUIRES `scopes`: the directories you are working in (your cwd and any repos in play); the engine walks up to your home wiki.
move_documentMove a leaf to a new path within the CURATED human zone, preserving its content + embedding and refreshing both the source and destination index.md. Send `select:{documentId, toPath, dataset?}`. Free-path moves are only for curated (consolidate:none, non-facet) categories — facet categories relocate via metadata (save_to_dataset / write_memory), and topology categories via a compiler-derived path; moves into/out of those are refused. Also refuses a destination collision or a missing source. select.toPath is a wiki-relative dir + filename, e.g. "Notes/Testing/My Note.md". REQUIRES `scopes`: the directories you are working in (your cwd and any repos in play); the engine walks up to your home wiki.
recall_lessonsBEFORE a non-trivial task, call this. It scopes to THIS workspace by default (so it returns hits without you guessing a module); nest facets under `filters:{ area, language, task_type, error_pattern }` to narrow — `area` is the sub-module (e.g. frontend/billing/infra). Broadens via a fall-back ladder (drop error_pattern, language, task_type, area, then project_module last) until enough hits; tags is never dropped. When includeKnowledge !== false, up to 2 bug-root-cause/feedback-rule knowledge atoms are appended. `sections:["frontmatter"]` returns a compact glance view (brief + type + status/progress + tags + priority, no body); omit it (or pass `["body"]`) for the excerpted body as before. REQUIRES `scopes`: the directories you are working in (your cwd and any repos in play); the engine walks up to your home wiki.
ParameterTypeDescription
fullContentboolean
includeKnowledgeboolean
maxCharsnumber
maxResultsnumber
query *string
scoreThresholdnumber
sectionsarray
reload_layoutClear the in-process layout/topology caches so the next operation re-reads <wiki>/.layout/layout.yaml and its sibling to_path/from_path .mjs helpers. Edits are normally picked up automatically (the caches revalidate by file mtime), so you only need this as an explicit escape hatch — e.g. after a copy/restore that preserved mtimes, or to force a refresh immediately. REQUIRES `scopes`: the directories you are working in (your cwd and any repos in play); the engine walks up to your home wiki.
reload_providerRe-run the cheap availability probe for the resolved LLM provider (CLI on PATH / API key in env / base URL set) and return the same `llm` block `get_memory_config` reports. Use after editing settings/.env or installing a CLI without restarting the MCP server. REQUIRES `scopes`: the directories you are working in (your cwd and any repos in play); the engine walks up to your home wiki.
save_lessonPersist a self-improvement lesson into the self_improvement category. Send `write:{title, body, metadata, tags?, evidence?}` and `gate:{userRequested}`. WRITE-GATED: propose to the user in chat first, and only call AFTER explicit yes in this turn — passing `gate.userRequested:true`. The server refuses without it. write.metadata.area, task_type, and error_pattern are required; project_module is stamped to the workspace automatically. Same title overwrites in place. REQUIRES `scopes`: the directories you are working in (your cwd and any repos in play); the engine walks up to your home wiki.
ParameterTypeDescription
writeobject
save_to_datasetWrite `write.text` as a wiki leaf with the exact `write.name`, replacing any existing leaf in the category with the same name. Send `write:{dataset, name, text, path?, metadata?}` and, only for a self_improvement write, `gate:{userRequested:true}`. `write.dataset` is a category name (knowledge, plans, investigations, self_improvement, or any extra category declared in <wiki>/.layout/layout.yaml). `write.path` is a relative directory under the wiki root (e.g. "issues/JIRA/DEV/129/95/7") that overrides facet-derived placement so the leaf is written verbatim at <path>/<name>. `write.path` is REQUIRED for any category with a `topology:` block (e.g. tracker issues) and REFUSED if missing/mismatched; optional for default facet categories. WRITE-GATED for dataset="self_improvement" only. REQUIRES `scopes`: the directories you are working in (your cwd and any repos in play); the engine walks up to your home wiki.
ParameterTypeDescription
writeobject
search_memorySearch the local wiki memory and return scored chunks. Pass `filters` (atom_type, area, language, task_type, error_pattern, tags) to pre-filter by frontmatter metadata before embedding rank. `area` scopes to a sub-module. `datasets` accepts category names; default searches every category. project_module is the workspace identifier and is auto-injected when you pass `filters` (so results stay within this install). Hit bodies are EXCERPTED by default (~600 chars each + a total budget) so a broad query can't overflow the response; pass `fullContent:true` (or read a leaf by id) for whole bodies, or `maxChars` to tune the excerpt width. `sections` chooses what each hit returns: `["frontmatter"]` yields a compact glance view (brief + type + status/progress + tags + priority, NO body) — ideal when you only need to know what a hit IS without spending context on its body; `["body"]` (or omitting `sections`) returns the excerpted body as before; `["frontmatter","body"]` returns both. REQUIRES `scopes`: the directories you are working in (your cwd and any repos in play); the engine walks up to your home wiki.
ParameterTypeDescription
datasetsarray
fullContentboolean
maxCharsnumber
maxResultsnumber
query *string
scoreThresholdnumber
sectionsarray
test_path_compilerDry-run a topology file_kind's path_compiler (or path_template) against caller-supplied facets and return the computed relative path. Use this to sanity-check a layout's topology block before writing real leaves; reports validation errors, runtime errors from the compiler, and any unresolved {variable} placeholders in the result. Reads <wiki>/.layout/layout.yaml (or the supplied `wiki_root` override). REQUIRES `scopes`: the directories you are working in (your cwd and any repos in play); the engine walks up to your home wiki.
ParameterTypeDescription
categorystring
facets *object
file_kind *string
wiki_rootstring
update_document_metadataChange an existing leaf's metadata (area, subject, tags, atom_type, task_type, language, error_pattern, priority) with NO `text` at all — use this instead of re-saving a whole document just to fix a facet. Send `select:{documentId, metadata, dataset?, pin?}`. A facet change RELOCATES the leaf, which CHANGES its documentId — read the returned `documentId` and `placement` (relocated | unchanged | pinned) rather than reusing the one you sent. `pin:true` patches the frontmatter and leaves the leaf where it is. A topology (`issues`) leaf is ALWAYS pinned: this tool can never move it between lifecycle folders — re-save it with a compiler-derived path for that. `status` is REJECTED here: use disable_document / enable_document (they also update the embedding cache), and note a plan's status is derived from its checkboxes. The title and body cannot be changed here (edit the file, or re-save via `cli.mjs save-leaf --file`), and `updated` / `focus` / `covers` are not re-stamped. REQUIRES `scopes`: the directories you are working in (your cwd and any repos in play); the engine walks up to your home wiki.
validate_layoutParse and schema-validate a layout contract. Reports each problem with a line:column pointer (facet_rules without placement_facets, a vocabulary reference that isn't declared, a fallback that isn't a vocab member, bad topology block, etc.). Inputs: optional `path` (an explicit layout.yaml path) OR optional `wiki_root` (defaults to the env-resolved wiki; reads <wiki_root>/.layout/layout.yaml). Returns {ok, errors:[{line,col,message}]}. REQUIRES `scopes`: the directories you are working in (your cwd and any repos in play); the engine walks up to your home wiki.
ParameterTypeDescription
pathstring
wiki_rootstring
validate_topologyIterates every declared file_kind in the topology, picks sample facets from facet_inputs (examples / enum-first / type defaults), runs pathFor with the round-trip safety net ON, and reports pass/fail per kind. Use BEFORE the first write against a layout to catch ambiguous from_path regexes, dropped facets, or no-placeholder templates. Inputs: optional `wiki_root` (defaults to env-resolved wiki) + optional `category` (defaults to 'issues'). REQUIRES `scopes`: the directories you are working in (your cwd and any repos in play); the engine walks up to your home wiki.
ParameterTypeDescription
categorystring
wiki_rootstring
write_memoryCreate a new wiki leaf from concise memory text. Send `write:{name, text, datasetId, supersedes?, supersedesAction?, path?, metadata?}` and, only for a self_improvement write, `gate:{userRequested:true}`. Optionally supersede an existing leaf by passing `write.supersedes` (its documentId; the old leaf is archived, or deleted with supersedesAction="delete"). `write.path` overrides facet-derived placement and is REQUIRED for a topology category (REFUSED if missing/mismatched), optional otherwise. WRITE-GATED for datasetId="self_improvement" only. REQUIRES `scopes`: the directories you are working in (your cwd and any repos in play); the engine walks up to your home wiki.
ParameterTypeDescription
writeobject

Security checks

  • ✓README presentThe repository's README runs to about 1.6K words.
  • ✓License declaredThe repository declares the MIT license.
  • ✓Tests presentA test suite exists in the repository.
  • ✓Dependencies pinnedA lockfile pins dependency versions.
  • ✓No dynamic code executionScanned 126 source files and found no eval, dynamic Function or shell execution.

1 check has not been run yet.

Releases

v0.5.0v0.5.0 — startup briefs, glance-view recall, and a Recently reminder · 5 Jul 2026Startup memory now carries a lightweight "what is this" layer so the assistant can see a note without loading its body, and reminds you what you worked on recently. Highlights Brief on every save — each memory leaf stores a deterministic…
v0.4.0v0.4.0 — recall-touch removed; consolidation opt-in · 3 Jul 2026Two breaking changes. Upgrade runbook for existing installs: https://raw.githubusercontent.com/ctxr-dev/llm-wiki-memory/main/docs/releases/2026/07/02/update-prompt.md Breaking Recall-touch removed entirely. Search/recall no longer writes…
v0.3.0v0.3.0 · 14 Jun 2026Full Changelog: https://github.com/ctxr-dev/llm-wiki-memory/compare/v0.2.0...v0.3.0
v0.2.0v0.2.0 · 13 Jun 2026What's Changed fix(mcp): drop unexpandable MEMORY_DATA_DIR from Claude Code template by @meshin-dev in https://github.com/ctxr-dev/llm-wiki-memory/pull/1 fix(wiki-store): stop YAML line-folding so long scalars stay single-line by…

README

The repository's README runs to about 1.6K words, fetched 13 days ago. The original in the repository is authoritative.

Read full README
Questions

About LLM Wiki Memory

How do I install LLM Wiki Memory?

No package has been published for this server, so install it from source: clone the repository and follow its README.

Is LLM Wiki Memory safe to use with an AI agent?

Its trust score is 64 out of 100 (good). It passes all 5 static checks Conduid ran on the repository. It has no ConduID identity yet, so agent calls to it are not receipted.

Is LLM Wiki Memory still maintained?

Yes — the latest release is v0.5.0 (5 Jul 2026), and the last commit was 2 months ago. The repository has 130 stars.

What tools does LLM Wiki Memory provide?

Conduid read 20 tools from the source: absorb_document, audit_memory, consolidate_memory, delete_document, disable_document, enable_document, get_memory_config, list_datasets and 12 more. 11 of them publish their parameters, listed under Tools above.

What license is LLM Wiki Memory released under?

The repository declares the MIT license. That applies to the latest release, v0.5.0, as well.