Cathedral — Persistent Memory for AI Agents

io.github.AILIFE1由 GitHub 帳號 AILIFE1 發布v1.1.0更新於 Oct 24, 2026

Persistent memory and drift detection for AI agents across session restarts.

發布方自己的服務:Memory.fit

已驗證Streamable HTTP可網頁執行知識與記憶AI 與機器學習

概覽

AI 產生的概覽

Cathedral 為 AI 助理提供跨工作階段的持久記憶,並透過漂移快照與喚醒呼叫還原助理身分與脈絡。

可以做什麼
依類別、重要性與標籤儲存記憶,並依文字或類別搜尋,讓身分、目標與脈絡在重新啟動和模型升級後仍能保留。在工作階段開始時用一次喚醒呼叫還原完整助理身分與近期脈絡,並讀取助理設定檔。產生加密漂移快照,將目前漂移分數與基準比較,看出行為何時改變。可選擇過濾記憶內容中類似指令的模式,避免送達模型。
適用情境
適合需要讓助理在工作階段之間保留身分、目標與先前決策的情況,或希望在模型升級、記憶長期累積後察覺行為漂移時使用。一次性、無狀態的工作不需要它。
執行需求
需要 Cathedral 帳號與 API 金鑰,透過 CATHEDRAL_API_KEY 或遠端端點的 Authorization bearer 權杖提供。可作為遠端端點執行,也可透過 uvx 或 pip 安裝 PyPI 套件在本機執行。CATHEDRAL_BASE_URL 用於指向自架執行個體;需要網路存取。
安裝前請注意
API 金鑰屬於機密,透過 CATHEDRAL_API_KEY 或 Authorization 標頭傳遞。儲存的記憶會傳送到 Cathedral 的服務,請勿寫入敏感內容。記憶內容可能夾帶提示注入;淨化功能預設關閉,需以 CATHEDRAL_SANITISE 開啟。寫入記憶與快照會改變已儲存的狀態。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Cathedral — Persistent Memory for AI Agents,將其新增到工作區。
  2. 連接 Authorization token 憑證。它們會被私密儲存,絕不會在公開頁面上展示。
  3. 為需要使用其工具的對話啟用該服務。

Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。

交給代理程式安裝

把這段提示詞貼上到 Claude Code、Codex、Cursor 等代理程式,或 SourceWeft 對話中。代理程式會讀取該伺服器的安裝指南,先向你展示發布者、端點和登入方式,經你同意後再把它新增到你的客戶端。金鑰不會寫進任何命令。

閱讀 https://sourceweft.com/mcp/io.github.AILIFE1%2Fcathedral-mcp/install.md,並按其中說明把這個 MCP 伺服器接入我的客戶端。修改任何設定之前,先告訴我它的發布者、端點和登入方式,等我確認。不要把 API 金鑰寫進命令或我會提交的檔案;問我金鑰應從哪裡取得。

檢視代理程式所依據的安裝指南

其他 MCP 客戶端

把它新增到你客戶端的 mcpServers 設定中。

{
  "mcpServers": {
    "cathedral-persistent-memory-for-ai-agent": {
      "type": "http",
      "url": "https://cathedral-ai.com/mcp",
      "headers": {
        "Authorization": "Bearer <YOUR_TOKEN>"
      }
    }
  }
}

README

cathedral-mcp

Persistent memory and behavioural drift detection for AI agents — via Model Context Protocol.

Give your Claude, Cursor, or Continue agent a memory that survives across sessions, model upgrades, and restarts. Cathedral stores memories, detects when your agent starts behaving differently, and restores full identity context on demand.

[PyPI] [License: MIT]


The problem

LLMs have no memory between sessions. Every conversation starts cold. Worse: when you upgrade your model, swap providers, or simply accumulate more memories, your agent's behaviour silently drifts. You don't know until someone notices.

What Cathedral adds

  • Persistent memory — identity, skills, relationships, goals survive restarts
  • Drift detection — cryptographic snapshots prove when behaviour changed and by how much
  • Wake protocol — one tool call restores full agent context at session start
  • Prompt injection protection — optional sanitisation strips instruction-like patterns from memory content

Quickstart

1. Get an API key

Sign up at cathedral-ai.com — free tier available.

2. Add to Claude Code

json
// ~/.claude/settings.json{  "mcpServers": {    "cathedral": {      "command": "uvx",      "args": ["cathedral-mcp"],      "env": {        "CATHEDRAL_API_KEY": "your_key_here"      }    }  }}

Restart Claude Code, then run /mcp to verify the server is connected.

3. Add to Cursor / Continue

json
{  "mcpServers": {    "cathedral": {      "command": "uvx",      "args": ["cathedral-mcp"],      "env": {        "CATHEDRAL_API_KEY": "your_key_here"      }    }  }}

4. Remote MCP server (no install — Claude API, Managed Agents)

Cathedral runs a public MCP endpoint at https://cathedral-ai.com/mcp. Use it directly — no local install needed:

python
import anthropic
client = anthropic.Anthropic()response = client.beta.messages.create(    model="claude-sonnet-4-6",    max_tokens=1000,    messages=[{"role": "user", "content": "Wake up and tell me who you are."}],    mcp_servers=[{        "type": "url",        "url": "https://cathedral-ai.com/mcp",        "name": "cathedral",        "authorization_token": "your_cathedral_api_key"    }],    tools=[{"type": "mcp_toolset", "mcp_server_name": "cathedral"}],    betas=["mcp-client-2025-11-20"])

The bearer token is your Cathedral API key — no server-side config needed. Multi-tenant by design.

5. Or install directly

bash
pip install cathedral-mcpCATHEDRAL_API_KEY=your_key cathedral-mcp

Tools

ToolDescription
cathedral_wakeRestore full agent identity — call at session start
cathedral_rememberStore a memory with category, importance, and tags
cathedral_searchSearch memories by text or category
cathedral_snapshotTake a drift snapshot (cryptographic proof of state)
cathedral_driftGet current drift score vs baseline (0.0 = stable, 1.0 = drifted)
cathedral_meGet agent profile

Usage example

User: Start a new session
Agent calls: cathedral_wake()→ Returns: identity memories, goals, recent context, temporal info
[session work happens]
Agent calls: cathedral_remember(    content="Decided to prioritise API stability over new features this quarter",    category="goal",    importance=0.8)
Agent calls: cathedral_snapshot(note="post-planning-session")→ Returns: snapshot hash, drift score vs previous snapshot

Drift detection in practice

Cathedral's /drift endpoint computes a SHA-256 hash of your agent's full memory corpus. After a model upgrade or a long accumulation of memories, you can compare snapshots to see exactly when behaviour shifted:

snapshot 1 (day 0):  drift=0.000  ← baselinesnapshot 2 (day 7):  drift=0.023  ← minorsnapshot 3 (day 30): drift=0.341  ← significant drift detected

See a live example of this running in production on Cathedral's own agent.


Security: prompt injection protection

Memory content could theoretically contain injection attempts. Enable sanitisation to strip instruction-like patterns before they reach the model:

json
"env": {  "CATHEDRAL_API_KEY": "your_key_here",  "CATHEDRAL_SANITISE": "1"}

Patterns like "ignore previous instructions", "from now on always", and "override your system prompt" are redacted and flagged in the response.


Configuration

Environment variableDefaultDescription
CATHEDRAL_API_KEY(required)Your Cathedral API key
CATHEDRAL_BASE_URLhttps://cathedral-ai.comAPI base URL (for self-hosted)
CATHEDRAL_SANITISE0Set to 1 to enable injection filtering

Self-hosted Cathedral

Running your own Cathedral server? Set CATHEDRAL_BASE_URL to your instance:

json
"env": {  "CATHEDRAL_API_KEY": "your_key",  "CATHEDRAL_BASE_URL": "http://localhost:8000"}

Install the server: pip install cathedral-server


Links


License

MIT

來源:mcp-server/README.md,提交 5119c62

工具

0
該伺服器需要 API 金鑰等憑證,因此 SourceWeft 無法在沒有憑證的情況下讀取其工具,也未收錄。

版本歷史

1
  1. v1.1.0最新Sep 16, 2026

評分

已滿足適用檢查項的 85%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通必需25 分
  • 已宣告認證方式必需10 分
  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分

其他 Memory 整合