SuperAPI AI Directory

loredocs

LoreDocs is a local knowledge base tool for AI projects, designed to provide AI assistants such as Claude with persistent access to project documentation. Through MCP tools, it organizes documents such as specifications, guides, and architecture decisions into a searchable, version-tracked vault (knowledge base), supporting environments including Claude Code, Cowork, Cursor, OpenAI Codex, and Hermes Agent. Data is stored in a local SQLite database without relying on cloud services; the free version provides basic features, while the Pro version ($9/month) unlocks semantic retrieval and higher storage limits.

Open website

About this tool

LoreDocs is a searchable knowledge base designed for AI projects, primarily addressing the problem of AI assistants losing context between sessions. Through MCP (Model Context Protocol) tools, it enables AI assistants such as Claude to persistently access project documentation, including specifications, guides, architecture decisions, and reference documents.

Key Capabilities

LoreDocs organizes knowledge into vaults (knowledge bases), where each vault is a named container for related documents. Documents are stored as text files with metadata (tags, categories, priority, notes). Core features include:

  • Version history: Tracks every change to each document and supports rolling back to any historical version. The free version retains 5 versions per document, and the Pro version retains 100.
  • Full-text search: Fast keyword search implemented based on SQLite FTS5.
  • Context injection: Loads vault content into Claude's context on demand.
  • Tags and categories: Supports discovering documents across vaults.
  • Priority marking: Documents can be marked as critical, high, normal, or low.
  • Batch operations: Import directories, batch tag, and export manifests.
  • Document links: Connect related documents across vaults.
  • Import from Obsidian: Pointing to an Obsidian vault folder allows recursive import of nested folders, preserving tags in YAML frontmatter (aliases, creation dates, and backlinks are not imported).

The Pro version additionally provides:

  • Semantic retrieval: Meaning-based retrieval implemented based on the local embedding model BGE-small-en-v1.5 and a LanceDB index.
  • Embedding-based document relationships: vault_find_related returns keyword co-occurrence and embedding-based automatic links (cosine similarity >= 0.75, within the same vault).
  • Cross-product session linking: Automatically associates vault documents with the most relevant LoreConvo sessions (requires both LoreDocs Pro and LoreConvo Pro).

Usage

LoreDocs provides 51 MCP tools (52 after installing the additional notion dependency),divided by function into: vault management (8), document operations (10), search and discovery (6), organization and maintenance (7), context injection (9), import/export (5), document links (2), administration (5), cross-product session linking (3, Pro).

Installation methods:

  • Install directly from the Claude Code plugin marketplace, or via PyPI:uvx loredocs.
  • Prerequisite: uv (a fast Python package manager).
  • For Claude Agent SDK users: git clone the public repository and point the SDK's local directory plugin loader to the repository root (the repository root is a self-contained plugin directory containing .claude-plugin/plugin.json and .mcp.json).

After installation, Claude automatically gains access to all 51 LoreDocs MCP tools. You can ask Claude to "create a vault for this project" or "find the architecture document," and it will use these tools on its own.

To verify the installation: ask Claude to "run vault_list and show the results." If you see a list of vaults (or an empty list on first use), the connection is successful.

It is recommended to use it in ~/.claude/CLAUDE.md(Global) or add a configuration snippet to the project's CLAUDE.md to guide Claude to use LoreDocs consistently across sessions. For Cowork users, Cowork does not run hooks automatically; you need to add instructions to the project's CLAUDE.md to call vault_list and vault_inject_summary at the start of a session.

When to use

  • Provide AI coding assistants with persistent project documentation context to avoid losing information between sessions.
  • In multi-agent environments, store shared content (playbooks, team guidelines, shared specs) as vault documents as a single source of truth, avoiding drift from local copies maintained by each agent. All agents call vault_inject_by_tag at the start of a session to get the same version.
  • Work with LoreConvo to form a portable project workspace: LoreConvo remembers discussions, decisions, and open items (episodic + semantic memory), while LoreDocs stores reference documents, specs, and guidelines (persistent knowledge). Both are stored locally in SQLite and send no data to external servers.

Limitations and notes

  • Requires Python 3.11-3.14 and the uv package manager.
  • Data is stored in the local ~/.loredocs/ directory, the SQLite database is located at ~/.loredocs/loredocs.db, and document files are located at ~/.loredocs/vaults/. The root directory can be overridden via the LOREDOCS_ROOT environment variable.
  • No telemetry or usage data is collected. Pro license verification uses offline Ed25519 cryptography, and verification itself makes no network requests.
  • Network calls: Pro semantic search downloads the BGE-small-en-v1.5 embedding model from Hugging Face once on first use; the optional Notion import calls the Notion API using a user-provided token; the MCP server fetches the license revocation list in a background thread at startup (a static public file, at most once every 24 hours, sending no license key, email, purchase ID, or machine identifier, and can be disabled via LORE_REVOCATION_REFRESH=0).
  • Storage durability depends on the underlying filesystem; a one-time warning is issued when a vault root is detected in a known cloud-sync directory.
  • The metadata.json in each document directory is strictly derived from the SQLite database and should not be edited directly, otherwise it will be overwritten on the next document update.
  • Version history integrity: v0.1.21+ includes atomic writes, intent log, five-source allocator, divergence detection, per-version sidecar, retention rotation, and the vault_verify diagnostic tool.
  • The free version has storage limits; Pro ($9/month) removes the limits and unlocks semantic retrieval. All features run locally, and Pro adds no cloud components.
  • If the MCP server is unreachable (e.g., in scheduled tasks or automation scripts), you can use scripts/query_loredocs.py to perform core operations directly against the SQLite database.

Version update (v0.1.36)

  • vault_find_related returns more relevant results: documents linked by semantic similarity are ranked before documents that only share keywords, with at most 2 results per name family.
  • vault_rebuild_index now also regenerates automatic document links.
  • vault_update_doc stores exactly what is sent, no longer trimming trailing newlines or leading blank lines.