Mnemex
Temporal memory store for AI assistants with decay, reinforcement, and promotion to long-term notes.
- CCM score
- 71 of 100
- GitHub stars
- 39
- tools
- 14
- transport
- STDIO
- env vars
- 4
- last updated
- Oct 20, 2025
Own this MCP server? Claim it
What it does
- Saves and searches memories with
save_memory,search_memory, andsearch_unifiedacross short-term and long-term storage, filtered by tags, entities, and score - Reinforces and curates with
touch_memory,observe_memory_usage,promote_memory,gc,consolidate_memories, andcreate_relation, plusread_graphandopen_memoriesfor graph access - Stores data locally in JSONL or SQLite with Markdown long-term notes, and runs as a local MCP server with no cloud service
- Designed for assistants that need recall of user preferences and decisions across sessions; it is a research proof of concept, not production-ready
Tools
14 toolsPublic tool metadata for what this MCP can expose to an agent.
save_memorySave new memory with tags, entities (auto-enrichment in v0.6.0+)
Save new memory with tags, entities (auto-enrichment in v0.6.0+)
No parameter schema in public metadata yet.
search_memorySearch with filters and scoring (includes review candidates)
Search with filters and scoring (includes review candidates)
No parameter schema in public metadata yet.
search_unifiedUnified search across STM + LTM
Unified search across STM + LTM
No parameter schema in public metadata yet.
touch_memoryReinforce memory (boost strength)
Reinforce memory (boost strength)
No parameter schema in public metadata yet.
observe_memory_usageRecord memory usage for natural spaced repetition
Record memory usage for natural spaced repetition
No parameter schema in public metadata yet.
analyze_messageDetect memory-worthy content, suggest entities/strength
Detect memory-worthy content, suggest entities/strength
No parameter schema in public metadata yet.
analyze_for_recallDetect recall intent, suggest search queries
Detect recall intent, suggest search queries
No parameter schema in public metadata yet.
gcGarbage collect low-scoring memories
Garbage collect low-scoring memories
No parameter schema in public metadata yet.
promote_memoryMove to long-term storage
Move to long-term storage
No parameter schema in public metadata yet.
cluster_memoriesFind similar memories
Find similar memories
No parameter schema in public metadata yet.
consolidate_memoriesMerge similar memories (algorithmic)
Merge similar memories (algorithmic)
No parameter schema in public metadata yet.
read_graphGet entire knowledge graph
Get entire knowledge graph
No parameter schema in public metadata yet.
open_memoriesRetrieve specific memories
Retrieve specific memories
No parameter schema in public metadata yet.
create_relationLink memories explicitly
Link memories explicitly
No parameter schema in public metadata yet.
Configuration
MNEMEX_STORAGE_PATHdefault: ~/.config/mnemex/jsonlStorage path for short-term memory JSONL files
LTM_VAULT_PATHPath to Obsidian vault for long-term memory
MNEMEX_DECAY_MODELdefault: power_lawDecay model: power_law (default), exponential, or two_component
MNEMEX_PL_HALFLIFE_DAYSdefault: 3.0Half-life in days for power-law decay model
Readme
CortexGraph: Temporal Memory for AI
A Model Context Protocol (MCP) server providing human-like memory dynamics for AI assistants. Memories naturally fade over time unless reinforced through use, mimicking the Ebbinghaus forgetting curve.
Details
- Repository
- github.com/simplemindedbot/mnemex
- Category
- Memory & Context
- Package
mnemex- Transport
- STDIO
- Registry
- MCP registry, active
Questions
What does the mnemex MCP server let an agent do?
It gives an agent temporal memory with decay and reinforcement, so saved memories fade over time unless they are used again. Its 14 tools cover saving, searching, reinforcing, promoting and garbage collecting memories, plus reading the knowledge graph and linking memories together.
Which environment variables does mnemex need?
The listing names MNEMEX_STORAGE_PATH, LTM_VAULT_PATH, MNEMEX_DECAY_MODEL and MNEMEX_PL_HALFLIFE_DAYS. These set where short-term memory files are stored, the long-term vault path, the decay model and the power-law half-life in days.
Where does mnemex rank in the Memory & Context category?
On the Memory & Context category page, mnemex ranks in the top 100. Other servers in the category include Headroom, Basic Memory, obsidian-wiki and Deja Vu, and mnemex stores memories in two layers, JSONL and Markdown.
How does mnemex store its memories?
Mnemex uses two-layer storage, with JSONL for short-term memory and Markdown for long-term memory. It runs over stdio and is published on PyPI as the mnemex package.
Similar to Mnemex
More Memory & ContextMem0mem0ai661 starsLong-term memory access via Mem0's hosted API: add, search, update, and delete memories.
YourMemorysachitrafa275 starsPersistent memory store connecting AI agents to recall, write, and update tools with decay and graph linking.
M3 Memoryskynetcmd32 starsPersistent, local-first memory store for assistants: saves, searches, and supersedes facts across sessions.
MCP AutoMemverygoodplugins67 starsPersistent graph-vector memory via FalkorDB and Qdrant: store, recall, relate, update, and delete memories.
Mneme Memoryslow-stack263 starsPersistent cross-session memory for AI coding agents, stored in a local SQLite database.
Cognitive Ai Memorysachitrafa275 starsPersistent memory for Claude with decay and recall, stored locally in DuckDB or Postgres.