cryptography MCP server
✓ VerifiedEnables an AI client to perform cryptographic operations including key generation, symmetric and asymmetric encryption, hashing, and certificate management.
Also known as daedalus/mcp-cryptography
- Stars
- 1
- Tools
- 14
- Downloads, 30 days
- 158
- Latest version
- 0.1.1
- Last commit
- Jun 23, 2026
- License
- MIT
What is cryptography MCP?
cryptography enables an AI client to perform cryptographic operations including key generation, symmetric and asymmetric encryption, hashing, and certificate management. It exposes 14 tools, such as generate_symmetric_key, generate_rsa_key, generate_x25519_key.
Summary generated from the project's README
About cryptography MCP server
Performing cryptographic operations like key generation, encryption, and hashing directly from an AI client is what mcp-cryptography enables. Developers can integrate this server into their local environments using pip to provide their AI models with specialized security tools. It functions as a local bridge that allows an AI to handle sensitive mathematical tasks without needing external web services.
The server provides a wide range of specific tools including Fernet and AES symmetric encryption, RSA OAEP asymmetric encryption, and digital signatures. It also supports various hashing algorithms such as SHA-256, SHA-512, and SHA-1. Beyond simple encryption, the server manages X.509 certificates through self-signed generation and parsing, and handles key derivation using PBKDF2 or Scrypt. This makes it a versatile utility for developers building security-focused AI workflows.
What you can do with it
- 1Secure data encryptionAsk the AI to encrypt a sensitive string using AES in GCM mode or Fernet.
- 2Digital signature verificationHave the AI verify the authenticity of a message using RSA digital signatures.
- 3Cryptographic hash generationRequest the AI to generate a SHA-256 hash for a specific piece of data.
- 4Certificate managementInstruct the AI to create a self-signed X.509 certificate for testing purposes.
Written from the project's README. Every use case is checked against a quote from it.
How to install cryptography MCP
Formats verified 10 Nov 2026Add to CursorAdd to GooseInstall cryptography MCP in Claude Code
$ claude mcp add mcp-cryptography -- uvx mcp-cryptographyInstall cryptography MCP in Cursor
~/.cursor/mcp.json
{
"mcpServers": {
"mcp-cryptography": {
"command": "uvx",
"args": [
"mcp-cryptography"
]
}
}
}Install cryptography MCP in VS Code
.vscode/mcp.json
{
"servers": {
"mcp-cryptography": {
"type": "stdio",
"command": "uvx",
"args": [
"mcp-cryptography"
]
}
}
}Install cryptography MCP in VS Code CLI
$ code --add-mcp '{"name":"mcp-cryptography","type":"stdio","command":"uvx","args":["mcp-cryptography"]}'Install cryptography MCP in Claude Desktop
claude_desktop_config.json
{
"mcpServers": {
"mcp-cryptography": {
"command": "uvx",
"args": [
"mcp-cryptography"
]
}
}
}Install cryptography MCP in Codex
$ codex mcp add mcp-cryptography -- uvx mcp-cryptographyInstall cryptography MCP in Codex config.toml
~/.codex/config.toml
[mcp_servers.mcp-cryptography] command = "uvx" args = ["mcp-cryptography"]
Install cryptography MCP in Gemini CLI
$ gemini mcp add -s user mcp-cryptography uvx -- mcp-cryptographyInstall cryptography MCP in Gemini settings.json
~/.gemini/settings.json
{
"mcpServers": {
"mcp-cryptography": {
"command": "uvx",
"args": [
"mcp-cryptography"
]
}
}
}cryptography MCP tools 14
Detected from the READMEgenerate_symmetric_keygenerate_rsa_keygenerate_x25519_keyhash_sha256hash_sha512hash_sha1hmac_signhmac_verifypbkdf2_derivescrypt_derivegenerate_self_signed_certparse_certificate
| generate_symmetric_key | — | |
| generate_rsa_key | — | |
| generate_x25519_key | — | |
| hash_sha256 | — | |
| hash_sha512 | — | |
| hash_sha1 | — | |
| hmac_sign | — | |
| hmac_verify | — | |
| pbkdf2_derive | — | |
| scrypt_derive | — | |
| generate_self_signed_cert | — | |
| parse_certificate | — |
Show all 14 toolsShow fewer tools
generate_random_bytesgenerate_random_base64
| generate_random_bytes | — | |
| generate_random_base64 | — |
Automated checks
Ran Nov 15, 2026Full report →Passed our automated checks. That is not a security audit: read the code and give the server the narrowest access it needs. How checks work
- Source repository linked and reachabledaedalus/mcp-cryptography is public and reachablegithub.com/daedalus/mcp-cryptography ↗Pass
- Package names this repository as its sourcemcp-cryptography names daedalus/mcp-cryptography as sourcepypi.org/project/mcp-cryptography/ ↗Pass
- Build provenance (Sigstore attestation)Sigstore attestation for mcp-cryptographypypi.org/project/mcp-cryptography/ ↗Pass
- Open source license (OSI)MITspdx.org/licenses/MIT.html ↗Pass
- Commit or release in the last yearLast commit or release 2026-06-23github.com/daedalus/mcp-cryptography ↗Pass
- OpenSSF ScorecardNot checked
- Package name not close to a popular packageNo popular package one edit away from mcp-cryptographyPass
- No critical advisory in the package or its dependencies63 resolved dependencies checked; no critical advisoryosv.dev ↗Pass
- No hidden instructions to the model14 tool descriptions and the README read; no override phrases, credential paths or hidden charactersPass
- Destructive tools are labelledNo tool named like delete, drop or execPass
- Remote endpoint answers the MCP handshakeNot checked
README
View on GitHubmcp-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/
cryptography MCP questions
How do I add cryptography MCP to Claude Code?
Run claude mcp add mcp-cryptography -- uvx mcp-cryptography in your terminal. Add --scope user to make it available in every project.
How do I add cryptography MCP to Cursor?
Open ~/.cursor/mcp.json and add the server under mcpServers, using the Cursor config shown in the install section above.
What tools does cryptography MCP provide?
It exposes 14 tools, including generate_symmetric_key, generate_rsa_key, generate_x25519_key, hash_sha256, hash_sha512.
What types of keys can be generated?
The server can generate Fernet symmetric keys, RSA key pairs, and X25519 key pairs.
Does it support symmetric encryption?
Yes, it supports Fernet encryption and AES encryption in both CBC and GCM modes.
Can it handle X.509 certificates?
Yes, the server can generate self-signed certificates and parse existing X.509 certificates.