Mnemostack logo

Mnemostack

by udjin-labs

Self-hosted MCP memory with hybrid retrieval, durable context, feedback, and optional Memgraph graph queries.

Install Mnemostack

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

Setup steps from the project

udjin-labs/mnemostack 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. Start the server
    GEMINI_API_KEY=your-key docker compose -f examples/docker-compose.yml up -d --build
    
  2. 2. Install
    pip install 'mnemostack[mcp]'          # MCP server
    

Overview

udjin-labs/mnemostack MCP server exposes durable agent memory backed by Qdrant, combining vector, BM25, temporal, and optional Memgraph graph retrieval. Its six MCP tools cover health checks, searching, answer generation, feedback, and graph triple operations. Install the MCP extra with pip and connect it to an existing MCP client after configuring the self-hosted memory backend. Reach for it when agents need context across sessions, evidence-based retrieval, or isolated memory for multiple consumers.

Use cases

  • Retain agent context across restarts
  • Search personal archives with hybrid retrieval
  • Ground answers in ingested documents
  • Serve isolated memory to multiple consumers

Key features

  • Vector, BM25, temporal, and optional graph retrieval
  • Reciprocal Rank Fusion for combining ranked results
  • Six MCP tools for health, retrieval, answers, feedback, and graph operations
  • Qdrant-backed self-hosted memory
  • Optional Memgraph knowledge graph
  • Tenant isolation and service-key authentication

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.

25/26 checks healthy over the last 112d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 9d ago via OSV.dev

Adoption & maintenance

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

GitHub stars10Stargazers on the source repository.
Last commit2d agoMost recent push to the default branch.
Directory activity5 viewsConfig copies, upvotes, and views on AllMCPs.

How Mnemostack works

What udjin-labs/mnemostack MCP server does

udjin-labs/mnemostack provides an MCP interface to a self-hosted memory and retrieval system. Applications can ingest notes, messages, documents, or application events into a durable corpus, then expose selected context to an agent when it is needed. The MCP layer uses the same underlying components as the Python SDK, CLI, and HTTP API.

The primary storage backend is Qdrant, which holds vectors and payloads. An optional Memgraph backend adds graph-based relationships and temporal retrieval. Separate ranking state can retain feedback without mixing it into the source corpus. This separation supports fact correction, validity intervals, source metadata, and historical reads.

How it works

Configured retrievers gather candidates using vector similarity, lexical matching, temporal signals, and, when enabled, graph relationships. Reciprocal Rank Fusion combines the ranked lists. Additional configured stages can apply exact-token matching, freshness, feedback, graph resurrection, or LLM reranking before results are limited by count and, optionally, a text-token budget.

The MCP serving path uses the shared retrieval flow rather than requiring the agent to assemble each retrieval stage. It can return evidence for an agent to use directly, or produce an answer through the answer operation. Retrieval traces and feedback mechanisms support inspection and later tuning.

MCP does not automatically capture an agent's conversations or decide when to query memory. The surrounding integration or application remains responsible for ingestion and for invoking the tools at the appropriate points.

Setup and configuration

Install the MCP-related package extras with:

Terminal
pip install 'mnemostack[mcp]'

Run Qdrant as the vector and payload store, configure the collection and embedding setup, and use the local quickstart to index sample context and perform a retrieval. Memgraph is optional; use it when graph relationships or graph queries are part of the deployment.

The package can also run inside an application or behind a service. For shared deployments, assign a separate tenant to each consumer and use service-key authentication to enforce ownership. The same backend can serve multiple authorized agents without implying that their context is shared.

Tools and capabilities

The MCP interface exposes six tools:

  • health checks service health.
  • search retrieves relevant stored evidence.
  • answer generates an answer from retrieved memory.
  • feedback records feedback for the retrieval system.
  • graphquery queries the optional knowledge graph.
  • graphaddtriple adds a triple to the graph.

These tools cover retrieval and operation, while ingestion remains a separate application or interface concern. The broader project also offers Python, CLI, and HTTP interfaces over the same memory components.

Limitations and notes

Memory is limited to content explicitly ingested into the corpus. Storing a fact does not ensure that it ranks first, and marking a fact stale does not automatically delete it. Choose removal and correction policies explicitly.

The project is actively developed, with stable and experimental components separated by its API stability guidance. Qdrant 1.20 or newer is required for the documented newer configuration path, including server-side BM25. Access from separate machines requires a protected connection to the memory backend.

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 Mnemostack

udjin-labs/mnemostack is an MCP server that connects agents to self-hosted Qdrant-backed memory with optional Memgraph graph storage. Its main tools provide health checks, hybrid search, answer generation, retrieval feedback, graph queries, and graph triple creation for durable context across sessions.

Install it with `pip install 'mnemostack[mcp]'`. Then configure the Qdrant-backed memory deployment, optionally enable Memgraph, and connect an MCP client through the project's MCP interface.

It supports vector, BM25 or lexical, temporal, and optional graph retrieval. Reciprocal Rank Fusion combines the candidate lists, with configurable ranking, reranking, feedback, freshness, and token-budget stages.

No. The surrounding application or integration must decide what to ingest and when to query memory. The server retrieves and operates on content that has been explicitly added to its corpus.

Yes. Shared deployments can assign a separate tenant to each consumer and use service-key authentication to enforce ownership. Running on shared infrastructure does not by itself share context between tenants.

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