Citadel
What it does
Encrypted-first embedded database with vector search and agent memory, exposed as MCP tools
- Connects 在你的电脑上运行
- Account or key Needs CITADEL_KEY
- Category 搜索与 AI 记忆
安装
选择你使用的 AI 应用,然后复制设置。
通过 2/3 项检查 · 在你的电脑上运行
第一步:你用哪个 AI?
选择你用的应用,步骤会显示在下方。
可连接 Claude,但需要先准备
需要 Citadel 的密钥(在开发者网站创建) · 需要先在电脑上安装 Python (uv)(只需一次) · 仅限电脑上的 Claude 应用(Windows 或 Mac),网页和手机不可用
打开电脑版 Claude 应用的设置文件
SettingsDeveloperEdit Config
粘贴这些设置并保存文件
{ "mcpServers": { "citadeldb": { "command": "uvx", "args": [ "citadeldb-mcp", "--db", "your-value", "--embedder", "your-value" ], "env": { "CITADEL_KEY": "your-value" } } } }只把密钥粘贴到应用的输入框里,不要粘贴到聊天中或发给任何人
退出 Claude 再重新打开
试一试
用 Citadel 告诉我你能帮我做什么,然后做一件给我看✓ 如果 Claude 说正在使用 Citadel,或回答中出现 Citadel 的工具名称,就表示连接成功
菜单名称已于 2026年11月11日 对照 Anthropic 帮助页面核实 · 你的界面可能因版本略有不同
ChatGPT 暂时无法连接 Citadel
Citadel 需要安装在你的电脑上,而 ChatGPT 只能连接在网上运行的服务器
你可以改用这些方式
A · 使用能连接 Citadel 的应用
- 需要 Citadel 的密钥(在开发者网站创建) · 需要先在电脑上安装 Python (uv)(只需一次) · 仅限电脑上的 Claude 应用(Windows 或 Mac),网页和手机不可用
- 需要 Citadel 的密钥(在开发者网站创建) · 需要先在电脑上安装 Python (uv)(只需一次)
- 需要 Citadel 的密钥(在开发者网站创建) · 需要先在电脑上安装 Python (uv)(只需一次) · 没有一键按钮,需要粘贴设置并自行填写
- 需要 Citadel 的密钥(在开发者网站创建) · 需要先在电脑上安装 Python (uv)(只需一次) · 没有一键按钮,需要粘贴设置并自行填写
B · 搜索与 AI 记忆 类中能连接 ChatGPT 的其他服务器
从同类中使用较多的里挑选,仅限用地址即可连接、无需密钥的
- Context7✓ ChatGPT
- AIHOT✓ ChatGPT
- Sui Knowledge Base (kapa.ai)✓ ChatGPT
可连接 Claude Code,但需要先准备
需要 Citadel 的密钥(在开发者网站创建) · 需要先在电脑上安装 Python (uv)(只需一次)
打开终端
Mac:按 Command+空格,输入 Terminal · Windows:打开 PowerShell
粘贴这条命令并按 Enter
claude mcp add --scope user citadeldb --env CITADEL_KEY=your-value -- uvx citadeldb-mcp --db your-value --embedder your-value按 Enter 前,把“your-value”改成你的密钥
只把密钥粘贴到应用的输入框里,不要粘贴到聊天中或发给任何人
在 Claude Code 中输入 /mcp
应能看到 Citadel 在列表中并显示已连接
试一试
用 Citadel 告诉我你能帮我做什么,然后做一件给我看✓ 如果 Claude Code 说正在使用 Citadel,或回答中出现 Citadel 的工具名称,就表示连接成功
菜单名称已于 2026年11月11日 对照 Anthropic 帮助页面核实 · 你的界面可能因版本略有不同
可连接 Cursor,但需要先准备
需要 Citadel 的密钥(在开发者网站创建) · 需要先在电脑上安装 Python (uv)(只需一次) · 没有一键按钮,需要粘贴设置并自行填写
打开 Cursor 的 MCP 设置文件
~/.cursor/mcp.json
粘贴这些设置,填写空着的值并保存
{ "mcpServers": { "citadeldb": { "command": "uvx", "args": [ "citadeldb-mcp", "--db", "your-value", "--embedder", "your-value" ], "env": { "CITADEL_KEY": "your-value" } } } }填写你的密钥
在 Citadel 的设置中,CITADEL_KEY 还是空的,填入你的密钥并保存
只把密钥粘贴到应用的输入框里,不要粘贴到聊天中或发给任何人
在 Cursor 中以 Agent 模式打开 AI 聊天
试一试
用 Citadel 告诉我你能帮我做什么,然后做一件给我看✓ 如果 Cursor 说正在使用 Citadel,或回答中出现 Citadel 的工具名称,就表示连接成功
菜单名称已于 2026年11月11日 对照 Cursor 帮助页面核实 · 你的界面可能因版本略有不同
可连接 VS Code,但需要先准备
需要 Citadel 的密钥(在开发者网站创建) · 需要先在电脑上安装 Python (uv)(只需一次) · 没有一键按钮,需要粘贴设置并自行填写
打开 VS Code 的 MCP 设置文件
MCP: Open User Configuration
粘贴这些设置,填写空着的值并保存
{ "servers": { "citadeldb": { "type": "stdio", "command": "uvx", "args": [ "citadeldb-mcp", "--db", "your-value", "--embedder", "your-value" ], "env": { "CITADEL_KEY": "your-value" } } } }填写你的密钥
在 Citadel 的设置中,CITADEL_KEY 还是空的,填入你的密钥并保存
只把密钥粘贴到应用的输入框里,不要粘贴到聊天中或发给任何人
在 VS Code 中以 Agent 模式打开 AI 聊天
试一试
用 Citadel 告诉我你能帮我做什么,然后做一件给我看✓ 如果 VS Code 说正在使用 Citadel,或回答中出现 Citadel 的工具名称,就表示连接成功
菜单名称已于 2026年11月11日 对照 VS Code 帮助页面核实 · 你的界面可能因版本略有不同
开发者专用:终端命令和 JSON 设置
安装在电脑上
Claude Code
claude mcp add --scope user citadeldb --env CITADEL_KEY=your-value -- uvx citadeldb-mcp --db your-value --embedder your-valueClaude Desktop (claude_desktop_config.json)
{
"mcpServers": {
"citadeldb": {
"command": "uvx",
"args": [
"citadeldb-mcp",
"--db",
"your-value",
"--embedder",
"your-value"
],
"env": {
"CITADEL_KEY": "your-value"
}
}
}
}Cursor (~/.cursor/mcp.json)
{
"mcpServers": {
"citadeldb": {
"command": "uvx",
"args": [
"citadeldb-mcp",
"--db",
"your-value",
"--embedder",
"your-value"
],
"env": {
"CITADEL_KEY": "your-value"
}
}
}
}VS Code (mcp.json)
{
"servers": {
"citadeldb": {
"type": "stdio",
"command": "uvx",
"args": [
"citadeldb-mcp",
"--db",
"your-value",
"--embedder",
"your-value"
],
"env": {
"CITADEL_KEY": "your-value"
}
}
}
}需要你填写的值
CITADEL_KEY机密 必填 envPassphrase used to unlock the encrypted Citadel database
这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
一览
哪些应用可以使用它
依据这个服务器的连接方式和各应用自己的文档,检查于 2026年11月10日。
在你的电脑上运行,适用于
ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast
它能做什么
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
基础检查i
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月12日
- ! 注意
作者与仓库一致
发布者(citadeldb.dev)不是仓库所有者(yp3y5akh0v);可能是其他人代为上架的
- ✓ 通过
仍在维护
代码最后更新于上个月
- ✓ 通过
有许可证
使用 Apache-2.0
- – 不适用
端点有响应
它在你的电脑上运行,没有互联网端点
- – 不适用
使用 OAuth 登录
在你的电脑上运行,改用本地设置
- … 尚未检查
工具描述中没有隐藏指令
它在你的电脑上运行;我们只能读取互联网端点的工具列表
讨论
提问、分享技巧或报告无法使用。按“有帮助”数量排序。
用户评价
还没有评价
与“搜索与 AI 记忆”中的其他服务器比较i
- 星标数多于此分类中其他 5974 个服务器的 0%
- 发布到注册中心的时间比此分类中其他 5974 个服务器的 46% 更新
- 基础检查结果等于或优于此分类中其他 5974 个服务器的 47%
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
常见问题
Citadel 安全吗?
它在 3 项适用的基础检查中通过了 2 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
它需要哪些密钥或代码?
你需要填写:CITADEL_KEY
它在我的电脑上运行还是在云端?
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
它还在维护吗?
GitHub 仓库最后更新于上个月,最新版本(2.7.0)于上个月进入注册中心。
哪些应用可以使用它?
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Python (uv)。
有什么可以替代它?
同一分类中有:Context7, Codebase Memory, Ruflo
同类别的其他选择
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:↓ 每周下载量i★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
Codebase Memory
Codebase knowledge graph for AI agents — 162 languages, sub-ms queries, 99% fewer tokens.
作者的 README
打开 README
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
citadeldb-mcp
mcp-name: dev.citadeldb/mcp
Model Context Protocol (MCP) server for the Citadel encrypted memory engine. Gives any MCP client (Claude Desktop, an IDE, an agent) persistent, encrypted memory.
Memory lives in a local citadeldb-mem region: AES-256 encrypted at rest, per-atom sealed and HMAC-authenticated, recalled through a hybrid vector + keyword + recency + importance fusion over a PRISM approximate nearest-neighbor index, connected by a typed edge graph, and forgotten by destroying keys (cryptographic erasure).
Install
Run it with no install. For semantic recall, pull the recommended embedder and cross-encoder reranker once, then enable both:
uvx citadeldb-mcp pull e5-large
uvx citadeldb-mcp pull ms-marco-minilm
The pull commands do not open a vault. Before serving, set CITADEL_KEY to the vault passphrase (export CITADEL_KEY="your-passphrase" on macOS/Linux or $env:CITADEL_KEY = "your-passphrase" in PowerShell), then run:
uvx citadeldb-mcp --db memory.cdl --embedder e5-large --reranker ms-marco-minilm
e5-large + ms-marco-minilm is the recommended semantic-recall setup. See the memory benchmarks for measured configurations. Models are never downloaded automatically.
Built-in pulls use release-pinned Hugging Face revisions. Each complete snapshot is verified against compiled sizes and SHA-256 digests, then stored with a BLAKE3 manifest under / / /. A flat cache created by an earlier CitadelDB release is not trusted; run pull again to create the pinned snapshot. --model-dir and --reranker-dir remain explicit bring-your-own-artifact paths and bypass the managed-cache manifest. Citadel treats those directories as user-trusted and does not attest their contents.
Or install the command with pip install citadeldb-mcp or cargo install citadeldb-mcp, then wire it into Claude Desktop (claude_desktop_config.json):
{
"mcpServers": { "citadel": { "command": "citadeldb-mcp", "args": ["--db", "/absolute/path/to/memory.cdl", "--embedder", "e5-large", "--reranker", "ms-marco-minilm"], "env": { "CITADEL_KEY": "your-passphrase" } } } }
The server supports stateless MCP 2026-07-28 discovery and per-request metadata, plus the initialize-based 2025-11-25 and 2025-06-18 revisions for existing clients.
Tools (over a bounded, cancellable JSON-RPC 2.0 stdio transport):
mem_recall- hybrid retrieval (vector + keyword + recency + importance); filter by kind/payload, expand along the memory graph, override fusion weights, and optionally attach provenance (derived_from), per-hit integrity verdicts (attest), andresource_links to each hitmem_fetch- deterministic cursor-based listing of a kind (no embedding)mem_get- bounded exact-id batch retrieval in request order, with missing atoms marked explicitlymem_edges- cursor-based typed graph introspectionmem_profile- what the memory knows about a query: recall plus its graph neighborhoodmem_summarize- per-kind digest of a regionmem_verify- re-authenticate atoms off disk: per-atom integrity verdict (authentic / tampered / key_erased / missing / plaintext_unattested)mem_remember- store one atom with optional provenance and retry-safe idempotencymem_remember_batch- atomically store an ordered batch; every entry carries a distinct idempotency key, and a changed reuse rejects the whole batchmem_update- replace a stored atom's payload in place (preserves id, edges, and embedding)mem_link/mem_unlink- add or remove one exact typed edgemem_evolve- recompute an atom's neighbor links and stored importancemem_evict- selective forgetting by policy (cryptographic erasure on encrypted regions)mem_forget- forget atoms by id and return a verifiable erasure receipt; optionally erase their region-localderived_fromclosure atomically (cryptographic erasure on encrypted regions; immutable atoms require the protected-erasure opt-in)
The citadeldb-mcp binary reads the passphrase from CITADEL_KEY and serves one region (encrypted by default); only protocol messages go to stdout, diagnostics to stderr. --region-mode plaintext disables per-atom encryption and cryptographic erasure for that region; the database remains encrypted at rest. Erasure does not revoke plaintext exports or keys retained in pre-erasure backups or snapshots.
Every server invocation must select an embedder. The CPU Candle embedder is compiled into the standalone server's default build, including the citadeldb-mcp Python package; it is not included in the default citadeldb library wheel. Models are fetched only on explicit pull.
Embedder pull names: e5-large (recommended), e5-large-v2, bge-small, bge-base, bge-large, minilm. Reranker: ms-marco-minilm. Or point --model-dir at a compatible local checkpoint for the selected catalog pipeline, and build with --features cuda-embed to run on an NVIDIA GPU.
This crate is part of the Citadel workspace.
License
Apache-2.0