Cleanor

v0.6.1
app.cleanor/cleanor Checked 4 days ago Published 4 months ago

Zero-auth MCP: image optimize, cited storage/format data, and dev utilities LLMs get wrong.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

optimize_image Optimize / convert an image for the web

Fetch an image from a public URL and re-encode it smaller (WebP/AVIF/JPEG), optionally resizing to a target width. Returns the optimized image plus before/after byte sizes. Use this when an AI-generated or dropped-in asset (hero image, screenshot, illustration) is too large to ship.

ParameterTypeDescription
image_url *stringPublic URL of the source image (PNG/JPEG/WebP/AVIF/GIF).
formatstringOutput format. webp = best browser support; avif = smallest; jpeg = universal.
qualityintegerEncode quality 1-100 (80 is a good default).
widthintegerResize to this width in px, preserving aspect ratio. Omit to keep original size.

storage_capacity How much fits in a phone storage tier

How many photos or minutes of video actually fit in a given storage size, corrected for real OS/filesystem overhead. Backed by Cleanor Labs measured per-item sizes. Use for realistic sample copy, dashboards, or "how many photos fit in 128 GB" answers.

ParameterTypeDescription
storage_gb *numberAdvertised storage size in GB (e.g. 64, 128, 256, 512).
contentstringWhat to count.

image_format_savings Real storage savings of next-gen image formats

How much smaller WebP, AVIF or JPEG XL are than JPEG at matched perceptual quality, from Cleanor Labs’ controlled benchmark. Also reports the "HEIC conversion tax" (converting an iPhone HEIC to JPG/PNG makes it bigger). Use to justify a format choice when building a site or app.

ParameterTypeDescription
formatstringTarget format to compare against JPEG.
qualitystringweb = typical web quality (SSIM 0.95); high = near-lossless (SSIM 0.98).

qr_code Generate a QR code (SVG)

Encode text or a URL as a QR code and return a crisp, dependency-free SVG you can paste straight into a page, deck or doc.

ParameterTypeDescription
text *stringText or URL to encode.
eccstringError-correction level: L=7%, M=15%, Q=25%, H=30% recoverable.
sizeintegerSVG pixel size.

hash Hash text (SHA family)

Compute a cryptographic hash of text (SHA-1, SHA-256, SHA-384 or SHA-512) and return the hex digest. Use for checksums, cache keys, or verifying content. MD5 is intentionally not offered (broken, and unavailable in Web Crypto). LLMs cannot compute these reliably by hand, so always use this tool instead of guessing.

ParameterTypeDescription
input *stringText to hash (UTF-8).
algorithmstringHash algorithm. Default sha-256.

uuid Generate UUIDs

Generate one or more UUIDs. v4 is fully random; v7 is time-sortable (recommended for database keys). LLMs cannot produce cryptographically random or correctly-formatted UUIDs, so always use this tool.

ParameterTypeDescription
countintegerHow many to generate.
versionstringUUID version. v7 = time-ordered.

base64 Base64 encode / decode

Encode text to Base64 or decode Base64 back to text (UTF-8 safe). Supports URL-safe alphabet. Use whenever you need to encode/decode data URIs, tokens, or config values instead of guessing the bytes.

ParameterTypeDescription
input *stringText to encode, or Base64 to decode.
modestringDirection.
url_safebooleanUse URL-safe alphabet (-_ instead of +/, no padding).

json_format Format / validate JSON

Validate JSON and pretty-print or minify it, optionally sorting object keys. Returns a precise parse error (with position) if invalid. Use to check and clean JSON instead of eyeballing it.

ParameterTypeDescription
input *stringJSON text.
modestringpretty = 2-space indent; minify = single line.
sort_keysbooleanSort object keys alphabetically (deep).

jwt_decode Decode a JWT (no verification)

Decode a JSON Web Token into its header and payload so you can inspect claims (iss, exp, sub, scopes). The signature is NOT verified and no secret is required or stored. Use to read a token during debugging.

ParameterTypeDescription
token *stringThe JWT (three dot-separated segments).

color Convert a color between formats

Convert a color (hex, rgb() or hsl()) and return hex, RGB and HSL representations at once. Use when picking or translating colors for CSS, design tokens or themes.

ParameterTypeDescription
value *stringA color: "#3b82f6", "rgb(59,130,246)" or "hsl(217,91%,60%)".

slugify Slugify text for URLs

Turn a title or phrase into a clean, URL-safe slug (lowercase, hyphenated, accents stripped). Use when generating page paths, filenames or anchor IDs.

