Embedded local agent memory stored in one SQLite file per namespace, with hybrid retrieval and queryable history.
Setup
Choose your client, copy the config, then fill in any required environment variables.
claude mcp add lean-memory -- uvx lean-memory lean-memory-mcp~/.codex/config.toml
[mcp_servers.lean-memory]
command = "uvx"
args = ["lean-memory", "lean-memory-mcp"]
# codex mcp add lean-memory -- uvx lean-memory lean-memory-mcp~/.cursor/mcp.json
{
"mcpServers": {
"lean-memory": {
"command": "uvx",
"args": [
"lean-memory",
"lean-memory-mcp"
]
}
}
}.vscode/mcp.json
{
"servers": {
"lean-memory": {
"type": "stdio",
"command": "uvx",
"args": [
"lean-memory",
"lean-memory-mcp"
]
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"lean-memory": {
"command": "uvx",
"args": [
"lean-memory",
"lean-memory-mcp"
]
}
}
}claude_desktop_config.json
{
"mcpServers": {
"lean-memory": {
"command": "uvx",
"args": [
"lean-memory",
"lean-memory-mcp"
]
}
}
}.trae/mcp.json
{
"mcpServers": {
"lean-memory": {
"command": "uvx",
"args": [
"lean-memory",
"lean-memory-mcp"
]
}
}
}