calc-mcp
v2.1.721 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
| Parameter | Type | Description |
|---|---|---|
type * | string | Type of random value to generate: uuid, ulid, password, number, or shuffle |
charset | string | Custom character set for password (overrides uppercase/numbers/symbols options) |
excludeChars | string | Characters to exclude from password (e.g. "\\|{}") |
items | array | Items to shuffle (for type=shuffle) |
length | integer | Length for password generation (default: 16) |
max | number | Maximum value for number generation (default: 100) |
min | number | Minimum value for number generation (default: 0) |
numbers | boolean | Include numbers in password (default: true) |
readable | boolean | Readable mode: excludes ambiguous characters (l/1/I/O/0/o) for easy reading |
symbols | boolean | Include symbols in password (default: true) |
uppercase | boolean | Include uppercase letters in password (default: true) |
uuidVersion | string | UUID 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).
| Parameter | Type | Description |
|---|---|---|
algorithm * | string | Hash algorithm to use |
input * | string | String to hash |
action | string | Action: hash (default) or hmac |
key | string | Secret key for HMAC |
base64
Encode or decode Base64 strings
| Parameter | Type | Description |
|---|---|---|
action * | string | Whether to encode or decode |
input * | string | String to encode or decode |
encode
Encode or decode strings using URL, HTML, or Unicode encoding
| Parameter | Type | Description |
|---|---|---|
action * | string | Whether to encode or decode |
input * | string | String to encode or decode |
type * | string | Encoding type |
datetime
Get current datetime, convert timezones, format dates, and convert UNIX timestamps
| Parameter | Type | Description |
|---|---|---|
action * | string | now: current datetime, convert: timezone conversion, format: reformat datetime, timestamp: unix↔ISO8601 |
datetime | string | Datetime 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… |
format | string | Output format: iso, date, time, full, short, or date-fns pattern (e.g. yyyy/MM/dd HH:mm), or Intl JSON options |
fromTimezone | string | IANA timezone the datetime string is written in, used when the string has no offset of its own. Defaults to UTC |
timestamp | number | UNIX timestamp in seconds for timestamp action |
timezone | string | IANA 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 |
toTimezone | string | Target timezone for conversion |
count
Count characters (grapheme clusters), words, lines, and bytes in text
| Parameter | Type | Description |
|---|---|---|
text * | string | Text to analyze |
encoding | string | Encoding for byte count (default: utf8) |
math
Evaluate math expressions or compute statistics on numbers
| Parameter | Type | Description |
|---|---|---|
action | string | Action: eval (default) or statistics |
expression | string | Math expression to evaluate |
values | array | Array of numbers for statistics |
date
Date calculations: diff between dates, add to date, weekday, and Japanese wareki conversion
| Parameter | Type | Description |
|---|---|---|
action * | string | diff: date difference, add: add to date, weekday, wareki |
date * | string | Date string (ISO8601) |
amount | number | Amount to add |
date2 | string | Second date for diff |
unit | string | Unit for add |
regex
Test, match, matchAll, or replace using regular expressions
| Parameter | Type | Description |
|---|---|---|
action * | string | Action to perform |
pattern * | string | Regular expression pattern |
text * | string | Text to search |
flags | string | Regex flags (g, i, m, etc.) |
replacement | string | Replacement string for replace |
base
Convert numbers between bases (2-36), supports large numbers via BigInt
| Parameter | Type | Description |
|---|---|---|
from * | integer | Source base (2-36) |
to * | integer | Target 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
| Parameter | Type | Description |
|---|---|---|
text1 * | string | First text |
text2 * | string | Second text |
action | string | diff: line diff (default), distance: Levenshtein distance |
format_validate
Validate and parse JSON, CSV, XML, or YAML strings
| Parameter | Type | Description |
|---|---|---|
format * | string | Format to validate as |
input * | string | String to validate/parse |
cron_parse
Parse cron expression and return next N execution times
| Parameter | Type | Description |
|---|---|---|
expression * | string | Cron expression (5 fields: min hour dom mon dow) |
count | integer | Number of next occurrences to return (default: 5, max: 100) |
timezone | string | IANA timezone (default: UTC) |
luhn
Validate or generate check digits using the Luhn algorithm
| Parameter | Type | Description |
|---|---|---|
number * | string | Number string to validate or generate check digit for |
action | string | validate (default) or generate check digit |
ip
IP address info, CIDR contains check, and range calculation
| Parameter | Type | Description |
|---|---|---|
action * | string | info: IP details, contains: check if IP in CIDR, range: CIDR range |
cidr | string | CIDR notation (e.g. 192.168.1.0/24) |
ip | string | IP address. For info, IPv4 CIDR notation is also accepted and the network details are included |
target | string | Target IP to check against CIDR |
color
Convert colors between HEX, RGB, and HSL formats
| Parameter | Type | Description |
|---|---|---|
color * | string | Color 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 |
to | string | Target format (returns all if omitted) |
convert
Convert between units: length, weight, temperature, area, volume, speed, data, time
| Parameter | Type | Description |
|---|---|---|
from * | string | Source unit |
to * | string | Target unit |
value * | number | Value to convert |
category | string | Category (auto-detected if omitted) |
char_info
Get Unicode information about characters (code point, block, category)
| Parameter | Type | Description |
|---|---|---|
char * | string | Character(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).
| Parameter | Type | Description |
|---|---|---|
token * | string | JWT token to decode |
url_parse
Parse a URL into its components (protocol, host, path, params, etc.)
| Parameter | Type | Description |
|---|---|---|
url * | string | URL to parse |
semver
Semantic versioning: compare, validate, and check range satisfaction
| Parameter | Type | Description |
|---|---|---|
action * | string | compare: compare two versions, valid: check validity, satisfies: range match, parse: extract components |
version * | string | Semver version string |
range | string | Version range for satisfies (e.g. ^1.0.0) |
version2 | string | Second version for compare |