Hex2Dec MCP Server

March 27, 2025 ยท View on GitHub

A simple MCP server that provides conversion between hexadecimal and decimal numbers. Mainly solving the problem of LLM hallucinations.

Features

  • hex_to_dec: Convert hexadecimal string to decimal number
  • dec_to_hex: Convert decimal number to hexadecimal string

Build

npm install && npm run build 

Configuration

Add the following configuration:

{
  "mcpServers": {
    "hex2dec": {
      "command": "node",
      "args": [
        "/path/hex2dec-mcp/build/index.js"
      ]
    }
  }
}

References

For more information about MCP servers, refer to the Model Context Protocol documentation.