About mcp-cryptography
mcp-cryptography is an MCP server that makes common cryptographic operations available to MCP clients. Its tools cover key generation, encryption, signatures, hashing, key derivation, certificates, and random data.
Key features
- 01Symmetric and RSA key generation
- 02Fernet and AES encryption
- 03RSA encryption and signatures
- 04SHA hashing and HMAC
- 05PBKDF2 and scrypt derivation
- 06X.509 certificate and random data tools
Use cases
- 01Generate keys for application workflows
- 02Encrypt or decrypt data with Fernet or AES
- 03Create and verify RSA signatures or HMACs
- 04Derive keys and inspect X.509 certificates
MCP support
Exposes cryptography tools to MCP clients, including key generation, encryption, signing, hashing, key derivation, certificate handling, and random data generation.
Configuration
Local server config is the same for every client. Copy it into your client’s MCP config file.
Tools
22Saved tool list · updated 2w ago
This tool takes no parameters.
Details
From the project READMEmcp-cryptography
MCP server exposing cryptography library functionality.
mcp-name: io.github.daedalus/mcp-cryptography
Install
pip install mcp-cryptography
Usage
from mcp_cryptography import mcp
# Run the MCP server
if __name__ == "__main__":
mcp.run()
Available Tools
The server provides the following cryptographic tools:
Key Generation
generate_symmetric_key- Generate a Fernet symmetric keygenerate_rsa_key- Generate an RSA key pairgenerate_x25519_key- Generate an X25519 key pair
Symmetric Encryption
fernet_encrypt/fernet_decrypt- Fernet encryptionaes_encrypt/aes_decrypt- AES encryption (CBC/GCM modes)
Asymmetric Encryption
rsa_encrypt/rsa_decrypt- RSA OAEP encryptionrsa_sign/rsa_verify- RSA digital signatures
Hashing
hash_sha256- SHA-256 hashhash_sha512- SHA-512 hashhash_sha1- SHA-1 hash
HMAC
hmac_sign- Generate HMAChmac_verify- Verify HMAC
Key Derivation
pbkdf2_derive- PBKDF2 key derivationscrypt_derive- Scrypt key derivation
X.509 Certificates
generate_self_signed_cert- Generate self-signed certificateparse_certificate- Parse X.509 certificate
Utilities
generate_random_bytes- Generate random bytesgenerate_random_base64- Generate random base64 bytes
Development
git 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/
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.