ParameterTypeDescription
input *stringText to slugify.
separatorstringWord separator.

count Count characters, words, lines, bytes

Accurately count characters (Unicode code points), UTF-16 units, words, lines and UTF-8 bytes in text. LLMs are notoriously bad at counting, so always use this tool for "how many characters/words" questions.

ParameterTypeDescription
input *stringText to measure.

regex_test Test a regular expression

Test a JavaScript regular expression against sample text and return whether it matches, plus every match with its captured groups and index. Use to verify a pattern instead of reasoning about it in your head. Input and pattern are length-capped to keep it fast and safe.

ParameterTypeDescription
input *stringText to test against.
pattern *stringThe regex pattern (without slashes).
flagsstringRegex flags, e.g. "gi". Allowed: g i m s u y d.

cron_describe Explain a cron expression

Parse a standard 5-field cron expression (minute hour day-of-month month day-of-week) into a plain-English breakdown and the next few run times in UTC. Use to sanity-check a schedule instead of guessing what the fields mean.

ParameterTypeDescription
expression *stringA 5-field cron expression, e.g. "30 2 * * 1-5".

unit_convert Convert between units

Convert a value between units of length, mass, data size, time, speed or temperature. Supported units: mm, cm, m, km, in, ft, yd, mi, nmi, mg, g, kg, t, oz, lb, st, bit, byte, kb, kib, mb, mib, gb, gib, tb, tib, ms, s, min, h, day, week, mps, kph, mph, fps, knot, c, f, k. Use for exact conversions instead of approximating.

ParameterTypeDescription
from *stringSource unit (e.g. "km", "lb", "mib", "c").
to *stringTarget unit (must be the same category as "from").
value *numberThe numeric value to convert.

datetime Current or parsed date/time

Get the current date/time, or convert a given timestamp, into a target IANA timezone with ISO, Unix and human-readable forms. Pass a Unix timestamp (seconds or ms) or an ISO string as input; omit it for "now". LLMs cannot know the real current time, so use this instead of guessing.

ParameterTypeDescription
inputstringOptional: a Unix timestamp (s or ms) or ISO date string. Omit for the current time.
timezonestringIANA timezone, e.g. "America/New_York" or "UTC".

url_parse Parse a URL into parts

Break a URL into its components: scheme, host, port, path, decoded query parameters and fragment. Use to inspect or debug a URL instead of parsing it by eye.

ParameterTypeDescription
url *stringThe URL to parse (absolute, with scheme).

base_convert Convert a number between bases

Convert an integer between number bases 2–36 (e.g. hex to binary, decimal to base-36). Arbitrary precision via BigInt, so large values stay exact. Use for radix conversions instead of doing them by hand.

ParameterTypeDescription
value *stringThe number, in from_base (e.g. "ff", "1010", "255").
from_baseintegerBase of the input (2–36).
to_baseintegerBase to convert to (2–36).

diff Line diff between two texts

Compute a line-by-line diff between two texts, marking removed lines with "-", added with "+" and unchanged with two spaces, plus a change count. Use to see exactly what changed instead of comparing by eye. Capped at 1000 lines per side.

ParameterTypeDescription
a *stringThe original ("before") text.
b *stringThe updated ("after") text.

hmac HMAC signature of a message

Compute an HMAC (keyed hash) of a message with a secret, using SHA-1/256/384/512, returned as hex or Base64. Use to sign webhook payloads or verify a signature instead of guessing. LLMs cannot compute this by hand.

ParameterTypeDescription
message *stringThe message to sign (UTF-8).
secret *stringThe shared secret key (UTF-8).
algorithmstringHash algorithm.
encodingstringOutput encoding.

placeholder_image Generate a placeholder image (SVG)

Generate a lightweight SVG placeholder image at any size, with an optional label and custom background/text colors. Dependency-free, pastes straight into a page or mockup. Use for wireframes and design stubs instead of hotlinking a placeholder service.

ParameterTypeDescription
bgstringBackground color (hex, rgb() or hsl()).
colorstringText color.
heightintegerHeight in pixels.
textstringLabel text. Defaults to the dimensions, e.g. "600×400".
widthintegerWidth in pixels.

color_palette Generate a color palette

Build a harmonious color palette from a base color using color-theory rules (complementary, analogous, triadic, tetradic, or monochromatic). Returns each color as hex and HSL. Use to derive a theme or design tokens from one brand color.

ParameterTypeDescription
color *stringBase color: "#3b82f6", "rgb(...)" or "hsl(...)".
harmonystringColor-harmony rule.