mcpbeat Sign in

lean-memory MCP Server

local only

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.

Installs per day peak 83 · avg 23 · +17% w/w
a month agotoday
136
Installs / week
pypi · lean-memory
43
Stars
2 open issues
7 Aug 2026
Last commit
from GitHub
Apache-2.0
License
Python

What the code does

We read the source, 3 d ago · rules 995398eba69f

Capabilities

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.

Is this your server and something here is wrong? Tell us — corrections are free and do not require a plan.

This code can reach further than it looks

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.

Three servers free · no card

Connect this server

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.

run in your terminal
claude mcp add lean-memory -- uvx lean-memory
~/Library/Application Support/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "lean-memory": {
      "command": "uvx",
      "args": [
        "lean-memory"
      ]
    }
  }
}
~/.codex/config.toml
[mcp_servers.lean-memory]
command = "uvx"
args = ["lean-memory"]
.cursor/mcp.json
{
  "mcpServers": {
    "lean-memory": {
      "command": "uvx",
      "args": [
        "lean-memory"
      ]
    }
  }
}
.vscode/mcp.json
{
  "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).

Alternatives to lean-memory

same job, measured the same way
rmbr
by srock44

Embedded, local-first memory and retrieval for AI agents. One SQLite file, no server, no API key.

91 installs/wk local only
Engram
by hbarefoot

Local-first persistent memory for AI agents — SQLite + local embeddings, MCP-native, no cloud.

53 installs/wk local only
Palace
by ancientice

Local-first memory for coding agents — MCP server, single SQLite file, local embeddings

local only
Tdai Memory MCP
by tinhien11

Local-first MCP memory server for coding agents. No API key, no cloud. SQLite + FTS5 + sqlite-vec.

158 installs/wk local only
LoreConvo
by labyrinth-analytics

Local-first persistent session memory for Claude Code and other agents. SQLite + FTS5, no cloud.

733 installs/wk local only
remem-mcp — Local-first MCP Memory + CodeGraph + Wiki
by tinhien11

Local-first memory for AI coding agents. Memory + CodeGraph + Wiki in one SQLite file.

123 installs/wk local only
Memkeeper
by teflon07

Local-first memory for AI agents: on-device hybrid retrieval over a single SQLite file.

local only
Tether
by sidyellur

Local-first agent memory over SQLite: remember, recall, link, forget. Degrades, never fails.

81 installs/wk local only

lean-memory — questions

Answers built from our own checks of this server.

Why is there no uptime for lean-memory?
lean-memory runs on your own machine over stdio — there is no network address to reach, so uptime cannot be measured for it by anyone. What can be measured is adoption: the pypi package lean-memory was installed 136 times last week.
How do I connect lean-memory?
Copy the ready config from this page. We generate it for Claude Code, Claude Desktop, Codex, Cursor and VS Code, each in the form that client actually reads. It runs locally, so the command pulls lean-memory straight from pypi; nothing to host, nothing to sign up for.
How many people use lean-memory?
The pypi package lean-memory was installed 136 times in the last week. Week over week that is +17%. We show installs rather than GitHub stars on purpose: a star is a bookmark, an install is someone actually running it.
Is lean-memory open source?
Yes — it is published under the Apache-2.0 licence, written in Python, 43 stars on GitHub and 2 open issues. The source link is on this page, so you can read exactly what it does with your data before you connect it.