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 (keyword-only recall - works immediately, no downloads):

uvx citadeldb-mcp --db memory.cdl

For the best recall (recommended - this is the benchmark config): pull the semantic embedder and the cross-encoder reranker once, then enable both:

uvx citadeldb-mcp pull e5-large
uvx citadeldb-mcp pull ms-marco-minilm
uvx citadeldb-mcp --db memory.cdl --embedder e5-large --reranker ms-marco-minilm

e5-large + ms-marco-minilm is the highest-recall setup and the exact config behind the memory benchmark numbers. Models are never downloaded automatically.

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", "memory.cdl", "--embedder", "e5-large", "--reranker", "ms-marco-minilm"],
      "env": { "CITADEL_KEY": "your-passphrase" }
    }
  }
}

Tools (over a synchronous, hand-rolled 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 listing of a kind (no embedding)
  • mem_edges - 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 / mem_remember_batch - store atoms with payload, importance, TTL, immutability
  • mem_update - replace a stored atom's payload in place (preserves id, edges, and embedding)
  • mem_link - connect atoms with a typed edge
  • mem_evolve - recompute an atom's neighbor links and score
  • mem_evict - selective forgetting by policy (cryptographic erasure on encrypted regions)
  • mem_forget - forget atoms by id and return a verifiable erasure receipt (cryptographic erasure on encrypted regions; skips immutable atoms unless forced)

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.

Recall is keyword-only (a mock embedder) until you enable a semantic model. The (CPU) Candle embedder is compiled into the default build; models are fetched only on explicit pull, never automatically. e5-large + the ms-marco-minilm reranker (shown above) is the recommended, highest-recall setup.

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 local model directory for a fully offline setup, and build with --features cuda-embed to run on an NVIDIA GPU.

This crate is part of the Citadel workspace.

License

Apache-2.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

citadeldb_mcp-1.14.0.tar.gz (1.1 MB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

citadeldb_mcp-1.14.0-py3-none-win_amd64.whl (7.8 MB view details)

Uploaded Python 3Windows x86-64

citadeldb_mcp-1.14.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (7.5 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ x86-64

citadeldb_mcp-1.14.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (6.9 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ ARM64

citadeldb_mcp-1.14.0-py3-none-macosx_11_0_arm64.whl (6.7 MB view details)

Uploaded Python 3macOS 11.0+ ARM64

citadeldb_mcp-1.14.0-py3-none-macosx_10_12_x86_64.whl (7.3 MB view details)

Uploaded Python 3macOS 10.12+ x86-64

File details

Details for the file citadeldb_mcp-1.14.0.tar.gz.

File metadata

  • Download URL: citadeldb_mcp-1.14.0.tar.gz
  • Upload date:
  • Size: 1.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for citadeldb_mcp-1.14.0.tar.gz
Algorithm Hash digest
SHA256 709772ff2a7a9bfdb107ff045cbbe8892fad0fcbbadf2593c55c804a8b5eb52a
MD5 49e20a406f2ffc69266771064db42db5
BLAKE2b-256 a23add38eb59c72e32084eaf0b08913c0fa7b4b011541dbd25198e8c1dad2c0b

See more details on using hashes here.

Provenance

The following attestation bundles were made for citadeldb_mcp-1.14.0.tar.gz:

Publisher: release-mcp.yml on yp3y5akh0v/citadel

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file citadeldb_mcp-1.14.0-py3-none-win_amd64.whl.

File metadata

File hashes

Hashes for citadeldb_mcp-1.14.0-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 bd002ef8a4e8db367db3f214207e3261e391bf32bd8c3b0e1d0145bb7e82788f
MD5 e28cb9f2e7ebaab366c91979718e28b2
BLAKE2b-256 0a72e26b62859f819609f819a5b27f19adacb95e2a56df1ca35999b61f7f4fc8

See more details on using hashes here.

Provenance

The following attestation bundles were made for citadeldb_mcp-1.14.0-py3-none-win_amd64.whl:

Publisher: release-mcp.yml on yp3y5akh0v/citadel

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file citadeldb_mcp-1.14.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for citadeldb_mcp-1.14.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 4f5bb7dabc7e436a3b62f5564bb3a8a26e0e2abde264d521db7ef4b2026d7d94
MD5 8a08e528e15ee578b036df405bebd81f
BLAKE2b-256 cd99a79c0df3815aa43bbaae9868a85518cb37840904bc9a2698999de23cffa9

See more details on using hashes here.

Provenance

The following attestation bundles were made for citadeldb_mcp-1.14.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: release-mcp.yml on yp3y5akh0v/citadel

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file citadeldb_mcp-1.14.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for citadeldb_mcp-1.14.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 cadf8031fce5d238c8f54ed3e9269ef6687f5a0e7f0f42bcbfb65b7eb0faa9c3
MD5 b8f303f3803fe0d9fcc8e5c79284e139
BLAKE2b-256 400308f6a1c695033c56c0a3ad6a0132d8dfda9a8fa19695a0a6306ec9f91d1e

See more details on using hashes here.

Provenance

The following attestation bundles were made for citadeldb_mcp-1.14.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl:

Publisher: release-mcp.yml on yp3y5akh0v/citadel

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file citadeldb_mcp-1.14.0-py3-none-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for citadeldb_mcp-1.14.0-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b17a79868edd938fe7f6f880470171d7c19b70c465f48e1efdacf25c5cf5349a
MD5 7835be5d20709a731095778322fe1586
BLAKE2b-256 a3cb5c8be647911727efa3455318e4cb4a56e534ae3d3d3faf59dc243349ef73

See more details on using hashes here.

Provenance

The following attestation bundles were made for citadeldb_mcp-1.14.0-py3-none-macosx_11_0_arm64.whl:

Publisher: release-mcp.yml on yp3y5akh0v/citadel

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file citadeldb_mcp-1.14.0-py3-none-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for citadeldb_mcp-1.14.0-py3-none-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 73c467487c39cbe5c7dd85665bbc29e54f35438f9ba83f3c6b907aab84f6795f
MD5 1528d59ef403d65dc340909171294a36
BLAKE2b-256 ac94f8141b7bd0a2abb30393440067348282fc0a061ac4f3c0c991c1d2431e6f

See more details on using hashes here.

Provenance

The following attestation bundles were made for citadeldb_mcp-1.14.0-py3-none-macosx_10_12_x86_64.whl:

Publisher: release-mcp.yml on yp3y5akh0v/citadel

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page