
A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

A Rust port of the calc arbitrary-precision calculator that offers a CLI, a web REPL, and an MCP server over stdio using exact rational arithmetic.
Exact-rational calculator with an MCP server is cataloged as an MCP server attributed to carlomagnoglobal. A Rust port of the calc arbitrary-precision calculator that offers a CLI, a web REPL, and an MCP server over stdio using exact rational arithmetic. It is categorized under developer tools. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.
Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.
Catalog license label: LGPL-2.1. Check the source repository's current license and terms before using, modifying or distributing this software.
能力定义尚未审核。未核验的采集内容不会作为可信接口展示。
暂无可展示的已审核记录。这不表示上游不支持此能力。
暂无可展示的已审核记录。这不表示上游不支持此能力。
暂无可展示的已审核记录。这不表示上游不支持此能力。
Email delivery is not connected. This page does not collect email addresses or create subscriptions.
Browse the registry for current listings instead.
Reviews for Exact-rational calculator with an MCP server are not available yet
Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.
Yes; calc_config can get or set session precision and display, while calc_eval's mode, digits and epsilon act as per-call overrides.
It exposes calc_eval for evaluating expressions, calc_config for precision and display settings, and calc_functions for listing builtins.
README.md · d4e9be9cd9de · 采集于 2026-11-13 11:35:48 UTC
保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。
当前显示最后一次成功采集的文档快照,请以来源页面为准。
A Rust port of calc (Landon Curt Noll's
arbitrary-precision calculator) that works as:
rcalc — a calc-compatible command-line calculatorThree interfaces, one engine. The numeric core uses exact rational arithmetic
(num-rational over num-bigint), which is the same model calc uses natively —
so 1/3 * 3 is exactly 1, and 2^256 is computed to the last digit.
👉 Getting Started in 2 minutes — new to rcalc? Start here. 👉 Install as Claude Desktop MCP — integrate with Claude Desktop.
cargo build --release
# binaries:
# target/release/toRustCalcMCP (auto-detects MCP vs CLI)
# target/release/rcalc (always the CLI)
Optionally symlink: ln -s toRustCalcMCP rcalc — when argv[0] is rcalc,
toRustCalcMCP behaves as the calculator.
rcalc)rcalc '2^100' # 1267650600228229401496703205376
rcalc '1/3 + 1/6' # 0.5
rcalc -m frac '1/3 + 1/6' # 1/2
rcalc 'gcd(462,1071)' # 21
rcalc 'fact(30)' # 265252859812191058636308480000000
rcalc 'sqrt(2)' # 1.4142135623730950488
rcalc 'isprime(1000003)' 'nextprime(1000003)' # 1 \n 1000033
echo '3*4' | rcalc -p # pipe mode
rcalc # interactive REPL (Ctrl-D to exit)
Flags: -p pipe mode, -q quiet, -m real|frac|int, -v version, -h help.
Several classic calc flags (-c -C -d -e -i -O -s -u) are accepted and ignored.
cargo build --release
./target/release/rcalc-web
# Open browser: http://localhost:8888
A modern browser-based REPL with:
Try it: open http://localhost:8888 and enter 2^256 or sin(pi()/6).
toRustCalcMCP --mcp # speak JSON-RPC 2.0 over stdio
Handshake → initialize, then tools/list, then tools/call. See
docs/MCP_TOOL_SCHEMA.json for the authoritative,
server-emitted schema and examples/mcp-config.json
for a client registration snippet.
| tool | purpose | key args |
|---|---|---|
calc_eval | evaluate an expression | expression (req), mode, digits, epsilon |
calc_config | get/set session precision & display | action (get/set), mode, digits, epsilon |
calc_functions | list builtins | filter (optional substring) |
calc_eval's mode/digits/epsilon are per-call overrides; calc_config set
changes them for the session.
+ - * / (exact), // (integer divide), % (modulus), ^/**
(power), comparisons == != < <= > >= (yield 1/0), unary -/+.x = 7; x^2.define f(x) = x^2; f(5) → 25.if/else, while, for loops, blocks with {}.;-separated statements; the value of each is printed (calc behaviour).a/b rationals, decimals, 1.2e-3, 0x/0b.list(1,2,3); append(x,4); slice(x,1,3).sqrt(-1) → i; arithmetic with +, -, *, /."hello"; strlen(s); index(haystack, needle).Numbers are exact rationals. Irrational results are approximated to within the
session epsilon (default exact 1/10^20), exactly like calc. Transcendentals (exp,
ln, sin, cos, tan) are computed at arbitrary precision via Taylor series
and Newton's method. sqrt, sin, cos, etc. converge until term < epsilon.
pi/e are 60-digit constants. A leading ~ in real-mode output marks an
inexact (rounded/non-terminating) rendering, as in calc.
calc upstream (lcn2/calc func.c) defines 350 builtins. This port registers
483 builtin names covering 335 of the 350 upstream builtins (the other
148 that were long missing were added in the upstream-parity batches below),
plus dozens of extensions and aliases beyond upstream (statistics, hashing,
bit tricks, system info, and more).
These upstream names are artifacts of calc's C interpreter and have no meaningful mapping to this port's architecture; they remain unimplemented rather than shipping fake stubs:
access, calc_tty, calclevel, calcpath, custom, dp, estr,
inputlevel, memsize, name, param, prompt, protect, saveval,
stoponerror
d2dm/d2dms (and the g/h
family) return [deg, min] / [deg, min, sec] lists; quomod returns
[q, r]; search/rsearch return an index or null.modify, copy, swap
(builtins receive values, not references).base2() reads as 0 (no secondary base); setting it errors — the renderer
has a single output base.free*() are no-ops: nothing is cached, values are computed on demand.define name(params) = expr), higher-order
builtins (select/forall/modify call function values)if/else, while, for loops)-f filename), file I/O builtins, REPL, pipe modecalc upstream is ~92,000 lines of C with ~350 builtins and a full, Turing-complete scripting language. This port is a faithful core, structured for incremental, additive expansion:
The architecture is stable; adding more functions is straightforward.
LGPL-2.1, matching calc upstream.
Claim this server with your GitHub account to request manual ownership verification.
Link to the catalog listing for Exact-rational calculator with an MCP server from your README. This badge does not certify ownership, compatibility or security.
[](https://awesome-mcp.com/servers/torustcalcmcp)Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.
来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。
尚无已审核的包 / 镜像标识,暂不展示下载统计。
Alternative and complementary servers in the same category

A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

A hosted MCP service for browsing and searching through Singapore mobile-network proxies.

A directory listing describing a Markdown-to-PDF service. The configured public GitHub repository returned 404 during source verification.