# memex [Health: Active]

**Category:** 🧠 Knowledge & Memory  
**Repository:** https://github.com/evan-moon/memex  
**GitHub Stars:** 3  
**Views:** 2  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/memex-2

## Description
Local-first second brain with semantic search. Markdown notes indexed by a local ML model.

## Tools
Capabilities this server exposes over MCP:

- **save_note** — Save a note, requires `layer`, warns if a similar note already exists, surfaces flashbacks
- **search_notes** — Semantic search; supports `category`, `tag`, `date_from`, `date_to` filters; appends flashbacks for the top result
- **list_notes** — List recent notes
- **list_tags** — List all tags with note counts
- **list_folders** — List all folders with note counts
- **get_note** — Get full content and backlinks of a note by ID
- **update_note** — Update title or content. Refuses `past` notes (with `[Amendment]` suggestion) and `rule` notes (user-only)
- **delete_note** — Delete a note by ID
- **get_signals** — Deterministic un-synthesized patterns (hidden_arc / stale_state / dangling_link / tag_burst)
- **update_signal_status** — Triage a signal, dismiss or snooze
- **list_inferences** — List synthesized hypotheses (re-checks staleness first)
- **get_inference** — One inference with full provenance + change/delete markers
- **mint_inference** — Persist an approved hypothesis, requires explicit confirmation

## 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/evan-moon/memex), copied verbatim. Follow them in order; they are not an mcpServers config.

1. Install:

```sh
npm install -g @evan-moon/memex
```

2. Add to your MCP client:

```sh
memex mcp install
```

## Documentation

## What the memex MCP server does

The memex MCP server gives an MCP client access to a local second-brain system built around Markdown notes. Notes remain on the local machine, while a local machine-learning model creates the indexes used for retrieval. The system is designed for personal context that should persist across conversations without sending note content to an external service or requiring an API key.

Each note has a layer: `past` for immutable records, `state` for information that can change, or `rule` for Claude behavior guidance. Notes can include tags, folders, dates, and `[[Title]]` links. The server can expose backlinks, related older notes, duplicate warnings, and corrections that point to amended content.

## How it works

The memex MCP server combines semantic retrieval with full-text and tag matching. Long notes are split into smaller passages before embedding, allowing a relevant section deep inside a document to appear in search results. Search supports category, tag, and date-range filters, and can add a flashback from a related note in another folder.

The local database uses SQLite with `sqlite-vec`, while source notes remain Markdown files. The repository describes multilingual retrieval through the `multilingual-e5-base` model. Optional cross-encoder reranking can be enabled with `MEMEX_RERANK=1`, but it is disabled by default because it adds search latency.

Signals provide deterministic, unsynthesized patterns such as hidden arcs, stale state, dangling links, and tag bursts. An approved signal can become an inference with provenance; inferences are checked for staleness when listed and can record source changes.

## Setup and configuration

Install the package globally with:

```bash
npm install -g @evan-moon/memex
```

Run `memex mcp install` to register the server with the supported clients on the machine. Restart those clients after installation. On first use, the embedding model downloads to `~/.memex/models/` and is approximately 450 MB. Notes and the local database are stored under the memex data locations, including `~/.memex/memex.db`.

The optional `memex recall install` command adds prompt-time retrieval. It searches notes for each prompt and injects up to three relevant titles before the client answers. A background process keeps the model loaded for faster lookups; it uses about 200 MB while warm and can be removed with `memex recall uninstall`.

## Tools and capabilities

The memex MCP server exposes tools for:

- Saving notes with a required layer, duplicate warnings, and flashbacks.
- Searching, listing, reading, updating, and deleting notes.
- Listing tags and folders with note counts.
- Reading backlinks and retrieving full note content by ID.
- Detecting and triaging deterministic signals.
- Listing, inspecting, and explicitly minting inferences.

Updates are restricted by layer: past notes cannot be edited, and rule notes require user-only changes. Minting an inference requires explicit confirmation. The companion CLI also supports indexing external Markdown directories, browsing notes, generating digests, managing tags, and re-embedding notes.

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

