npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@cmunkres/epochcalc-mcp

v1.0.0

Published

MCP server for time and date math: Unix timestamps, DST-aware time zone conversion, durations, cron schedules, countdowns. Zero-dependency stdio bridge to the hosted epochcalc.com server.

Readme

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", "@cmunkres/epochcalc-mcp"] }
  }
}

Or with Docker:

docker build -t epochcalc-mcp .
docker run -i --rm epochcalc-mcp

Set EPOCHCALC_MCP_URL to point the bridge at a different endpoint.

Tools

| Tool | What it does | |---|---| | time_now | Current time in any zone, with epoch seconds, ISO 8601, RFC 2822, and DST flag | | convert_timestamp | Unix timestamp (seconds or milliseconds, auto-detected) to a full date breakdown | | parse_datetime | Natural or ISO date string to timestamp and zone-aware fields | | convert_timezone | Same instant in two zones, with the hour difference and DST status of each | | date_duration | Days, weekdays, weeks, and calendar breakdown between two dates | | epoch_math | Add or subtract years, months, weeks, days, hours, minutes, or seconds | | cron_next_runs | Plain-English explanation of a cron expression plus its next N run times | | days_until | 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-5 in New York?"
  • "How many weekdays are between 2026-02-28 and 2026-04-01?"

Notes

  • Time zones are IANA names such as America/New_York or Europe/Berlin. Abbreviations like EST are 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 test

Runs initialize, tools/list, and one tools/call through the bridge against the live server.

License

MIT