Calc MCP logo

Calc MCP

Local MCP tools for deterministic math, dates, encoding, hashing, parsing, conversion, randomness, and text analysis.

Install Calc MCP

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "calc-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@coo-quack/calc-mcp@2.1.5"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Install not yet sandbox-tested— the server itself is confirmed live (we called its tools/list endpoint). The stdio install command is a separate, ongoing check.

Overview

calc-mcp provides 21 local MCP tools for calculations, random value generation, date and timezone handling, encoding, hashing, parsing, validation, and conversions. It runs through Node.js and can be launched with npx, without an API key or external service. Reach for it when an agent needs reproducible arithmetic, cryptographic randomness, timezone-aware date operations, or exact string and format processing. The server includes safeguards such as sandboxed math, ReDoS protection, and warnings for weak hashes.

Use cases

  • Evaluate expressions and calculate statistics
  • Convert dates, timezones, units, colors, and number bases
  • Generate UUIDs, passwords, random values, and shuffled lists
  • Validate JSON, CSV, XML, YAML, URLs, IP ranges, and semantic versions
  • Inspect hashes, JWT payloads, Unicode characters, and text differences

Key features

  • 21 local MCP utility tools
  • Deterministic math and date operations
  • Cryptographic randomness and configurable passwords
  • Encoding, hashing, parsing, and validation utilities
  • Unit, color, IP, base, and semantic-version conversion
  • Sandboxed math and regular-expression ReDoS protection

Tools21

What Calc MCP lets your agent do. Expand a tool for its parameters.

Verified live~3.1k tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked Today

Recent health check succeeded.

12/12 checks healthy over the last 58d

What it can do

From the 21 tools this server returned when we ran it.

Handles credentials · 2Makes network requests · 2Read-only tools · 21
Network at startup3 connections
Files written at startupNone
Install scriptsNone
npm provenanceSigned build
Package age257 days
Maintainers1

Observed 2026-10-26 in an isolated sandbox. A description of reach, not a security audit.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 1h ago via OSV.dev · @coo-quack/calc-mcp@2.1.5 (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars9Stargazers on the source repository.
npm downloads1.3kPackage downloads in the last 30 days.
Last commit1d agoMost recent push to the default branch.
Tools exposed21Callable tools this server registers over MCP.

How Calc MCP works

What calc-mcp does

calc-mcp exposes a broad set of deterministic utility operations through the Model Context Protocol. Its tools cover numeric work, dates, text, data formats, network values, identifiers, and common developer calculations. Computation runs locally, so inputs are processed on the machine running the server rather than sent to an external API. No account or API key is required; Node.js is required.

The collection is useful when an AI assistant needs exact results instead of attempting calculations or format transformations in generated text. Examples include evaluating an expression, checking whether a version satisfies a range, converting a unit, finding the next cron executions, or inspecting a URL.

How it works

An MCP-compatible client starts the package as a local process and makes the named tools available to the assistant. Install and launch it with npx, then configure the client to use the server. Requests are handled by the corresponding utility tool and return structured or textual results depending on the operation.

The math tool evaluates expressions and calculates statistics. Date-related work is split between datetime, which handles current time, timezone conversion, formatting, and UNIX timestamps, and date, which supports date differences, date arithmetic, weekdays, and Japanese wareki conversion. random generates UUIDs, ULIDs, passwords, random numbers, and shuffled lists.

Text and data utilities include Base64, URL, HTML, and Unicode encoding; grapheme-aware character, word, line, and byte counts; regular-expression operations; JSON, CSV, XML, and YAML validation or parsing; and text comparison using line diffs or Levenshtein distance. Additional tools handle hashes and HMACs, number bases, Luhn checks, IP and CIDR calculations, colors, units, Unicode metadata, JWT inspection, URLs, cron expressions, and semantic versions.

Setup and configuration

Run the package with Node.js and npx:

Terminal
npx -y @coo-quack/calc-mcp@latest

For Claude Code, the server can be registered as a user-scoped MCP server:

Terminal
claude mcp add -s user calc-mcp -- npx -y @coo-quack/calc-mcp@latest

Other MCP clients require their normal server configuration flow. The package itself does not require environment variables, an account, or an API key.

Tools and capabilities

  • random: UUID v4/v7, ULID, configurable passwords, random numbers, and list shuffling.
  • hash: MD5, SHA-1, SHA-256, SHA-512, CRC32, and HMAC operations.
  • base64, encode, url_parse: Base64, URL, HTML, Unicode, and URL-component processing.
  • datetime, date, cron_parse: Timezones, timestamps, date arithmetic, wareki conversion, and cron schedules.
  • math, base, convert, color: Expressions, statistics, base conversion from 2–36, unit conversion, and color formats.
  • count, diff, regex, char_info: Text measurements, comparisons, pattern operations, and Unicode details.
  • format_validate, semver, ip, luhn: Format checks, version ranges, IP calculations, and check digits.
  • jwt_decode: JWT header and payload decoding for inspection.

Limitations and notes

JWT decoding is inspection only and does not verify signatures. A decoded payload must not be trusted for authentication or authorization without separate verification using the issuer’s key or shared secret.

MD5 and SHA-1 are included for compatibility but are cryptographically broken and should not be used for security-sensitive purposes. SHA-256 or SHA-512 are the recommended alternatives. The diff tool uses the Myers algorithm and falls back to a full replacement when edit distance exceeds 1,000. Math evaluation is sandboxed, and regular-expression processing includes ReDoS protection.

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Calc MCP

calc-mcp is an MCP server that connects AI clients to local utilities for math, dates, randomness, encoding, hashing, parsing, validation, conversion, and text analysis. Its main tools include math, random, datetime, hash, regex, format_validate, convert, and semver, with 21 tools available through MCP.

Install and run it with Node.js and npx using `npx -y @coo-quack/calc-mcp@latest`. For Claude Code, register it with `claude mcp add -s user calc-mcp -- npx -y @coo-quack/calc-mcp@latest`; other MCP clients use their standard server setup.

Yes, calc-mcp works with Cursor through its MCP server configuration. It also supports Claude Desktop, VS Code Copilot, Windsurf, and other MCP clients.

No, calc-mcp only decodes JWT headers and payloads for inspection. It does not verify signatures, so authentication or authorization decisions require separate verification with the issuer’s verification key or shared secret.

No, calc-mcp does not require an account or API key. It runs locally with Node.js and npx, and its computations do not use external services.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewCalc MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/calc-mcp?style=directory)](https://allmcps.com/mcp/calc-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/calc-mcp"><img src="https://allmcps.com/api/badge/calc-mcp?style=directory" alt="Calc MCP on AllMCPs" /></a>