Basic MCP Server

Local setup required. This server has to be cloned and prepared on your machine before you register it in Claude Code.
1

Set the server up locally

Run this once to clone and prepare the server before adding it to Claude Code.

Run in terminal
bun install
2

Register it in Claude Code

After the local setup is done, run this command to point Claude Code at the built server.

Run in terminal
claude mcp add basic-mcp -- bun run "<FULL_PATH_TO_BASIC_MCP>/dist/index.js"

Replace <FULL_PATH_TO_BASIC_MCP>/dist/index.js with the actual folder you prepared in step 1.

README.md

Deterministic tools for time, math, counting, randomness, and validation.

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

Tool Description
now Get current date/time with timezone support
date_diff Calculate difference between two dates
date_add Add/subtract time from a date
unix_timestamp Convert between Unix timestamps and dates

Math

Tool Description
calculate Evaluate math expressions (supports "15% of 200", sqrt, trig, etc.)
convert_units Convert between units (km to miles, celsius to fahrenheit, etc.)
statistics Calculate mean, median, mode, std dev, min, max, sum

Strings

Tool Description
count Count characters, words, lines, bytes, sentences, paragraphs
hash Generate MD5, SHA1, SHA256, SHA512 hashes
uuid Generate UUID v4
base64 Encode/decode base64
regex_test Test strings against regex patterns

Random

Tool Description
random_int Cryptographically secure random integer
random_float Cryptographically secure random float
random_choice Select random item(s) from a list
shuffle Randomly shuffle an array (Fisher-Yates)

Validation

Tool Description
validate Validate email, URL, IPv4, IPv6, UUID, JSON, credit card (Luhn)
json_parse Parse JSON with optional path extraction
url_parse Parse URL into components
dns_lookup DNS lookup (A, AAAA, MX, TXT, NS, CNAME records)

License

MIT

Tools (20)

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
calculateEvaluate math expressions
convert_unitsConvert between units
statisticsCalculate mean, median, mode, std dev, min, max, sum
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_intCryptographically secure random integer
random_floatCryptographically secure random float
random_choiceSelect random item(s) from a list
shuffleRandomly shuffle an array
validateValidate email, URL, IPv4, IPv6, UUID, JSON, credit card
json_parseParse JSON with optional path extraction
url_parseParse URL into components
dns_lookupDNS lookup for various record types

Configuration

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

Try it

Calculate the number of days between January 1st, 2024 and today.
What is 15% of 200 plus the square root of 144?
Generate a secure UUID and hash the string 'hello world' using SHA256.
Validate if this string is a properly formatted email address: user@example.com.
Perform a DNS lookup for the MX records of google.com.

Frequently Asked Questions

What are the key features of Basic MCP?

Deterministic time and date calculations. Advanced mathematical expression evaluation and statistics. String manipulation including hashing, encoding, and regex testing. Cryptographically secure random number generation. Data validation for common formats like JSON, URLs, and IP addresses.

What can I use Basic MCP for?

Ensuring accurate date math in project planning tasks. Performing reliable unit conversions for scientific or engineering data. Validating user-provided configuration strings or network addresses. Generating secure identifiers and hashes for development workflows. Analyzing text statistics like word and character counts.

How do I install Basic MCP?

Install Basic MCP by running: bun install

What MCP clients work with Basic MCP?

Basic MCP works with any MCP-compatible client including Claude Desktop, Claude Code, Cursor, and other editors with MCP support.

Turn this server into reusable context

Keep Basic MCP docs, env vars, and workflow notes in Conare so your agent carries them across sessions.

Need the old visual installer? Open Conare IDE.
Open Conare