What is lean-memory?
lean-memory is a MCP server by Wuesteon that embedded local agent memory in one SQLite file per namespace: hybrid retrieval, append-only history queryable at any past time and human-reviewed maintenance. It is listed under Knowledge & memory and has 43 GitHub stars.
| Type | Mcp server |
|---|---|
| Author | Wuesteon |
| Repository | Wuesteon/lean-memory |
| Popularity | 43 GitHub stars |
| Category | Knowledge & memory |
| Security | Low risk (96/100) |
| Rank | #929 of 4,418 MCP servers; #96 in Knowledge & memory |
| License | Apache-2.0 |
| Last commit | 2026-08-07 |
| Runs | Locally |
| Language | Python |
| Platforms | macOS, Windows, Linux |
Is lean-memory safe to install?
lean-memory scores 96/100 on the MCPMods security check: Low risk. No checks raised a concern. It passed 5 of 6 checks.
MCP server results come from listing signals: who publishes it, where your data goes and what it can do. The code itself is not scanned yet.
| Check | Result |
|---|---|
| Community-built server | Note |
| Runs on your machine only | Pass |
| No credentials mentioned | Pass |
| Read-only by description | Pass |
| No code execution | Pass |
| Source on GitHub | Pass |
How do I install lean-memory?
- Find the launch command. The README says how the server starts (npx, uvx, docker or a remote URL) and which API keys it needs.
https://github.com/Wuesteon/lean-memory
- Add it to Claude Code. Replace the part after -- with the command from the README. Remote servers use --transport http with a URL.
claude mcp add lean-memory -- <command from README> claude mcp add --transport http lean-memory <server-url>
- Check it connected. This lists your MCP servers and their status.
claude mcp list
Or ask Claude to set it up
Paste this into Claude Code and it installs lean-memory for you:
Add the "lean-memory" MCP server from https://github.com/Wuesteon/lean-memory to Claude Code. Read its README for the launch command and any API keys I need, run claude mcp add, then check that it connects.