1. Conduid
  2. Blockchain
  3. Memhub
MCP server · Blockchain

Memhub

Self-hosted AI memory for people and teams: project continuity, traceable evidence, private workspaces, and MCP integration.

53Fair

Scored 4 hours ago · breakdown

About Memhub

Memhub is an MCP server published by kninetimmy in the Blockchain category: self-hosted AI memory for people and teams: project continuity, traceable evidence, private workspaces, and MCP integration. Conduid read 26 tools from its source: archive_transcript, doc_add, get_command, get_row, list_decisions, list_facts and 20 more. No package is published for it, so it installs from a source checkout.

The repository has 38 stars and 3 forks, and its last commit was on 27 Nov 2026. Conduid has no tagged release on record for it. Its topics include ai-memory, context-management, long-term-memory, project-memory and self-hosted.

Install

From source
git clone https://github.com/kninetimmy/memhub

Tools (26)

archive_transcriptArchive a session's RAW agent transcript to local disk (the `transcript` wrap-up level, issue #96). Claude/Codex session JSONL stays .jsonl.zst. Before issue #214 the tool accepted only those agents; it now also requests OpenCode's complete local v2.session.export with sanitize=false, validates the returned session id, and stores the complete JSON as .json.zst. Every format gets one pointer row under gitignored .memhub/transcripts/. The archive is UNREDACTED and may contain secrets, so this is GATED: without `confirm=true` it refuses and returns the warning — surface it and only re-call with confirm=true after the user approves. Transcripts are never embedded, never in recall, and excluded from export/import. `agent` is `claude`, `codex`, or `opencode`; `session_id` is the transcript file stem (Claude), `codex:<uuid>` (Codex), or the verified current OpenCode session id.
doc_addIngest (or re-ingest) a local markdown file as an external reference document, chunked and RAG-searchable. Direct write: a doc is a user-pointed artifact, not an agent claim, so no review gate. Docs are OPT-IN to recall — query them with recall(source_types=["doc"]) to scope to docs alone; after a repo's first doc add they also join the default recall bundle, ranked with every other row (decision 90). Before archiving, unchanged content (same hash) was a no-op and changed content replaced every chunk on any stored path. That still holds for unarchived paths; archived paths refuse until restored with `memhub doc unarchive`. The path must canonicalize under the repo root or a configured [doc] allowed_dirs entry and must not match the deny-list; otherwise this refuses with a clear error (Wave-0 F11).
get_commandReturn the latest recorded command for a given kind such as build or test.
get_rowReturn one row's full stored text by the source_type, source_id and scope a recall hit reports (recall hits carry at most 300 characters of text), plus launch binding evidence. Works for repo rows and, in a repo that enabled machine-global memory, global rows.
list_decisionsList recent active decisions from memhub.
list_factsList durable facts. This used to list all repo facts; now retired facts are omitted. Use get_row by id to read a retired fact. Use this list to look up build/test/run commands or other key-value records the user has confirmed.
list_pending_writesList staged agent-originated proposals from pending_writes. Filter by status (pending|accepted|rejected|expired|all); defaults to pending.
list_tasksList tasks by status using indexed task lookups. Defaults to open tasks.
locateLocate code in the launch-bound checkout by intent (M11). SQL+RAG hybrid search (FTS5 BM25 + cosine when hybrid mode is configured) over that checkout's .memhub/code_index.sqlite, using the primary memory project's config and deny list. Each call attempts a lazy refresh, then returns ranked breadcrumbs with a CLIPPED indexed-body snippet (≤6 lines), typed binding/index/freshness evidence, and SHA-256 evidence; a hit whose current selected-checkout file cannot be confined/read or does not match the index is omitted and counted. The lookup is not an atomic tree snapshot, and indexed HEAD is not dirty-content identity. It never returns whole files or edits source/project memory, though refresh can update the disposable index. Use this to find WHERE code lives before reading it with your own file tools. `rerank` runs the bundled cross-encoder over the candidate pool (off by default; fusion wins Recall@3, rerank wins single-best-guess Recall@1 — decisions 122/123).
log_session_noteRecord a free-form session note with optional structured session, agent, provider, model, and variant provenance. Provenance does not alter note text or actor attribution. Notes are write-only scratch space and never promote to facts or decisions; never in default recall, but retrievable with recall(source_types=["note"]).
metricsReturn token-accounting totals and a pre-rendered dashboard panel. When metrics are disabled returns {enabled:false} only. When enabled, returns 7-day and 30-day recall/session token aggregates plus up to 10 recent sessions and a rendered_panel string the /metrics skill prints verbatim.
propose_decisionStage a proposed decision — a durable record of a choice and the rationale behind it (what was decided and WHY) — into pending_writes for human review. NEVER durable until the user runs `memhub review accept`. Use to capture an architectural or design decision worth preserving.
propose_factStage a proposed fact — a durable, user-confirmable truth about this repo (a build/test/run command, a toolchain version, a standing constraint) — into pending_writes for human review. NEVER durable until the user runs `memhub review accept`. Use when you've inferred something worth persisting beyond the session, not for a transient observation or a to-do.
propose_supersedeStage a proposed SUPERSESSION — link an outdated fact or decision to the row that replaces it — into pending_writes for human review. NEVER writes durably: the link is set only when the user runs `memhub review accept`. Before fact retirement, an otherwise eligible superseded row stayed in recall, tagged and penalized, not deleted. That still holds unless the fact is separately retired; supersession alone never excludes the row. Set target_kind to "fact" or "decision"; `old` and `new` identify the superseded row and its replacement (fact: numeric id or exact key; decision: numeric id). Use when you find a durable fact/decision that a newer one has clearly replaced — you are proposing the supersession, not performing it (untrusted-writer guardrail).
recallRetrieve relevant facts, decisions, tasks, and architecture sections via SQL+RAG hybrid recall (FTS5 + brute-force cosine when hybrid mode is configured). Read-only; prefer this over reading PROJECT_LEDGER.md mid-session. Hits are compact: each carries source_type, source_id, scope, title, rerank_score, created_at, status (tasks only), stale, superseded_by and `text`, at most 300 characters of the row's text (ending in … when cut). Call get_row with a hit's source_type, source_id and scope to read its full text before relying on a cut text. Hits come in strict re-ranker score order, highest first, and recall does not decide which of them answer the question: you judge relevance from the titles, text and scores. A lower score is a weaker match, not a rejected one; the right row is often not the first. The re-ranker drops candidates scoring below a low nonsense cutoff ([retrieval.scoring] rerank_cutoff, default -7.0). Recall warns `rerank_cutoff_dropped_all` only if the cutoff drops at least one scored candidate, none clear it, and no named row is returned. An empty pool after filtering does not trigger this warning. Without the re-ranker (fts mode, or the re-ranker disabled) rerank_score is null, hits follow the blended FTS/vector score and no cutoff applies. Phrase `query` as a natural-language question ("are task writes reviewed or direct writes?"), not a keyword list — the cross-encoder scores question phrasings several logits higher. When the first call comes back empty or thin, or the answer likely uses different words than your question, retry with `variants`: up to 4 extra phrasings of the same question, such as a keyword form and a sentence worded like the answer. Variants only widen which rows are considered; every row is still scored against `query` (or, when `query` asks two things joined by "and" plus a question word, its best part), never a variant, so keep `query` the best natural-language question. A decision, task or fact named in `query` by number ("decision 201", "task #99", "fact 7") is an explicit lookup: it is returned first, ahead of every other hit and exempt from the cutoff, when that row exists in the repo store and the filters allow it; it takes one of the `max_results` slots. Before retirement, this applied to any otherwise eligible repo fact. Now all retired facts are excluded from recall even if named or explicitly scoped; use get_row by ID to inspect them. Sections of the latest architecture narrative (`memhub arch set`, split by heading; source_type `arch_section`, titled `Architecture — <heading path>`) are part of the default bundle and ranked like facts, decisions, and tasks; source_types=["arch"] scopes a query to them alone. Ingested reference docs are opt-in (add one with doc_add); once added their chunks join the default bundle and are ranked with every other row (decision 90), and source_types=["doc"] scopes a query to docs alone. Before archiving, any ingested chunk could surface in recall or count toward `available_docs` if it did NOT surface. Now chunks from archived docs are excluded from both the count and recall, even with an explicit doc scope. When `available_docs` is non-zero and the question is design/spec/architecture-flavored, consider a follow-up recall scoped to docs (use judgment; not every turn). Session notes (log_session_note) are write-only scratch and never join the default bundle at all — source_types=["note"] is the only way to retrieve one.
record_commandRecord a verified command outcome using the existing explicit command verification path.
renderRegenerate the configured local PROJECT.md and PROJECT_LEDGER.md render outputs from the current DB state. Prior files are backed up automatically.
searchSearch indexed memhub data. Supports file-history lookups and decision text search.
statusReturn the launch-bound memhub project's summary, stored record counts, and typed memory/code binding evidence.
sync_adoptReplace the local DB with the Drive snapshot (the pull). DESTRUCTIVE and lossy on a diverged history. Gated: without `confirm=true` it returns the would-change verdict and refuses — surface that to the user and only re-call with confirm=true after they approve. Hard refusals regardless of confirm: project-id mismatch, a snapshot schema newer than this binary (run `memhub upgrade`), or a checksum that disagrees with the manifest. Defaults to the configured remote dir; pass `remote` to override.
sync_checkCompare the local DB against the Drive snapshot and report the baseline-relative verdict (up-to-date / local-ahead / drive-ahead / diverged / no-remote). Reads only the manifest, never the multi-MB snapshot. Surface `baseline_warning`: regressed or unchanged-counter/different-content histories are diverged; counters and content equality do not prove ancestry, and independent histories with higher counters remain undetectable, so drive-ahead is not a guaranteed safe fast-forward. Diverged can mean an incompatible baseline, not only two changed sides. An available CLI audit diff is not proof of complete reconciliation. Surface `project_id_mismatch` and `schema_blocks_adopt` to the user — both block a safe adopt. Defaults to the configured remote dir; pass `remote` to override.
sync_commitRecord that the local DB now equals the just-pushed snapshot, so the next sync_check reads up-to-date. A push to the configured remote dir already records this via sync_snapshot; use sync_commit to cover an explicit-remote push, or as an idempotent verify/repair step (harmless no-op if the baseline is already recorded). Defaults to the configured remote dir; pass `remote` to override.
sync_snapshotWrite a consistent single-file DB snapshot + manifest into the synced Drive folder — the push. When targeting the configured remote dir (the default) this records the new baseline itself, so no follow-up call is needed; sync_commit remains for an explicit-remote push or as a manual repair step. Refuses when the remote is drive-ahead of or diverged from local (would clobber distinct state) — inspect and reconcile first, or explicitly pass `force=true` for last-writer-wins. Defaults to the configured remote dir; pass `remote` to override. Requires `memhub sync enable` for this repo.
sync_statusCross-machine Drive sync: show enablement, the Drive-folder project id, the resolved remote dir (<drive_subpath>/memhub/<project_id>), the local logical version, and the last-sync marker. No Drive comparison. memhub stays offline; the synced folder (Google Drive for Desktop) is the transport.
task_addCreate a task directly in the durable tasks table — a concrete future to-do or follow-up for this repo. Tasks are intent, not truth claims: a direct write with no review gate; the user prunes. Use to record work to be done later, not to assert that something is already true (propose_fact) or to capture why a choice was made (propose_decision).
task_doneMark an existing task as done by id, as before. Like CLI task done, this now also clears any saved drop or keep undo state.

Security checks

6 checks have not been run yet.

Questions

About Memhub

How do I install Memhub?

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

Is Memhub safe to use with an AI agent?

Its trust score is 53 out of 100 (fair). Conduid hasn't run static security checks on this repository yet, so review the source yourself before granting it credentials. It has no ConduID identity yet, so agent calls to it are not receipted.

Is Memhub still maintained?

Yes — the last commit was 5 days ago. The repository has 38 stars and 3 forks.

What tools does Memhub provide?

Conduid read 26 tools from the source: archive_transcript, doc_add, get_command, get_row, list_decisions, list_facts, list_pending_writes, list_tasks and 18 more.