# Memory Vault [Health: Active]

**Category:** 🧠 Knowledge & Memory  
**Repository:** https://github.com/MihaiBuilds/memory-vault  
**GitHub Stars:** 68  
**Views:** 8  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/memory-vault

## Description
Local-first AI memory layer with hybrid search. Postgres + pgvector. Self-hosted, MIT.

## Tools
Capabilities this server exposes over MCP:

- **recall** — Search memories with hybrid search (vector + full-text + RRF)
- **remember** — Store a new memory — auto-classified and embedded
- **forget** — Soft-delete a memory by chunk ID
- **purge_forgotten** — Permanently delete memories forgotten more than N days ago
- **move_memory** — Move a memory to another space, rebuilding its graph entries
- **memory_status** — Database health, chunk counts, embedding model info

## Claude Desktop Quick Installation
No generated config for this server: it installs through its own setup steps.

The project's own setup steps (from https://github.com/MihaiBuilds/memory-vault), copied verbatim. Follow them in order; they are not an mcpServers config.

1. Install:

```sh
git clone https://github.com/MihaiBuilds/memory-vault.git
```

2. Run:

```sh
cd memory-vault
```

3. Start the server:

```sh
docker compose up -d
```

4. Configure:

```sh
uv run memory-vault migrate
```

5. Install:

```sh
pip install -e .
```

6. Configure:

```sh
memory-vault migrate
```

## Documentation

## What Memory Vault does

Memory Vault stores persistent information such as decisions, conversations, notes, and project context in PostgreSQL with pgvector. It exposes that memory over MCP for Claude Desktop and Claude Code, and also provides REST, CLI, dashboard, and local LLM access as part of the broader application.

The central retrieval feature is hybrid search. Vector similarity helps match meaning, while full-text search finds keyword matches; reciprocal rank fusion combines the results. Memories can be organized into separate spaces for different projects or domains.

A knowledge graph is built into the memory pipeline. Entity extraction and relationship handling connect information over time, and moving a memory to another space rebuilds its graph entries.

## How it works

New memories are automatically classified and embedded using the bundled sentence-transformers model, `all-MiniLM-L6-v2`. Entity extraction uses spaCy with `en_core_web_sm`. Both are described as CPU-capable components, and the default embedding size is 384 dimensions.

PostgreSQL holds the relational data, vector embeddings, and full-text indexes in one database. The MCP process communicates with that database through the configured connection settings. Data can be retained in a Docker volume when deployed with Docker Compose.

The system also includes a FastAPI REST API with bearer authentication, rate limiting, and OpenAPI documentation. A web dashboard supports chat, search, browsing, graph views, ingestion, and statistics; local LLM chat can use LM Studio and display the memories used as sources.

## Setup and configuration

The fastest deployment path is:

```bash
git clone https://github.com/MihaiBuilds/memory-vault.git
cd memory-vault
docker compose up -d
```

The container setup starts PostgreSQL, pgvector, and Memory Vault, and applies migrations on first startup. The dashboard is available at `http://localhost:8000`. The CLI can check the installation with `memory-vault status`, ingest a file with `memory-vault ingest`, and search with `memory-vault search`.

A non-Docker installation requires Python 3.11 or newer, PostgreSQL 16 with the pgvector extension, and either `uv` or `pip` with a virtual environment. Install the project dependencies, download `en_core_web_sm`, copy `.env.example` to `.env`, configure PostgreSQL, and run `memory-vault migrate`.

Claude Code uses an `.mcp.json` entry that starts Python with `-m memory_vault.mcp`. The example configuration supplies `DB_HOST`, `DB_PORT`, `DB_NAME`, `DB_USER`, and `DB_PASSWORD` to the MCP process. Claude Desktop and Claude Code are the documented MCP clients.

## Tools and capabilities

The MCP interface provides six tools:

- `recall` searches memories using vector search, full-text search, and reciprocal rank fusion.
- `remember` stores a memory, then classifies and embeds it automatically.
- `forget` soft-deletes a memory using its chunk ID.
- `purge_forgotten` permanently removes memories that have been forgotten for longer than a specified number of days.
- `move_memory` transfers a memory to another space and rebuilds its graph entries.
- `memory_status` reports database health, chunk counts, and embedding-model details.

Two MCP resources are also available: `memory://spaces` lists memory spaces with chunk counts, and `memory://stats` exposes current system statistics.

## Limitations and notes

The default stack is CPU-oriented and does not require a GPU. PostgreSQL 16 and pgvector remain required for a no-Docker installation. The bundled language and embedding components are configured for local processing, while the separate local chat workflow uses LM Studio. Windows users are directed to run the project from WSL2 rather than a Windows path.

Memory Vault is licensed under MIT. Its MCP transport uses FastMCP with stdio, and the documented MCP setup targets Claude Desktop and Claude Code.

_Full upstream README: https://allmcps.com/mcp/memory-vault/readme_

