Skip to main content

mcp-cryptography

MCP server exposing cryptography library functionality.

PyPI Python Ruff

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 key
  • generate_rsa_key - Generate an RSA key pair
  • generate_x25519_key - Generate an X25519 key pair

Symmetric Encryption

  • fernet_encrypt / fernet_decrypt - Fernet encryption
  • aes_encrypt / aes_decrypt - AES encryption (CBC/GCM modes)

Asymmetric Encryption

  • rsa_encrypt / rsa_decrypt - RSA OAEP encryption
  • rsa_sign / rsa_verify - RSA digital signatures

Hashing

  • hash_sha256 - SHA-256 hash
  • hash_sha512 - SHA-512 hash
  • hash_sha1 - SHA-1 hash

HMAC

  • hmac_sign - Generate HMAC
  • hmac_verify - Verify HMAC

Key Derivation

  • pbkdf2_derive - PBKDF2 key derivation
  • scrypt_derive - Scrypt key derivation

X.509 Certificates

  • generate_self_signed_cert - Generate self-signed certificate
  • parse_certificate - Parse X.509 certificate

Utilities

  • generate_random_bytes - Generate random bytes
  • generate_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/

Release files for mcp-cryptography 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mcp-cryptography 0.1.1
File Size Uploaded
mcp_cryptography-0.1.1.tar.gz 6.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for mcp-cryptography 0.1.1
File Interpreter ABI Platform
mcp_cryptography-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 14.3 kB

Release files / mcp_cryptography-0.1.1.tar.gz

Download URL mcp_cryptography-0.1.1.tar.gz
Size 6.7 kB
Tags Source
SHA-256 checksum
How to use checksums
769cd8a77ca2ef71a35d71d4f8b43484578a4e8e59c06decbc357b34a3f9ace9
BLAKE2b-256 checksum
How to use checksums
6a03322da66ea1819597f31a30a80424c082c7f4d75da017906df3ce9553a1ca
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Apr 9, 2026.

Transparency log

Release files / mcp_cryptography-0.1.1-py3-none-any.whl

Download URL mcp_cryptography-0.1.1-py3-none-any.whl
Size 7.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a8e4edf330a1e60d470948a9ab66cf8b2e46eeb1fab76fc76ee7ca6986e41d73
BLAKE2b-256 checksum
How to use checksums
6eb1690b15a8e45899117dc069643e3466f5b16ff19eb40d8de69fd22548d351
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Apr 9, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page