Skip to main content

MCP server exposing cryptography library functionality

Project description

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/

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mcp_cryptography-0.1.1.tar.gz (6.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mcp_cryptography-0.1.1-py3-none-any.whl (7.6 kB view details)

Uploaded Python 3

File details

Details for the file mcp_cryptography-0.1.1.tar.gz.

File metadata

  • Download URL: mcp_cryptography-0.1.1.tar.gz
  • Upload date:
  • Size: 6.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for mcp_cryptography-0.1.1.tar.gz
Algorithm Hash digest
SHA256 769cd8a77ca2ef71a35d71d4f8b43484578a4e8e59c06decbc357b34a3f9ace9
MD5 ac62f72484879c489b3fddb43a4a830e
BLAKE2b-256 6a03322da66ea1819597f31a30a80424c082c7f4d75da017906df3ce9553a1ca

See more details on using hashes here.

Provenance

The following attestation bundles were made for mcp_cryptography-0.1.1.tar.gz:

Publisher: pypi-publish.yml on daedalus/mcp-cryptography

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mcp_cryptography-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for mcp_cryptography-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a8e4edf330a1e60d470948a9ab66cf8b2e46eeb1fab76fc76ee7ca6986e41d73
MD5 bca8bb472917745ca989f0936329cbbc
BLAKE2b-256 6eb1690b15a8e45899117dc069643e3466f5b16ff19eb40d8de69fd22548d351

See more details on using hashes here.

Provenance

The following attestation bundles were made for mcp_cryptography-0.1.1-py3-none-any.whl:

Publisher: pypi-publish.yml on daedalus/mcp-cryptography

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page