Deterministic, high-precision business, finance & operational calculations for AI agents.
Built on Python's decimal module — never floats — so every answer is exact,
reproducible, and fully transparent (value + formula + inputs + assumptions).
● live MCP endpoint: https://precisioncalc-mcp.pages.dev/mcp · free tier: 25 calls/day, no key
LLMs lose precision and hallucinate on multi-step financial formulas, currency conversions, business-day logic, and growth math. PrecisionCalc gives agents a trustworthy calculator with a consistent, parseable JSON envelope on every call.
50-digit Decimal precision. Money & rates serialized as strings — zero float drift.
Every result includes the formula used, the inputs, the unit, and edge-case notes.
Uniform status/value/formula/inputs_used shape. Errors return actionable hints, never exceptions.
stdio + HTTP transports, API-key auth, rate limiting, usage metering, structured logs, OTel.
14 SaaS/biz metrics: LTV, CAC, LTV:CAC, payback, churn, MRR growth, ARR, break-even, NRR, GRR, Rule of 40, magic number…
9 currencies; static offline table or live/historical ECB rates with graceful fallback.
Add/count/next/prev; US/UK/EU + any ISO country + custom holidays.
Future value, present value, CAGR; 7 compounding frequencies incl. continuous.
Discounted cash flow (NPV) of a cashflow series.
IRR via Newton + bisection fallback.
Payment, totals, full schedule, extra-payment payoff.
Straight-line, declining-balance, sum-of-years-digits.
Many calculations in one request.
Discovery: every metric + required params.
Version, capabilities, status.
USDEURGBPJPY CADAUDCHFCNYINR
One remote endpoint, no install, no API key. Pick your client, copy the config, restart. Same exact-Decimal engine as the Python build (verified 17/17 output parity).
https://precisioncalc-mcp.pages.dev/mcp
~/.cursor/mcp.json (or a project's .cursor/mcp.json)
{
"mcpServers": {
"precisioncalc": {
"url": "https://precisioncalc-mcp.pages.dev/mcp"
}
}
}claude_desktop_config.json (Settings → Developer → Edit Config). Uses the
mcp-remote bridge for remote HTTP.
{
"mcpServers": {
"precisioncalc": {
"command": "npx",
"args": ["-y", "mcp-remote", "https://precisioncalc-mcp.pages.dev/mcp"]
}
}
}.vscode/mcp.json (or run “MCP: Add Server” in the Command Palette)
{
"servers": {
"precisioncalc": {
"type": "http",
"url": "https://precisioncalc-mcp.pages.dev/mcp"
}
}
}~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"precisioncalc": {
"serverUrl": "https://precisioncalc-mcp.pages.dev/mcp"
}
}
}Cline → MCP Servers → Configure (cline_mcp_settings.json)
{
"mcpServers": {
"precisioncalc": {
"type": "streamableHttp",
"url": "https://precisioncalc-mcp.pages.dev/mcp"
}
}
}Zed settings.json → context_servers
{
"context_servers": {
"precisioncalc": {
"source": "custom",
"command": "npx",
"args": ["-y", "mcp-remote", "https://precisioncalc-mcp.pages.dev/mcp"]
}
}
}Any Streamable-HTTP MCP client
{
"mcpServers": {
"precisioncalc": {
"type": "http",
"url": "https://precisioncalc-mcp.pages.dev/mcp"
}
}
}Verify from a terminal
curl -sN https://precisioncalc-mcp.pages.dev/mcp \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"currency_convert","arguments":{"amount":1000,"from_currency":"USD","to_currency":"JPY","live":true}}}'Works with
Start free to evaluate. When your agent needs real volume,
upgrade in two clicks — pay with card, get an API key instantly, send it as
X-API-Key. Cancel anytime.
$0
batch_calculateFor evaluation & low-volume testing.
$12/mo
Best for a single production agent.
$39/mo
For fleets & high-volume workloads.
Secure checkout by Stripe · cards & wallets · promo codes supported · manage anytime at the billing portal. Prices in USD.
{
"mcpServers": {
"precisioncalc": {
"url": "https://precisioncalc-mcp.pages.dev/mcp",
"headers": { "X-API-Key": "pck_live_your_key_here" }
}
}
}Prefer to self-host? The full Python server (stdio + HTTP), Docker image, and Fly.io / Render blueprints are open-source (MIT) — run your own with unlimited calls and your own keys.
Run locally (stdio, the default MCP transport)
git clone https://github.com/inity13/precisioncalc-mcp cd precisioncalc-mcp pip install -r requirements.txt python server.py # stdio python server.py http # streamable HTTP on /mcp
Register locally (stdio)
{
"mcpServers": {
"precisioncalc": {
"command": "python",
"args": ["/path/to/precisioncalc-mcp/server.py"]
}
}
}Example tool call → structured result
// call: net_present_value
{ "rate": 0.10,
"cashflows": [-10000, 3000, 4200, 6800] }
// result
{
"status": "success",
"value": "1307.287...",
"formatted_value": "$1,307.29",
"formula": "NPV = sum(CF_t / (1 + rate)^t)",
"inputs_used": { "rate": "0.10", "cashflows": [...] },
"unit": "USD",
"notes": ["Period 0 cashflow is not discounted.", ...]
}
⛭ Deploy: Docker image + Fly.io & Render blueprints included. HTTP transport
supports API keys, rate limiting, and a /metrics usage endpoint.
49 unit tests plus Hypothesis property tests assert rounding invariants and inverse operations (PV↔FV round-trips, currency round-trips, loan total consistency, NPV(IRR)≈0). The calculation engines are pure and deterministic.