Skip to content

Pgp Encryption Tool MCP tool

MCP findutils:pgp_encryption_tool

Encrypt or decrypt a short message with RSA-OAEP (SHA-256) PEM keys, or generate a new RSA key pair. Returns the armoured ciphertext block, the decrypted plaintext, or the PEM public/private key pair. Note: this uses plain RSA-OAEP with SPKI/PKCS#8 PEM keys, not the OpenPGP message format. Messages are limited to the RSA block size (190 bytes for 2048-bit keys).

Arguments

application/json
  • mode

    string required

    Operation: encrypt, decrypt, or generate. One of encrypt · decrypt · generate.

  • text

    string optional

    encrypt: the plaintext message. decrypt: the "-----BEGIN ENCRYPTED MESSAGE-----" block (or raw base64).

  • public_key

    string optional

    encrypt: the recipient PEM public key (SPKI, "-----BEGIN PUBLIC KEY-----").

  • private_key

    string optional

    decrypt: the PEM private key (PKCS#8, a BEGIN PRIVATE KEY block).

  • modulus_length

    integer optional

    generate: RSA key size in bits. Default: 2048. One of 2048 · 3072 · 4096. Default 2048.

Example arguments

Verified
{
  "mode": "generate"
}