🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@evan-moon/memex

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@evan-moon/memex

Local-first second brain with semantic search. MCP server for Claude Desktop and Claude Code.

Source
npmnpm
Version
0.2.0
Version published
Weekly downloads
34
-29.17%
Maintainers
1
Weekly downloads
 
Created
Source

memex

npm license node

Local-first second brain with semantic search. Stores notes as Markdown files and indexes them with a local ML model — no cloud, no API keys.

Works as an MCP server for Claude Code and Claude Desktop, and as a standalone CLI.

Features

Install

npm install -g @evan-moon/memex

On first run the embedding model (~120MB) is downloaded once to ~/.memex/models/.

CLI

# Add notes
memex add                                   # interactive prompt
memex add --title "Note title" --content "..."
memex add --title "Note title" --file ./note.md
memex add --title "Note title" --content "..." --folder "projects/memex"

# Browse
memex list                                  # recent 10 notes
memex list --limit 20
memex show <id>

# Search
memex search "semantic search query"        # multilingual
memex search "지식 관리" --limit 10

# Edit / delete
memex edit <id>
memex delete <id>
memex delete --yes <id>                     # skip confirmation

# Index external directories
memex source add ~/Documents/My\ Notes      # register a directory
memex source list
memex source remove ~/Documents/My\ Notes
memex index                                 # scan vault + all sources
memex index --force                         # re-index everything

# Config
memex config show
memex config set vault-path ~/Documents/Second\ Brain

# MCP
memex mcp install                           # register with Claude Code
memex mcp path                              # print MCP binary path

MCP server

Claude Code

memex mcp install

Or manually:

claude mcp add memex -- node "$(memex mcp path)"

Claude Desktop

Add to ~/Library/Application Support/Claude/claude_desktop_config.json:

{
  "mcpServers": {
    "memex": {
      "command": "node",
      "args": ["<path from `memex mcp path`>"]
    }
  }
}

Available tools

ToolDescription
save_noteSave a note (title + markdown content + optional folder)
search_notesSemantic search across all notes
list_notesList recent notes
get_noteGet full content of a note by ID
update_noteUpdate title or content of an existing note
delete_noteDelete a note by ID

The MCP server includes built-in instructions that tell Claude to search before answering and save proactively at the end of conversations — no extra CLAUDE.md setup needed.

Configuration

Config is stored at ~/.memex/config.json.

KeyDefaultDescription
vault_path~/Documents/Second BrainDirectory where .md files are saved
sources[]Additional directories to index (e.g. existing Obsidian vaults)
aliases{}Search alias map, e.g. { "js": ["javascript", "자바스크립트"] }
memex config set vault-path ~/my-vault

Architecture

~/.memex/
  config.json       — vault path, sources, and aliases
  memex.db          — SQLite DB (notes + sqlite-vec embeddings)
  models/           — cached embedding model

<vault>/
  *.md              — notes (Obsidian-compatible)

Monorepo packages:

PackageRole
@memex/dbSQLite schema, drizzle queries, sqlite-vec integration
@memex/embedLocal embedder via @huggingface/transformers
@memex/utilsConfig, path helpers, shared utilities
@memex/mcpMCP server (bundled into CLI dist)

Works with Herald

Memex is the memory layer of the Herald ambient voice assistant stack. When connected, Herald can:

  • recall past conversations and decisions by voice
  • save new insights mid-conversation without typing
  • answer "what did I think about X?" with context from your second brain

Herald + Memex + Firma — ambient voice, persistent memory, and financial intelligence in one personal AI stack.

License

MIT

FAQs

Package last updated on 02 May 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts