Cathedral — Persistent Memory for AI Agents
概览
作者提供的说明(英文原文)
Persistent memory and drift detection for AI agents across session restarts.
PopNx MCP 的三大支柱
这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。
- 用户评价i暂无评价评价功能将在后续阶段与账户功能一起开放
- 我们的基础检查i1 项中通过 1 项依据公开信息检查;尚未扫描代码
- 使用情况i非常新↓ 26/周 · ★ –
它能帮你做什么
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
- 连接方式: 电脑或云端
- 传输方式: stdio, Streamable HTTP
- 分类: 搜索与 AI 记忆
- 你需要填写:CATHEDRAL_API_KEY, Authorization
安装
选择你使用的 AI 应用,然后复制设置。
安装之前
- 基础检查:1 项中通过 1 项
- 在作者的服务器上运行:你向它提出的内容会经过他们的服务器。
- 需要你自己填写:
CATHEDRAL_API_KEY,CATHEDRAL_BASE_URL,CATHEDRAL_SANITISE,Authorization
标为机密的值是你账户的钥匙。千万不要分享给别人,也不要粘贴到聊天里。
你需要
你用的是哪个应用?
在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。
这个地址需要在请求的 header 中放入密钥,而添加连接器的菜单无法设置。请改用 Claude Code、Cursor 或 VS Code。
或者在你的电脑上运行
打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json
{
"mcpServers": {
"cathedral": {
"command": "uvx",
"args": [
"cathedral-mcp"
],
"env": {
"CATHEDRAL_API_KEY": "your-value",
"CATHEDRAL_BASE_URL": "your-value",
"CATHEDRAL_SANITISE": "your-value"
}
}
}
}在终端中运行这条命令
claude mcp add --transport http cathedral https://cathedral-ai.com/mcp --header 'Authorization: Bearer {CATHEDRAL_API_KEY}'或者在你的电脑上运行
claude mcp add cathedral --env CATHEDRAL_API_KEY=your-value --env CATHEDRAL_BASE_URL=your-value --env CATHEDRAL_SANITISE=your-value -- uvx cathedral-mcp运行前请先填写空着的值。
或者自己复制设置
粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"cathedral": {
"url": "https://cathedral-ai.com/mcp",
"headers": {
"Authorization": "Bearer {CATHEDRAL_API_KEY}"
}
}
}
}或者在你的电脑上运行
或者自己复制设置
粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"cathedral": {
"command": "uvx",
"args": [
"cathedral-mcp"
],
"env": {
"CATHEDRAL_API_KEY": "your-value",
"CATHEDRAL_BASE_URL": "your-value",
"CATHEDRAL_SANITISE": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
或者自己复制设置
粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"cathedral": {
"type": "http",
"url": "https://cathedral-ai.com/mcp",
"headers": {
"Authorization": "Bearer {CATHEDRAL_API_KEY}"
}
}
}
}或者在你的电脑上运行
或者自己复制设置
粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"cathedral": {
"type": "stdio",
"command": "uvx",
"args": [
"cathedral-mcp"
],
"env": {
"CATHEDRAL_API_KEY": "your-value",
"CATHEDRAL_BASE_URL": "your-value",
"CATHEDRAL_SANITISE": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
这个地址需要在请求的 header 中放入密钥,而添加连接器的菜单无法设置。请改用 Claude Code、Cursor 或 VS Code。
你的选择通过 Cookie 保存在这台设备上,无需账户。
需要你填写的值
- Your Cathedral API key from cathedral-ai.com
CATHEDRAL_BASE_URLenvCathedral API base URL (for self-hosted instances)CATHEDRAL_SANITISEenvSet to 1 to enable prompt injection filtering on memory contentAuthorization机密 HTTP header
这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
它能做什么
我们还没有读取这个服务器的工具列表;我们会轮流检查各个端点。
基础检查i
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月8日
- ✓ 通过
作者与仓库一致
注册名称已通过 GitHub 账户 AILIFE1 验证,该账户拥有此仓库
- … 尚未检查
仍在维护
我们还没有从 GitHub 读取这个仓库
- … 尚未检查
有许可证
我们还没有从 GitHub 读取这个仓库
- … 尚未检查
端点有响应
尚未检查;我们会轮流检查各个端点
- … 尚未检查
使用 OAuth 登录
尚未检查;我们会轮流检查各个端点
- … 尚未检查
工具描述中没有隐藏指令
尚未检查;我们会在检查端点时读取工具列表
与“搜索与 AI 记忆”中的其他服务器比较i
- 星标数多于此分类中其他 5694 个服务器的 0%
- 发布到注册中心的时间比此分类中其他 5694 个服务器的 9% 更新
- 基础检查结果等于或优于此分类中其他 5694 个服务器的 100%
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
常见问题
Cathedral — Persistent Memory for AI Agents 安全吗?
它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
它需要哪些密钥或代码?
你需要填写:CATHEDRAL_API_KEY, Authorization
它在我的电脑上运行还是在云端?
两种方式都可以:安装在你的电脑上,或者连接云端版本。
它还在维护吗?
GitHub 仓库最后更新于–,最新版本(1.1.0)于7个月前进入注册中心。
哪些应用可以使用它?
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。它通过 URL 连接,所以接受远程 MCP 服务器的应用也可以使用,例如开启开发者模式的 ChatGPT。
有什么可以替代它?
同一分类中有:Context7, Codebase Memory, Exa
替代选择
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:↓ 每周下载量i★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
Codebase Memory
Codebase knowledge graph for AI agents — 162 languages, sub-ms queries, 99% fewer tokens.
Exa
Connect AI agents to Exa for web search, content fetching, and multi-step research.
作者的 README
打开 README
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
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.
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
// ~/.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
{
"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:
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
pip install cathedral-mcp
CATHEDRAL_API_KEY=your_key cathedral-mcp
Tools
| Tool | Description |
|---|---|
cathedral_wake | Restore full agent identity — call at session start |
cathedral_remember | Store a memory with category, importance, and tags |
cathedral_search | Search memories by text or category |
cathedral_snapshot | Take a drift snapshot (cryptographic proof of state) |
cathedral_drift | Get current drift score vs baseline (0.0 = stable, 1.0 = drifted) |
cathedral_me | Get 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 ← baseline
snapshot 2 (day 7): drift=0.023 ← minor snapshot 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:
"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 variable | Default | Description |
|---|---|---|
CATHEDRAL_API_KEY | *(required)* | Your Cathedral API key |
CATHEDRAL_BASE_URL | https://cathedral-ai.com | API base URL (for self-hosted) |
CATHEDRAL_SANITISE | 0 | Set to 1 to enable injection filtering |
Self-hosted Cathedral
Running your own Cathedral server? Set CATHEDRAL_BASE_URL to your instance:
"env": {
"CATHEDRAL_API_KEY": "your_key", "CATHEDRAL_BASE_URL": "http://localhost:8000" }
Install the server: pip install cathedral-server
Links
- cathedral-ai.com — homepage and API docs
- Live demo — Cathedral's own agent running in production
- PyPI: cathedral-memory — Python SDK
- npm: cathedral-memory — JavaScript/TypeScript SDK
- GitHub — source and examples
License
MIT