basic-mcp
basic-mcp
MCP server providing deterministic tools for operations that LLMs commonly struggle with: time, math, counting, randomness, and validation.
Installation
bun installUsage
With Claude Code
Add to ~/.claude.json:
{
"mcpServers": {
"basic-tools": {
"command": "bun",
"args": ["run", "/path/to/basic-mcp/index.ts"]
}
}
}Standalone
bun run index.tsTools
Time
Tool | Description |
| Get current date/time with timezone support |
| Calculate difference between two dates |
| Add/subtract time from a date |
| Convert between Unix timestamps and dates |
Math
Tool | Description |
| Evaluate math expressions (supports "15% of 200", sqrt, trig, etc.) |
| Convert between units (km to miles, celsius to fahrenheit, etc.) |
| Calculate mean, median, mode, std dev, min, max, sum |
Strings
Tool | Description |
| Count characters, words, lines, bytes, sentences, paragraphs |
| Generate MD5, SHA1, SHA256, SHA512 hashes |
| Generate UUID v4 |
| Encode/decode base64 |
| Test strings against regex patterns |
Random
Tool | Description |
| Cryptographically secure random integer |
| Cryptographically secure random float |
| Select random item(s) from a list |
| Randomly shuffle an array (Fisher-Yates) |
Validation
Tool | Description |
| Validate email, URL, IPv4, IPv6, UUID, JSON, credit card (Luhn) |
| Parse JSON with optional path extraction |
| Parse URL into components |
| DNS lookup (A, AAAA, MX, TXT, NS, CNAME records) |
License
MIT
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/msilverblatt/basic-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server