# Hindsight MemPalace

> Hindsight MemPalace is an open-source MCP server. Self-hosted long-term memory for AI agents over MCP — hierarchical recall backed by pgvector. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Repository:** https://github.com/holetron/hindsight-mempalace
- **MCP Registry name:** io.github.holetron/hindsight-mempalace
- **Listing updated:** 2026-11-13

## About

Self-hosted long-term memory for AI agents over MCP — hierarchical recall backed by pgvector

## Install

### Claude Code (Terminal)

```sh
claude mcp add hindsight-mempalace -- npx -y hindsight-mempalace-mcp
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "hindsight-mempalace": {
      "command": "npx",
      "args": [
        "-y",
        "hindsight-mempalace-mcp"
      ]
    }
  }
}
```

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "hindsight-mempalace": {
      "command": "npx",
      "args": [
        "-y",
        "hindsight-mempalace-mcp"
      ]
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "hindsight-mempalace": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "hindsight-mempalace-mcp"
      ]
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "hindsight-mempalace": {
      "command": "npx",
      "args": [
        "-y",
        "hindsight-mempalace-mcp"
      ]
    }
  }
}
```

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "hindsight-mempalace": {
      "command": "npx",
      "args": [
        "-y",
        "hindsight-mempalace-mcp"
      ]
    }
  }
}
```

## FAQ

### Is Hindsight MemPalace free?

Yes. Hindsight MemPalace is open source, so you can use and self-host it for free.

### How do I add Hindsight MemPalace to Claude Code?

Run this command in your terminal: claude mcp add hindsight-mempalace -- npx -y hindsight-mempalace-mcp

## Where this comes from

- Description: from the official MCP Registry entry.
- Install steps: from the official MCP Registry entry.

---
Source: https://ai-powered.com/mcp/hindsight-mempalace
