PluginBench
MCP Server
Active
MIT

io.github.coo-quack/calc-mcp MCP Server

io.github.coo-quack/calc-mcp

21 deterministic tools for math, randomness, dates, encoding, hashing—things AI gets wrong.

What is the io.github.coo-quack/calc-mcp MCP server?

Calc MCP is an MCP server providing 21 tools for accurate computation, cryptographic randomness, date arithmetic, encoding, hashing, and text analysis. It fixes common LLM failures like hallucinated calculations, fake random numbers, and timezone errors by running all operations locally and deterministically.

Calc MCP gives AI assistants reliable access to 21 specialized tools for math, text processing, date/time operations, encoding, hashing, and data conversion. LLMs hallucinate calculations and can't generate true random numbers; this server ensures deterministic, accurate results for tasks like evaluating expressions, generating UUIDs, parsing dates, validating formats, and converting units—all computed locally without external API calls.

How to install io.github.coo-quack/calc-mcp

Copy-paste configuration for popular MCP clients.

transport: stdio
Config generated by PluginBench — verify against the source before use.
~/Library/Application Support/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "calc-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@coo-quack/calc-mcp"
      ]
    }
  }
}

Tools & capabilities

Tools this server exposes to the agent.

  • math — Evaluate mathematical expressions and compute statistics
  • count — Count characters (grapheme-aware), words, lines, and bytes
  • datetime — Get current time, convert between timezones, handle UNIX timestamps
  • random — Generate UUID v4/v7, ULID, passwords, random numbers, and shuffle arrays
  • hash — Compute MD5, SHA-1, SHA-256, SHA-512, CRC32, and HMAC hashes
  • base64 — Encode and decode Base64 strings
  • encode — URL encode/decode, HTML entity encode/decode, Unicode escape
  • date — Calculate date differences, add/subtract days, determine weekday, convert to wareki
  • regex — Test, match, matchAll, and replace using regular expressions
  • base — Convert numbers between bases 2–36
  • diff — Compute line diffs and Levenshtein distance
  • format_validate — Validate JSON, CSV, XML, and YAML formats
  • cron_parse — Parse cron expressions and show next run times with human-readable output
  • luhn — Validate and generate Luhn check digits
  • ip — Analyze IPv4/IPv6 addresses, check CIDR containment, calculate IP ranges
  • color — Convert between HEX, RGB, and HSL color formats with alpha channel support
  • convert — Convert units across 8 categories: length, weight, temperature, area, volume, speed, data, time (146 unit names)
  • char_info — Get Unicode code point, block, and category for characters
  • jwt_decode — Decode JWT header and payload (no verification)
  • url_parse — Parse URLs into protocol, host, path, parameters, and hash

Use cases

  • Perform accurate arithmetic and statistical calculations without hallucination
  • Generate cryptographically secure UUIDs, ULIDs, and random passwords
  • Convert between timezones and perform date arithmetic with correct handling of edge cases
  • Encode/decode text in Base64, URL, HTML, and Unicode formats
  • Hash passwords and data using MD5, SHA-256, SHA-512, HMAC, and other algorithms
  • Validate and parse structured data formats like JSON, CSV, XML, YAML, JWT, and URLs

io.github.coo-quack/calc-mcp MCP server FAQ

What is Calc MCP?

Calc MCP is an MCP server with 21 tools for deterministic math, randomness, date/time, encoding, hashing, and data validation. It fixes common LLM failures like hallucinated calculations and fake random numbers by running all operations locally.

Is Calc MCP free?

Yes, Calc MCP is free and open-source under the MIT license. It requires Node.js to run but no API key or account.

How do I install it in Claude Desktop or Cursor?

Add it to your MCP config file (claude_desktop_config.json for Claude Desktop, ~/.cursor/mcp.json for Cursor) with the command: npx -y @coo-quack/calc-mcp@2.1.2. See the README for platform-specific paths.

Does Calc MCP require authentication or an API key?

No, Calc MCP requires no API key or account. It runs entirely locally using Node.js; all computation happens on your machine.

Is my data sent to external servers?

No. Calc MCP processes all data locally and does not send anything to external servers, log to files, or store data persistently. However, when used via an LLM, your inputs are sent to the LLM provider (Anthropic, OpenAI, etc.).

What are the 21 tools?

math, count, datetime, random, hash, base64, encode, date, regex, base, diff, format_validate, cron_parse, luhn, ip, color, convert, char_info, jwt_decode, url_parse, and semver.

