Skip to main content
Glama

md5

Generate MD5 hash for any input string securely using the Crypto_MCP server. Simplify data integrity checks and cryptographic processes with reliable hashing.

Instructions

Calculate MD5 hash of a string

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
inputYesThe input string to hash

Implementation Reference

  • Handler function that computes MD5 hash using DigestUtil.md5 and returns it as text content in MCP format.
    ({ input }) => { const hash = DigestUtil.md5(input); return { content: [{ type: "text", text: hash }], }; }
  • Zod input schema defining a single string parameter 'input' for the md5 tool.
    { input: z.string().describe("The input string to hash"), },
  • Registration of the 'md5' tool on the MCP server, including name, description, schema, and handler.
    server.tool( "md5", "Calculate MD5 hash of a string", { input: z.string().describe("The input string to hash"), }, ({ input }) => { const hash = DigestUtil.md5(input); return { content: [{ type: "text", text: hash }], }; } );
  • Utility function DigestUtil.md5 that calculates the MD5 hash of the input string using CryptoJS library.
    static md5(input: string): string { const hash = CryptoJS.MD5(input); return hash.toString(); }

Other Tools

Related Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/1595901624/crypto-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server