Skip to content

Calc MCP21 tools for things AI is not good at

Deterministic math, cryptographic randomness, accurate date arithmetic, encoding, hashing, and more

Why Calc MCP? โ€‹

LLMs are incredible at natural language understanding, but terrible at things that require precision.

AI aloneWith calc-mcp
"10 + 34 ร— 341 รท 23 = 507.8" โŒ514.087 โœ… (math)
"Here's a UUID: 550e8400-..." ๐Ÿคท fakeCryptographically random UUID v4/v7 โœ… (random)
"100 days from now is..." ๐Ÿค” guess2026-05-22 โœ… (date)
"SHA-256 of password123 is..." ๐Ÿ’€ hallucinatedef92b778bafe... โœ… (hash)

Calc MCP gives your AI assistant the tools to delegate these tasks to deterministic, tested code.

  • Deterministic โ€” Same input, same correct output, every time. No more "it depends on the run."
  • Secure โ€” Sandboxed math evaluation, ReDoS protection, weak hash warnings built in.
  • Private โ€” All computation runs locally. No data sent to external services.
  • Zero config โ€” Install once, just ask in natural language. The AI picks the right tool.
  • No API key โ€” Works offline, no external dependencies. Just Node.js.

Quick Start โ€‹

bash
# Claude Code
claude mcp add -s user calc-mcp -- npx --prefix /tmp -y @coo-quack/calc-mcp@latest

Works with Claude Desktop, VS Code Copilot, Cursor, Windsurf โ€” see installation guides.

Usage โ€‹

Just ask in natural language. The AI picks the right tool automatically:

You: What's 10 + 34 ร— 341 รท 23?
AI: [uses math tool] โ†’ 514.087

You: Generate a UUID v7
AI: [uses random tool] โ†’ 019c4b54-aad2-7e52-8a3b-...

You: What's 100 days after 2026-02-11?
AI: [uses date tool] โ†’ 2026-05-22

You: SHA-256 hash of "password123"
AI: [uses hash tool] โ†’ ef92b778bafe771e89245b89ec...

See more examples โ†’

All 21 Tools โ€‹

CategoryTools
Mathmath, count, convert, base
Randomrandom (UUID, ULID, password, number, shuffle)
Datesdatetime, date, cron_parse
Textbase64, encode, hash, regex, diff, char_info
Validationjson_validate, luhn, semver
Parsingip, color, jwt_decode, url_parse

View all tools โ†’

Features โ€‹

  • โœ… 21 MCP tools covering calculations, randomness, dates, encoding, parsing
  • โœ… Tested โ€” 453 tests, 512 assertions across unit and E2E
  • โœ… Fast โ€” Pure JavaScript/TypeScript, no heavy dependencies
  • โœ… Cross-platform โ€” Works with Claude Desktop, VS Code, Cursor, Windsurf
  • โœ… MIT Licensed โ€” Free to use, modify, distribute

Released under the MIT License.