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

cronmcp

v0.3.4

Published

TypeScript stdio MCP server for managing local cron prompts.

Downloads

152

Readme

cronmcp

npm version Publish to NPM License: MIT

cronmcp is an open-source cron scheduler stdio MCP server built on top of cron, cron-parser, commander, and @modelcontextprotocol/sdk.

It lets MCP-compatible clients create and manage scheduled prompt jobs, and optionally subscribe to cron tick notifications through an MCP notification channel.

Highlights

  • Exposes cron scheduling as an MCP server over stdio.
  • Uses the cron package for in-process job execution.
  • Validates schedules as 5-field local cron (M H DoM Mon DoW).
  • Persists jobs in JSONL under ~/.cronmcp/crontab.
  • Provides tools to list, add, update, and remove jobs.
  • Supports one-shot schedules through once: true.
  • Can emit scheduled tick events over an optional MCP notification channel.

Requirements

  • Node.js 24+

Installation

Use it without installing globally:

npx cronmcp mcp

Or for local development:

npm install
npm run build
npm run dev -- mcp

Quick Start

  1. Start the MCP server:
npx cronmcp mcp
  1. If your MCP host supports notifications and you want tick events, enable channels:
npx cronmcp mcp --channels

The server uses stdio, so it is meant to be launched by an MCP client or wrapper rather than browsed directly in a terminal.

CLI Usage

MCP Server

npx cronmcp mcp

Starts the stdio MCP server with job persistence at ~/.cronmcp/crontab.

MCP Tools

The server currently exposes these tools:

  • cron_list_jobs
  • cron_add_job
  • cron_update_job
  • cron_remove_job

schedule values use local-time 5-field cron: minute hour day-of-month month day-of-week.

Push Channel

When started with --channels, the server:

  • advertises the experimental MCP capability hooman/channel
  • advertises hooman/user with path meta.user
  • advertises hooman/session with path meta.session
  • advertises hooman/thread with path meta.thread
  • emits notifications/hooman/channel for scheduled cron tick events

Each notification includes:

  • content: a JSON-encoded event payload
  • meta.source: cron (channel contract)
  • meta.user: scheduler
  • meta.session: the cron job ID
  • meta.thread: omitted for cron tick events

The JSON-decoded content payload includes:

  • source
  • job
  • prompt
  • tickedAt

Local Data

cronmcp stores local state under ~/.cronmcp/:

  • crontab for JSONL job records

Each record shape:

{
  "id": "job_34a56f84-cf7e-4f8d-810c-1777d9f4a5f1",
  "schedule": "*/5 * * * *",
  "prompt": "Check queue depth",
  "once": false,
  "createdAt": 1777098600000
}

Notes

  • Cron expressions must be valid 5-field local schedules.
  • Jobs must have a next run within the next year.
  • At most 50 jobs can be scheduled at once.
  • Recurring jobs auto-expire after 7 days (they fire one final time, then are removed).
  • Recurring jobs use deterministic jitter to avoid synchronized fire spikes.
  • once: true jobs are removed after the first successful tick.
  • Incoming notification channels depend on MCP host support.

License

MIT. See LICENSE.