Persistent session memory for Claude Code. Local SQLite, no LLMs, no network.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
We haven't yet run this listing's install command through our automated sandbox check. This isn't a red flag β we're steadily working through the catalog.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
Every Claude Code session starts without knowing what you built last time - which files you changed, what decisions you made, what broke. You re-explain. Claude re-reads. You start over.
memex keeps a structured log of every session. Claude reads it at the start of the next one.
No cloud. No LLM extraction. No cost per save. Just local SQLite and one command to install.
Restart Claude Code. That's it.
Each entry has structure - not a blob of text:
Claude calls mem_save when it finishes something meaningful. You can also just tell it: "save what we just did."
Claude calls mem_load automatically at the start of every session. It returns the most recent entries plus any entries that match what you're working on - by keyword and by file path.
You don't need to be inside Claude to look at your history:
Turn your history into portable, human-browsable notes - one .md file per
entry, with [[wikilinks]] connecting related entries and files, plus tags as
#hashtags. Works in Obsidian or any tool that understands [[links]]:
Entries that share a tag or a touched file are cross-linked under a Related section, so you can navigate your project history as a graph.
| Tool | What it does |
|---|---|
mem_load | Called at session start - returns recent + relevant entries |
mem_save | Saves a structured entry after meaningful work |
mem_update | Patches specific fields of an existing entry (keeps id and timestamp) |
mem_search | Full-text search across all entries |
mem_list | Lists entries, optionally filtered by tag |
mem_delete | Removes a stale entry by id |
CLAUDE.md is for static project documentation - architecture, conventions, how to run tests. It doesn't change much and it isn't session-aware.
memex captures what's changing session to session: what you built yesterday, the decision you made this morning, the warning you discovered an hour ago. It's the difference between "here's the project" and "here's what happened last time."
memex install writes Claude's instructions into .claude/CLAUDE.local.md - a file Claude Code loads automatically without touching your project's own CLAUDE.md.
Each project gets its own SQLite database at ~/.memex/<project>.db based on the working directory. Sessions from different projects never mix.
Set these in the MCP env block in ~/.claude.json if you need to override defaults:
| Variable | Default | Description |
|---|---|---|
MEMEX_DIR | ~/.memex | Where DBs are stored |
MEMEX_GLOBAL | 0 | Set to 1 to share one DB across all projects |
MEMEX_RECENT | 5 | Max recent entries loaded per session |
MEMEX_MATCHED | 5 | Max FTS-matched entries loaded per session |
Memory DBs are kept at ~/.memex/ - delete that directory manually if you want to wipe everything.
mcp package (installed automatically)MIT
Factual signals from GitHub, npm, and our automated checks β not a rating.
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/memex-5)<a href="https://allmcps.com/mcp/memex-5"><img src="https://allmcps.com/api/badge/memex-5?style=directory" alt="Memex on AllMCPs" /></a>