Gives Claude direct access to Python's cryptography library through a comprehensive set of tools. You get symmetric encryption with Fernet and AES, asymmetric operations with RSA and X25519, standard hashing functions like SHA-256 and SHA-512, HMAC signing and verification, and key derivation through PBKDF2 and Scrypt. It also handles X.509 certificate generation and parsing, plus utilities for generating random bytes. Reach for this when you need Claude to perform cryptographic operations during a conversation without writing custom code, whether that's encrypting sensitive data, generating keys, signing messages, or working with certificates. All operations run locally through stdio transport.
MCP server exposing cryptography library functionality.
mcp-name: io.github.daedalus/mcp-cryptography
pip install mcp-cryptography
from mcp_cryptography import mcp
# Run the MCP server
if __name__ == "__main__":
mcp.run()
The server provides the following cryptographic tools:
generate_symmetric_key - Generate a Fernet symmetric keygenerate_rsa_key - Generate an RSA key pairgenerate_x25519_key - Generate an X25519 key pairfernet_encrypt / fernet_decrypt - Fernet encryptionaes_encrypt / aes_decrypt - AES encryption (CBC/GCM modes)rsa_encrypt / rsa_decrypt - RSA OAEP encryptionrsa_sign / rsa_verify - RSA digital signatureshash_sha256 - SHA-256 hashhash_sha512 - SHA-512 hashhash_sha1 - SHA-1 hashhmac_sign - Generate HMAChmac_verify - Verify HMACpbkdf2_derive - PBKDF2 key derivationscrypt_derive - Scrypt key derivationgenerate_self_signed_cert - Generate self-signed certificateparse_certificate - Parse X.509 certificategenerate_random_bytes - Generate random bytesgenerate_random_base64 - Generate random base64 bytesgit clone https://github.com/daedalus/mcp-cryptography.git
cd mcp-cryptography
pip install -e ".[test]"
# run tests
pytest
# format
ruff format src/ tests/
# lint
ruff check src/ tests/
# type check
mcp_cryptography src/