Skip to content
MCP server

Calc MCP

21 deterministic tools for math, dates, hashing, encoding, random values and units

Runs locallyStatus and history
Install
Pricing
Open source
Platforms
CLI, macOS, Linux
Runs
Locally
Version
2.1.5
Listing updated
today

Similar MCP servers

About Calc MCP

Calc MCP is an open-source MCP server for developer tools. It runs locally on your machine and is started by your AI client.

Calc MCP exists because language models are unreliable at exact calculation, true randomness and date arithmetic. The README contrasts a wrong mental sum with the correct result from its math tool, a made-up UUID with a cryptographically random v4 or v7, and a guessed future date with a computed one. Everything runs locally; the README says no data is sent to external services, no API key or account is needed, and Node.js is required.

The 21 tools span arithmetic and statistics, grapheme-aware text counts, time zones and UNIX timestamps, hashes and HMAC, Base64, URL and HTML encoding, regex, base conversion, line and Levenshtein diffs, format validation for JSON, CSV, XML and YAML, cron explanation with next runs, Luhn checks, IP and CIDR maths, colour conversion, unit conversion across 146 unit names, semver ranges, Unicode character info, JWT decoding and URL parsing.

The README mentions sandboxed maths, ReDoS protection and weak-hash warnings. It is MIT licensed and installed through npx.

Install

Run in a terminal

claude mcp add calc-mcp -- npx -y @coo-quack/calc-mcp

Add to claude_desktop_config.json

{
  "mcpServers": {
    "calc-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@coo-quack/calc-mcp"
      ]
    }
  }
}
Install in CursorOpens Cursor, which asks you to confirm. Or add it by hand:

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "calc-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@coo-quack/calc-mcp"
      ]
    }
  }
}
Install in VS CodeOpens VS Code, which asks you to confirm. Or add it by hand:

Add to .vscode/mcp.json

{
  "servers": {
    "calc-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@coo-quack/calc-mcp"
      ]
    }
  }
}

Add to ~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "calc-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@coo-quack/calc-mcp"
      ]
    }
  }
}

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "calc-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@coo-quack/calc-mcp"
      ]
    }
  }
}

Using several servers? Build one config file with the MCP config generator.

Tools this server provides (21)

Taken from the project documentation; the running server may differ.

math
Evaluates expressions and statistics.
count
Counts characters, words, lines and bytes.
datetime
Gives current time, timezone conversion and UNIX timestamps.
random
Generates UUIDs, ULIDs, passwords, random numbers and shuffles.
hash
Computes MD5, SHA-1, SHA-256, SHA-512, CRC32 and HMAC.
base64
Encodes and decodes Base64.
encode
Encodes URL, HTML entity and Unicode escape.
date
Computes diffs, adds or subtracts, weekdays and wareki.
regex
Tests, matches and replaces with regular expressions.
base
Converts number bases 2 to 36.
diff
Line diff and Levenshtein distance.
format_validate
Validates JSON, CSV, XML and YAML.
cron_parse
Explains cron expressions and next runs.
luhn
Validates or generates check digits.
ip
IPv4 and IPv6 info, CIDR checks and range calculation.
color
Converts between HEX, RGB and HSL.
convert
Converts units across 8 categories.
semver
Checks version ranges.
char_info
Gives Unicode info for a character.
jwt_decode
Decodes JWTs.
url_parse
Parses URLs.

What it does

Exact maths
Evaluates expressions and statistics deterministically.
Secure random
UUID v4 and v7, ULID, passwords and shuffles.
Date arithmetic
Time zones, differences, offsets and weekdays.
Hashing and encoding
MD5 to SHA-512, CRC32, HMAC, Base64, URL and HTML.
Developer parsers
JWT decode, URL parse, regex, semver and cron.
Fully local
No data leaves the machine and no API key is needed.

Good for

  • Compute an expression exactly instead of trusting model arithmetic
  • Generate a secure UUID or password
  • Add days to a date or convert a time zone
  • Hash a string or decode a JWT while debugging

Pricing

Open source

MIT licence; free

Calc MCP FAQ

Does it need an API key?

No. It requires only Node.js.

Does my data leave my machine?

The README says all computation runs locally.

How do I install it?

Run it with npx, for example through claude mcp add.

How many tools are there?

21.

Is Calc MCP free?

Yes. Calc MCP is open source, so you can use and self-host it for free.

How do I add Calc MCP to Claude Code?

Run this command in your terminal: claude mcp add calc-mcp -- npx -y @coo-quack/calc-mcp

What are the best alternatives to Calc MCP?

The closest alternatives to Calc MCP are REA, Context7, Chrome DevTools MCP, Codebase Memory and GitHub.

Where this comes from

  • Description: written from the project's README.
  • Install steps: from the official MCP Registry entry.

How AIPoweredBot checks servers