lean-memory MCP Server
by wuesteonio.github.Wuesteon/lean-memoryv0.3.0
Embedded local agent memory in one SQLite file per namespace: hybrid retrieval, append-only history queryable at any past time and human-reviewed maintenance.
context tax
queued
security
queued
cold start
queued
freshness
Maintained2mo ago
Install lean-memory MCP server
Install in Claude Code
claude mcp add lean-memory -- uvx lean-memory lean-memory-mcpInstall in Cursor
{
"mcpServers": {
"lean-memory": {
"command": "uvx",
"args": [
"lean-memory",
"lean-memory-mcp"
]
}
}
}Add to ~/.cursor/mcp.json (global) or .cursor/mcp.json (project).
Install in Claude Desktop
{
"mcpServers": {
"lean-memory": {
"command": "uvx",
"args": [
"lean-memory",
"lean-memory-mcp"
]
}
}
}Settings → Developer → Edit Config (claude_desktop_config.json), then restart.
Install in VS Code
{
"servers": {
"lean-memory": {
"type": "stdio",
"command": "uvx",
"args": [
"lean-memory",
"lean-memory-mcp"
]
}
}
}Add to .vscode/mcp.json in your workspace.
Install in Windsurf
{
"mcpServers": {
"lean-memory": {
"command": "uvx",
"args": [
"lean-memory",
"lean-memory-mcp"
]
}
}
}Add to ~/.codeium/windsurf/mcp_config.json.
Configuration
| Variable | Required | Secret | Description |
|---|---|---|---|
| LM_DATA_ROOT | — | — | Directory for per-namespace SQLite memory files. Defaults to ~/.lean_memory when unset. |
Freshness
Maintained — last maintenance signal 2mo ago. The newest of the signals below sets the band.
Last commit (default branch)
2026-08-07 · 2mo ago · GitHub
Latest release
2026-08-07 · 2mo ago · GitHub · v0.3.0
Package published
no data · npm/PyPI
Registry entry updated
2026-08-07 · 2mo ago · official registry · v0.3.0
FAQ
›How do I install the lean-memory MCP server in Claude Code?
Run: claude mcp add lean-memory -- uvx lean-memory lean-memory-mcp. For Cursor, VS Code, Claude Desktop and Windsurf, use the install tabs above.
›Does lean-memory require an API key?
No required environment variables are declared in its published metadata.
›Can I use lean-memory as a remote (hosted) MCP server?
No hosted endpoint is published; it runs locally over stdio.
›Is lean-memory in the official MCP registry?
Yes, as io.github.Wuesteon/lean-memory.
Alternatives to lean-memory
Other database MCP servers.