Skip to content
VS Code

cognitive ai memory for VS Code

io.github.sachitrafa/cognitive-ai-memory

Ebbinghaus-based persistent memory for Claude. Memories decay with time, strengthen on recall.

client:VS Code transport:stdio runtime:oci

Install cognitive ai memory in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "database-url",
      "description": "DATABASE_URL",
      "password": true
    },
    {
      "type": "promptString",
      "id": "ollama-url",
      "description": "OLLAMA_URL",
      "password": true
    },
    {
      "type": "promptString",
      "id": "extract-model",
      "description": "EXTRACT_MODEL",
      "password": true
    }
  ],
  "servers": {
    "cognitive-ai-memory": {
      "type": "stdio",
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/your-memory/cognitive-ai-memory:1.0.2"
      ],
      "env": {
        "DATABASE_URL": "${input:database-url}",
        "OLLAMA_URL": "${input:ollama-url}",
        "EXTRACT_MODEL": "${input:extract-model}"
      }
    }
  }
}

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

cognitive ai memory in other clients