polymath-megablaster-mcp

v3.1.0
io.github.headlessherm-creator/polymath-megablaster-mcp Checked 4 days ago Published 1 month ago

Local deterministic calc MCP: exact math, dates, unit conversion, stats, subnet math.

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

calc_subnet

Calculate subnet details (network, broadcast, usable hosts, mask) from a CIDR like 192.168.1.0/24

ParameterTypeDescription
cidr *stringIPv4 address or CIDR, e.g. "192.168.1.0/24"

check_ip_type

Check if an IPv4 address is private/reserved and identify which range it falls in

ParameterTypeDescription
ip *stringIPv4 address, e.g. "192.168.1.1"

calculate

Evaluate an arbitrary-precision math expression exactly (fixes LLM multi-digit arithmetic errors). Supports +,-,*,/,^,sqrt(),sin(),log(), etc.

ParameterTypeDescription
expression *stringMath expression, e.g. "123456789 * 987654321" or "sqrt(2)^10"

count_tokens

Count tokens in text using the GPT-3.5/4 (cl100k_base) tokenizer. Useful for managing context budget before sending a large prompt

ParameterTypeDescription
text *string

date_add

Add or subtract days/weeks/months/years/businessDays from a date, handling leap years and month boundaries correctly

ParameterTypeDescription
amount *integerPositive or negative integer amount
date *stringISO 8601 date/datetime, e.g. "2026-03-03"
unit *string

date_diff

Compute the exact difference between two dates in days, business days, and hours

ParameterTypeDescription
a *stringFirst ISO 8601 date/datetime
b *stringSecond ISO 8601 date/datetime

convert_timezone

Convert a UTC/ISO date into a formatted date+time string for any IANA time zone

ParameterTypeDescription
date *stringISO 8601 date/datetime
timeZone *stringIANA time zone name, e.g. "America/New_York", "Asia/Tokyo"

compute_statistics

Compute mean, median, stdev, variance, min/max, and percentiles (25/75/90) for a list of numbers

ParameterTypeDescription
numbers *arrayArray of numbers

convert_unit

Convert a value between units of length, weight, volume, or temperature (fixes LLM unit-math errors)

ParameterTypeDescription
fromUnit *stringe.g. "km", "lb", "celsius", "gal"
toUnit *stringe.g. "mi", "kg", "fahrenheit", "l"
value *string | number

haversine_distance

Compute exact great-circle distance in km/miles between two lat/long coordinates

ParameterTypeDescription
lat1 *number
lat2 *number
lon1 *number
lon2 *number

factorial

Compute n! exactly using arbitrary-precision integer math (avoids float64 overflow past ~18)

ParameterTypeDescription
n *integer

permutations

Compute nPr (permutations) exactly using arbitrary-precision integer math

ParameterTypeDescription
n *integer
r *integer

combinations

Compute nCr (combinations) exactly using arbitrary-precision integer math

ParameterTypeDescription
n *integer
r *integer

convert_base

Convert a number between decimal, hex, binary, and octal

ParameterTypeDescription
fromBase *string
toBase *string
value *string | number

levenshtein_distance

Compute exact edit distance and similarity ratio between two strings (deterministic fuzzy matching)

ParameterTypeDescription
a *string
b *string

generate_uuid

Generate real cryptographically-random UUIDs (v4). Fixes LLMs fabricating plausible-looking but non-random, potentially colliding UUID strings instead of real random ones.

ParameterTypeDescription
countintegerHow many UUIDs to generate (1-100, default 1)