# udjin-labs/mnemostack [Health: Active]

**Category:** 🧠 Knowledge & Memory  
**Repository:** https://github.com/udjin-labs/mnemostack  
**GitHub Stars:** 10  
**Views:** 5  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/udjin-labs-mnemostack

## Description
Durable hybrid memory for AI agents. Combines vector search, BM25, temporal retrieval, and optional Memgraph knowledge graph via reciprocal rank fusion. 6 MCP tools: health, search, answer, feedback, graphquery, graphaddtriple. Self-hosted with Qdrant backend. 82.5% strict accuracy on LoCoMo benchmark. pip install 'mnemostack[mcp]'

## 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/udjin-labs/mnemostack), copied verbatim. Follow them in order; they are not an mcpServers config.

1. Start the server:

```sh
GEMINI_API_KEY=your-key docker compose -f examples/docker-compose.yml up -d --build
```

2. Install:

```sh
pip install 'mnemostack[mcp]'          # MCP server
```

## Documentation

## 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:

```bash
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.

_Full upstream README: https://allmcps.com/mcp/udjin-labs-mnemostack/readme_

