Home / Servers / Calculators / unit_convert

Unit convert

An MCP tool from the Calculators server, hosted on mcp.hjlabs.in.

Convert between units of length, mass, area, volume, speed, time, data size (SI and binary: KB vs KiB), pressure, energy, power, angle, frequency and temperature (C, F, K, R). Give a value, a from-unit and a to-unit; errors list the units a category accepts.

Name on the gateway: math__unit_convert · read-only.

Parameters

NameTypeDescription
value requirednumberThe quantity to convert.
from requiredstringUnit to convert from, e.g. "km", "lb", "GiB", "psi", "F".
to requiredstringUnit to convert to, e.g. "mi", "kg", "GB", "bar", "C".

How to call it

Through the Smart Gateway, any client can run it by name with call_tool, or let the gateway find it with search_tools:

call_tool arguments
{
  "name": "math__unit_convert",
  "arguments": {
    "value": 0,
    "from": "…",
    "to": "…"
  }
}

Or connect the Calculators server directly, which lists 28 tools including this one:

Run in your terminal
claude mcp add --transport http hj-math https://mcp.hjlabs.in/mcp/math \
  --header "Authorization: Bearer YOUR_API_KEY"

Try asking

Use the unit convert tool with value set to ….

More from Calculators