README (reference)

Source of truth, from the repository.

Calc MCP

npm version CI License: MIT <br /> <br /> <img width="100%" alt="Calc MCP demo" src="https://i.imgur.com/DcOhAD4.png" /> <br /> <br /> 📖 Documentation — Full tool reference, examples, and install guides.

21 tools for things AI is not good at — deterministic math, cryptographic randomness, accurate date arithmetic, encoding, hashing, and more.

LLMs hallucinate calculations, can't generate true random numbers, and struggle with timezones. This MCP server fixes that.

Quick Start

# Claude Code
claude mcp add -s user calc-mcp -- npx -y @coo-quack/calc-mcp@2.1.2

# Or just run it
npx -y @coo-quack/calc-mcp@2.1.2

Works with Claude Desktop, VS Code Copilot, Cursor, Windsurf, and any MCP client — setup guides below.


Why?

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..." 💀 hallucinated{"hash": "ef92b778bafe..."} ✅ (hash)
  • Deterministic — Same input, same correct output, every time
  • Secure — Sandboxed math, ReDoS protection, weak hash warnings
  • Private — All computation runs locally, no data sent to external services
  • No server config — Install once via npx; MCP client setup required
  • No API key — No account or API key required for calc-mcp itself; requires Node.js

Examples

Ask in natural language — your AI assistant selects the appropriate tool.

Math & Numbers

You askYou getTool
What's 10 + 34 × 341 ÷ 23?514.087math
Convert 255 to binary11111111base
Is 4539578763621486 a valid card number?trueluhn

Text & Encoding

You askYou getTool
How many characters in "Hello, World! 🌍"?15 chars, 18 bytescount
Base64 encode "Hello World"SGVsbG8gV29ybGQ=base64
Base64 decode "eyJhbGciOiJIUzI1NiJ9"{"alg":"HS256"}base64
URL-encode "hello world"hello%20worldencode
URL-decode "hello%20world"hello worldencode
HTML-decode &lt;script&gt;<script>encode
SHA-256 hash of "password123"{"hash": "ef92b778bafe..."}hash
HMAC-SHA256 of "message" with key "secret"{"hash": "8b5f48702995..."}hash

Date & Time

You askYou getTool
What time is it in New York?2026-02-10T19:00:00-05:00datetime
What's 100 days after 2026-02-11?2026-05-22date
When does "30 9 * * 1-5" run?Mon–Fri at 9:30cron_parse

Generation

You askYou getTool
Generate a UUID v7019c4b54-aad2-7e52-...random
Generate a readable 20-char passwordhT9jZDojX6sHRJt8vaKSrandom
Shuffle ["Alice", "Bob", "Charlie"]["Charlie", "Alice", "Bob"]random

Conversion

You askYou getTool
100 miles in kilometers?160.93 kmconvert
72°F in Celsius?22.22°Cconvert
Convert #FF5733 to RGBrgb(255, 87, 51)color
Convert rgba(255, 0, 0, 0.5) to 8-digit HEX#ff000080color

Analysis & Parsing

You askYou getTool
Extract numbers from "abc123def456"123, 456regex
Does 1.5.3 satisfy ^1.0.0?truesemver
Does 1.8.0 satisfy ">=1.5.0 <2.0.0"?truesemver
IP range of 192.168.1.0/24?192.168.1.1 – .254 (254 hosts)ip
Edit distance: "kitten" → "sitting"3diff
Unicode info for "€"U+20AC, Currency Symbolschar_info
Is {"name":"test"} valid JSON?valid, objectformat_validate

Decode & Parse

You askYou getTool
Decode this JWT: eyJhbGci...{ alg: "HS256", name: "John Doe" }jwt_decode
Parse https://example.com/search?q=hellohost: example.com, q: "hello"url_parse

All 21 Tools

