About mcp-hashlib
mcp-hashlib exposes Python hashlib operations to LLMs through an MCP server, including digest algorithms, key derivation, and incremental hashing.
Key features
- 01Multiple hash algorithms
- 02PBKDF2-HMAC and scrypt derivation
- 03File-like object hashing
- 04Incremental hashing and hash copying
- 05Algorithm information and properties
Use cases
- 01Compute a digest for supplied data
- 02Derive keys with PBKDF2-HMAC or scrypt
MCP support
The MCP server exposes hashlib functions as tools for MCP clients, including hashing, key derivation, and algorithm inspection.
Configuration
Local server config is the same for every client. Copy it into your client’s MCP config file.
Tools
22Saved tool list · updated 2w ago
| Parameter | Type | Required | Description |
|---|---|---|---|
| data | string | Yes | |
| usedforsecurity | boolean | No |
Details
From the project READMEmcp-hashlib
An MCP server that exposes hashlib functionality to LLMs.
mcp-name: io.github.daedalus/mcp-hashlib
Install
pip install mcp-hashlib
Usage
from mcp_hashlib import mcp, main
Available Tools
The MCP server exposes the following hashlib functions:
hash_md5- MD5 hashhash_sha1- SHA1 hashhash_sha256- SHA256 hashhash_sha512- SHA512 hashhash_sha224- SHA224 hashhash_sha384- SHA384 hashhash_sha3_224- SHA3-224 hashhash_sha3_256- SHA3-256 hashhash_sha3_384- SHA3-384 hashhash_sha3_512- SHA3-512 hashhash_blake2b- BLAKE2b hash (512-bit)hash_blake2s- BLAKE2s hash (256-bit)hash_shake_128- SHAKE-128 XOF hashhash_shake_256- SHAKE-256 XOF hashhash_pbkdf2_hmac- PBKDF2-HMAC key derivationhash_scrypt- Scrypt key derivationhash_file_digest- Hash file-like objecthash_new- Create hash with any available algorithmhash_info- Get algorithm infohash_update- Incremental hashinghash_copy- Copy hash objecthash_properties- Get algorithm properties
Development
git clone https://github.com/daedalus/mcp-hashlib.git
cd mcp-hashlib
pip install -e ".[test]"
# run tests
pytest
# format
ruff format src/ tests/
# lint
ruff check src/ tests/
# type check
mypy src/
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.