# Daftari

> Daftari is an open-source MCP server for knowledge and memory. Self-hosted markdown knowledge vault with provenance and tensions, served over MCP. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, self-hosted, API
- **Repository:** https://github.com/mavaali/daftari
- **MCP Registry name:** io.github.mavaali/daftari
- **Categories:** [knowledge and memory](https://ai-powered.com/categories/knowledge-and-memory)
- **Listing updated:** 2026-11-19

## About

Daftari turns a folder of markdown files into a memory store that AI clients can search, read and write through the Model Context Protocol. Beyond plain storage, it tracks where each claim came from, which documents replace older ones, how stale a note is, and when two live claims disagree, so the disagreement stays visible instead of being silently overwritten.

The vault is plain markdown with YAML frontmatter under Git, and a SQLite index is rebuilt from it for search. Writes are committed with attribution, roles and collection permissions gate access, and the README describes a separate HTTP mode for shared self-hosted use. Lint and curation commands report problems but do not auto-fix them, according to the README.

It suits people who run agents against notes they want to keep and audit, including teams adopting an existing Obsidian vault. The README notes it makes no network calls unless a vault opts into an external provider or integration.

## Features

- **Provenance on every write:** Each document records its sources, author and confidence, and every mutation is committed to Git.
- **Explicit supersession:** Replacements follow declared successor links rather than recency, so older claims keep their lineage.
- **Open tension tracking:** Contradictions between live claims are logged as tensions instead of being merged into a guess.
- **Role-based access control:** Config-driven roles and collection permissions decide what each user or client can read and change.
- **Markdown as source of truth:** Files stay readable in any editor, and the search index can be deleted and rebuilt at any time.
- **Local and shared serving:** Runs as a stdio process for one client or as a self-hosted Streamable HTTP server for several.

## Good for

- Give a coding or research agent a persistent, auditable memory of project notes
- Search an existing Obsidian or markdown wiki from an MCP client without moving the files
- Track which claims in a competitive or research file are current, stale or contested
- Review agent-written drafts before promoting them to canonical knowledge

## Install

### Claude Code (Terminal)

```sh
claude mcp add daftari -- npx -y daftari
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "daftari": {
      "command": "npx",
      "args": [
        "-y",
        "daftari"
      ]
    }
  }
}
```

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "daftari": {
      "command": "npx",
      "args": [
        "-y",
        "daftari"
      ]
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "daftari": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "daftari"
      ]
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "daftari": {
      "command": "npx",
      "args": [
        "-y",
        "daftari"
      ]
    }
  }
}
```

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "daftari": {
      "command": "npx",
      "args": [
        "-y",
        "daftari"
      ]
    }
  }
}
```

## FAQ

### Does Daftari require a hosted account?

No. The README describes it as self-hosted, with no hosted multi-tenant service, and it runs locally by default.

### What does it cost?

The README states it is available under the MIT License. It does not describe any paid plan.

### Which Node.js version is needed?

The quickstart lists Node.js 20 or newer as the prerequisite.

### Does it resolve contradictions automatically?

No. The README says it does not resolve contradictions by generating a compromise and keeps them visible as tensions.

### Is Daftari free?

Yes. Daftari is open source, so you can use and self-host it for free.

### How do I add Daftari to Claude Code?

Run this command in your terminal: claude mcp add daftari -- npx -y daftari

### What are the best alternatives to Daftari?

The closest alternatives to Daftari are gosidian, Notes Vault, mindin, Markdown Vault MCP and Tacitus MCP Server.

## Where this comes from

- Description: written from the project's README and its MCP Registry entry.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [gosidian](https://ai-powered.com/mcp/gosidian): gosidian is an open-source MCP server for knowledge and memory.
- [Notes Vault](https://ai-powered.com/mcp/notes-vault): Notes Vault is an open-source MCP server for knowledge and memory.
- [mindin](https://ai-powered.com/mcp/mindin): mindin is an open-source MCP server for knowledge and memory.
- [Markdown Vault MCP](https://ai-powered.com/mcp/markdown-vault-mcp): Markdown Vault MCP is a free MCP server for files and documents.
- [Tacitus MCP Server](https://ai-powered.com/mcp/tacitus-mcp-server): Tacitus MCP Server is an open-source MCP server for knowledge and memory.
- [SoloMD](https://ai-powered.com/mcp/solomd): SoloMD is an open-source MCP server for knowledge and memory.
- [NeuroStack](https://ai-powered.com/mcp/neurostack): NeuroStack is a freemium MCP server for knowledge and memory.
- [Exomem](https://ai-powered.com/mcp/exomem): Exomem is an open-source MCP server for knowledge and memory.

---
Source: https://ai-powered.com/mcp/daftari
