Skip to main content
Glama

hash-md5

Generate an MD5 hash from any input text for data integrity checks, password storage, or unique identifier creation with this straightforward hashing tool.

Instructions

Generate MD5 hash

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
textYesText to hash with MD5

Implementation Reference

  • Handler function that computes the MD5 hash of the input text using Node's crypto.createHash and returns the result in MCP content format.
    }, async ({ text }) => { const hash = createHash('md5'); hash.update(text); const result = hash.digest('hex'); return { content: [ { type: "text", text: `MD5 hash: ${result}`, }, ], }; }
  • Input schema defining the 'text' parameter as a string.
    inputSchema: { text: z.string().describe("Text to hash with MD5"), },
  • Registration function that registers the 'hash_md5' tool with the MCP server, including description, input schema, annotations, and handler.
    export function registerHashMd5(server: McpServer) { server.registerTool("hash_md5", { description: "Generate MD5 hash", inputSchema: { text: z.string().describe("Text to hash with MD5"), }, // VS Code compliance annotations annotations: { title: "Hash Md5", description: "Generate MD5 hash", readOnlyHint: false } }, async ({ text }) => { const hash = createHash('md5'); hash.update(text); const result = hash.digest('hex'); return { content: [ { type: "text", text: `MD5 hash: ${result}`, }, ], }; } ); }

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/wrenchpilot/it-tools-mcp'

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