Memory Vault logo

Memory Vault

Self-hosted Postgres and pgvector memory with hybrid search, knowledge graphs, REST access, and six MCP tools.

Install Memory Vault

Run the project’s own setup commands, in order.

Setup steps from the project

Memory Vault installs with its own steps rather than a config we can generate, so these are copied as-is. Follow them in order and run the commands in a terminal. Source: github.com

  1. 1. Install
    git clone https://github.com/MihaiBuilds/memory-vault.git
    
  2. 2. Run
    cd memory-vault
    
  3. 3. Start the server
    docker compose up -d
    
  4. 4. Configure
    uv run memory-vault migrate
    
  5. 5. Install
    pip install -e .
    
  6. 6. Configure
    memory-vault migrate
    

Overview

Memory Vault MCP server gives AI applications a local-first memory layer backed by PostgreSQL 16 and pgvector. It stores, embeds, classifies, searches, soft-deletes, moves, and purges memories through six MCP tools, with hybrid retrieval combining vector similarity and full-text search. Use it when an agent needs persistent project context across conversations or when memory data must remain self-hosted. Docker provides the quickest deployment, while a Python-based installation is also available.

Use cases

  • Recall project decisions across AI conversations
  • Store notes and context in separate memory spaces
  • Search memories with semantic and keyword matching
  • Move memories between project namespaces
  • Inspect database health and embedding details

Key features

  • Hybrid vector and full-text search with RRF
  • Automatic memory classification and embedding
  • PostgreSQL 16 with pgvector storage
  • Knowledge graph entity and relationship extraction
  • Six MCP tools plus two MCP resources
  • Docker and no-Docker deployment options

Tools6

What Memory Vault lets your agent do. Expand a tool for its parameters.

Self-reported~93 tokens of context

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.

30/34 checks healthy over the last 112d

Adoption & maintenance

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

GitHub stars68Stargazers on the source repository.
Last commit8d agoMost recent push to the default branch.
Tools exposed6Callable tools this server registers over MCP.
Directory activity8 viewsConfig copies, upvotes, and views on AllMCPs.

How Memory Vault works

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.

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 Memory Vault

Memory Vault is an MCP server that connects AI clients to a self-hosted PostgreSQL and pgvector memory database. Its main tools recall, remember, forget, purge_forgotten, move_memory, and memory_status let agents search, store, remove, reorganize, and inspect persistent memories.

Install it with Docker Compose or a Python environment. Docker users clone the repository and run `docker compose up -d`; non-Docker users need Python 3.11+, PostgreSQL 16 with pgvector, project dependencies, the spaCy model, configured environment variables, and database migrations.

Memory Vault provides six tools: `recall`, `remember`, `forget`, `purge_forgotten`, `move_memory`, and `memory_status`. They cover hybrid search, storing embedded memories, soft deletion, permanent cleanup, moving memories between spaces, and database status reporting.

Yes, Memory Vault works with Claude Desktop through its documented MCP integration. The server uses FastMCP with stdio transport and connects to PostgreSQL through database environment variables.

Yes, Memory Vault works with Claude Code. Add a server entry to the project or global `.mcp.json`, start Python with `-m memory_vault.mcp`, and provide the PostgreSQL connection settings in the entry's environment block.

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 PreviewMemory Vault AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/memory-vault?style=directory)](https://allmcps.com/mcp/memory-vault)
HTML Embed
<a href="https://allmcps.com/mcp/memory-vault"><img src="https://allmcps.com/api/badge/memory-vault?style=directory" alt="Memory Vault on AllMCPs" /></a>