Skip to main content
Glama
Crypto_MCP

Crypto_MCP

by 1595901624

📝 Description

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

Related MCP server: Filesystem MCP Server

📺 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.

Available Tools

14 tools
aes_decryptC

decrypt text with aes

Inputs: content (required), key, padding, inputFormat, +2 more.

aes_encryptC

encrypt text with aes

Inputs: content (required), key, padding, outputFormat, +2 more.

base64_decodeC

decode base64 to text

Inputs: content (required).

base64_encodeB

encode text to base64

Inputs: content (required).

des_decryptC

decrypt text with des

Inputs: content (required), key, iv, padding, +2 more.

des_encryptC

encrypt text with des

Inputs: content (required), key, iv, padding, +2 more.

hex_decodeC

decode hex to text

Inputs: content (required).

hex_encodeA

encode text to hex

Inputs: content (required).

md5A

Calculate MD5 hash of a string

Inputs: input (required).

sha1B

Calculate SHA-1 hash of a string

Inputs: input (required).

sha224B

Calculate SHA-224 hash of a string

Inputs: input (required).

sha256B

Calculate SHA-256 hash of a string

Inputs: input (required).

sha384B

Calculate SHA-384 hash of a string

Inputs: input (required).

sha512B

Calculate SHA-512 hash of a string

Inputs: input (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    C2.9/5.0

    Scored across 14 tools

    Disambiguation4/5

    Each tool targets a distinct algorithm or operation, and the encrypt/decrypt and encode/decode pairs are clearly separated. The six hash tools are all described similarly and overlap in purpose, though the algorithm name (md5, sha256, etc.) provides enough distinction.

    Naming Consistency3/5

    Encryption/encoding tools follow an algorithm_verb pattern (aes_encrypt, base64_decode, hex_encode), but hash tools are bare algorithm names (sha256, md5, sha384) with no verb, creating inconsistent conventions. The style is readable but not uniformly patterned.

    Tool Count4/5

    14 tools is within a reasonable range for a cryptography utility server. The count is slightly padded by six SHA/MD5 hash variants that could arguably be one parameterized tool, but it is still a well-scoped collection.

    Completeness3/5

    The set covers symmetric encryption, common hashes, and encodings, but misses common crypto operations like HMAC, digital signatures, asymmetric encryption, and key generation. These are notable gaps for a server with the broad name Crypto_MCP, though the included core operations are solid.

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      D
      maintenance
      A secure Model Context Protocol server that manages time-based operations using timing attack protection and timelock encryption, allowing for timed interval management and secure data storage.
      3
      -
    • A
      license
      Not graded
      quality
      D
      maintenance
      A Model Context Protocol server that provides file system operations, analysis, and manipulation capabilities through a standardized tool interface.
      6
      MIT
    • F
      license
      Not graded
      quality
      D
      maintenance
      A Model Context Protocol server built with Express.js that provides cryptographic tools including key pair generation, shared secret derivation, and message encryption/decryption.
      216
      -
    • F
      license
      Not graded
      quality
      Not graded
      maintenance
      A feature-rich Model Context Protocol server built with FastMCP that provides various tools including basic utilities, network services, file operations, encryption tools, and system information functions.
      1
      -