lean-memory runs on your own machine — the client starts it, so there is no endpoint to ping. 136 installs a week from pypi. Last commit 7 Aug 2026.
Embedded, local-first agent memory: one SQLite file per namespace, no server, no cloud.
We read the source, 3 d ago · rules 995398eba69f
What this server is able to do. For an MCP server this is often the job itself — a terminal server runs commands because that is what it is for. Listed so you know what you are plugging in, not as an accusation.
return subprocess.Popen(
Is this your server and something here is wrong? Tell us — corrections are free and do not require a plan.
We found places where it runs commands, builds paths or queries from values it is given. None of that is a flaw by itself — it becomes one when the code changes, and code changes quietly between releases. We re-read it on every one.
This server runs on your own machine — install it with the package manager and the client starts it for you. Package name taken from the official registry entry.
claude mcp add lean-memory -- uvx lean-memory
{
"mcpServers": {
"lean-memory": {
"command": "uvx",
"args": [
"lean-memory"
]
}
}
}
[mcp_servers.lean-memory]
command = "uvx"
args = ["lean-memory"]
{
"mcpServers": {
"lean-memory": {
"command": "uvx",
"args": [
"lean-memory"
]
}
}
}
{
"servers": {
"lean-memory": {
"type": "stdio",
"command": "uvx",
"args": [
"lean-memory"
]
}
}
}
Optional settings from the registry entry, left out of the block above:
LM_DATA_ROOT (Directory for per-namespace SQLite memory files. Defaults to ~/.lean_memory when unset).
Embedded, local-first memory and retrieval for AI agents. One SQLite file, no server, no API key.
Local-first persistent memory for AI agents — SQLite + local embeddings, MCP-native, no cloud.
Local-first memory for coding agents — MCP server, single SQLite file, local embeddings
Local-first MCP memory server for coding agents. No API key, no cloud. SQLite + FTS5 + sqlite-vec.
Local-first persistent session memory for Claude Code and other agents. SQLite + FTS5, no cloud.
Local-first memory for AI coding agents. Memory + CodeGraph + Wiki in one SQLite file.
Local-first memory for AI agents: on-device hybrid retrieval over a single SQLite file.
Local-first agent memory over SQLite: remember, recall, link, forget. Degrades, never fails.
Answers built from our own checks of this server.