Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault

No arguments

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

Cryptographic tools that keep key material inside this server: generate or import a key to get a handle, then pass the handle to encrypt, decrypt, sign, KEM and KMS tools. No tool returns a private or secret key.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{}
prompts
{}
resources
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
crypto_generate_keyA

Generate a key inside the server: a classical (RSA, ECC, Ed25519) or post-quantum (ML-KEM 512/768/1024 FIPS 203, ML-DSA 44/65/87 FIPS 204) keypair, a 256-bit symmetric key, or an HMAC-SHA256 key. Returns a keyHandle and, for keypairs, the public key. Secret key material stays inside the server; only an opaque keyHandle is returned.

crypto_key_listA

List the key handles this server holds, with each key's type and public metadata. At most 64 keys are held; beyond that the least recently used key is destroyed.

crypto_key_destroyA

Destroy a key: overwrite its secret bytes where the runtime allows and invalidate its handle.

crypto_key_importA

Import an existing key from a file in the directory the server operator set in CRYPTO_MCP_KEY_DIR (disabled when it is unset). Reads an unencrypted PKCS#8 PEM private key (Ed25519, RSA 2048/3072/4096, ECDSA P-256/P-384/secp256k1; the type comes from the key) or a raw 32-byte key, as 32 binary bytes or 64 hex digits, imported as 'symmetric-256' (default) or 'hmac-sha256'. Files over 65536 bytes are refused. The key bytes never pass through the conversation. Secret key material stays inside the server; only an opaque keyHandle is returned.

crypto_inspect_keyB

Inspect and parse PEM certificate, public key, or OpenPGP armored block.

crypto_encryptA

Encrypt plaintext with authenticated encryption (AES-256-GCM or ChaCha20-Poly1305) under a symmetric-256 key handle. Without keyHandle, a new key is generated and its handle returned. Secret key material stays inside the server; only an opaque keyHandle is returned.

crypto_decryptB

Decrypt and authenticate an AES-256-GCM or ChaCha20-Poly1305 ciphertext with a symmetric-256 key handle.

crypto_kem_encapsulateA

Encapsulate a shared secret to an ML-KEM (FIPS 203) public key (512, 768, 1024). Returns the KEM ciphertext for the recipient and a symmetric-256 keyHandle for the shared secret, usable with crypto_encrypt. Secret key material stays inside the server; only an opaque keyHandle is returned.

crypto_kem_decapsulateA

Recover an ML-KEM shared secret with an ml-kem key handle (512, 768, 1024). Returns a symmetric-256 keyHandle for the shared secret. Secret key material stays inside the server; only an opaque keyHandle is returned.

crypto_hybrid_kem_encapsulateA

Encapsulate a shared secret using Post-Quantum Hybrid KEM (X25519 + ML-KEM, RFC 9180/10024). Returns the classical ephemeral public key, ML-KEM ciphertext, and a symmetric-256 keyHandle for the combined shared secret. Secret key material stays inside the server; only an opaque keyHandle is returned.

crypto_hybrid_kem_decapsulateB

Recover a Post-Quantum Hybrid KEM shared secret (X25519 + ML-KEM) using server-held x25519 and ml-kem key handles. Returns a symmetric-256 keyHandle for the combined shared secret. Secret key material stays inside the server; only an opaque keyHandle is returned.

crypto_stream_encryptB

Encrypt plaintext using post-quantum hybrid STREAM AEAD (X25519 + ML-KEM-768 + XChaCha20-Poly1305) with anti-truncation protection. Returns base64 ciphertext.

crypto_stream_decryptB

Decrypt a post-quantum hybrid STREAM AEAD ciphertext using server-held x25519 and ml-kem-768 key handles. Plaintext memory is wiped after decoding.

crypto_stream_multi_encryptA

Encrypt plaintext for multiple recipients using post-quantum hybrid STREAM AEAD (X25519 + ML-KEM-768 + XChaCha20-Poly1305) with anti-truncation framing. Returns base64 ciphertext.

crypto_stream_multi_decryptB

Decrypt a multi-recipient post-quantum hybrid STREAM AEAD ciphertext using server-held x25519 and ml-kem-768 key handles. Plaintext memory is wiped after decoding.

crypto_hybrid_kem_multi_encapsulateA

Encapsulate a symmetric key for multiple recipients using post-quantum hybrid KEM (X25519 + ML-KEM-768 + AES-256-GCM key wrapping). Returns recipient ciphertexts and a symmetric-256 keyHandle.

crypto_hybrid_kem_multi_decapsulateA

Decapsulate a multi-recipient post-quantum hybrid KEM key using server-held x25519 and ml-kem-768 key handles. Returns a symmetric-256 keyHandle for the recovered DEK.

crypto_signA

Sign data with a key handle. The algorithm follows the key: Ed25519, RSASSA-PSS (SHA-256), ECDSA (SHA-256; SHA-384 on P-384), ML-DSA (44, 65, 87, FIPS 204), or HMAC-SHA256.

crypto_verifyA

Verify a signature against a public key (SPKI PEM or ML-DSA hex) or a key handle (also HMAC-SHA256). Pass exactly one of publicKey or keyHandle.

crypto_hashC

Compute cryptographic digest (SHA-256, SHA-384, SHA-512, SHA3-256, BLAKE2b512).

crypto_kms_wrapA

Wrap the Data Encryption Key (DEK) a symmetric-256 key handle refers to under a Key Encryption Key held by a KMS provider. Only the 'local' provider is configured.

crypto_kms_unwrapA

Unwrap a DEK previously wrapped by crypto_kms_wrap in this server process into a symmetric-256 key handle. Only the 'local' provider is configured. Secret key material stays inside the server; only an opaque keyHandle is returned.

crypto_audit_cbomC

Generate a Cryptographic Bill of Materials (CBOM) inventory from cryptographic identifiers.

Prompts

Interactive templates invoked by user choice

NameDescription
pqc-migration-planGenerate a phased Post-Quantum Cryptography (PQC) migration roadmap tailored to an enterprise repository or architecture.
dora-compliance-checkGenerate a fiduciary audit checklist for DORA Articles 9 and 13 cryptographic resilience and CBOM tracking.

Resources

Contextual data attached and managed by the client

NameDescription
NIST Post-Quantum Cryptography Standards & ParametersSpecification parameters for FIPS 203 (ML-KEM), FIPS 204 (ML-DSA), FIPS 205 (SLH-DSA), and FIPS 206 (FN-DSA).
Cryptographic Algorithm Security & Deprecation MatrixComprehensive security strength, key size, and deprecation schedule for enterprise cryptography.