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
| Name | Type | Description |
|---|---|---|
value required | number | The quantity to convert. |
from required | string | Unit to convert from, e.g. "km", "lb", "GiB", "psi", "F". |
to required | string | Unit 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:
{
"name": "math__unit_convert",
"arguments": {
"value": 0,
"from": "…",
"to": "…"
}
}Or connect the Calculators server directly, which lists 28 tools including this one:
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 ….