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.0.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.0-py3-none-any.whl (7.6 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for mcp_cryptography-0.1.0.tar.gz
Algorithm Hash digest
SHA256 15dd58425ae96890653811df2d92b657bb888280a4c3c4213945f0915d26036b
MD5 0fb99dfd19fba2f85c0649455e66d9be
BLAKE2b-256 d5962a347e2d89a2175b5d94294af69c2115f15b787834a9e9cdffc84c2e54a3

See more details on using hashes here.

Provenance

The following attestation bundles were made for mcp_cryptography-0.1.0.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.0-py3-none-any.whl.

File metadata

File hashes

Hashes for mcp_cryptography-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 965e5fdbf84494a9024019f8158108c0966d8e76d55faa626b3dfe845729a454
MD5 0ad163f0a563e701023021884b4614fd
BLAKE2b-256 1cc1a15247c4bb23ff81af54c51e0d0adece1c6c827fe66530fa16b9731fb024

See more details on using hashes here.

Provenance

The following attestation bundles were made for mcp_cryptography-0.1.0-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