# n24q02m/mnemo-mcp [Health: Active]

**Category:** 🧠 Knowledge & Memory  
**Repository:** https://github.com/n24q02m/mnemo-mcp  
**GitHub Stars:** 14  
**Views:** 9  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/n24q02m-mnemo-mcp

## Description
Persistent AI memory with SQLite hybrid search (FTS5 + semantic). Built-in Qwen3 embedding, rclone sync across machines. Zero config, no cloud, no limits.

## Tools
Capabilities this server exposes over MCP:

- **add_memory** — Store NEW information. Use for preferences, decisions, facts.

ACTION GUIDE — when to use:
- Use when saving new information for the first time.
  Example: content='User prefers dark mode', category='preference', tags=['ui']
- **search_memory** — Find existing memories by natural language query. Always search before adding.

ACTION GUIDE — when to use:
- Use BEFORE adding new information to avoid duplicates.
  Example: query='dark mode preference'
- **list_memories** — Browse all memories, optionally filtered by category.

ACTION GUIDE — when to use:
- Use when you want to view a broad set of memories, or see what's in a specific category.
  Example: category='preference', limit=10
- **update_memory** — Modify an EXISTING memory by ID. Get memory_id from search results.

ACTION GUIDE — when to use:
- Use when an existing fact or preference changes.
  Example: memory_id='abc123', content='User now prefers light mode'
- **delete_memory** — Remove a memory by ID.

ACTION GUIDE — when to use:
- Use when a memory is completely outdated, incorrect, or explicitly requested to be forgotten.
  Example: memory_id='abc123'
- **export_memories** — Export all memories as JSONL.

ACTION GUIDE — when to use:
- Use when the user requests a backup or raw dump of their memory database.
- **import_memories** — Import memories from JSONL data or a list of objects.

ACTION GUIDE — when to use:
- Use when restoring from a backup or migrating data into the memory system.
  Example: data='[{"content": "example"}]', mode='merge'
- **memory_stats** — Show database statistics (total memories, categories, embedding status).

ACTION GUIDE — when to use:
- Use when you need to understand the scale or health of the memory database, or check if embeddings are enabled.
- **restore_memory** — Restore an archived memory by ID.

ACTION GUIDE — when to use:
- Use to bring a previously archived memory back into the active search pool.
  Example: memory_id='abc123'
- **archived_memories** — List archived memories.

ACTION GUIDE — when to use:
- Use to view memories that have been soft-deleted or automatically archived due to low importance/recency.
- **consolidate_memories** — Summarize similar memories in a category (requires LLM API keys).

ACTION GUIDE — when to use:
- Use when a category has too many redundant or closely related memories and needs cleanup.
  Example: category='preference'
- **memory** — [DEPRECATED — use the granular tools (add_memory, search_memory, ...) instead; this composite tool will be removed in a future release]

Legacy dispatcher for backward compatibility. Use specialized tools (add_memory, search_memory, etc.) instead.

Persistent memory store. Actions: add|search|list|update|delete|export|import|stats|restore|archived|consolidate.

ACTION GUIDE — when to use each:
- add: Store NEW information. Requires 'content'. Use when saving preferences, decisions, facts for the first time.
  Example: action='add', content='User prefers dark mode', category='preference', tags=['ui']
- search: Find existing memories by natural language query. Requires 'query'. Use BEFORE add to avoid duplicates.
  Example: action='search', query='dark mode preference'
- update: Modify an EXISTING memory by ID. Requires 'memory_id' (from search/list results). Use when a fact changes.
  Example: action='update', memory_id='abc123', content='User now prefers light mode'
- list: Browse all memories, optionally filtered by category. No query needed.
- delete: Remove a memory by ID. Requires 'memory_id'.
- stats: Show database statistics (total memories, categories, embedding status).
- export: Export all memories to JSONL format.
- import: Import memories from JSONL data. Requires 'data'.
- archived: List archived memories. Optionally filter by limit.
- restore: Restore an archived memory by ID. Requires 'memory_id'.
- consolidate: Summarize and consolidate similar memories in a category using LLM. Requires 'category'.

WORKFLOW: search -> not found? -> add. Found outdated? -> update (with memory_id from results).
PROACTIVE: save user preferences, decisions, corrections, project conventions.
- **config** — Server config, sync, setup, and bounded vector backfill. Actions: status|sync|set|warmup|setup_sync|backfill_embeddings.

