npm package: @ks1081/crypt-mcp
Description: A comprehensive Model Context Protocol server providing all known cryptographic tools and operations
Latest version: 1.0.0

# Crypto MCP Server

A comprehensive Model Context Protocol (MCP) server that provides all known cryptographic tools and operations. This server implements real cryptographic functions without simulations, using industry-standard libraries for security and performance.

## Features

### Hashing Algorithms
- MD5, SHA-1, SHA-256, SHA-384, SHA-512
- SHA-3 (224, 256, 384, 512 bits)
- Blake2 (blake2b, blake2s)
- RIPEMD-160
- HMAC with SHA-256, SHA-384, SHA-512

### Symmetric Encryption

- AES encryption/decryption with multiple modes (CBC, ECB, CFB, OFB, CTR)
- ChaCha20-Poly1305 authenticated encryption
- DES and Triple DES (3DES) encryption/decryption
- Blowfish, Twofish, Serpent, Camellia encryption/decryption
- CAST5, IDEA, RC2, RC4 encryption/decryption
- SM4 (Chinese standard), ARIA (Korean standard), SEED (Korean standard)
- Kuznyechik (Russian standard), Magma (Russian standard)
- Configurable padding (PKCS7, none)

### Asymmetric Encryption (RSA)

- Key pair generation
- Encryption/decryption
- Digital signatures (PKCS1, PSS padding)
- Signature verification

### Elliptic Curve Cryptography (ECC)

- Key pair generation (secp256r1, secp384r1, secp521r1, secp224r1, brainpoolP256r1, brainpoolP384r1, brainpoolP512r1)
- ECDSA signing and verification

### Edwards-curve Digital Signature Algorithm (EdDSA)

- Ed25519 key pair generation, signing, and verification

### X25519 Key Exchange

- Key pair generation
- Shared secret derivation

### secp256k1 (Bitcoin/Ethereum compatible)

- Key pair generation, signing, and verification

### Additional Hash Functions

- SHAKE128, SHAKE256 (extendable output functions)
- Whirlpool hash function

### Additional Block Ciphers

- Blowfish encryption/decryption
- Camellia encryption/decryption

### Key Derivation Functions

- PBKDF2 with configurable parameters
- HKDF (HMAC-based Key Derivation Function)
- scrypt with configurable cost parameters
- bcrypt with salt rounds
- Argon2 (Argon2i, Argon2d, Argon2id)
- Balloon hashing

### Message Authentication Codes (MAC)

- HMAC with SHA-256, SHA-384, SHA-512
- CMAC (Cipher-based Message Authentication Code)
- Poly1305
- GMAC (Galois Message Authentication Code)
- SipHash
- UMAC, VMAC
- SM3 MAC

### Diffie-Hellman Key Exchange

- Key pair generation
- Shared secret computation

### Random Number Generation

- Cryptographically secure random bytes

### Certificate Generation

- Self-signed X.509 certificates

## Installation

1. Install Node.js 18 or higher
2. Clone this repository
3. Run `npm install`
4. Run `npm run build`

## Usage

The server communicates via stdio and can be used with any MCP-compatible client.

### With VS Code (GitHub Copilot)

The server is automatically configured in `.vscode/mcp.json` for use with VS Code.

### Manual Usage

```bash
npm run build
npm start
```

## Security Note

This server provides powerful cryptographic tools. Use responsibly and ensure proper key management and security practices in your applications.

## License

MIT