New advertisers: 50% off your first month with code FIRSTMONTHSee slots
mavaali avatar

Daftari

mavaali/daftari

Open-source multi-user knowledge vault for AI agents, with search, writes, provenance, and Git history.

GitHub stars
5
tools
27
transport
STDIO
last updated
Nov 20, 2026
View on GitHub

What it does

  • Searches with vault_search, vault_search_related, and vault_themes; reads context via vault_read, vault_backlinks, and vault_chains
  • Writes with vault_write, vault_patch, vault_append, and vault_supersede, each logged to provenance and committed to Git
  • Stores plain markdown files on disk, with a rebuildable SQLite index and config-driven roles; runs locally over stdio after npx daftari --init
  • Designed for agents that need traceable, contested, and superseded knowledge rather than flat retrieval

Tools

27 tools

Public tool metadata for what this MCP can expose to an agent.

vault_searchHybrid lexical/vector retrieval over the vault.

Hybrid lexical/vector retrieval over the vault.

No parameter schema in public metadata yet.

vault_search_relatedFind related documents.

Find related documents.

No parameter schema in public metadata yet.

vault_themesThematic clusters of documents.

Thematic clusters of documents.

No parameter schema in public metadata yet.

vault_readRead document content.

Read document content.

No parameter schema in public metadata yet.

vault_backlinksInbound references to a document.

Inbound references to a document.

No parameter schema in public metadata yet.

vault_chainsThe current entry of every supersede chain.

The current entry of every supersede chain.

No parameter schema in public metadata yet.

vault_consumesCompiled dependencies.

Compiled dependencies.

No parameter schema in public metadata yet.

vault_writeStructured writes with locking, provenance, indexing, and Git history.

Structured writes with locking, provenance, indexing, and Git history.

No parameter schema in public metadata yet.

vault_patchStructured writes with locking, provenance, indexing, and Git history.

Structured writes with locking, provenance, indexing, and Git history.

No parameter schema in public metadata yet.

vault_appendStructured writes with locking, provenance, indexing, and Git history.

Structured writes with locking, provenance, indexing, and Git history.

No parameter schema in public metadata yet.

vault_mergeStructured writes with locking, provenance, indexing, and Git history.

Structured writes with locking, provenance, indexing, and Git history.

No parameter schema in public metadata yet.

vault_supersedeStructured writes with locking, provenance, indexing, and Git history.

Structured writes with locking, provenance, indexing, and Git history.

No parameter schema in public metadata yet.

vault_promoteExplicit gates between draft, canonical, source, and retired knowledge.

Explicit gates between draft, canonical, source, and retired knowledge.

No parameter schema in public metadata yet.

vault_deprecateExplicit gates between draft, canonical, source, and retired knowledge.

Explicit gates between draft, canonical, source, and retired knowledge.

No parameter schema in public metadata yet.

vault_unsupersedeExplicit gates between draft, canonical, source, and retired knowledge.

Explicit gates between draft, canonical, source, and retired knowledge.

No parameter schema in public metadata yet.

vault_set_confidenceExplicit gates between draft, canonical, source, and retired knowledge.

Explicit gates between draft, canonical, source, and retired knowledge.

No parameter schema in public metadata yet.

vault_set_tierExplicit gates between draft, canonical, source, and retired knowledge.

Explicit gates between draft, canonical, source, and retired knowledge.

No parameter schema in public metadata yet.

vault_tension_logOpen tensions between documents.

Open tensions between documents.

No parameter schema in public metadata yet.

vault_tension_triageOpen tensions between documents.

Open tensions between documents.

No parameter schema in public metadata yet.

vault_positionsAttributed positions.

Attributed positions.

No parameter schema in public metadata yet.

vault_canonSettled-versus-contested belief.

Settled-versus-contested belief.

No parameter schema in public metadata yet.

vault_stage_actionProposed actions requiring human judgment.

Proposed actions requiring human judgment.

No parameter schema in public metadata yet.

vault_ratifyRatified organizational positions.

Ratified organizational positions.

No parameter schema in public metadata yet.

vault_consolidateRatified organizational positions.

Ratified organizational positions.

No parameter schema in public metadata yet.

vault_receiptEvidence receipts.

Evidence receipts.

No parameter schema in public metadata yet.

vault_provenanceWrite history.

Write history.

No parameter schema in public metadata yet.

vault_witnessPrincipal track records.

Principal track records.

No parameter schema in public metadata yet.

Readme

Daftari

CI npm version License: MIT

Durable, inspectable memory for AI agents. Daftari exposes a markdown vault over the Model Context Protocol (MCP), then adds the controls an agent needs to use that vault without flattening its history: provenance, supersession, staleness, open contradictions, access control, and Git-backed writes.

The model is replaceable. The memory stays yours: plain files on disk, readable without Daftari and portable across MCP clients.

Daftari (دفتری) is Urdu for a ledger-keeper. The model is deliberate: a ledger records corrections instead of erasing them, and becomes more useful as its cross-referenced history accumulates.

npx daftari --init ./my-vault

Choose your path


View the full README on GitHub

Details

Repository
github.com/mavaali/daftari
Website
github.com/mavaali/daftari
Categories
Memory & Context, Docs & Knowledge Bases
Package
daftari
Transport
STDIO
Registry
MCP registry, active

Similar to Daftari

More Memory & Context