# sachitrafa/YourMemory [Health: Active]

**Category:** 🧠 Knowledge & Memory  
**Repository:** https://github.com/sachitrafa/YourMemory  
**GitHub Stars:** 276  
**Views:** 3  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/sachitrafa-yourmemory

## Description
Persistent memory for AI agents with Ebbinghaus forgetting-curve decay, hybrid BM25+vector retrieval, and entity graph for multi-hop reasoning. Memories auto-prune by importance and recall rate. Built-in browser dashboard, multi-agent support, and yourmemory ask for zero-API-call local queries. pip install yourmemory

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

```json
"mcpServers": {
  "yourmemory": {
    "command": "uvx",
    "args": ["yourmemory"]
  }
}
```

## Documentation

## What sachitrafa/YourMemory MCP server does

sachitrafa/YourMemory MCP server provides persistent memory for AI agents through MCP. It records durable facts, retrieves relevant memories, links information through shared entities, and preserves context across session resets. The default storage is a local DuckDB file under `~/.yourmemory/`, so a basic installation does not require a separate database service.

The system is designed for the 🧠 Knowledge & Memory category. It can combine semantic vector search with BM25 keyword matching, then use entity relationships to find connected facts that may not closely match the original query. Related memories can be consolidated into a shorter summary, while the source records are archived rather than removed.

## How it works

sachitrafa/YourMemory applies an Ebbinghaus forgetting curve to stored memories. Importance and recall frequency affect how long information remains prominent; stale and unused items can decay and be pruned. Frequently recalled or important memories are more likely to persist.

New information is processed into facts, deduplicated, embedded, and linked to entities such as people, places, and concepts. Retrieval combines vector similarity and BM25 results with graph relationships. This supports both direct lookups and multi-hop reasoning across related memories.

For local use, built-in heuristics support fact extraction without a separate model service. The `ask` command supports querying stored memory without an LLM call.

## Setup and configuration

Install the Python package with `pip install yourmemory`. The documented quick start uses `yourmemory-register <your-token>` followed by `yourmemory-setup`; the token is obtained from the YourMemory website after email verification. Python versions 3.11 through 3.14 are supported.

Setup can detect and configure Claude Code, Claude Desktop, Cursor, Windsurf, and Cline. DuckDB is the default backend and needs no database setup. Postgres is available for shared or production use, but requires a `DATABASE_URL` and the pgvector extension.

Standalone binaries are also published for macOS Apple Silicon, macOS Intel, Linux x86-64, and Windows x86-64. The binaries include Python, dependencies, the embedding model, and spaCy, but are approximately 2 GB.

## Tools and capabilities

sachitrafa/YourMemory MCP server supports persistent memory operations for MCP clients, including reading, writing, and deleting records. Its documented capabilities include:

- Hybrid BM25 and vector retrieval.
- Entity-graph traversal for related facts.
- Automatic consolidation of related memories.
- Importance- and recall-aware decay and pruning.
- Context recovery after context-window compaction.
- Hash-chained logging of memory reads, writes, and deletes.
- Shared team memory pools with private memories.
- Export and right-to-forget operations.
- Browser dashboard access.

Postgres enables a shared backend when team-wide storage is needed.

## Limitations and notes

The default DuckDB configuration is intended for local storage; shared or production deployments require Postgres with pgvector. Cloud extraction is optional, but using Anthropic as the extraction backend requires configuring that backend separately. Ollama’s optional model download is approximately 4.7 GB, while the fully bundled binary is approximately 2 GB.

The project is licensed under CC BY-NC 4.0. The repository also reports benchmark results for several datasets, but those figures describe the project’s own evaluations and should not be treated as a guarantee for every workload.

_Full upstream README: https://allmcps.com/mcp/sachitrafa-yourmemory/readme_

