Skip to content
VS Code

lean-memory for VS Code

io.github.wuesteon/lean-memory

Embedded, local-first agent memory: one SQLite file per namespace, no server, no cloud.

client:VS Code transport:stdio runtime:pypi

Install lean-memory in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "lm-data-root",
      "description": "LM_DATA_ROOT",
      "password": true
    }
  ],
  "servers": {
    "lean-memory": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "lean-memory"
      ],
      "env": {
        "LM_DATA_ROOT": "${input:lm-data-root}"
      }
    }
  }
}

VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs

lean-memory in other clients