npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

@sylphlab/tools-hasher-mcp

v0.5.1

Published

MCP server providing hasher tool

Readme

@sylphlab/tools-hasher-mcp

NPM version

Generate cryptographic hashes remotely via the Model Context Protocol (MCP).

This package provides a ready-to-run MCP server that exposes hashing functionalities (MD5, SHA-256, SHA-512) based on the tools defined in @sylphlab/tools-hasher.

Purpose

This server allows MCP clients (like AI agents, build tools, or verification scripts) to remotely calculate cryptographic hashes of strings. It acts as a secure interface, taking the core hashing logic from @sylphlab/tools-hasher, adapting it using @sylphlab/tools-adaptor-mcp, and serving it over the MCP standard (stdio). This is useful for tasks requiring hash generation without exposing the hashing implementation directly to the client or when the client environment lacks native crypto capabilities.

Features

  • MCP Server: Implements the Model Context Protocol for tool execution.
  • Exposes Hash Tool: Provides a tool (likely hashTool) to generate hashes using various algorithms.
    • Supports md5, sha256, sha512.
    • Accepts string input.
    • Returns the hexadecimal hash string.
  • Executable: Provides a binary (mcp-hasher) for easy execution.

Installation

This package is intended to be used as a standalone server.

Using npm/pnpm/yarn (Recommended)

Install as a dependency or globally:

# Globally
npm install -g @sylphlab/tools-hasher-mcp
# Or in a project
pnpm add @sylphlab/tools-hasher-mcp

Configure your MCP host (e.g., mcp_settings.json) to use npx or the installed binary path:

// Using npx
{
  "mcpServers": {
    "hasher-mcp": {
      "command": "npx",
      "args": ["@sylphlab/tools-hasher-mcp"],
      "name": "Hasher Tool (npx)"
    }
  }
}

// Or using global install path
{
  "mcpServers": {
    "hasher-mcp": {
      "command": "mcp-hasher", // If in PATH
      "name": "Hasher Tool (Global)"
    }
  }
}

Using Docker (If Available)

(Requires a Docker image sylphlab/tools-hasher-mcp:latest to be published)

docker pull sylphlab/tools-hasher-mcp:latest

Configure your MCP host:

{
  "mcpServers": {
    "hasher-mcp": {
      "command": "docker",
      "args": [
        "run",
        "-i", // Essential for stdio communication
        "--rm",
        "sylphlab/tools-hasher-mcp:latest"
      ],
      "name": "Hasher Tool (Docker)"
    }
  }
}

Local Build (For Development)

  1. Build: From the monorepo root: pnpm build --filter @sylphlab/tools-hasher-mcp
  2. Configure MCP Host:
    {
      "mcpServers": {
        "hasher-mcp": {
          "command": "node",
          // Adjust path as needed
          "args": ["./packages/tools-hasher-mcp/dist/index.js"],
          "name": "Hasher Tool (Local Build)"
        }
      }
    }

Usage

Once the server is running and configured in your MCP host, clients can send requests to generate hashes.

MCP Request Example (SHA-256):

{
  "tool_name": "hashTool", // Tool name from @sylphlab/tools-hasher
  "arguments": {
    "text": "Calculate the hash of this string.",
    "algorithm": "sha256"
  }
}

Expected Response Snippet:

{
  "result": {
    "success": true,
    "hash": "..." // The resulting SHA-256 hash string
  }
}

Dependencies

  • @modelcontextprotocol/sdk: For creating the MCP server instance.
  • @sylphlab/tools-adaptor-mcp: To adapt the core tool definitions to MCP format.
  • @sylphlab/tools-hasher: Contains the actual logic for generating hashes.
  • @sylphlab/tools-core: Provides the base tool definition structure.

Developed by Sylph Lab.