MCP Engram Memory logo

MCP Engram Memory

Local MCP memory with hybrid retrieval, graph links, contradiction checks, and automatic decay and consolidation.

Install MCP Engram Memory

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

Setup steps from the project

mcp-engram-memory 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
    irm https://raw.githubusercontent.com/wyckit/mcp-engram-memory/main/setup.ps1 | iex
    
  2. 2. Install
    curl -fsSL https://raw.githubusercontent.com/wyckit/mcp-engram-memory/main/setup.sh | bash
    
  3. 3. Install
    git clone https://github.com/wyckit/mcp-engram-memory.git
    
  4. 4. Run
    cd mcp-engram-memory
    
  5. 5. Install
    dotnet publish src/McpEngramMemory/McpEngramMemory.csproj -c Release -f net8.0 -p:TargetFrameworks=net8.0 -o .engram/server
    
  6. 6. Install
    docker build -t mcp-engram-memory .
    

Overview

mcp-engram-memory gives AI assistants a local, persistent memory layer backed by hybrid search and a knowledge graph. It embeds stored text with a local ONNX model, combines keyword and vector retrieval, and can route searches across namespaces. Background processes decay weakly connected memories, consolidate short-term knowledge into long-term memory, and create graph links. Reach for it when an agent needs durable, locally stored context with provenance, lifecycle management, and contradiction detection.

Use cases

  • Store durable project and architecture knowledge for an agent
  • Search memories with combined keyword and semantic retrieval
  • Detect contradictions between goals or technical decisions
  • Route queries across namespaces without knowing where knowledge is stored
  • Inspect memory relationships and lifecycle states in a graph viewer

Key features

  • Local ONNX embeddings and storage
  • Hybrid BM25 and vector retrieval
  • Knowledge graph auto-linking
  • Graph-based decay and sleep consolidation
  • Namespace and tenant partitioning
  • Contradiction detection and graph snapshots

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.

Adoption & maintenance

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

GitHub stars7Stargazers on the source repository.
Last commit10d agoMost recent push to the default branch.
Directory activity1 viewsConfig copies, upvotes, and views on AllMCPs.

How MCP Engram Memory works

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.

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 MCP Engram Memory

mcp-engram-memory is an MCP server that connects AI assistants to a local persistent memory store with ONNX embeddings and a knowledge graph. Its main tools include remember, recall, search_memory, cross_search, find_contradictions, and get_graph_snapshot for storing, retrieving, analyzing, and visualizing agent knowledge.

It combines BM25 keyword matching with vector similarity, fuses the results, and can rerank them using graph structure. Recall also supports synonym expansion, optional diversity reranking, and automatic routing across namespaces when the namespace is omitted.

Background lifecycle services apply graph-based decay and consolidation. Weakly connected memories can fade and be archived, while well-connected short-term memories can be promoted to long-term memory during a consolidation cycle.

Yes. The find_contradictions tool surfaces conflicting goals or architecture decisions so they can be reviewed, retired, or resolved instead of remaining implicit in later retrieval.

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