Skip to main content Switch to mobile version loredocs 0.1.34 Knowledge management MCP server for AI projects - search, tag, version, and organize your project knowledge
pip install loredocs==0.1.34 Copy PIP instructions
Your AI project's knowledge base. Organized, searchable, version-tracked.
LoreDocs gives Claude persistent access to your project documentation -- specs, guides, architecture decisions, reference docs -- so it never loses context between sessions. Works with Claude Code, Cowork, Cursor, OpenAI Codex, and Hermes Agent.
Install directly from Claude Code's plugin marketplace, or via PyPI: uvx loredocs
Prerequisites: uv (fast Python package manager).
# Install uv: https://docs.astral.sh/uv/getting-started/installation/ # Clone and install cd /path/to/loredocs uv sync For detailed installation instructions, see INSTALL.md.
Using the Claude Agent SDK directly? git clone the public repo and point the SDK's local-directory plugin loader at it -- the repo root is a self-contained plugin directory (.claude-plugin/plugin.json + .mcp.json). No separate SDK-installable bundle exists or is needed.
claude --plugin-dir /path/to/loredocs Or inside an existing session:
/plugin add /path/to/loredocs Once loaded, Claude has access to all 51 LoreDocs MCP tools automatically. Ask Claude to "create a vault for this project" or "find the architecture doc" and it uses the tools on its own.
Click + next to the prompt box
Select Plugins > Add plugin
Browse to the loredocs source folder
Shared Database Access: Cowork runs in a sandboxed VM. To access docs saved from Claude Code, ask Claude:
"Mount my ~/.loredocs folder"
For Hermes Agent users, add LoreDocs as an MCP server under mcp_servers: in ~/.hermes/config.yaml (see INSTALL.md for the full entry), then restart Hermes.
All 51 LoreDocs MCP tools are then available in your Hermes sessions.
When using LoreDocs with Hermes Agent:
Installation: First run downloads the loredocs version you pin from PyPI via uvx. There is no automatic self-update.
Data Storage: All vault data is stored locally at ~/.loredocs/ in SQLite format. No data is sent to cloud services or external servers.
Pro License Validation: Pro tier activation uses offline Ed25519 cryptography to validate your license key. No network request is made during validation.
Telemetry: LoreDocs does not collect or transmit telemetry or usage data.
Network calls: Pro semantic search downloads the BAAI/bge-small-en-v1.5 embedding model from Hugging Face once, on first use. The optional Notion import calls the Notion API with a token you provide. LoreDocs makes no other network calls.
LoreDocs organizes knowledge into vaults -- named containers for related documents. Each vault can hold specs, guides, decisions, checklists, or any text you want Claude to remember.
~/.loredocs/loredocs.db / <-- Document files on disk Key concepts:
Vaults group related docs by project or topic
Documents are text files with metadata (tags, categories, priority, notes)
Version history tracks every change to every document
Full-text search via SQLite FTS5 finds anything instantly
Injection loads vault content into Claude's context on demand
Your Data is Always Available
LoreDocs works through MCP tools when they are available and falls back to bundled scripts automatically when they are not. Your vault documents are safe regardless of MCP status -- the same add, search, and retrieve operations work either way. You do not need to configure anything; the plugin skill handles the switch silently.
After installing, verify LoreDocs is working by asking Claude:
"Run vault_list and show me the results."
If you see a list of vaults (or an empty list if this is your first time), LoreDocs is connected. If you get an error about missing tools, re-run uv sync and reload the plugin.
Recommended CLAUDE.md Setup
For the best experience, add the following snippet to your ~/.claude/CLAUDE.md (global) or your project's CLAUDE.md. This tells Claude how to use LoreDocs consistently across sessions.
## LoreDocs (persistent project knowledge) At session start: 1. Call `vault_list` to see available knowledge vaults. 2. Call `vault_inject_summary` for any vaults relevant to the current project. 3. Use this context to understand project architecture, decisions, and reference docs. During the session: - If you create significant documentation, add it to LoreDocs with `vault_add_doc`. - Tag documents for easy cross-vault discovery with `vault_tag_doc`. At session end: - If new docs were created or updated, ensure they are stored in LoreDocs for future sessions. For Cowork users: Cowork does not run hooks automatically. Add instructions to call vault_list and vault_inject_summary at session start in your project CLAUDE.md.
Canonical Project Knowledge
In multi-agent environments, different tools and agents often create improvised mirrors of shared skill or configuration content -- playbooks, style guides, shared reference docs. Those mirrors drift. One agent updates the source; the other keeps reading the stale copy. Two agents in the same project end up operating from divergent knowledge with no visible signal that anything is wrong.
LoreDocs prevents this by making the vault the single canonical source that every agent reads. Instead of each agent loading a local file copy, every agent calls vault_inject_by_tag at session start and gets the same vault-managed version.
Store shared content (playbooks, team guidelines, shared specs) as vault documents rather than as local files that agents copy or mirror.
Agents load the content at session start:
vault_inject_by_tag: team-playbook All agents -- regardless of surface (Claude Code, Cowork, CLI, or any future AI tool) -- call the same vault and receive the same current version. Updating the content requires editing the vault document once; all agents pick up the change on their next session start.
Local files (.claude/skills/, .agents/, or any surface-specific config) become pointers or bootstrap stubs only -- not the authoritative content. The vault is the source of truth.
Example: sharing a playbook across an agent team
# Session start for any agent on the team: # 1. Inject the shared playbook by tag vault_inject_by_tag("team-playbook") # 2. Inject any project-specific reference docs vault_inject_by_tag("project-architecture") # Working context is now current -- no local file copies needed. To store the shared content in the vault (one time, or on each update):
LoreDocs is local-first and free to use. Pro ($9/mo) removes the storage limits and unlocks semantic (meaning-based) retrieval. Everything runs on your machine on either plan -- Pro does not add any cloud component.
Upgrade to Pro -- $9/month
After checkout, your license key is emailed automatically to the address you used at checkout, usually within a few minutes. Questions: info@labyrinthanalyticsconsulting.com.
Free tier limits are enforced before writes; Pro removes them. Check your current tier and usage anytime with vault_tier_status. Activate a Pro license with vault_set_tier.
The Pro semantic features use a local embedding model (BGE-small-en-v1.5) and the LanceDB index -- still no data leaves your machine.
Vault organization: Group docs by project with linked project metadata
Document versioning: Full history with rollback to any prior version
Tagging and categorization: Tag docs for cross-vault discovery
Priority levels: Mark docs as critical, high, normal, or low priority
Full-text search: Fast keyword search across all vaults and documents
Context injection: Load specific docs, tags, or vault summaries into Claude's context
Bulk operations: Import directories, bulk-tag, export manifests
Document linking: Connect related docs across vaults
Embedding-based document relationships (Pro): vault_find_related returns both keyword co-occurrence and embedding-based auto-links for Pro users. Uses BGE-small-en-v1.5, cosine >= 0.75, same-vault scoped. Embedding links are archived if you downgrade from Pro to Free.
Cross-product session linking (Pro): Automatically links vault documents to the most relevant LoreConvo sessions, and vice versa. Three tools: vault_link_session, vault_get_session_links, vault_get_linked_sessions. Requires both LoreDocs Pro and LoreConvo Pro.
Tier management: Free/Pro tiers with configurable limits
Local-first: SQLite database, no cloud dependency, zero API costs
LoreDocs provides 51 MCP tools by default (52 with the notion extra installed; 52 with LOREDOCS_ENABLE_CAP_TOOLS=1 and the notion extra) organized by function:
Vault Management (8 tools)
Document Operations (10 tools)
Search and Discovery (6 tools)
Organization and Maintenance (7 tools)
Context Injection (9 tools)
Cross-product Session Links (3 tools, Pro)
Portable Project Workspace
LoreDocs and LoreConvo together form a portable project workspace for all of Claude -- session memory AND structured knowledge, entirely on your machine.
LoreConvo remembers what you discussed, decided, and left open (episodic + semantic memory)
LoreDocs stores the reference docs, specs, and guides Claude needs (durable knowledge)
Where cloud AI workspaces tie you to one ecosystem, LoreConvo + LoreDocs works across Claude Code, Cursor, OpenAI Codex, Hermes Agent, and Cowork. Both store data locally in SQLite. Neither sends anything to an external server.
mcp and pydantic (auto-installed by uv sync)
Supported Storage Substrates
LoreDocs stores document content as plain files on disk. The durability guarantee depends on the filesystem substrate:
A one-time warning is emitted when a vault root is detected under a known cloud-sync directory. Suppress it with LOREDOCS_SUPPRESS_SUBSTRATE_WARNING=1.
The metadata.json file in each document directory is strictly derived from the SQLite database -- the database is the source of truth. Do not edit metadata.json directly; changes will be overwritten on the next document update.
LoreDocs v0.1.21+ includes version-storage integrity features:
Atomic writes: Every mutation uses temp + rename, never writing into a destination path. A crash or disk-full leaves existing data untouched.
Intent journal: Crash recovery via hash-guarded, idempotent replay.
Five-source allocator: Version numbers are monotonically increasing across content files, sidecars, DB counter, reset marker, and highwater.
Divergence detection: History loss, jump, rollback, and holes are detected and reported. Writes refuse on divergence; reads proceed with a divergence field flagging the issue.
Per-version sidecars: history/v{N}.meta.json records save time, author, session ID, change note, and operation type for each version.
Retention rotation: Free tier retains 5 versions per document; Pro retains 100. Oldest versions are rotated automatically (never renumbered).
vault_verify: A diagnostic tool that reports integrity issues and can perform additive-only repairs. Run vault_verify --pre-upgrade before upgrading LoreDocs to check for legacy vault anomalies.
LoreDocs is local-first. All data lives in ~/.loredocs/ on your machine.
Data collected: Document names, content, tags, categories, and vault names you provide when storing documents. No telemetry, usage analytics, or identifiers are collected automatically.
Storage: SQLite database at ~/.loredocs/loredocs.db; document files in ~/.loredocs/vaults/. No cloud storage. Override the root directory with the LOREDOCS_ROOT environment variable.
Third-party sharing: None. Data never leaves your machine.
Retention: Data is retained until you delete it via vault_remove_doc, vault_delete, or remove the database files manually. No automatic expiry.
Contact: info@labyrinthanalyticsconsulting.com
MCP tools not showing up in Claude Code? Make sure you ran uv sync first. The virtual environment must exist with dependencies installed.
"No module named 'mcp'" error? The .mcp.json points to the virtual environment's Python. If you moved the folder, re-run uv sync.
Cowork can't see docs saved in Code? Ask Claude to "mount my ~/.loredocs folder" so Cowork can access the shared database.
Fallback Script (Direct DB Access)
If the MCP server is unreachable (e.g., in scheduled tasks or automation scripts), scripts/query_loredocs.py provides the same core operations directly against the SQLite database.
# List all vaults python scripts/query_loredocs.py --list # Show vault details and document manifest python scripts/query_loredocs.py --info "My Project Docs" # Search documents across all vaults python scripts/query_loredocs.py --search "architecture" # Add a document to a vault python scripts/query_loredocs.py --add-doc \ --vault "My Project Docs" \ --name "Architecture Overview" \ --file docs/architecture.md \ --tags '["architecture", "design"]' # Add a document from stdin (type content, then Ctrl-D) python scripts/query_loredocs.py --add-doc \ --vault "My Project Docs" \ --name "Quick Note" \ --stdin <<'EOF' # Quick Note EOF The script auto-discovers the database at ~/.loredocs/loredocs.db (or pass --db-path explicitly). It writes the same schema as the MCP tools, including FTS indexing and on-disk file storage.
--add-doc requires the loredocs package importable by the Python that runs the script (since v0.1.32 it delegates to the server's own storage layer, so documents get the same relationship indexing as the MCP tools). The same applies to --workspace, --get-doc, --prime, --import-dir, document history and restore, and related-document lookup. On a plugin install, run the script with the plugin's .venv/bin/python; otherwise pip install loredocs first. --list, --info, and --search work with any python3.
Tools that accept a session_id parameter (vault_update_doc, vault_link_session, vault_get_linked_sessions) now also accept lore_session_id as an alias. This works around the remote-devices bridge (used by Claude Cowork) which strips arguments named session_id in transit. If you pass both, they must match. No existing call needs to change.
The LoreDocs plugin for Hermes Agent now starts its MCP server. In 0.1.33 the catalog plugin installed and showed as enabled, but no LoreDocs tools appeared. After updating, hermes plugins update loredocs gives you all LoreDocs tools in Hermes.
Pro features in Hermes read your licence from ~/.loredocs/license.json. Hermes does not pass plugin environment variables to MCP servers, so the LOREDOCS_PRO variable has no effect there. INSTALL.md now says so.
Vault names are now compared case-insensitively for all languages, not just English letters. For example, "Ärzte" and "ärzte" count as the same vault name.
vault_prune_dangling_links now stops and explains why if more than half of your automatic session links look dangling. That usually means LoreDocs is pointed at the wrong LoreConvo database, and pruning would delete good links.
See the full changelog for the complete release history.
Business Source License 1.1 (BSL 1.1) - Labyrinth Analytics Consulting
Free for personal/non-commercial use (up to 3 vaults). Commercial use requires a paid license. Converts to Apache 2.0 on 2030-03-31. See LICENSE for details.
mcp-name: io.github.labyrinth-analytics/loredocs
Author: Labyrinth Analytics Consulting
BUSL-1.1 View SPDX License List
dev pro token-count notion
mcp claude knowledge-management ai-tools
Development Status 3 - Alpha
Intended Audience Developers
Programming Language Python :: 3
Topic Software Development :: Libraries
Release files for loredocs 0.1.34
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
Built distribution (wheel)
Total release size: 521.6 kB
Release files / loredocs-0.1.34.tar.gz
Release files / loredocs-0.1.34-py3-none-any.whl
Security for loredocs 0.1.34
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.
Release history Release notifications | RSS feed
Nov 28, 2026 2 release files No provenance
Nov 21, 2026 2 release files No provenance
Nov 13, 2026 2 release files No provenance
Nov 6, 2026 2 release files No provenance
Oct 29, 2026 2 release files No provenance
Oct 17, 2026 2 release files No provenance
Oct 16, 2026 2 release files No provenance
Oct 7, 2026 2 release files No provenance
Sep 25, 2026 2 release files No provenance
Sep 16, 2026 2 release files No provenance
Sep 8, 2026 2 release files No provenance
Sep 6, 2026 2 release files No provenance
Sep 2, 2026 2 release files No provenance
Aug 31, 2026 2 release files No provenance
Aug 16, 2026 2 release files No provenance
Aug 15, 2026 2 release files No provenance
Aug 10, 2026 2 release files No provenance
Aug 5, 2026 2 release files No provenance
Jul 31, 2026 2 release files No provenance
Jul 28, 2026 2 release files No provenance
Jul 26, 2026 2 release files No provenance
Jul 24, 2026 2 release files No provenance
Jul 19, 2026 2 release files No provenance
Jul 16, 2026 2 release files No provenance
Jul 11, 2026 2 release files No provenance
Jul 5, 2026 2 release files No provenance
Jun 29, 2026 2 release files No provenance
Jun 22, 2026 2 release files No provenance
Jun 16, 2026 2 release files No provenance
May 31, 2026 2 release files Loss of provenance
May 25, 2026 2 release files Full provenance
May 20, 2026 2 release files No provenance
May 12, 2026 2 release files No provenance
Apr 11, 2026 2 release files No provenance
"PyPI", "Python Package Index", and the blocks logos are registered trademarks of the Python Software Foundation.
© 2026 Python Software Foundation




