About codecalc
codecalc is an MCP server in the Science category: code & logic calculator for AI agents: run 31 languages, symbolic math, SMT logic, complexity.
Install
uvx codecalcpip install codecalcThis server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.
Tools (14)
algebraic_equivAre `(a*b)/c` and `a*(b/c)` identical? refactor verification (with float/truncation caveat)
Parameters not published.
bitsProgrammer-mode integer facts and operations, selected by `mode`: `analysis` (was `bit_analysis`), `op` (was `bitop`), `widths` (was `int_widths`), `repr` (was `base_repr`) — those four former standalone tools were retired in 0.12.0 (CHANGELOG.md)
Parameters not published.
calc_exactEXACT arithmetic: `0.1+0.2 == 0.3` is True; arbitrary-precision ints, bitwise ops inline, whitelisted math funcs, pi/e/tau
Parameters not published.
calc_statsmean, median, sample stdev, **CV** (CV > 0.2 = noise swamps the effect)
Parameters not published.
collision_probabilityBirthday-bound hash collision: 1e5 items/32 bits ≈ 0.69, 1e6/64 ≈ 2.7e-8
Parameters not published.
compare_thresholdExact threshold verdict with shortfall: `('1/25', '>', '0.05')` → False, shortfall 1/100
Parameters not published.
data_sizesByte sizes both ways: KiB/MiB (binary) AND KB/MB (decimal)
Parameters not published.
epoch_timeEpoch s/ms/µs/ns → ISO 8601 UTC, implausible readings suppressed
Parameters not published.
float_reprWhat binary64 actually stores: exact value, raw bits, ULP, neighbours, representable-or-not
Parameters not published.
human_durationHumanised duration + per-day/per-30d rates
Parameters not published.
Show all 14 tools
percentageExact share and percentage of PART/TOTAL (rationals accepted)
Parameters not published.
percentilesp50/p90/p95/p99 by nearest-rank AND interpolation; warns n<100
Parameters not published.
radix_convertAny base 2..36, fractions included, non-termination flagged (`0.1` base 2)
Parameters not published.
symbolicSymbolic algebra, selected by `op`: `solve` (was `solve_expression`), `solve_linear` (was `solve_linear`, name unchanged), `simplify` (was `simplify_expression`), `limit` (was `limit_expression`) — those four former standalone tools were retired in 0.12.0 (CHANGELOG.md)
Parameters not published.
Ask AI
Ask AI about codecalc
Powered by Claude · Grounded in docs
Security checks
6 checks have not been run yet.