ToolDescription
mathEvaluate expressions, statistics
countCharacters (grapheme-aware), words, lines, bytes
datetimeCurrent time, timezone conversion, UNIX timestamps
randomUUID v4/v7, ULID, passwords (readable, custom charset), random number, shuffle
hashMD5, SHA-1, SHA-256, SHA-512, CRC32, HMAC
base64Encode / decode
encodeURL, HTML entity, Unicode escape
dateDiff, add/subtract, weekday, wareki
regexTest, match, matchAll, replace
baseNumber base conversion (2–36)
diffLine diff, Levenshtein distance
format_validateValidate JSON, CSV, XML, YAML
cron_parseHuman-readable cron + next runs (weekday/month names supported)
luhnValidate / generate check digits
ipIPv4/IPv6 info, CIDR contains check, range calculation
colorHEX ↔ RGB ↔ HSL (alpha channel supported)
convert8 categories, 146 unit names: length, weight, temperature, area (tsubo, tatami), volume, speed, data, time
char_infoUnicode code point, block, category
jwt_decodeDecode header + payload (no verification)
url_parseProtocol, host, path, params, hash
semverCompare, validate, parse, range satisfaction

Install

Claude Code

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

Claude Code plugin

Also available as a plugin from the coo-quack marketplace:

/plugin marketplace add coo-quack/claude-code-marketplace
/plugin install calc-mcp@coo-quack

See the installation guide for details.

Claude Desktop / Cursor / Windsurf

Add to your config file:

AppConfig path
Claude Desktop (macOS)~/Library/Application Support/Claude/claude_desktop_config.json
Claude Desktop (Windows)%APPDATA%\Claude\claude_desktop_config.json
Cursor~/.cursor/mcp.json
Windsurf~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "calc-mcp": {
      "command": "npx",
      "args": ["-y", "@coo-quack/calc-mcp@2.1.2"]
    }
  }
}

VS Code (GitHub Copilot)

Add to .vscode/mcp.json in your workspace:

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

Docker Image

Calc MCP is available as a Docker image from GitHub Container Registry:

docker run --rm -i ghcr.io/coo-quack/calc-mcp:latest

Or use in MCP client config:

{
  "mcpServers": {
    "calc-mcp": {
      "command": "docker",
      "args": ["run", "--rm", "-i", "ghcr.io/coo-quack/calc-mcp:latest"]
    }
  }
}

Available tags:

  • ghcr.io/coo-quack/calc-mcp:latest — Latest release
  • ghcr.io/coo-quack/calc-mcp:X.Y.Z — Specific version (replace X.Y.Z with the desired version)

Other MCP Clients

Calc MCP works with any MCP-compatible client. Run the server via stdio:

npx -y @coo-quack/calc-mcp@2.1.2

Point your client's MCP config to the command above. The server communicates over stdio using the standard Model Context Protocol.

Development

bun install
bun run dev       # Start dev server
bun test          # Run tests
bun run lint      # Biome
bun run format    # Biome

Security

calc-mcp processes all data locally and does not:

  • ❌ Send data to external servers
  • ❌ Log data to files or remote services
  • ❌ Store processed data persistently

For detailed security information, see SECURITY.md.

Safe Usage with LLMs

calc-mcp itself is local-only. However, when used via an LLM, your inputs are sent to the LLM provider (Anthropic, OpenAI, etc.).

  • ✅ DO: Use test/sample data when possible
  • ✅ DO: Use local-only LLMs for sensitive operations
  • ❌ DON'T: Pass production secrets to MCP tools (they will be sent to your LLM provider)

Example:

# ❌ Unsafe: Any secret passed to MCP tool is sent to your LLM provider
# Tool: hash
# Input: { "input": "sk-1234567890abcdef", "algorithm": "sha256" }

# ✅ Safe: Use test data only (for learning/development)
# Tool: hash
# Input: { "input": "test-value-123", "algorithm": "sha256" }

# ✅ For production secrets: Use local-only LLMs or process outside MCP

Note: Error messages are automatically sanitized to prevent accidental data leakage.

For security issues, please see our Security Policy.

License

MIT

Related MCP servers

Signed, cited, replayable workflows for Claude, Codex, Gemini, DeepSeek, and other agents.

1
TypeScript
BSD-2-Clause
View repository →

Cookie Chain tools for AI agents: swap, launch, liquidity, staking, NFTs, and a Solana bridge.

3
TypeScript
MIT
View repository →

Send physical handwritten postcards from any AI agent. Real pen & ink, USPS, $4.99/card.

1
JavaScript
MIT
View repository →

Render HTML, Markdown, or URLs to images, PDF, or branded artifacts; extract and watch pages.

5
TypeScript
MIT
View repository →

Search human-curated content recommendations from Copus - The Internet Treasure Map

0
JavaScript
MIT
View repository →

AI-powered content processing with 226 Fabric patterns for writing, analysis, and code generation.

View repository →