# mnemon-mcp [Health: Active]

**Category:** 🧠 Knowledge & Memory  
**Repository:** https://github.com/nikitacometa/mnemon-mcp  
**GitHub Stars:** 4  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/mnemon-mcp

## Description
Persistent layered memory for AI agents. SQLite FTS5, fact versioning, zero-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/nikitacometa/mnemon-mcp), copied verbatim. Follow them in order; they are not an mcpServers config.

1. Install:

```sh
npm install
```

2. Configure:

```sh
cp config.example.json ~/.mnemon-mcp/config.json   # edit this first
```

3. Start the server:

```sh
MNEMON_AUTH_TOKEN=your-secret MNEMON_HOST=0.0.0.0 MNEMON_PORT=3000 npm run start:http
```

## Documentation

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

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

