lean-memory
local MCP serverInstallation
Terminal
claude mcp add lean-memory -e LM_DATA_ROOT=... -- uvx lean-memory
Run in your project folder. Add --scope user to use it everywhere.
Claude Desktop, Cursor & other clients
Add to claude_desktop_config.json or .cursor/mcp.json.
{
"mcpServers": {
"lean-memory": {
"command": "uvx",
"args": [
"lean-memory"
],
"env": {
"LM_DATA_ROOT": "..."
}
}
}
}Fill in the environment variables with your own credentials.
Summary
Embedded, local-first agent memory: one SQLite file per namespace, no server, no cloud.
Questions
lean-memory is a local MCP server distributed as the pypi package lean-memory.
Run: claude mcp add lean-memory -e LM_DATA_ROOT=... -- uvx lean-memory
Run: codex mcp add lean-memory --env LM_DATA_ROOT=... -- uvx lean-memory
Similar MCP servers
NameStars
- Agent Swarmio.github.desplega-ai/agent-swarm835
- LoreConvoio.github.labyrinth-analytics/loreconvo10
- Persomeio.github.Intuition-Lab/personal-model1,324
- projectmemio.github.riponcm/projectmem844
- HOL Guardio.github.hashgraph-online/hol-guard670
- agent-recallio.github.Goldentrii/agent-recall371
- Cortex Memory Engineio.github.gambletan/cortex34
- rememio.github.majiayu000/remem31