# Mnemo

> Mnemo is an open-source MCP server for knowledge and memory. Local-first persistent memory for AI assistants with hybrid search and a knowledge graph. It runs as a hosted remote server, so there is nothing to install locally.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** macOS, Windows, Linux, CLI, self-hosted
- **Repository:** https://github.com/n24q02m/mnemo
- **MCP Registry name:** io.github.n24q02m/mnemo
- **Categories:** [knowledge and memory](https://ai-powered.com/categories/knowledge-and-memory)
- **Listing updated:** 2026-11-18

## About

Memories live in one SQLite file under ~/.mnemo/, searched by combining full-text matching and vector search through reciprocal rank fusion, then reranked with a cross-encoder and adjusted for recency and importance. With no API keys it uses local Qwen3 ONNX embedding and reranking models; cloud providers can be configured per task instead, and a configured cloud chain never silently falls back to local.

Capture is typed, with six context types: conversation, fact, preference, skill, task and decision. Similar entries trigger a duplicate warning, and an importance score drives a soft-archive policy with a restore action. Since v2 a bitemporal knowledge graph adds valid-from and valid-to columns, entity resolution and as_of time-travel queries; the README flags a breaking change that default reads now return current state only.

It installs from PyPI as n24q02m-mnemo, ships a separate CLI, and backup is left to rclone.

## Features

- **Hybrid retrieval:** Full-text and vector search fused, then reranked.
- **Typed memory capture:** Six context types with embedding-based duplicate detection.
- **Temporal knowledge graph:** Bitemporal entities with history and as_of queries.
- **Importance and archiving:** Scores memories and soft-archives stale ones, with restore.
- **Local-first storage:** A single SQLite file in WAL mode.
- **Optional compression:** LLM summarisation of older memories when a chat model is configured.
- **Claude Code plugin:** Recall and commit skills with session hooks.

## Good for

- Give a coding assistant memory across sessions
- Store and recall user preferences and decisions
- Track how a fact changed over time
- Consolidate related notes into summaries

## Install

### Claude Code (Terminal)

```sh
claude mcp add mnemo --env API_KEYS='<API_KEYS>' -- uvx n24q02m-mnemo
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "mnemo": {
      "command": "uvx",
      "args": [
        "n24q02m-mnemo"
      ],
      "env": {
        "API_KEYS": "<API_KEYS>"
      }
    }
  }
}
```

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "mnemo": {
      "command": "uvx",
      "args": [
        "n24q02m-mnemo"
      ],
      "env": {
        "API_KEYS": "<API_KEYS>"
      }
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "mnemo": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "n24q02m-mnemo"
      ],
      "env": {
        "API_KEYS": "<API_KEYS>"
      }
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "mnemo": {
      "command": "uvx",
      "args": [
        "n24q02m-mnemo"
      ],
      "env": {
        "API_KEYS": "<API_KEYS>"
      }
    }
  }
}
```

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "mnemo": {
      "command": "uvx",
      "args": [
        "n24q02m-mnemo"
      ],
      "env": {
        "API_KEYS": "<API_KEYS>"
      }
    }
  }
}
```

## FAQ

### Does it need API keys?

No. Local ONNX models are used by default; keys are optional for cloud providers.

### Where is data stored?

In one SQLite file under ~/.mnemo/.

### How do I back it up?

With rclone, since sync is no longer built in.

### How do I install it?

pip install n24q02m-mnemo or uvx n24q02m-mnemo.

### Is Mnemo free?

Yes. Mnemo is open source, so you can use and self-host it for free.

### How do I add Mnemo to Claude Code?

Run this command in your terminal: claude mcp add mnemo --env API_KEYS='<API_KEYS>' -- uvx n24q02m-mnemo

### What are the best alternatives to Mnemo?

The closest alternatives to Mnemo are Codebase Memory, XERJ, Claude Code Ultimate Guide, Nautilus Compass Memory and NeuroStack.

## Where this comes from

- Description: written from the project's README.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [Codebase Memory](https://ai-powered.com/mcp/codebase-memory): Codebase Memory is an open-source MCP server for knowledge and memory.
- [XERJ](https://ai-powered.com/mcp/xerj): XERJ is an open-source MCP server for knowledge and memory.
- [Claude Code Ultimate Guide](https://ai-powered.com/mcp/claude-code-ultimate-guide): Claude Code Ultimate Guide is an open-source MCP server for ai models and llm tooling.
- [Nautilus Compass Memory](https://ai-powered.com/mcp/nautilus-compass-memory): Nautilus Compass Memory is an open-source MCP server for knowledge and memory.
- [NeuroStack](https://ai-powered.com/mcp/neurostack): NeuroStack is a freemium MCP server for knowledge and memory.
- [note1](https://ai-powered.com/mcp/note1): note1 is an MCP server for productivity.
- [Digitalnz](https://ai-powered.com/mcp/digitalnz): Digitalnz is a freemium MCP server for knowledge and memory.
- [Notion_connect](https://ai-powered.com/mcp/notion-connect): Notion_connect is a freemium MCP server for knowledge and memory.

---
Source: https://ai-powered.com/mcp/mnemo-2
