MCP Hub
Back to servers

basic-mcp

A robust suite of deterministic utility tools designed to handle mathematical calculations, date-time manipulation, string processing, and data validation tasks that LLMs often struggle to perform reliably.

Tools
20
Updated
Dec 13, 2025

basic-mcp

MCP server providing deterministic tools for operations that LLMs commonly struggle with: time, math, counting, randomness, and validation.

Installation

bun install

Usage

With Claude Code

Add to ~/.claude.json:

{
  "mcpServers": {
    "basic-tools": {
      "command": "bun",
      "args": ["run", "/path/to/basic-mcp/index.ts"]
    }
  }
}

Standalone

bun run index.ts

Tools

Time

ToolDescription
nowGet current date/time with timezone support
date_diffCalculate difference between two dates
date_addAdd/subtract time from a date
unix_timestampConvert between Unix timestamps and dates

Math

ToolDescription
calculateEvaluate math expressions (supports "15% of 200", sqrt, trig, etc.)
convert_unitsConvert between units (km to miles, celsius to fahrenheit, etc.)
statisticsCalculate mean, median, mode, std dev, min, max, sum

Strings

ToolDescription
countCount characters, words, lines, bytes, sentences, paragraphs
hashGenerate MD5, SHA1, SHA256, SHA512 hashes
uuidGenerate UUID v4
base64Encode/decode base64
regex_testTest strings against regex patterns

Random

ToolDescription
random_intCryptographically secure random integer
random_floatCryptographically secure random float
random_choiceSelect random item(s) from a list
shuffleRandomly shuffle an array (Fisher-Yates)

Validation

ToolDescription
validateValidate email, URL, IPv4, IPv6, UUID, JSON, credit card (Luhn)
json_parseParse JSON with optional path extraction
url_parseParse URL into components
dns_lookupDNS lookup (A, AAAA, MX, TXT, NS, CNAME records)

License

MIT

Reviews

No reviews yet

Sign in to write a review