# davidgut1982/lore-mcp [Health: Active]

**Category:** 🧠 Knowledge & Memory  
**Repository:** https://github.com/davidgut1982/lore-mcp  
**GitHub Stars:** 5  
**Views:** 3  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/davidgut1982-lore-mcp

## Description
Persistent knowledge layer for AI agents. KB, investigation threads, journal with multi-agent attribution. SQLite/PostgreSQL/Supabase.

## Tools
Capabilities this server exposes over MCP:

- **kb_add** — Add an entry. Accepts `author`, `source_type` for attribution.
- **kb_search** — Semantic / hybrid / FTS search with optional topic filter.
- **kb_get** — Fetch full entry by ID.
- **kb_get_batch** — Fetch multiple entries by ID in a single call (re-keyed by `kb_id`).
- **kb_list** — List entries, filter by topic.
- **kb_update** — Update content, tags, or set `verified` flag.
- **kb_delete** — Delete entry (requires `confirm=true`).
- **kb_backfill_embeddings** — Generate embeddings for existing entries (idempotent).
- **kb_embedding_status** — Report embedding coverage across the KB.
- **investigation_add** — Open or add to an investigation.
- **investigation_list** — List investigations, filter by topic.
- **investigation_get** — Fetch full investigation by ID.
- **investigation_log_experiment** — Log a structured hypothesis → result → conclusion.
- **investigation_list_experiments** — List all logged experiments.
- **investigation_delete_note** — Hard-delete a note (requires `confirm=true`; production guard).
- **investigation_delete_experiment** — Hard-delete an experiment (requires `confirm=true`; production guard).
- **journal_append** — Add a milestone, decision, or reflection.
- **journal_list** — List recent entries (default 20).
- **journal_get** — Fetch entry by ID.
- **journal_delete** — Hard-delete an entry (requires `confirm=true`; production guard).
- **snapshot_config** — Snapshot a config object to the journal.
- **kb_ingest_doc** — Ingest a markdown file into the KB (`strategy`: `full` or `chunked`).
- **kb_ingest_dir** — Batch-ingest a directory, with change detection.
- **kb_sync_status** — Check what's changed since last sync.
- **mcp_index_scan** — Scan all configured MCP servers and index their tools.
- **mcp_index_search** — Search indexed tools by description.
- **mcp_index_get_server** — Get all tools for a specific MCP server.
- **mcp_index_rebuild** — Force a full rescan.
- **multi_search** — Search across KB, investigations, journal, and transcripts at once.
- **search_local** — Search local files by content.
- **search_transcripts** — Search Whisper transcript segments.
- **deduplicate_results** — Deduplicate a result set by similarity threshold.
- **cluster_results** — Cluster results by topic.

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

```json
"mcpServers": {
  "lore-mcp": {
    "command": "uvx",
    "args": ["lore-knowledge-mcp"]
  }
}
```

## Documentation

## What davidgut1982/lore-mcp MCP server does

The davidgut1982/lore-mcp MCP server stores operational knowledge that agents can read and update across sessions. Its knowledge base supports entries with authorship, source type, tags, topics, and verification state, making it possible to distinguish human-reviewed information from agent-generated material.

The server also organizes longer-running work into investigations. An investigation can contain hypotheses, experiment results, and conclusions, giving agents a durable record of troubleshooting. A journal provides another stream for milestones, decisions, and reflections. These stores can be searched separately or together through `multi_search`.

Beyond memory management, the server can ingest Markdown documents, batch-process directories with change detection, search local files by content, and index the tools exposed by configured MCP servers.

## How it works

Lore runs locally over MCP using stdio, or can expose an HTTP service with a configurable host and port. SQLite is available without separate database setup; the project also supports PostgreSQL and Supabase according to the project description.

`kb_search` supports full-text, semantic, and hybrid modes. Hybrid retrieval combines lexical and vector results through Reciprocal Rank Fusion. SQLite uses FTS5 for the lexical side, while PostgreSQL uses a GIN full-text index and pgvector for semantic retrieval. Semantic search is optional and uses local sentence-transformer embeddings rather than an external embedding API.

The server does not summarize search results itself. A calling agent or application remains responsible for interpreting and summarizing retrieved records.

## Setup and configuration

Install the package with `pip install lore-knowledge-mcp`. Start `lore-mcp` for stdio use, or provide `--host` and `--port` for HTTP mode. `LORE_API_KEY` enables bearer-token authentication for HTTP and SSE requests; without it, HTTP authentication is disabled. Stdio is not affected by this setting.

Install the optional semantic extra with `pip install lore-knowledge-mcp[semantic]`, then set `LORE_SEMANTIC_SEARCH=true`. `LORE_SEARCH_MODE_DEFAULT` controls the default search mode, while `LORE_EMBEDDING_MODEL` selects the embedding model and `LORE_RRF_K` tunes result fusion. Existing records can be processed with `kb_backfill_embeddings`, and `kb_embedding_status` reports embedding coverage.

## Tools and capabilities

The davidgut1982/lore-mcp MCP server provides tools to:

- Create, retrieve, list, update, delete, and batch-fetch knowledge entries.
- Search the knowledge base with topic filters and selectable retrieval modes.
- Record and inspect investigations, experiments, notes, and conclusions.
- Append, list, retrieve, and delete journal entries.
- Snapshot configuration objects into the journal.
- Ingest individual Markdown files or directories and inspect synchronization status.
- Search across knowledge, investigations, journals, and transcripts with `multi_search`.
- Search local file contents.
- Scan, search, inspect, and rebuild an index of configured MCP servers and their tools.

Deletion operations require explicit confirmation. Embedding backfill is idempotent, so it can be run again without changing already processed entries.

## Limitations and notes

Semantic search is disabled by default and requires the optional dependency and configuration. The default embedding model is English-optimized; multilingual content requires selecting a multilingual model. Search mode can degrade when the requested capability is unavailable, and responses report both the requested and executed modes.

HTTP authentication is opt-in. Exposing the service beyond localhost without setting `LORE_API_KEY` leaves it unauthenticated and produces a startup warning. Health endpoints remain accessible when authentication is enabled. Destructive investigation, journal, and knowledge-base operations include confirmation or production-safety guards.

The davidgut1982/lore-mcp MCP server is designed as a storage and retrieval layer; it does not provide built-in LLM summarization.

_Full upstream README: https://allmcps.com/mcp/davidgut1982-lore-mcp/readme_

