SimplyUtils

v1.0.3
io.github.Notysoty/simplyutils-mcp Checked 22 hours ago Published 24 days ago

Developer and text tools: JSON, QR codes, units, passwords, UUIDs, hashes, Base64, regex and more.

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

format_json Format or minify JSON

Validate JSON and return it pretty-printed or minified, optionally with object keys sorted A-Z (recursively; array order is kept). Returns the formatted JSON as text. Invalid JSON returns an error naming the problem and its position. Input up to 100 KB.

ParameterTypeDescription
json *stringThe JSON text to validate and format
indentstring2 or 4 spaces, a tab, or minify to remove all whitespace
sortKeysbooleanSort object keys alphabetically at every level

generate_qr_code Generate a QR code

Make a static QR code for a link or any text, up to 800 UTF-8 bytes. Returns a 512 px PNG image plus the SVG markup. The data is stored in the code itself, so it never expires and needs no account. Light-on-dark colors are allowed, but some older scanners need dark on light. Errors are returned for empty text, content over 800 bytes, or colors that are not six-digit hex.

ParameterTypeDescription
text *stringLink or text to encode
backgroundstringSix-digit hex color for the background
errorCorrectionstringError correction: L 7%, M 15%, Q 25%, H 30% of the code can be damaged and still scan; higher is denser
foregroundstringSix-digit hex color for the modules

convert_units Convert units

Convert a number between two units of the same category and return a line such as "5 mi = 8.04672 km" (up to 10 significant digits). Units are matched by symbol or name, case-insensitive. Errors are returned for unknown units, units from another category, non-numeric values and temperatures below absolute zero. Months are 1/12 of a 365-day year. Units by category (symbols): length: m, km, mi, ft, in, cm, mm, yd, nmi; weight: kg, g, lb, oz, t, mg, st; temperature: °C, °F, K; volume: L, mL, gal, fl oz, cup, tbsp, m³; speed: km/h, mph, m/s, kn, ft/s; area: m², km², mi², ft², ac, ha; data:…

ParameterTypeDescription
category *stringThe kind of quantity; both units must belong to it
from *stringUnit symbol or name, e.g. km or kilometer
to *stringUnit symbol or name, e.g. mi or mile
value *stringA plain number such as 12.5, -40 or 1e6 (no commas or unit text)

generate_password Generate strong passwords

Generate random passwords with Node's cryptographically secure generator. Each enabled character set appears at least once and the result is shuffled. Returns one password per line; every call gives new results. An error is returned if all character sets are turned off. Passwords are not stored or logged.

ParameterTypeDescription
countintegerHow many passwords to generate, 1-20
lengthintegerCharacters per password, 8-128
lowercasebooleanInclude a-z
numbersbooleanInclude 0-9
symbolsbooleanInclude symbols such as !@#$%^&*
uppercasebooleanInclude A-Z

generate_uuid Generate UUIDs

Generate random version 4 UUIDs (RFC 9562) in lowercase 8-4-4-4-12 form, one per line. Every call gives new values.

ParameterTypeDescription
countintegerHow many UUIDs to generate, 1-50

hash_text Hash text

Hash text (encoded as UTF-8) and return a line such as 'sha256: ba78...' with the lowercase hex digest. The same input always gives the same hash. MD5 and SHA-1 are only for checksums, not security; do not use plain hashes to store passwords. Input up to 100 KB.

ParameterTypeDescription
text *stringThe exact text to hash; spaces and line breaks change the result
algorithmstringHash algorithm; sha256 is the usual choice

base64 Base64 encode or decode

Encode text (as UTF-8) to Base64, or decode Base64 back to text, and return the result. Decoding accepts standard and URL-safe alphabets and ignores whitespace; invalid Base64 returns an error. Bytes that are not valid UTF-8 are shown as replacement characters. Input up to 100 KB.

ParameterTypeDescription
mode *stringencode: text to Base64; decode: Base64 to text
text *stringText to encode, or Base64 to decode
urlSafebooleanWhen encoding, use - and _ and drop = padding (for URLs and JWTs)

test_regex Test a regular expression

Run a JavaScript (ECMAScript) regular expression against text. Returns the match count and, for each match, the matched text, its 0-based index, numbered capture groups and named groups. Returns 'No matches.' when nothing matches. All matches are listed (the g flag is added automatically), up to 200. Invalid patterns or flags return an error explaining why; patterns that run longer than 0.5 seconds are stopped with an error. Text up to 100 KB.

ParameterTypeDescription
pattern *stringThe pattern without surrounding slashes, for example (\d+)-(?<unit>[a-z]+)
text *stringThe text to search
flagsstringAny of d, g, i, m, s, u, v, y; for example gi for case-insensitive

convert_timestamp Convert a Unix timestamp or date

Convert a Unix timestamp or a date to Unix seconds, Unix milliseconds, ISO 8601 (UTC), an HTTP-style UTC string and a readable date in the chosen time zone. Numbers with 13 or more digits are read as milliseconds, shorter ones as seconds. Dates without a time zone are read as UTC. Errors are returned for unreadable dates and unknown time zones.

ParameterTypeDescription
value *stringe.g. 1767225600 or 2026-10-27T09:30:00Z
timeZonestringIANA time zone, e.g. Asia/Kolkata

count_words Count words and characters

Count words, characters (with and without spaces), sentences and paragraphs, and estimate reading time at 238 words per minute. Words are runs of letters or digits in any language; hyphenated words and contractions count once. Paragraphs are separated by blank lines. Input up to 100 KB.

ParameterTypeDescription
text *stringThe text to analyze