calc-mcp

v2.1.7
io.github.coo-quack/calc-mcp Checked 3 hours ago Published 5 days ago

21 MCP tools for math, randomness, dates, encoding, hashing, and more — deterministic and accurate.

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

random

Generate random values: UUID, ULID, secure password (with fine-grained options), random number, or shuffle a list

ParameterTypeDescription
type *stringType of random value to generate: uuid, ulid, password, number, or shuffle
charsetstringCustom character set for password (overrides uppercase/numbers/symbols options)
excludeCharsstringCharacters to exclude from password (e.g. "\\|{}")
itemsarrayItems to shuffle (for type=shuffle)
lengthintegerLength for password generation (default: 16)
maxnumberMaximum value for number generation (default: 100)
minnumberMinimum value for number generation (default: 0)
numbersbooleanInclude numbers in password (default: true)
readablebooleanReadable mode: excludes ambiguous characters (l/1/I/O/0/o) for easy reading
symbolsbooleanInclude symbols in password (default: true)
uppercasebooleanInclude uppercase letters in password (default: true)
uuidVersionstringUUID version: v4 (random, default) or v7 (time-ordered)

hash

Compute hash or HMAC of a string using MD5, SHA1, SHA256, SHA512, or CRC32. WARNING: MD5 and SHA1 are cryptographically broken and MUST NOT be used for security (use SHA-256 or SHA-512 instead).

ParameterTypeDescription
algorithm *stringHash algorithm to use
input *stringString to hash
actionstringAction: hash (default) or hmac
keystringSecret key for HMAC

base64

Encode or decode Base64 strings

ParameterTypeDescription
action *stringWhether to encode or decode
input *stringString to encode or decode

encode

Encode or decode strings using URL, HTML, or Unicode encoding

ParameterTypeDescription
action *stringWhether to encode or decode
input *stringString to encode or decode
type *stringEncoding type

datetime

Get current datetime, convert timezones, format dates, and convert UNIX timestamps

ParameterTypeDescription
action *stringnow: current datetime, convert: timezone conversion, format: reformat datetime, timestamp: unix↔ISO8601
datetimestringDatetime string for convert/format/timestamp. If it carries a UTC designator or a numeric offset (2026-11-03T14:30:00Z, ...+09:00) it is absolute and fromTimezone is ignored. Otherwise it is a wall-cl…
formatstringOutput format: iso, date, time, full, short, or date-fns pattern (e.g. yyyy/MM/dd HH:mm), or Intl JSON options
fromTimezonestringIANA timezone the datetime string is written in, used when the string has no offset of its own. Defaults to UTC
timestampnumberUNIX timestamp in seconds for timestamp action
timezonestringIANA timezone (e.g. Asia/Tokyo, America/New_York). Names the output zone for now/format/timestamp; for convert it is read as the source zone when fromTimezone is absent
toTimezonestringTarget timezone for conversion

count

Count characters (grapheme clusters), words, lines, and bytes in text

ParameterTypeDescription
text *stringText to analyze
encodingstringEncoding for byte count (default: utf8)

math

Evaluate math expressions or compute statistics on numbers

ParameterTypeDescription
actionstringAction: eval (default) or statistics
expressionstringMath expression to evaluate
valuesarrayArray of numbers for statistics

date

Date calculations: diff between dates, add to date, weekday, and Japanese wareki conversion

ParameterTypeDescription
action *stringdiff: date difference, add: add to date, weekday, wareki
date *stringDate string (ISO8601)
amountnumberAmount to add
date2stringSecond date for diff
unitstringUnit for add

regex

Test, match, matchAll, or replace using regular expressions

ParameterTypeDescription
action *stringAction to perform
pattern *stringRegular expression pattern
text *stringText to search
flagsstringRegex flags (g, i, m, etc.)
replacementstringReplacement string for replace

base

Convert numbers between bases (2-36), supports large numbers via BigInt

ParameterTypeDescription
from *integerSource base (2-36)
to *integerTarget base (2-36)
value *Value to convert (string or number)

diff

Compare two texts: line-by-line diff (Myers algorithm, falls back to full replacement if edit distance exceeds 1000) or Levenshtein distance

ParameterTypeDescription
text1 *stringFirst text
text2 *stringSecond text
actionstringdiff: line diff (default), distance: Levenshtein distance

format_validate

Validate and parse JSON, CSV, XML, or YAML strings

ParameterTypeDescription
format *stringFormat to validate as
input *stringString to validate/parse

cron_parse

Parse cron expression and return next N execution times

ParameterTypeDescription
expression *stringCron expression (5 fields: min hour dom mon dow)
countintegerNumber of next occurrences to return (default: 5, max: 100)
timezonestringIANA timezone (default: UTC)

luhn

Validate or generate check digits using the Luhn algorithm

ParameterTypeDescription
number *stringNumber string to validate or generate check digit for
actionstringvalidate (default) or generate check digit

ip

IP address info, CIDR contains check, and range calculation

ParameterTypeDescription
action *stringinfo: IP details, contains: check if IP in CIDR, range: CIDR range
cidrstringCIDR notation (e.g. 192.168.1.0/24)
ipstringIP address. For info, IPv4 CIDR notation is also accepted and the network details are included
targetstringTarget IP to check against CIDR

color

Convert colors between HEX, RGB, and HSL formats

ParameterTypeDescription
color *stringColor value: #hex (3/4/6/8 digits), rgb(r,g,b), rgba(r,g,b,a), hsl(h,s%,l%), hsla(h,s%,l%,a), or named color
tostringTarget format (returns all if omitted)

convert

Convert between units: length, weight, temperature, area, volume, speed, data, time

ParameterTypeDescription
from *stringSource unit
to *stringTarget unit
value *numberValue to convert
categorystringCategory (auto-detected if omitted)

char_info

Get Unicode information about characters (code point, block, category)

ParameterTypeDescription
char *stringCharacter(s) to get info about

jwt_decode

Decode JWT token header and payload for inspection only. WARNING: this tool does NOT verify the signature; never trust the payload for authentication or authorization without separate signature verification using the issuer's verification key (shared secret or public key, depending on alg).

ParameterTypeDescription
token *stringJWT token to decode

url_parse

Parse a URL into its components (protocol, host, path, params, etc.)

ParameterTypeDescription
url *stringURL to parse

semver

Semantic versioning: compare, validate, and check range satisfaction

ParameterTypeDescription
action *stringcompare: compare two versions, valid: check validity, satisfies: range match, parse: extract components
version *stringSemver version string
rangestringVersion range for satisfies (e.g. ^1.0.0)
version2stringSecond version for compare