Skip to content
appsgit

Memory Vault

Memory Vault is an MCP server that adds database tools to AI assistants such as Claude Desktop, Claude Code and Cursor. Local-first AI memory layer with hybrid search. It has 65 GitHub stars, is released under the MIT license and runs locally with docker run -i --rm -e DB_HOST -e DB_PORT -e DB_NAME -e DB_USER -e DB_PASSWORD ghcr.io/mihaibuilds/memory-vault-mcp:1.6.0.

github.com/MihaiBuilds/memory-vault (opens in a new tab)

Install Memory Vault

Generated from the server's MCP registry entry. Replace your-value with your own values.

Claude Desktop

claude_desktop_config.json
{
  "mcpServers": {
    "memory-vault": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "DB_HOST",
        "-e",
        "DB_PORT",
        "-e",
        "DB_NAME",
        "-e",
        "DB_USER",
        "-e",
        "DB_PASSWORD",
        "ghcr.io/mihaibuilds/memory-vault-mcp:1.6.0"
      ],
      "env": {
        "DB_HOST": "your-value",
        "DB_PORT": "your-value",
        "DB_NAME": "your-value",
        "DB_USER": "your-value",
        "DB_PASSWORD": "your-value"
      }
    }
  }
}

Settings > Developer > Edit Config. macOS: ~/Library/Application Support/Claude/, Windows: %APPDATA%\Claude\. Restart Claude Desktop afterwards.

Claude Code

claude mcp add --env DB_HOST=your-value --env DB_PORT=your-value --env DB_NAME=your-value --env DB_USER=your-value --env DB_PASSWORD=your-value --transport stdio memory-vault -- docker run -i --rm -e DB_HOST -e DB_PORT -e DB_NAME -e DB_USER -e DB_PASSWORD ghcr.io/mihaibuilds/memory-vault-mcp:1.6.0

Cursor

.cursor/mcp.json
{
  "mcpServers": {
    "memory-vault": {
      "type": "stdio",
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "DB_HOST",
        "-e",
        "DB_PORT",
        "-e",
        "DB_NAME",
        "-e",
        "DB_USER",
        "-e",
        "DB_PASSWORD",
        "ghcr.io/mihaibuilds/memory-vault-mcp:1.6.0"
      ],
      "env": {
        "DB_HOST": "your-value",
        "DB_PORT": "your-value",
        "DB_NAME": "your-value",
        "DB_USER": "your-value",
        "DB_PASSWORD": "your-value"
      }
    }
  }
}

Project file; use ~/.cursor/mcp.json to enable it in every project.

VS Code

.vscode/mcp.json
{
  "inputs": [
    {
      "type": "promptString",
      "id": "db_password",
      "description": "DB_PASSWORD",
      "password": true
    }
  ],
  "servers": {
    "memory-vault": {
      "type": "stdio",
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "DB_HOST",
        "-e",
        "DB_PORT",
        "-e",
        "DB_NAME",
        "-e",
        "DB_USER",
        "-e",
        "DB_PASSWORD",
        "ghcr.io/mihaibuilds/memory-vault-mcp:1.6.0"
      ],
      "env": {
        "DB_HOST": "your-value",
        "DB_PORT": "your-value",
        "DB_NAME": "your-value",
        "DB_USER": "your-value",
        "DB_PASSWORD": "${input:db_password}"
      }
    }
  }
}

Config formats checked against the official docs on Oct 7, 2026: modelcontextprotocol.io (opens in a new tab), code.claude.com (opens in a new tab), cursor.com (opens in a new tab), code.visualstudio.com (opens in a new tab).

Environment variables

Variables the server reads at startup.

NameRequiredDescription
DB_HOSTYesHostname of the Postgres+pgvector instance Memory Vault connects to (e.g. 'host.docker.internal' when Postgres runs on the host, 'localhost' when running…
DB_PORTYesPostgres port
DB_NAMEYesPostgres database name
DB_USERYesPostgres user with read/write access to the memory vault database
DB_PASSWORDsecretYesPostgres password for DB_USER

Tools (6)

Parsed from the Tools section of the README; check the repository for the current list.

  • recall

    Search memories with hybrid search (vector + full-text + RRF)

  • remember

    Store a new memory — auto-classified and embedded

  • forget

    Soft-delete a memory by chunk ID

  • purge_forgotten

    Permanently delete memories forgotten more than N days ago

  • move_memory

    Move a memory to another space, rebuilding its graph entries

  • memory_status

    Database health, chunk counts, embedding model info

About Memory Vault

The memory database for AI applications. Self-hosted Postgres + pgvector with hybrid search, MCP-native, and a knowledge graph baked in.

  • ai-memory
  • claude
  • hybrid-search
  • knowledge-graph
  • mcp
  • open-source
  • pgvector
  • postgres
  • rag
  • self-hosted

FAQ

Memory Vault FAQ

Still curious? Email info@appsgit.com.

What is Memory Vault?

Memory Vault is an MCP server that adds database tools to AI assistants such as Claude Desktop, Claude Code and Cursor. Local-first AI memory layer with hybrid search. It has 65 GitHub stars, is released under the MIT license and runs locally with docker run -i --rm -e DB_HOST -e DB_PORT -e DB_NAME -e DB_USER -e DB_PASSWORD ghcr.io/mihaibuilds/memory-vault-mcp:1.6.0. The source code is at github.com/MihaiBuilds/memory-vault.

How do I install the Memory Vault MCP server?

Add the command docker run -i --rm -e DB_HOST -e DB_PORT -e DB_NAME -e DB_USER -e DB_PASSWORD ghcr.io/mihaibuilds/memory-vault-mcp:1.6.0 to your MCP client: put it in claude_desktop_config.json for Claude Desktop, run claude mcp add for Claude Code, or add it to .cursor/mcp.json (Cursor) or .vscode/mcp.json (VS Code). The snippets on this page are ready to paste.

Is Memory Vault free?

The server is open source under the MIT license, so running it is free. It needs credentials (DB_PASSWORD) for the service it connects to, which may require a paid account.

Is Memory Vault actively maintained?

The most recent commit was on Sep 30, 2026. The latest release is v1.6.0, published Sep 10, 2026. appsgit only lists MCP servers with a commit in the last six months and re-checks every server daily.