# Lore [Health: Active]

**Category:** 🧠 Knowledge & Memory  
**Repository:** https://github.com/agentkitai/lore  
**GitHub Stars:** 10  
**Views:** 1  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/lore

## Description
Cross-agent memory over MCP: hybrid recall, knowledge graph, private/shared visibility, redaction.

## Tools
Capabilities this server exposes over MCP:

- **remember** — Store a memory with type, tier, tags, metadata
- **recall** — Semantic search with temporal/graph-enhanced retrieval
- **forget** — Delete a memory by ID
- **list_memories** — List memories with filtering
- **stats** — Memory statistics (total, by type/tier)
- **upvote_memory** — Boost memory ranking
- **downvote_memory** — Lower memory ranking
- **graph_query** — Hop-by-hop knowledge graph traversal
- **entity_map** — List entities (optional D3 format)
- **related** — Find related memories/entities
- **extract_facts** — Extract (subject, predicate, object) triples
- **list_facts** — List active facts
- **conflicts** — List detected fact conflicts
- **classify** — Intent, domain, emotion classification
- **enrich** — LLM-powered metadata extraction
- **consolidate** — Merge duplicate/related memories
- **ingest** — Accept content from external sources
- **github_sync** — Sync GitHub repo data
- **check_freshness** — Verify memory freshness against git
- **as_prompt** — Export memories formatted for LLM injection
- **add_conversation** — Extract memories from conversation messages
- **recent_activity** — Recent memory activity summary
- **topics** — List auto-detected recurring topics
- **topic_detail** — Deep dive on a topic (memories, entities, timeline)
- **export** — Export all data to JSON
- **snapshot** — Create data backup
- **snapshot_list** — List available snapshots
- **save_snapshot** — Save session snapshot
- **review_digest** — Get pending connections for review
- **review_connection** — Approve/reject a pending connection
- **on_this_day** — Memories from same date across years
- **suggest** — Proactive memory recommendations based on session context
- **remember_observation** — Record a structured observation from a session
- **search** — Progressive-disclosure compact index (id, title, score)
- **get_memories** — Fetch full payloads for one or more memory IDs
- **timeline** — Chronologically adjacent events around an anchor memory
- **promote_memory** — Share a private memory with the team (private→shared)
- **demote_memory** — Unshare a memory, making it private again
- **supersede** — Mark a memory as superseded by a newer one
- **list_at_time** — List memories that were canonical at a given time
- **consolidate_memories** — Create a merged memory and supersede all sources
- **provenance** — Full lineage for a memory (sources + supersession chain)
- **supersession_chain** — Supersession audit chain for a memory
- **facts_at_time** — Facts about an entity that were valid at a given time
- **supersede_fact** — Supersede a fact with a newer one (never deletes)
- **fact_supersession_chain** — Correction trail for a fact

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

```json
"mcpServers": {
  "lore": {
    "command": "uvx",
    "args": ["lore-sdk"],
    "env": {
      "LORE_API_URL": "",
      "LORE_API_KEY": ""
    }
  }
}
```

**Requires environment variables:** `LORE_API_URL`, `LORE_API_KEY` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## What Lore MCP server does

The Lore MCP server provides a persistent memory layer for AI agents. Agents can save information with a type, tier, tags, and metadata, then search it later using semantic recall. Memory records can be filtered, ranked with votes, deleted by ID, or summarized through statistics. Visibility can be private or shared, making the system suitable for information that should be scoped across agents or users.

The Lore MCP server also represents extracted knowledge as entities, relationships, and atomic facts. This supports graph traversal, related-memory lookup, conflict review, and topic exploration in addition to ordinary vector-style search. Conversation content and externally sourced material can be ingested for later retrieval.

## How it works

Lore accepts MCP tool calls and stores the resulting memory and knowledge data in its backing service. Recall combines semantic search with temporal and graph-enhanced retrieval. The graph tools can follow relationships hop by hop, list entities, find connected memories, and inspect extracted subject-predicate-object facts.

Several tools support maintenance and agent context preparation. Classification identifies intent, domain, and emotion; enrichment adds LLM-derived metadata; consolidation merges duplicate or related memories; and `as_prompt` formats selected memories for injection into an LLM prompt. GitHub synchronization and freshness checks help compare stored knowledge with repository state. Conversation ingestion can extract memories from message history.

## Setup and configuration

The recommended deployment uses Docker Compose, which starts Postgres with pgvector and the Lore service on port 8765. A Python installation can instead install `lore-sdk[server,solo]` and start the service with `lore serve`. The MCP package can be launched with `uvx --from lore-sdk[mcp] lore-memory`, or with the installed `lore-memory` or `lore mcp` command.

MCP client configuration can point to the local command and pass `LORE_API_URL` and `LORE_API_KEY` when the service requires an API endpoint and key. It also lists Claude Desktop, VS Code, and Codex among clients that can use the MCP configuration.

## Tools and capabilities

The exposed tools cover:

- Memory lifecycle: `remember`, `recall`, `forget`, `list_memories`, `stats`, `upvote_memory`, and `downvote_memory`.
- Knowledge graphs and facts: `graph_query`, `entity_map`, `related`, `extract_facts`, `list_facts`, and `conflicts`.
- Processing and ingestion: `classify`, `enrich`, `consolidate`, `ingest`, `add_conversation`, and `as_prompt`.
- Repository and activity context: `github_sync`, `check_freshness`, `recent_activity`, `topics`, and `topic_detail`.
- Backup and review: `export`, `snapshot`, `snapshot_list`, `save_snapshot`, `review_digest`, and `review_connection`.

## Limitations and notes

The Lore MCP server depends on a running Lore service and, for the documented deployment, Postgres with pgvector.

Automatic prompt injection is described for hooks installed through the client-specific setup commands. Without those hooks, agents can still call the MCP tools directly, but the material does not establish that memories will be added to every prompt automatically in every client.

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

