epochcalc
Epoch Calculator MCP server
Time and date math that language models get wrong on their own: Unix timestamps, daylight-saving offsets, calendar arithmetic, and cron schedules. Every calculation uses the IANA time zone database, the same engine behind epochcalc.com.
No API key, no signup, no state. All tools are read-only.
Connect
The server is hosted at https://epochcalc.com/mcp (Streamable HTTP, stateless). Point any MCP client at it directly:
# Claude Code
claude mcp add --transport http epochcalc https://epochcalc.com/mcp{
"mcpServers": {
"epochcalc": { "type": "http", "url": "https://epochcalc.com/mcp" }
}
}stdio clients
For clients that only speak stdio, this package is a zero-dependency bridge to the hosted server (Node 18+):
{
"mcpServers": {
"epochcalc": { "command": "npx", "args": ["-y", "epochcalc-mcp"] }
}
}Or with Docker:
docker build -t epochcalc-mcp .
docker run -i --rm epochcalc-mcpSet EPOCHCALC_MCP_URL to point the bridge at a different endpoint.
Related MCP server: mcp-datetime
Tools
Tool | What it does |
| Current time in any zone, with epoch seconds, ISO 8601, RFC 2822, and DST flag |
| Unix timestamp (seconds or milliseconds, auto-detected) to a full date breakdown |
| Natural or ISO date string to timestamp and zone-aware fields |
| Same instant in two zones, with the hour difference and DST status of each |
| Days, weekdays, weeks, and calendar breakdown between two dates |
| Add or subtract years, months, weeks, days, hours, minutes, or seconds |
| Plain-English explanation of a cron expression plus its next N run times |
| Countdown to a named holiday or event, or list the supported events |
Every tool declares readOnlyHint, an input schema, and an output schema. The full machine-readable index is at epochcalc.com/api/v1.
Example prompts
"What time is it in Tokyo right now, and is it on daylight saving?"
"Convert 1700000000 to a readable date in London time."
"When are the next three runs of
0 9 * * 1-5in New York?""How many weekdays are between 2026-02-28 and 2026-04-01?"
Notes
Time zones are IANA names such as
America/New_YorkorEurope/Berlin. Abbreviations likeESTare ambiguous and rejected.The same tools are available as a plain JSON API at
https://epochcalc.com/api/v1(GET with query parameters or POST with a JSON body).Documentation: epochcalc.com/api
Test
npm testRuns initialize, tools/list, and one tools/call through the bridge against the live server.
License
MIT
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.
No tool schema history has been recorded yet.
Related MCP Connectors
Time and date math for AI agents: Unix timestamp conversion, DST-correct time zone conversion, durations, epoch arithmetic, cron schedules, and holiday countdowns. Eight tools, no key.
Deterministic time tools for AI agents: timezone conversion, business-day math, cron interpretation.
Current time, timezone conversion & date math for AI agents. On Cloudflare Workers.
A real clock for AI agents: current time, timezone conversion, and DST facts from the IANA tzdb.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables AI agents to accurately parse, format, and convert time durations and millisecond values with deterministic precision, avoiding common arithmetic errors.123-
- AlicenseAqualityDmaintenanceMCP server providing 10 date and time tools including timezone conversion, date math, cron explanation, business days calculation, and more, enabling LLMs to handle datetime operations.1012MIT
- FlicenseNot gradedqualityDmaintenanceProvides current date and time information in multiple formats, timezone conversion, date/time differences, and date calculations.1-
- AlicenseNot gradedqualityDmaintenanceProvides date, time, and timezone tools for AI agents via MCP, including timezone conversion, date calculation, cron parsing, timestamp conversion, and duration formatting.54MIT
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/cmunkres/epochcalc-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server