Memory Vault

v1.7.0
io.github.MihaiBuilds/memory-vault Checked 19 hours ago Published 15 days ago

Local-first AI memory layer with hybrid search.

Values you need

VariableWhat it is
DB_HOSTrequired Hostname of the Postgres+pgvector instance Memory Vault connects to (e.g. 'host.docker.internal' when Postgres runs on the host, 'localhost' when running natively, or the service name when both run in compose)
DB_PORTrequired Postgres port Default: 5432
DB_NAMErequired Postgres database name Default: memory_vault
DB_USERrequired Postgres user with read/write access to the memory vault database Default: memory_vault
DB_PASSWORDrequired secret Postgres password for DB_USER

Docker discovery passed

Requires Docker

Run in a terminal
claude mcp add memory-vault -e 'DB_HOST=<DB_HOST>' -e DB_NAME=memory_vault -e 'DB_PASSWORD=<DB_PASSWORD>' -e DB_PORT=5432 -e DB_USER=memory_vault -- docker run -i --rm -e DB_HOST -e DB_NAME -e DB_PASSWORD -e DB_PORT -e DB_USER ghcr.io/mihaibuilds/memory-vault-mcp:1.7.0
Add to claude_desktop_config.json
{
  "mcpServers": {
    "memory-vault": {
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "DB_HOST",
        "-e",
        "DB_NAME",
        "-e",
        "DB_PASSWORD",
        "-e",
        "DB_PORT",
        "-e",
        "DB_USER",
        "ghcr.io/mihaibuilds/memory-vault-mcp:1.7.0"
      ],
      "command": "docker",
      "env": {
        "DB_HOST": "<DB_HOST>",
        "DB_NAME": "memory_vault",
        "DB_PASSWORD": "<DB_PASSWORD>",
        "DB_PORT": "5432",
        "DB_USER": "memory_vault"
      }
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "memory-vault": {
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "DB_HOST",
        "-e",
        "DB_NAME",
        "-e",
        "DB_PASSWORD",
        "-e",
        "DB_PORT",
        "-e",
        "DB_USER",
        "ghcr.io/mihaibuilds/memory-vault-mcp:1.7.0"
      ],
      "command": "docker",
      "env": {
        "DB_HOST": "<DB_HOST>",
        "DB_NAME": "memory_vault",
        "DB_PASSWORD": "<DB_PASSWORD>",
        "DB_PORT": "5432",
        "DB_USER": "memory_vault"
      }
    }
  }
}
Add to .vscode/mcp.json
{
  "inputs": [
    {
      "description": "DB_HOST",
      "id": "db-host",
      "password": true,
      "type": "promptString"
    },
    {
      "description": "DB_NAME",
      "id": "db-name",
      "password": true,
      "type": "promptString"
    },
    {
      "description": "DB_PASSWORD",
      "id": "db-password",
      "password": true,
      "type": "promptString"
    },
    {
      "description": "DB_PORT",
      "id": "db-port",
      "password": true,
      "type": "promptString"
    },
    {
      "description": "DB_USER",
      "id": "db-user",
      "password": true,
      "type": "promptString"
    }
  ],
  "servers": {
    "memory-vault": {
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "DB_HOST",
        "-e",
        "DB_NAME",
        "-e",
        "DB_PASSWORD",
        "-e",
        "DB_PORT",
        "-e",
        "DB_USER",
        "ghcr.io/mihaibuilds/memory-vault-mcp:1.7.0"
      ],
      "command": "docker",
      "env": {
        "DB_HOST": "${input:db-host}",
        "DB_NAME": "${input:db-name}",
        "DB_PASSWORD": "${input:db-password}",
        "DB_PORT": "${input:db-port}",
        "DB_USER": "${input:db-user}"
      },
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.memory-vault]
command = "docker"
args = ["run", "-i", "--rm", "-e", "DB_HOST", "-e", "DB_NAME", "-e", "DB_PASSWORD", "-e", "DB_PORT", "-e", "DB_USER", "ghcr.io/mihaibuilds/memory-vault-mcp:1.7.0"]
env = { "DB_HOST" = "<DB_HOST>", "DB_NAME" = "memory_vault", "DB_PASSWORD" = "<DB_PASSWORD>", "DB_PORT" = "5432", "DB_USER" = "memory_vault" }

For AI agents

  1. Ask the user for: DB_HOST, DB_PORT, DB_NAME, DB_USER, DB_PASSWORD. Never invent or guess these values; secrets go into the client config, not into chat logs.
  2. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  3. Restart or reload the client so it starts the server.
  4. Verify: the server should expose these tools: recall, remember, forget, purge_forgotten, move_memory, memory_status.
  5. If it fails, check that the required runtime is installed (Docker) and that the values above are set.

Machine-readable: install.md · manifest.json