lean-memory runs on your own machine — the client starts it, so there is no endpoint to ping. 128 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, 20 h ago · rules 3dff92dd89df
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": {
"args": [
"lean-memory"
],
"command": "uvx"
}
}
}
[mcp_servers.lean-memory]
command = "uvx"
args = ["lean-memory"]
{
"mcpServers": {
"lean-memory": {
"args": [
"lean-memory"
],
"command": "uvx"
}
}
}
{
"mcpServers": {
"lean-memory": {
"args": [
"lean-memory"
],
"command": "uvx"
}
}
}
This one needs environment variables set before it will start:
LM_DATA_ROOT (Directory for per-namespace SQLite memory files. Defaults to ~/.lean_memory when unset.).
The author declared them in the registry entry; get the values from the project itself.
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 memory for AI agents. One SQLite file on your machine — no cloud, no account.
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.