Skip to main content

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 <models-dir>/<name>/<revision>/. 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), and resource_links to each hit
  • mem_fetch - deterministic cursor-based listing of a kind (no embedding)
  • mem_get - bounded exact-id batch retrieval in request order, with missing atoms marked explicitly
  • mem_edges - cursor-based typed graph introspection
  • mem_profile - what the memory knows about a query: recall plus its graph neighborhood
  • mem_summarize - per-kind digest of a region
  • mem_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 idempotency
  • mem_remember_batch - atomically store an ordered batch; every entry carries a distinct idempotency key, and a changed reuse rejects the whole batch
  • mem_update - replace a stored atom's payload in place (preserves id, edges, and embedding)
  • mem_link / mem_unlink - add or remove one exact typed edge
  • mem_evolve - recompute an atom's neighbor links and stored importance
  • mem_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-local derived_from closure 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

Metadata

Release files for citadeldb-mcp 2.7.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for citadeldb-mcp 2.7.0
File Size Uploaded
citadeldb_mcp-2.7.0.tar.gz 2.3 MB Details

Built distributions (wheels)

Table of built distributions (wheels) for citadeldb-mcp 2.7.0
File
citadeldb_mcp-2.7.0-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details
citadeldb_mcp-2.7.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl Python 3 none Linux glibc 2.17+ x86-64 Details
citadeldb_mcp-2.7.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl Python 3 none Linux glibc 2.17+ ARM64 Details
citadeldb_mcp-2.7.0-py3-none-macosx_11_0_arm64.whl Python 3 none macOS 11.0+ ARM64 Details
citadeldb_mcp-2.7.0-py3-none-macosx_10_12_x86_64.whl Python 3 none macOS 10.12+ x86-64 Details

Total release size: 44.6 MB

Release files / citadeldb_mcp-2.7.0.tar.gz

Download URL citadeldb_mcp-2.7.0.tar.gz
Size 2.3 MB
Tags Source
SHA-256 checksum
How to use checksums
25fd3c0a96227b9f422c8a4dbb697f5a25df9e3dfbf24b024859274f95c6c47f
BLAKE2b-256 checksum
How to use checksums
78cb3d7dc38560a3d071b1d52c2770376c05141b319966f666f4ee29b3decf7c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 28, 2026.

Transparency log

Release files / citadeldb_mcp-2.7.0-py3-none-win_amd64.whl

Download URL citadeldb_mcp-2.7.0-py3-none-win_amd64.whl
Size 9.1 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
2cd2250b0d497b2e7401f6f0de8867dabad554bc683f4dab8841df5b34941ee0
BLAKE2b-256 checksum
How to use checksums
7e5eb03c729716f3dd9a80c82b45c0acac176cade6f4688304f9ef5843e1357e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 28, 2026.

Transparency log

Release files / citadeldb_mcp-2.7.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL citadeldb_mcp-2.7.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 8.8 MB
Tags Linux glibc 2.17+ x86-64 Python 3
SHA-256 checksum
How to use checksums
a4eb2fc56d090fd6d5b5e26951f7e3444199220bba300cb0db87d37395dfc3ae
BLAKE2b-256 checksum
How to use checksums
2a8a10fe423d9410f25c3efb6194387fc01fe73c86577ed257f1994319c2ea7b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 28, 2026.

Transparency log

Release files / citadeldb_mcp-2.7.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL citadeldb_mcp-2.7.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 8.1 MB
Tags Linux glibc 2.17+ ARM64 Python 3
SHA-256 checksum
How to use checksums
b2ad35d14b5ae059ec5d712e981c89f55f304bd5b01dd9c72fe144cda2b583ae
BLAKE2b-256 checksum
How to use checksums
62f55644d3603125b1ab45e17d48658a158170f13113bfd0c52b27fd10436f3c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 28, 2026.

Transparency log

Release files / citadeldb_mcp-2.7.0-py3-none-macosx_11_0_arm64.whl

Download URL citadeldb_mcp-2.7.0-py3-none-macosx_11_0_arm64.whl
Size 7.8 MB
Tags Python 3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
76a2dbdfb622457fecd036fc005ac65aba0ba8740032489b33458819b3ac5f98
BLAKE2b-256 checksum
How to use checksums
5639c385d8d44e9fec74cb64fcd507f6b02990a18704bd5ff7e38cb28e0ced56
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 28, 2026.

Transparency log

Release files / citadeldb_mcp-2.7.0-py3-none-macosx_10_12_x86_64.whl

Download URL citadeldb_mcp-2.7.0-py3-none-macosx_10_12_x86_64.whl
Size 8.6 MB
Tags Python 3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
5e77eb0d3198dcc3b4888b35d49898155e031d4f4717aaf6a1f826318aa2f9a2
BLAKE2b-256 checksum
How to use checksums
dfad21b58effe91b12248d33977e237a3988eafcd579b1e72b9ae883d1429af7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 28, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

2.7.0 This release

6 release files

2.6.1

6 release files

2.6.0

6 release files

2.5.0

6 release files

2.4.0

6 release files

2.3.0

6 release files

2.2.0

6 release files

2.1.0

6 release files

2.0.0

6 release files

1.15.0

6 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page