Predict context rot, sign every agent write, tier reads. Markdown-native, 100% local.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
An open-source observability layer for LLM agent memory on Markdown vaults.
Predict context rot before it happens Β· audit every agent write with a signed journal Β· tier your knowledge the way the science says you should.
Demo Β· Workflow Β· Tools Β· Quickstart Β· Architecture Β· Science
[!NOTE] The dominant 2025β2026 narrative on X β "Markdown trips up the LLM at scale" β is partially wrong. Markdown does not trip up the LLM. Long-context loading trips up the LLM (Chroma, Context Rot, July 2025). Mnemoscope is built on that distinction.
Real output, captured from the bundled examples/demo-vault β a 13-note synthetic vault built so every rot factor moves. Reproduce locally with mnemoscope-init examples/demo-vault (full transcript: SAMPLE-OUTPUT.md).
|
|
|
Mnemoscope is not another memory store. It is an instrument that sits between your LLM agent and your Markdown vault and gives you three things nobody else gives you in one tool:
It ships as an MCP server (Claude Code, Cursor, ChatGPT desktop, anything MCP-compatible), an Obsidian plugin, and a Claude Code PostToolUse hook. Everything runs 100% locally. No cloud. No telemetry without explicit opt-in.
Imagine you start a brand-new project β a folder of Markdown notes you'll grow with Claude Code over the next year. Mnemoscope plugs into the lifecycle in five places:
| Phase | Tool / command | When to use it | What you get |
|---|---|---|---|
| 1. Bootstrap | mnemoscope-init | Once, at project creation | .mnemoscope/ + per-vault Ed25519 keypair |
| 2. Predict | predict_rot (MCP tool) | Before injecting a vault into the LLM | A 0β100 risk score + factor breakdown + top-risk notes |
| 3. Compact | get_tiered_read (MCP tool) | When the vault grows past your model's effective context | Working / episodic / semantic split |
| 4. Witness | mnemoscope-record-hook (Claude Code PostToolUse hook) | Wired once in ~/.claude/settings.json, then passive | Every agent write becomes a signed journal entry |
| 5. Audit | mnemoscope-verify | Any time, or as a pre-commit / CI step | Exit 0 if all entries verify, exit 1 if tampered |
| Tool | Input | What it returns |
|---|---|---|
predict_rot | vault_path | Score 0β100, dominant factor, full factor breakdown, top 5 risk notes, vault stats |
get_tiered_read | vault_path, optional age thresholds | Note paths grouped into working / episodic / semantic |
record_journal | vault_path, session_id, op, target_path, optional content | The signed entry, including its sig, keyFingerprint, and prevHash |
read_journal | vault_path, optional session_id | All journal entries, or a single session's entries |
predict_rot on a real vaultAdd
.mnemoscope/to your vault's.gitignoreβ the per-vault private key must never be committed.
The four tools (predict_rot, get_tiered_read, record_journal, read_journal) become available to the agent immediately.
Asking the agent to call record_journal on every write is a recipe for forgetting. Wire the bundled hook instead:
The hook resolves the vault root via MNEMOSCOPE_VAULT_PATH or by walking up to the closest .mnemoscope/ directory. It never blocks the tool call: any internal error is caught, logged to stderr, and the process exits 0. Full setup including safety properties: docs/claude-code-hook.md.
mnemoscope-verify exits non-zero on any of:
prevHash chain break),If you lose <vault>/.mnemoscope/keys/ed25519.key, the journal becomes unverifiable. The bundled backup CLIs encrypt the key with a passphrase (scrypt + AES-256-GCM, no extra deps) and let you restore it later:
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/mnemoscope)<a href="https://allmcps.com/mcp/mnemoscope"><img src="https://allmcps.com/api/badge/mnemoscope?style=directory" alt="Mnemoscope on AllMCPs" /></a>