Mnemon MCP logo

Mnemon MCP

Local-first persistent agent memory using layered SQLite storage, FTS5 search, versioned facts, sessions, resources, and optional vector retrieval.

Install Mnemon MCP

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

Setup steps from the project

mnemon-mcp 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
    
  2. 2. Configure
    cp config.example.json ~/.mnemon-mcp/config.json   # edit this first
    
  3. 3. Start the server
    MNEMON_AUTH_TOKEN=your-secret MNEMON_HOST=0.0.0.0 MNEMON_PORT=3000 npm run start:http
    

Overview

The mnemon-mcp MCP server gives compatible AI clients persistent, local memory in a single SQLite database. It organizes entries into episodic, semantic, procedural, and resource layers, with tools for storing, searching, updating, deleting, inspecting, exporting, and managing sessions. FTS5 search works without embeddings; optional embeddings enable hybrid or vector retrieval through sqlite-vec. Reach for it when an agent needs memory across sessions without sending data to a cloud service.

Use cases

  • Store project facts and preferences between agent sessions
  • Search layered memories by topic, entity, date, or confidence
  • Track changing facts through superseding version chains
  • Export selected memories to JSON, Markdown, or Claude-md
  • Inspect session history and run memory diagnostics

Key features

  • Four-layer local memory model
  • SQLite with FTS5 full-text search
  • Versioned facts with supersede chains
  • Optional hybrid and vector retrieval
  • Session tracking and memory export
  • MCP resources and workflow prompts

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.

12/12 checks healthy over the last 50d

Adoption & maintenance

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

GitHub stars4Stargazers on the source repository.
Last commit4mo agoMost recent push to the default branch.

How Mnemon MCP works

What mnemon-mcp MCP server does

The mnemon-mcp MCP server adds durable memory to MCP-compatible agents through one SQLite file stored on the local machine. It separates information by intended lifetime and access pattern:

  • Episodic entries cover events, sessions, and journal records.
  • Semantic entries hold facts, preferences, and relationships.
  • Procedural entries represent rules, workflows, and conventions.
  • Resource entries contain reference material and notes.

Memories can include an entity, confidence, importance, scope, and optional time-to-live. Fact changes are represented as superseding versions rather than silently overwriting history. Searches return the active version, while inspection can expose the earlier chain.

How it works

Writes use SQLite transactions and maintain the relationships between superseded records. FTS5 provides the default local search path, with BM25 ranking, English and Russian stemming, stop-word filtering, and exact-match support. Search can filter by layer, entity, scope, date, and confidence.

When embeddings are configured, the mnemon-mcp MCP server can combine lexical and vector results with Reciprocal Rank Fusion. Pure vector search is also available. The vector index is optional, so a basic installation does not require an embedding service. Layer-specific decay, importance, and recency affect result scoring.

The server also exposes four MCP resources for statistics, recent entries, layer contents, and entity contents. Three prompts support recalling information about a subject, loading task context, and creating a structured journal entry.

Setup and configuration

Install the package globally with npm, or build it from the repository with Node.js 20 or newer. Register the resulting mnemon-mcp command in the MCP client's configuration. A source-based setup can instead invoke node with the compiled dist/index.js path.

On first execution, the server creates ~/.mnemon-mcp/memory.db. It communicates over standard input and output, so the configuration only needs the command for a package installation. The repository documents configurations for Claude Code, Cursor, Windsurf, OpenClaw, and other MCP clients. No API key or cloud account is required for the local SQLite and FTS5 setup.

Tools and capabilities

The ten tools are:

  • memory_add stores a layered memory with metadata.
  • memory_search performs filtered full-text, exact, hybrid, or vector searches.
  • memory_update edits a record or creates a superseding version.
  • memory_delete removes a memory and can reactivate its predecessor.
  • memory_inspect reports layer statistics or version history.
  • memory_export writes filtered data as JSON, Markdown, or Claude-md format.
  • memory_health checks expiration, stale records, and orphaned chains, with optional garbage collection.
  • memory_session_start, memory_session_end, and memory_session_list group and inspect agent sessions.

Limitations and notes

The database is local to the machine running the server; synchronization between machines is not described. Vector retrieval is optional and requires configured embeddings, while FTS5 is the default when embeddings are absent. The documented evaluation uses a 797-memory bilingual corpus, so its reported retrieval results should not be treated as a guarantee for every dataset. The project is released under the MIT license.

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 Mnemon MCP

mnemon-mcp is an MCP server that connects AI clients to a local SQLite memory database. Its main tools add, search, update, delete, inspect, export, and diagnose memories, while session tools track agent work. It supports layered storage, versioned facts, FTS5 retrieval, and optional vector or hybrid search without requiring cloud services.

Install it globally with `npm install -g mnemon-mcp`, then register the `mnemon-mcp` command in your MCP client. You can also clone the repository, run `npm install` and `npm run build`, and configure the compiled `dist/index.js` entry point.

Yes, mnemon-mcp works with Cursor through its MCP configuration. Add an `mcpServers` entry that runs the `mnemon-mcp` command, or invoke the compiled Node.js entry point when running from source.

mnemon-mcp stores data in `~/.mnemon-mcp/memory.db` by default. The SQLite file is created automatically on the first run and contains the memories, FTS5 index, and optional vector index.

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