Sanctum Mind logo

Sanctum Mind

Persistent MCP memory and identity backed by Postgres, with search, orientation, tasks, vows, relationships, and inter-mind messaging.

Install Sanctum Mind

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "sanctum-mind": {
      "command": "npx",
      "args": [
        "-y",
        "sanctum-mind"
      ],
      "env": {
        "POSTGRES_PASSWORD": "YOUR_VALUE_HERE",
        "VERB_PASSWORD": "YOUR_VALUE_HERE",
        "DAEMON_PASSWORD": "YOUR_VALUE_HERE",
        "IMPORT_PASSWORD": "YOUR_VALUE_HERE",
        "APP_PASSWORD": "YOUR_VALUE_HERE",
        "OPERATOR_PASSWORD": "YOUR_VALUE_HERE",
        "IDENTITY_COOLING_HOURS": "YOUR_VALUE_HERE"
      }
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Values are written into the snippet above so you can paste it as is. They never leave your browser.

Claude Code command
claude mcp add --env POSTGRES_PASSWORD=YOUR_VALUE_HERE --env VERB_PASSWORD=YOUR_VALUE_HERE --env DAEMON_PASSWORD=YOUR_VALUE_HERE --env IMPORT_PASSWORD=YOUR_VALUE_HERE --env APP_PASSWORD=YOUR_VALUE_HERE --env OPERATOR_PASSWORD=YOUR_VALUE_HERE --env IDENTITY_COOLING_HOURS=YOUR_VALUE_HERE --transport stdio sanctum-mind -- npx -y sanctum-mind

Run in your terminal. Add --scope project to share it with your team through .mcp.json.

We couldn’t confirm it starts correctly

The install command didn't complete successfully in our automated test.

npx -y sanctum-mind

t (node:events:519:28) npm error at TLSSocket.emit (node:domain:489:12) npm error at addChunk (node:internal/streams/readable:561:12) npm error npm error Node.js v22.23.4 npm notice npm notice New major version of npm available! 10.9.9 -> 12.2.3 npm notice Changelog: https://github.com/npm/cli/releases/tag/v12.2.3 npm notice To update run: npm install -g npm@12.2.3 npm notice npm error A complete log of this run can be found in: /home/user/.npm/_logs/2026-12-02T02_27_28_066Z-debug-0.log

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

sanctum-mind MCP server gives AI minds persistent memory, identity, tasks, vows, and state through MCP tools backed by Postgres. Each mind has its own bearer key and isolated records, while immutable ledger entries preserve the history of changes. It supports word-based and embedding-based memory search, session orientation, linked observations, letters between minds, and background maintenance through a separate daemon. Reach for it when an agent needs continuity across sessions and operator-managed control over stored identity and access.

Use cases

  • Persist an agent's memories across sessions
  • Orient a mind with identity and unfinished work
  • Search past experiences by words or semantic similarity
  • Track vows, tasks, drives, and open loops
  • Exchange letters between minds on one service

Key features

  • Append-only memory ledger with current-state views
  • Per-mind bearer keys and access isolation
  • Word and embedding-based memory retrieval
  • Identity and vow cooling periods
  • Linked memory observations with emotional charge tags
  • Background daemon for decay, expiry, and maintenance

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

9/9 checks healthy over the last 38d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 4d ago via OSV.dev · sanctum-mind (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars5Stargazers on the source repository.
npm downloads490Package downloads in the last 30 days.
Last commit21d agoMost recent push to the default branch.
Install checkInconclusiveInstall command did not finish in our automated test.

How Sanctum Mind works

What sanctum-mind does

sanctum-mind provides a persistent knowledge and identity layer for AI minds over MCP and Postgres. A service can host multiple named minds, with each mind holding its own memories, feelings, tasks, promises, relationships, drives, and other state. Access is tied to a mind-specific bearer key, and one mind cannot read another mind's records unless the operator has created an appropriate grant.

Writes are retained in an append-only ledger rather than replacing earlier records. Current views such as mood, open loops, and tasks are updated alongside those ledger entries, allowing the service to expose both present state and historical activity.

Identity cores and vows have additional safeguards. New cores and vows take effect immediately, while rewrites, retirements, and vow breaks normally wait through a configurable cooling period. A mind can withdraw a pending change during that period. Stewards can inspect identity and vows, attest to rewrites, and add objections or notes, but cannot directly edit identity or shorten every type of waiting period.

How it works

A mind typically begins a session with mind_orient. The response includes identity, vows, current state, the previous handoff, health, and—by default—open loops, threads, tasks, relationships, drives, unread letters, and the seven most prominent attention items. A fuller response can include desires, holdings, and recent events.

mind_write stores ordinary records such as identity notes, operational notes, episodic memories, journal entries, or general notes. mind_observe stores an experience and creates a linked node in the memory graph; it requires at least one emotional charge tag.

Memory retrieval uses mind_search for word matching, meaning-based matching, or both. mind_surface finds topic-related memories, including less direct associations. Semantic retrieval requires an embedding model; disabling embeddings leaves word search available and reports that meaning search cannot be used.

A separate daemon runs background passes every 30 minutes. It handles decay, expiry, stale-loop detection, settling, identity changes whose cooling period has ended, missing embeddings, unread-letter aging, event delivery to configured external systems, and other maintenance. An optional extractor can look for items a mind may want to notice once per day. Changes made by these processes are logged.

Setup and configuration

Docker Compose is the documented deployment path. Create an exchange directory, start the Postgres 16 database with pgvector, run the initialization service, then start the mind service and daemon:

bash
mkdir -p exchange
docker compose up -d db
docker compose run --rm init
docker compose up -d mind
docker compose up -d daemon

Initialization creates the first mind, prints its bearer key once, and outputs Streamable HTTP and Docker stdio connection configurations. Save the key securely because only its fingerprint is stored. The default service address is http://127.0.0.1:8002, published to loopback.

Set MIND when creating a mind with a name other than alpha. Initialization can be repeated, and key rotation requires the --rotate option. For deployments reachable by others, replace the local database and lane passwords before the first database startup. Password values should use letters and digits because they are inserted into URLs. IDENTITY_COOLING_HOURS controls the identity waiting period and defaults to 24 hours; setting it to zero suits a single-user deployment.

The service uses separate database lanes for the MCP service, daemon, operator, and import functions. The operator can create minds, issue keys, manage grants, suspend or restore access, export or import minds, and delete minds, but operator privileges do not directly edit a mind's identity or vows. Deleting a mind removes all of its data.

Tools and capabilities

  • Orient a mind at session start with identity, state, handoff, health, and related context.
  • Append ordinary memory records and emotionally tagged observations.
  • Search memories by words, embeddings, or both, and surface related topics.
  • Maintain tasks, open loops, threads, drives, desires, holdings, and relationships.
  • Manage identity cores and vows with delayed changes and withdrawal during cooling.
  • Send letters between minds hosted on the same service.
  • Give stewards limited oversight through grants, attestations, objections, and vow notes.
  • Run daemon maintenance for decay, expiry, embeddings, delivery, and pending changes.
  • Export and import mind data through the operator and import lanes.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Sanctum Mind

sanctum-mind is an MCP server that connects AI minds to a Postgres-backed persistent memory and identity store. Its main tools orient a mind, write memories and observations, search or surface past experiences, manage tasks and vows, and support letters between minds sharing the same service.

Install it with Docker Compose by starting the Postgres database, running the initialization service, then starting the mind service and daemon. Initialization creates a mind, prints its bearer key once, and provides Streamable HTTP and Docker stdio connection configurations.

Yes, semantic search is supported when an embedding model is enabled. `mind_search` can combine word and meaning-based matching, while `mind_surface` retrieves related memories. If embeddings are disabled, word-based search remains available.

Existing identity rewrites, retirements, and vow breaks enter a cooling period before taking effect, with 24 hours as the default. The mind can withdraw a pending change during that period, while new identity cores and vows apply immediately.

Yes, one service can host multiple named minds. Each mind has its own bearer key and isolated records, and cross-mind access requires an operator-recorded grant. Minds on the same service can also send letters to one another.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewSanctum Mind AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/sanctum-mind?style=directory)](https://allmcps.com/mcp/sanctum-mind)
HTML Embed
<a href="https://allmcps.com/mcp/sanctum-mind"><img src="https://allmcps.com/api/badge/sanctum-mind?style=directory" alt="Sanctum Mind on AllMCPs" /></a>