New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

basic-mcp

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

basic-mcp

MCP server providing deterministic tools for time, math, strings, random, and validation

latest
npmnpm
Version
1.0.0
Version published
Weekly downloads
15
1400%
Maintainers
1
Weekly downloads
 
Created
Source

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

FAQs

Package last updated on 13 Dec 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts