# mcp-engram-memory [Health: Active]

**Category:** 🧠 Knowledge & Memory  
**Repository:** https://github.com/wyckit/mcp-engram-memory  
**GitHub Stars:** 7  
**Views:** 1  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/mcp-engram-memory

## Description
Brain-like persistent memory for AI agents. Hybrid search, knowledge graph, sleep-consolidation lifecycle, expert routing (HMoE), and a graph-Laplacian diffusion subsystem driving decay, consolidation, auto-link, and spectral retrieval. 63 MCP tools. Local, no cloud.

## 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/wyckit/mcp-engram-memory), copied verbatim. Follow them in order; they are not an mcpServers config.

1. Install:

```sh
irm https://raw.githubusercontent.com/wyckit/mcp-engram-memory/main/setup.ps1 | iex
```

2. Install:

```sh
curl -fsSL https://raw.githubusercontent.com/wyckit/mcp-engram-memory/main/setup.sh | bash
```

3. Install:

```sh
git clone https://github.com/wyckit/mcp-engram-memory.git
```

4. Run:

```sh
cd mcp-engram-memory
```

5. Install:

```sh
dotnet publish src/McpEngramMemory/McpEngramMemory.csproj -c Release -f net8.0 -p:TargetFrameworks=net8.0 -o .engram/server
```

6. Install:

```sh
docker build -t mcp-engram-memory .
```

## Documentation

## What mcp-engram-memory does

mcp-engram-memory provides persistent memory for AI agents through MCP. It stores text locally, creates embeddings with an ONNX model, indexes content for keyword and vector retrieval, and represents relationships between memories in a graph. The system is designed for local-first use and does not require an external API for its core embedding and storage workflow.

Memory is organized across namespaces and tenants. Tenant partitioning applies to storage, graph data, clusters, lifecycle processing, diffusion, synthesis, and visualization. Cross-namespace associations can remain available within the same tenant, while graph edges do not cross tenant boundaries.

## How it works

The `remember` operation embeds new text, checks for near-duplicates, and attempts to connect the memory to related graph nodes. `recall` combines BM25 keyword search with vector similarity and fuses the results using reciprocal rank fusion. It can expand synonyms, apply diversity handling, and use the graph's spectral structure to rerank results. When no namespace is supplied, recall can route the query across expert namespaces.

Background workers apply graph-based lifecycle rules. Weakly connected memories lose strength and the weakest can be archived; well-connected short-term memories can be promoted to long-term memory during consolidation. Auto-linking increases graph density over time. The system also exposes contradiction checks for conflicting goals or architecture decisions.

## Setup and configuration

The server targets .NET 8, .NET 9, and .NET 10. Its standard deployment uses local storage and local ONNX embeddings, with the bundled embedding model producing 384-dimensional vectors. The MCP executable suppresses ONNX telemetry before native runtime initialization on Windows, Linux, and macOS.

The project ships three packages together and offers MCP profiles containing 17, 39, or 63 tools. Upgrades from older installations require care: existing 2.0 installations should be stopped and their data migrated before package replacement. The server uses a durable user data directory, while explicitly configured data paths remain supported. Optional remote storage, synthesis, and live benchmark services can make network requests when enabled.

## Tools and capabilities

Named capabilities include:

- `remember` for embedding, storing, deduplicating, and linking memories
- `recall` for routed or direct hybrid retrieval
- `search_memory` and `cross_search` for memory search with optional diversity reranking
- `find_contradictions` for locating conflicting knowledge or decisions
- `get_graph_snapshot` for exporting data to the included graph viewer
- A 63-tool MCP profile covering the server's memory, graph, lifecycle, routing, and related operations

The D3.js viewer accepts a graph snapshot and displays typed edges, lifecycle states, clusters, search matches, density, and connected-only views. Snapshots are generated through `get_graph_snapshot` and opened separately in the viewer.

## Limitations and notes

The core workflow is local, but optional remote features can introduce network access when configured. Memory evolution is governed by background decay and consolidation, so transient content may be archived while strongly connected knowledge is retained. Retrieval can surface unresolved contradictions rather than silently choosing one. Embedding hosts that use the Core library must establish their own process-level telemetry policy.

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

