MCP Hashlib logo

MCP Hashlib

Expose Python hashlib hashing, key derivation, incremental hashing, and algorithm metadata through MCP tools.

Install MCP Hashlib

Pick your client, then add it in one click or paste the config.

STDIOPython
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "mcp-hashlib": {
      "command": "uvx",
      "args": [
        "mcp-hashlib"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Automated check passed— started and listed 22 tools correctly (1d ago).

Overview

The mcp-hashlib MCP server exposes Python hashlib operations to an MCP client through tools for common digest algorithms, key derivation, and hash-object management. It includes fixed algorithms such as SHA-2, SHA-3, BLAKE2, and legacy MD5 and SHA-1, plus generic algorithm creation and metadata inspection. Reach for it when an agent needs to calculate digests, derive keys with PBKDF2-HMAC or scrypt, or process hashing incrementally.

Use cases

  • Calculate message digests with standard hashlib algorithms
  • Derive keys with PBKDF2-HMAC or scrypt
  • Hash file-like inputs
  • Build incremental hashing workflows
  • Inspect available algorithm properties

Key features

  • SHA, SHA-3, BLAKE2, MD5, and SHA-1 hashing
  • SHAKE extendable-output hashing
  • PBKDF2-HMAC and scrypt key derivation
  • Generic algorithm creation through hashlib
  • Incremental hash updates and object copying
  • Algorithm information and property inspection

Tools22

What MCP Hashlib lets your agent do. Expand a tool for its parameters.

Verified live~1.1k tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked 3d ago

Recent health check succeeded.

4/4 checks healthy over the last 40d

What it can do

From the 22 tools this server returned when we ran it.

Read-only tools · 22
Network at startup2 connections
Files written at startup11

Observed 2026-10-21 in an isolated sandbox. A description of reach, not a security audit.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 15d ago via OSV.dev · mcp-hashlib (PyPI)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

Last commit6mo agoMost recent push to the default branch.
Availability100%Our rolling endpoint + install checks that succeeded.
Install checkPassedOur sandbox started it and listed its tools.
Tools exposed22Callable tools this server registers over MCP.
Directory activity2 viewsConfig copies, upvotes, and views on AllMCPs.

How MCP Hashlib works

What mcp-hashlib does

The mcp-hashlib MCP server makes selected Python hashlib functionality available as MCP tools. It covers direct hashing for MD5, SHA-1, SHA-224, SHA-256, SHA-384, SHA-512, the SHA-3 family, BLAKE2b, and BLAKE2s. It also exposes SHAKE-128 and SHAKE-256, which are extendable-output functions rather than fixed-length digest algorithms.

In addition to message hashing, the server provides PBKDF2-HMAC and scrypt key-derivation tools. These are useful when an agent must perform a derivation operation supported by hashlib, rather than only calculate a digest. The available operations also include hashing a file-like object and working with hash objects over multiple steps.

Tools and capabilities

The direct algorithm tools are named for the algorithm they use, including hash_sha256, hash_sha3_512, hash_blake2b, and hash_shake_256. The corresponding tools cover the other listed digest variants. hash_pbkdf2_hmac and hash_scrypt handle the two supported key-derivation methods.

For less specialized workflows, hash_new creates a hash using any algorithm available to the underlying hashlib environment. hash_info reports algorithm information, while hash_properties returns properties for an algorithm. This gives an agent a way to inspect availability instead of assuming every runtime exposes the same names.

The object-oriented tools support stateful workflows. hash_update adds more input to an existing hash, and hash_copy duplicates a hash object so separate continuation paths can be calculated. hash_file_digest handles a file-like object, allowing the server to calculate a digest from that kind of input.

Setup and configuration

Install the package from PyPI with:

Terminal
pip install mcp-hashlib

The package exposes mcp and main from mcp_hashlib, as shown by the project’s Python usage example:

server.ts
from mcp_hashlib import mcp, main

The repository also documents a source-development workflow. Clone the repository, install its test extras with pip install -e ".[test]", and use pytest for tests. Ruff commands are provided for formatting and linting, and mypy is used for type checking.

Configure the server according to the MCP host’s normal Python-server procedure if additional host configuration is required.

Limitations and notes

It therefore does not establish whether the server can read arbitrary paths or how file-like objects are supplied by a client.

Algorithm availability can depend on the Python hashlib runtime, particularly when using hash_new or inspecting available algorithms. The project includes MD5 and SHA-1 tools, but the material does not describe their security suitability. Select an algorithm based on the requirements of the operation rather than treating every exposed digest as interchangeable.

The documentation does not name supported MCP clients. It also does not provide benchmark information, persistence behavior, or guarantees about retaining hash objects between calls.

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about MCP Hashlib

mcp-hashlib is an MCP server that connects MCP clients to Python’s hashlib functionality through tools for standard hashes, SHAKE, BLAKE2, PBKDF2-HMAC, scrypt, file-like object digests, generic hash creation, incremental updates, hash copying, and algorithm metadata inspection.

Install it from PyPI with `pip install mcp-hashlib`.

It provides MD5, SHA-1, SHA-224, SHA-256, SHA-384, SHA-512, SHA3-224, SHA3-256, SHA3-384, SHA3-512, BLAKE2b, BLAKE2s, SHAKE-128, and SHAKE-256 tools. `hash_new` can create a hash using any algorithm available to the runtime.

Yes, it provides `hash_update` for incremental hashing and `hash_copy` for duplicating a hash object.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewMCP Hashlib AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/mcp-hashlib?style=directory)](https://allmcps.com/mcp/mcp-hashlib)
HTML Embed
<a href="https://allmcps.com/mcp/mcp-hashlib"><img src="https://allmcps.com/api/badge/mcp-hashlib?style=directory" alt="MCP Hashlib on AllMCPs" /></a>