crypto-mcp

MCP.Pizza Chef: 1595901624

Crypto-MCP is a Model Context Protocol server providing robust cryptographic services including AES encryption/decryption with multiple modes and padding options, hashing algorithms, and other cryptographic functions. It supports various input/output formats like base64 and hex, enabling secure data transformation and cryptographic operations within MCP-enabled environments for enhanced security workflows.

Use This MCP server To

Encrypt data using AES with multiple modes and padding options Decrypt AES-encrypted data in base64 or hex formats Generate cryptographic hashes for data integrity verification Support secure data transmission in MCP workflows Integrate cryptographic functions into AI-enhanced applications Convert encrypted data between base64 and hex formats Apply multiple padding schemes for encryption compatibility

README

Crypto_MCP Logo

Crypto_MCP

A Model Context Protocol (MCP) server for encrypting/decrypting/algorithm/hash

Version License Smithery Badge

๐Ÿ“ Description

A Model Context Protocol (MCP) server for encrypting/decrypting/algorithm/hash.

๐Ÿ“บ Demo

Demo

โœจ Features

  • Support AES encryption and decryption (128 bits)
    • Support mode: ECB, CBC, CFB, OFB, CTR
    • Support padding mode: Pkcs7, Iso97971, AnsiX923, Iso10126, ZeroPadding, NoPadding.
    • Support output format: base64, hex
    • Support input format: base64, hex
  • Support MD5, SHA1, SHA256, SHA384, SHA512, SHA224 algorithm
  • Support DES encryption and decryption (64 bits)
    • Support mode: ECB, CBC, CFB, OFB, CTR
    • Support padding mode: Pkcs7, Iso97971, AnsiX923, Iso10126, ZeroPadding, NoPadding.
  • Support Base64 encode and decode
  • Support Hex encode and decode

๐Ÿ”ฎ Comming Soon

  • Support more encryption and decryption algorithms

๐Ÿ“ฆ Installation

Installing via Smithery

To install Crypto_MCP for Claude Desktop automatically via Smithery:

npx -y @smithery/cli install @1595901624/crypto-mcp --client claude

Manual Installation

  1. Clone the Repository
git clone https://github.com/1595901624/crypto-mcp.git
  1. Install Dependencies
pnpm install
  1. Build the Project
pnpm run build
  1. Add to your Claude Desktop MCP settings file
{
   "mcpServers": {
    "crypto-mcp": {
      "command": "node",
      "args": ["path/to/crypto-mcp/build/index.js"],
      "disabled": false,
      "autoApprove": []
    }
  }
}

๐Ÿ”ง Usage

Available Tools

AES

  • aes_encrypt: Encrypt text with AES parameters:

    • text: The text to encrypt (Required)
    • key: The key to encrypt the text (optional, default is your-key-0123456)
    • padding: The padding mode (optional, default is Pkcs7)
    • outputFormat: The output format (optional, default is base64)
    • iv: The initialization vector (optional, default is your-iv-01234567)
    • mode: The mode to encrypt the text (optional, default is ECB)
  • aes_decrypt: Decrypt text with AES parameters:

    • text: The text to decrypt (Required)
    • key: The key to decrypt the text (optional, default is your-key-0123456)
    • padding: The padding mode (optional, default is Pkcs7)
    • inputFormat: The input format (optional, default is base64)
    • iv: The initialization vector (optional, default is your-iv-01234567)
    • mode: The mode to decrypt the text (optional, default is ECB)

Digest

  • md5: Calculate MD5 hash of a string parameters:

    • input: The input string to hash (Required)
  • sha1: Calculate SHA-1 hash of a string parameters:

    • input: The input string to hash (Required)
  • sha256: Calculate SHA-256 hash of a string parameters:

    • input: The input string to hash (Required)
  • sha384: Calculate SHA-384 hash of a string parameters:

    • input: The input string to hash (Required)
  • sha512: Calculate SHA-512 hash of a string parameters:

    • input: The input string to hash (Required)
  • sha224: Calculate SHA-224 hash of a string parameters:

    • input: The input string to hash (Required)

DES

  • des_encrypt: Encrypt text with DES parameters:

    • text: The text to encrypt (Required)
    • key: The key to encrypt the text (optional, default is your-key)
    • padding: The padding mode (optional, default is Pkcs7)
    • outputFormat: The output format (optional, default is base64)
    • iv: The initialization vector (optional, default is your-iv-)
    • mode: The mode to encrypt the text (optional, default is ECB)
  • des_decrypt: Decrypt text with DES parameters:

    • text: The text to decrypt (Required)
    • key: The key to decrypt the text (optional, default is your-key)
    • padding: The padding mode (optional, default is Pkcs7)
    • inputFormat: The input format (optional, default is base64)
    • iv: The initialization vector (optional, default is your-iv-)
    • mode: The mode to decrypt the text (optional, default is ECB)

Base64

  • base64_encode: Encode text to base64 parameters:

    • content: The text to encode (Required)
  • base64_decode: Decode base64 to text parameters:

    • content: The base64 text to decode (Required)

Hex

  • hex_encode: Encode text to hex parameters:

    • content: The text to encode (Required)
  • hex_decode: Decode hex to text parameters:

    • content: The hex text to decode (Required)

๐Ÿ“ Development

# Install dependencies
npm install

# Build the project
npm run build

# Development with auto-rebuild
npm run watch

๐Ÿ“ License

This project is licensed under the MIT License. See the LICENSE file for details.

crypto-mcp FAQ

How do I configure encryption modes in crypto-mcp?
You can select from ECB, CBC, CFB, OFB, and CTR modes for AES encryption to suit your security needs.
What padding modes does crypto-mcp support?
It supports Pkcs7, Iso97971, AnsiX923, Iso10126, ZeroPadding, and NoPadding for flexible encryption padding.
Can crypto-mcp handle different input and output formats?
Yes, it supports base64 and hex formats for both input and output data.
Is crypto-mcp limited to AES encryption only?
No, it also supports hashing and other cryptographic algorithms for comprehensive security.
How does crypto-mcp integrate with MCP clients?
It exposes cryptographic functions as MCP server endpoints accessible by MCP clients for secure operations.
What license governs crypto-mcp?
Crypto-mcp is licensed under the MIT license, allowing flexible use and modification.
Can crypto-mcp be used in real-time AI workflows?
Yes, it enables secure cryptographic operations within real-time MCP-enabled AI workflows.
Does crypto-mcp support multiple cryptographic algorithms?
Yes, beyond AES, it supports various hashing algorithms and cryptographic utilities.