A Rust port of calc (Landon Curt Noll's arbitrary-precision calculator)
@carlomagnoglobal
10 hours ago
A Rust port of calc (Landon Curt Noll's arbitrary-precision calculator) that works as:
rcalc — a calc-compatible command-line calculator
Web REPL — browser-based interactive calculator
MCP server — JSON-RPC 2.0 over stdio for LLM/agent integration
Three 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.
Server Config
{
"mcpServers": {
"toRustCalcMCP": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"ghcr.io/carlomagnoglobal/torustcalcmcp:latest"
]
}
}
}