ACTION GUIDE — when to use each:
- status: Show current configuration, setup status, and database stats.
- sync: Trigger manual sync (requires sync_enabled=true + google_drive_client_id).
- set: Update a setting. Requires 'key' and 'value'.
  Valid keys: 'sync_enabled' (true/false), 'sync_interval' (int), 'log_level' (str).
  Example: action='set', key='sync_enabled', value='true'
- warmup: Pre-download embedding model (~570 MB) to avoid delays later.
- backfill_embeddings: Embed active rows missing a current Vectorize ledger entry; optional batch_size is bounded to 100.
- setup_sync: Authenticate Google Drive via Device Code OAuth flow.
- **help** — Full documentation for memory and config tools. topic: 'memory' | 'config'

ACTION GUIDE — when to use:
- Use when you need detailed instructions on how to use specific server tools or features.
- **config__open_relay** — Get the relay configuration URL for mnemo-mcp, opening it in the user's browser when possible. Returns the relay URL, whether the browser launched, and the current status.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `uvx` (confidence: high):

```json
"mcpServers": {
  "mnemo-mcp": {
    "command": "uvx",
    "args": ["--python","3.14","n24q02m-mnemo"]
  }
}
```

## Documentation

## What n24q02m/mnemo-mcp does

n24q02m/mnemo-mcp provides persistent memory for MCP-compatible AI clients. It stores memories in a local SQLite database and exposes separate operations for writing, finding, reviewing, changing, archiving, and removing records. Typical records include user preferences, facts, skills, tasks, conversations, and decisions.

The server is designed for a search-before-write workflow: query existing memories first, then add only information that is new. Search results provide the identifiers needed to update or delete a record later. Archived records remain recoverable through dedicated listing and restore operations.

## How it works

Retrieval combines SQLite FTS5 full-text search with vector search. Results are fused with Reciprocal Rank Fusion, then can be reranked and adjusted using temporal decay and importance. Local Qwen3 embedding and reranking support are provided through Fastretrieval's local registry, while optional model-provider cells can handle tasks such as chat compression or reranking.

The database uses SQLite WAL mode and is stored under `~/.n24q02m/mnemo/`, or under `$N24Q02M_HOME/mnemo/` when that home directory is configured. Older data under `~/.mnemo/` is migrated by copying it into the new data root when the resolved destination is missing. Cross-machine backup and migration use external `rclone` workflows rather than an embedded synchronization service.

## Setup and configuration

Install the Python distribution with either:

- `pip install n24q02m-mnemo`
- `uvx --python 3.14 n24q02m-mnemo`

The `n24q02m-mnemo` console script runs the MCP server. Its `mcp` subcommand uses stdio by default; HTTP mode is available with `--http`. The `mnemo` console script provides a CLI-oriented memory interface and does not serve MCP requests.

Embedding-model files can be downloaded ahead of time with the configuration warmup action. Set `MNEMO_ENCRYPTION_KEY` to enable AES-256-GCM encryption for memory text, tags, source, and subject. Existing stores can be converted with the `encrypt` and `decrypt` CLI commands.

## Tools and capabilities

The granular memory tools cover:

- Adding new memories with content, categories, and tags.
- Natural-language search and category-filtered listing.
- Updating or deleting records by memory ID.
- Exporting and importing JSONL data for backups or migration.
- Viewing database statistics, including counts, categories, and embedding status.
- Listing archived records and restoring them by ID.
- Consolidating related memories within a category using an LLM.

The `config` tool reports configuration and database status, changes supported settings, warms the embedding model, and performs bounded embedding backfills. A deprecated composite `memory` dispatcher remains for backward compatibility, but the specialized tools are the intended interface.

## Limitations and notes

The store is local-first: memory data resides in a SQLite file on the machine running the server. Optional cloud model calls use configured OpenAI-compatible provider cells, while local embedding support avoids requiring an API key for the default retrieval path. Consolidation and some compression or importance-scoring behavior require an LLM provider.

The server can soft-archive low-value or stale memories and run periodic archive sweeps after captures. Archived data is outside the active search pool until restored. The legacy composite tool is deprecated and may be removed in a future release, so new integrations should call the granular tools directly.

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

