YourMemory logo

YourMemory

by sachitrafa

Local MCP memory with decay, hybrid retrieval, entity links, consolidation, and optional shared Postgres storage.

Install YourMemory

Pick your client, then add it in one click or paste the config.

STDIOPython
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "sachitrafa-yourmemory": {
      "command": "uvx",
      "args": [
        "yourmemory"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Claude Code command
claude mcp add --transport stdio sachitrafa-yourmemory -- uvx yourmemory

Run in your terminal. Add --scope project to share it with your team through .mcp.json.

We couldn’t confirm it starts correctly

We ran the install command but it didn't respond within our test window — this can mean a slow first-time install rather than a real problem.

uvx yourmemory

No response to initialize.

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

sachitrafa/YourMemory MCP server gives AI agents persistent local memory with Ebbinghaus-based decay, hybrid BM25 and vector retrieval, and entity-graph links. It stores memories in DuckDB by default, with Postgres and pgvector available for shared deployments, and can consolidate related facts while pruning stale ones. Use it when agents need continuity across sessions, multi-hop recall, or local queries without an additional LLM call.

Use cases

  • Persist user preferences across agent sessions
  • Retrieve related facts with hybrid search
  • Recover working context after compaction
  • Share institutional memory across team agents
  • Query local memories without an LLM call

Key features

  • Ebbinghaus forgetting-curve decay
  • BM25 and vector hybrid retrieval
  • Entity graph for multi-hop recall
  • Automatic memory consolidation
  • Local DuckDB storage
  • Optional Postgres and pgvector backend

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

37/38 checks healthy over the last 117d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 15d ago via OSV.dev · yourmemory (PyPI)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars276Stargazers on the source repository.
Last commit6d agoMost recent push to the default branch.
Install checkInconclusiveDidn't respond in our test window — often a slow first install.
Directory activity3 viewsConfig copies, upvotes, and views on AllMCPs.

How YourMemory works

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.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about YourMemory

sachitrafa/YourMemory is an MCP server that connects AI agents to persistent local memory, using DuckDB by default and optional Postgres with pgvector. Its main capabilities include storing, recalling, consolidating, and pruning memories, with hybrid BM25/vector retrieval, entity-graph links, context recovery, and local `ask` queries without an LLM call.

Install it with `pip install yourmemory`, then run `yourmemory-register <your-token>` and `yourmemory-setup`. The token comes from the YourMemory website after email verification. Setup can configure Claude Code, Claude Desktop, Cursor, Windsurf, and Cline.

Yes, sachitrafa/YourMemory works with Cursor. The `yourmemory-setup` command can detect and wire up Cursor along with Claude Code, Claude Desktop, Windsurf, and Cline.

Yes, it runs with local DuckDB by default and stores memory under `~/.yourmemory/`. Postgres with the pgvector extension is an optional backend for shared or production deployments.

Yes, the `yourmemory ask` command provides local memory queries without an LLM call.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewYourMemory AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/sachitrafa-yourmemory?style=directory)](https://allmcps.com/mcp/sachitrafa-yourmemory)
HTML Embed
<a href="https://allmcps.com/mcp/sachitrafa-yourmemory"><img src="https://allmcps.com/api/badge/sachitrafa-yourmemory?style=directory" alt="YourMemory on AllMCPs" /></a>