unit_convert
Exact conversion across length, mass, data size, time, speed and temperature.
How to use it
unit_convert is exposed by the Cleanor MCP MCP server. Add the server to your MCP client (Claude Desktop, Cursor, Windsurf and others), and the unit_convert tool becomes available to the model automatically. See the full listing for setup details and every tool this server provides.
Install Cleanor MCP
claude mcp add --transport http cleanor https://mcp.cleanor.app/mcpOther tools in Cleanor MCP (21)
Integer conversion between bases 2 and 36, BigInt-exact so large values stay exact.
Base64 encode or decode, UTF-8 safe, optional URL-safe alphabet.
Converts one color into hex, RGB and HSL at once. Accepts hex, rgb(), hsl() and CSS names.
Derives a harmonious palette from one base color.
Exact characters (code points), UTF-16 units, words, lines and UTF-8 bytes.
Explains a 5-field cron expression in plain English and lists the next 5 run times in UTC.
The real current time, or any timestamp, rendered in an IANA timezone as ISO, Unix and human forms.
Line-by-line diff of two texts with an added and removed count. Up to 1000 lines per side.
SHA-1/256/384/512 hex digest of text. MD5 is deliberately not offered.
Keyed HMAC signature, hex or Base64. For signing and verifying webhooks.
How much smaller WebP, AVIF or JPEG XL are than JPEG at matched perceptual quality, from a controlled benchmark on the 24-image Kodak suite. Also reports the HEIC conversion tax.
Validates JSON, then pretty-prints or minifies it, optionally deep-sorting keys. Returns a precise parse error if invalid.
Decodes a JWT header and payload and flags expiry. The signature is not verified and no secret is needed.
Fetches an image from a public URL and re-encodes it smaller. Returns the optimized image plus before and after byte counts. Input capped at 25 MB.
Dependency-free SVG placeholder at any size, with a label and custom colors.
Encodes text or a URL as a crisp SVG QR code you can paste anywhere.
Runs a JavaScript regex against sample text and returns every match with its index and captured groups (first 100).
Clean, URL-safe slug from a title: lowercased, hyphenated, accents stripped.
How many photos or minutes of video actually fit in a storage tier, corrected for real OS and filesystem overhead. Returns a per-format breakdown.
Splits a URL into scheme, host, port, path, decoded query params and fragment.
UUID v4 (random) or v7 (time-sortable, the better database key).