Engram logo

Engram

by HBarefoot

Offline MCP memory server using SQLite, local embeddings, hybrid search, secret detection, and six memory tools.

Install Engram

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

Setup steps from the project

HBarefoot/engram 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
    npm install -g @hbarefoot/engram
    
  2. 2. Start the server
    engram start
    
  3. 3. Start the server
    engram start             # MCP + REST + Dashboard on localhost:3838
    
  4. 4. Start the server
    engram start --mcp-only  # MCP server only, stdio mode (for agent integration)
    
  5. 5. Add to Claude Code
    claude mcp add engram -- engram start --mcp-only
    
  6. 6. Start the server
    engram start                       # Start MCP + REST + dashboard
    

Overview

HBarefoot/engram MCP server gives AI agents persistent local memory through six MCP tools over stdio. It stores data in SQLite, generates embeddings locally with all-MiniLM-L6-v2, and combines semantic search with FTS5 recall without cloud services or API keys. Reach for it when an agent needs offline memory, secret filtering, feedback-driven recall, and context formatted for prompt injection.

Use cases

  • Store project facts for later agent sessions
  • Recall relevant memories with semantic and text search
  • Filter memories by namespace, category, or time
  • Inject bounded context into system prompts
  • Block secrets before they enter persistent memory

Key features

  • SQLite-backed local persistence
  • Local all-MiniLM-L6-v2 embeddings
  • Hybrid semantic and FTS5 recall
  • Automatic secret detection on writes
  • Feedback and context formatting tools
  • stdio MCP integration

Tools6

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

Self-reported~135 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.

25/25 checks healthy over the last 113d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 8/20/2026 via OSV.dev

Adoption & maintenance

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

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

How Engram works

What HBarefoot/engram does

HBarefoot/engram provides a local memory layer for AI agents using the Model Context Protocol. It persists memories in SQLite and keeps the memory database on the local machine. The default design does not require a hosted database, cloud account, API key, or separate service to deploy.

The server is intended for agents that need to remember facts across interactions. Memories can include a category, entity, confidence value, namespace, and tags. Writes are checked for secrets, including API keys, private keys, connection strings, and JWTs, before the data is stored.

How it works

The package uses the all-MiniLM-L6-v2 embedding model locally and combines semantic similarity with SQLite FTS5 text search when recalling memories. The embedding model is fetched once and cached locally at ~/.engram/models. The default path is offline and makes no network calls after the required local assets are available.

Feedback can mark a memory helpful or unhelpful. That feedback supports the server's recall feedback loop. When an agent needs prompt-ready information rather than individual search results, the context tool produces a formatted block in Markdown, XML, JSON, or plain text and accepts a token budget.

Setup and configuration

Install the npm package globally and start the MCP process:

Terminal
npm install -g @hbarefoot/engram
engram start --mcp-only

The --mcp-only option starts the stdio MCP server for agent integrations. The package requires Node.js 20 or newer according to the repository metadata.

Claude Code can register the server with:

Terminal
claude mcp add engram -- engram start --mcp-only

Claude Desktop, Cursor, Windsurf, and Cline are listed as supported MCP clients.

Tools and capabilities

HBarefoot/engram exposes six MCP tools:

  • engram_remember stores a memory and applies automatic secret detection.
  • engram_recall searches with semantic embeddings and FTS5, with filters for category, namespace, threshold, and time.
  • engram_forget removes a memory by its ID.
  • engram_feedback records whether a memory was helpful or unhelpful.
  • engram_context returns prompt-ready context in Markdown, XML, JSON, or plain text within a token budget.
  • engram_status reports the memory count, embedding-model status, and configuration.

Limitations and notes

HBarefoot/engram is designed for local, single-machine use rather than a cloud-managed memory service. Its default operation depends on local SQLite storage and a bundled embedding model, so the model still occupies local disk space. Recall performance and cold-start measurements in the README are hardware-dependent and are not accuracy guarantees.

Optional local LLM extraction is described in the repository, but it is off by default and is not required for the six MCP tools.

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 Engram

HBarefoot/engram is an MCP server that connects AI agents to local SQLite storage and local all-MiniLM-L6-v2 embeddings. Its six tools remember, recall, forget, record feedback, format context, and report status. It runs over stdio, works offline, and does not require cloud services or API keys.

Install it with `npm install -g @hbarefoot/engram`, then run `engram start --mcp-only` for the stdio MCP server. Claude Code can register it with `claude mcp add engram -- engram start --mcp-only`.

Yes, HBarefoot/engram is listed as compatible with Cursor. Configure Cursor to launch the installed package in stdio mode with `engram start --mcp-only`.

No, the default setup requires neither an API key nor a cloud account. It stores memories in local SQLite and uses local embeddings, with no external services on the default path.

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