# datacron [Health: Active]

**Category:** 🧠 Knowledge & Memory  
**Repository:** https://github.com/VBlackJack/Datacron  
**GitHub Stars:** 1  
**Views:** 2  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/datacron

## Description
Local-first MCP server that exposes a Markdown vault through MCP.

## Tools
Capabilities this server exposes over MCP:

- **session_context** — Bounded session context and versioned common protocol.
- **prepare_follow_up** — Prepare sourced follow-up plans without writing.
- **get_follow_up** — Latest structured follow-up revisions with snapshot-bound pagination.
- **list_notes** — returns a paginated list, filterable by folder, tags, and frontmatter key/value pairs, with ULID, title, tags, aliases, and dates
- **get_note** — reads a note or an exact heading subtree, with pagination, chunk lookup, or a heading outline
- **search_text** — runs a BM25 search on the FTS5 index with ranked snippets and stale notes demoted by default
- **search_regex** — runs a regex search via ripgrep and resolves the found lines to indexed chunks
- **get_backlinks** — returns chunks whose wikilinks target a ULID or a resolved alias
- **create_note_ai** — creates a new typed `_memory` note, confined to allowed paths, without overwrite and with a durable journal
- **append_journal** — adds a Markdown entry under a heading, with confinement, exact history, and atomic write
- **set_frontmatter** — updates allowed lifecycle fields, `rejected`, the monotone `last_id` counter, and `updated`, preserving the Markdown body
- **patch_note_preamble** — replaces or removes the preamble before the first recognized Markdown heading (ATX or Setext), with mandatory CAS and suffix preservation
- **patch_note_section** — replaces the content of an existing heading with CAS, exact history, and preservation of other sections
- **move_note_section** — previews or commits an exact subtree move beneath an existing heading in the same note
- **delete_note_section** — explicitly deletes an H2-H6 section (ATX or Setext) and its subtree, with optional CAS and exact history
- **rename_note_section** — renames the title of an H2-H6 section (ATX or Setext) without modifying its content or subtree
- **revert_note** — restores a note from its content-addressed history; the operation stays durable, reversible, and audited
- **apply_organization_manifest** — validates a local content-addressed bundle containing at least one exact note operation and/or an exact `organization` configuration replacement, then applies its declared members and any required derived ULID-sidecar migration under CAS; application is journaled and crash-consistent
- **get_health** — returns the real state of index freshness, integrity, checksum, durability, and invariants
- **get_write_progress** — Inspect multi-note write receipts, conflicts and current indexing without retrying writes.
- **get_note_history** — lists the committed operation metadata of a note without reading historical content or modifying the journal
- **audit_query** — queries operation metadata by period, tool, or note without modifying the journal or the vault
- **contradiction_scan** — live, deterministic, bounded scan of contradictions/refinements between sections; proposes and confirms an explicit CAS call read-only, without ever writing automatically

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `uvx` (confidence: high):

```json
"mcpServers": {
  "datacron": {
    "command": "uvx",
    "args": ["datacron"],
    "env": {
      "DATACRON_VAULT_ROOT": "",
      "DATACRON_MEMORY_ROOT": "",
      "DATACRON_EXTRA_READ_VAULTS": "",
      "DATACRON_READ_PATHS": "",
      "DATACRON_WRITE_PATHS": "",
      "DATACRON_MAX_RESULT_COUNT": "",
      "DATACRON_MAX_RESULT_TOKENS": "",
      "DATACRON_RIPGREP_PATH": ""
    }
  }
}
```

**Requires environment variables:** `DATACRON_VAULT_ROOT`, `DATACRON_MEMORY_ROOT`, `DATACRON_EXTRA_READ_VAULTS`, `DATACRON_READ_PATHS`, `DATACRON_WRITE_PATHS`, `DATACRON_MAX_RESULT_COUNT`, `DATACRON_MAX_RESULT_TOKENS`, `DATACRON_RIPGREP_PATH` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## What datacron does

datacron provides an MCP interface to a local collection of Markdown notes. It is designed for durable knowledge and memory workflows: an agent can recover project context, prepare sourced follow-ups, inspect decisions and open points, and preserve new information in editable files. The notes remain usable outside the MCP client, including in Obsidian or another local Markdown reader.

The server maintains indexed metadata and content rather than requiring an entire vault to be placed in every model request. Notes can be addressed by paths, ULIDs, aliases, tags, folders, frontmatter, and headings. Memory writes are confined to permitted paths and can be reviewed through operation history, journals, receipts, and health checks.

## How it works

A local stdio MCP process serves the configured vault to a compatible client. The vault is indexed for structured listing and FTS5-based BM25 search. Regex queries use ripgrep when available and map matches back to indexed chunks; without ripgrep, the server falls back to a slower indexed-body scan.

Reads are bounded through pagination, chunk lookup, result limits, token budgets, and optional section-specific session context. Search results can demote stale notes. Follow-up preparation produces sourced plans without writing them, while retrieval returns structured revisions. Writes use allowlists, atomic operations, content-addressed history, journaling, and compare-and-set checks where applicable.

## Setup and configuration

Python 3.11 or newer is required for the Python installation. Install the package from PyPI and run `datacron setup`, or install from a source checkout. The setup command can initialize a vault, build its index, detect supported clients, and register the MCP server. The server can also be started directly with `datacron mcp serve --vault /path/to/vault` or through `datacron-mcp`.

Windows users can install the packaged setup executable and select a vault without installing Python. The configured client must be restarted after installation. Supported configuration includes `DATACRON_VAULT_ROOT`, optional separate memory and read-only vault roots, read and write path allowlists, result and token limits, chunk sizing, and the path to the ripgrep executable. `datacron init` creates `.datacron/VAULT.yaml`, which can also define query-expansion terms.

## Tools and capabilities

The MCP tool set includes:

- Bounded session context, sourced follow-up preparation, and structured follow-up retrieval.
- Paginated note listing with folder, tag, and frontmatter filters.
- Note retrieval by full content, heading subtree, chunk, or outline.
- BM25 text search, regex search, backlink lookup, and contradiction scanning.
- Creation of typed `_memory` notes and journal appends.
- Frontmatter updates and preamble, section, move, rename, and delete operations.
- Note reversion, history inspection, operation auditing, health reporting, and write-progress inspection.
- Validation and application of content-addressed organization manifests with journaling and crash-consistent writes.

## Limitations and notes

datacron is a local server, but excerpts returned to the client may be sent onward to that client's model provider. Writing is disabled unless the relevant write paths are allowed. Section and preamble edits use compare-and-set safeguards, so callers must account for conflicts rather than blindly retrying. Storing a deadline does not create a reminder, and ambiguous identities require clarification before memory updates.

_Full upstream README: https://allmcps.com/mcp/datacron/readme_

