Memex logo

Memex

Local-first MCP memory system that stores Markdown notes and searches them with a local machine-learning model.

Install Memex

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

Setup steps from the project

memex 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 -g @evan-moon/memex
    
  2. 2. Add to your MCP client
    memex mcp install
    

Overview

The memex MCP server connects Claude and other supported MCP clients to a local Markdown knowledge base with semantic search. It stores notes on your machine, indexes them with a local ML model, and provides tools for saving, searching, browsing, linking, and managing notes. Reach for it when an agent needs persistent personal context, offline retrieval, note relationships, or structured signals and inferences without API keys.

Use cases

  • Save decisions and context for reuse across conversations
  • Search Markdown notes by meaning, tags, or date
  • Review backlinks and related notes across folders
  • Triage stale states, dangling links, and recurring tags
  • Inject relevant note titles into prompts with auto-recall

Key features

  • Local Markdown storage with offline embeddings
  • Semantic, BM25, and tag-based retrieval
  • Past, state, and rule note layers
  • Flashbacks, backlinks, and duplicate detection
  • Deterministic signals and provenance-backed inferences
  • Optional prompt-time auto-recall

Tools13

What Memex lets your agent do. Expand a tool for its parameters.

Self-reported~228 tokens of context

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.

13/13 checks healthy over the last 61d

Adoption & maintenance

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

GitHub stars3Stargazers on the source repository.
Last commit2mo agoMost recent push to the default branch.
Tools exposed13Callable tools this server registers over MCP.
Directory activity2 viewsConfig copies, upvotes, and views on AllMCPs.

How Memex works

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:

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

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 Memex

memex is an MCP server that connects Claude and supported MCP clients to a local Markdown note library indexed by a local machine-learning model. Its main tools save, search, list, retrieve, update, and delete notes, while also exposing backlinks, signals, and inferences. It runs offline without API keys.

Install it with `npm install -g @evan-moon/memex`, then run `memex mcp install` and restart the registered clients. The first run downloads an embedding model of about 450 MB to `~/.memex/models/`.

Yes, memex can register itself with Cursor through `memex mcp install`. The command writes the client configuration and leaves existing servers in place; restart Cursor after installation.

Run `memex recall install` to search notes for every prompt and inject up to three matching titles before the response. Remove this behavior with `memex recall uninstall`; the feature uses a background process to keep the embedding model warm.

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