HomeKnowledge & Memory › lean-memory

lean-memory

Embedded, local-first agent memory: one SQLite file per namespace, no server, no cloud.

Python Local macOSWindowsLinux
★ 42 stars Last pushed 2026-08-07 License: Apache-2.0

Topics: Knowledge & Memory

Connect

Review any command before running it. Package names and URLs come from the server's own registry entry.

Package (pypi 0.3.0)

uvx lean-memory

Or add to your MCP client config:

{
  "mcpServers": {
    "lean-memory": {
      "command": "uvx",
      "args": [
        "lean-memory"
      ],
      "env": {
        "LM_DATA_ROOT": "<YOUR_VALUE>"
      }
    }
  }
}
  • LM_DATA_ROOT — Directory for per-namespace SQLite memory files. Defaults to ~/.lean_memory when unset.

This server takes extra arguments — see its repository.

Related servers

Listed in punkpeye/awesome-mcp-servers (MIT)

Data from the Official MCP Registry