
MCP server for cron job scheduling with SQLite persistence, retry logic, and structured
MCP server for cron job scheduling with SQLite persistence, retry logic, and structured observability. Let AI agents create, manage, and monitor scheduled tasks through a clean tool interface.
MCP server for cron job scheduling with SQLite persistence, retry logic, and structured observability. Let AI agents create, manage, and monitor scheduled tasks through a clean tool interface.
Most cron libraries are designed for applications to embed. This server exposes cron scheduling as an MCP tool — agents can schedule jobs, monitor execution, retry failures, and query logs without touching the filesystem or crontab directly.
Companion server: System Monitoring MCP for host health metrics. Together they give agents full infrastructure observability and control.
| Feature | cron-scheduler-mcp | mcp-cron |
|---|---|---|
| License | MIT | AGPL-3.0 |
| Storage | SQLite (persistent) | In-memory |
| Retry logic | Configurable retries with backoff | None |
| Observability | Success rate, avg duration, error trends | None |
| Systemd integration | Yes | No |
| Webhook triggers | Yes | No |
| Tool count | 10 | 3 |
mcp-cron is AGPL — fine for personal use, problematic for enterprise agents and commercial deployments. This server uses MIT + SQLite persistence + retry logic for production workloads.
list_jobs, create_job, update_job, delete_job, get_job, run_now, get_status, get_logs, list_executions, pause_resumenpx @supernova123/cron-scheduler-mcp-server{
"mcpServers": {
"cron-scheduler": {
"command": "npx",
"args": ["-y", "@supernova123/cron-scheduler-mcp-server"]
}
}
}Add to your MCP settings (.cursor/mcp.json or equivalent):
{
"mcpServers": {
"cron-scheduler": {
"command": "npx",
"args": ["-y", "@supernova123/cron-scheduler-mcp-server"]
}
}
}List all scheduled jobs with status, next run time, and last run result.
| Parameter | Type | Required | Description |
|---|---|---|---|
enabled | boolean | No | Filter by enabled/disabled status |
limit | number | No | Max jobs to return (1-100) |
Returns: Array of jobs with id, name, schedule, command, enabled status, next run time, last run result, and aggregate stats (success rate, total runs, avg duration).
Create a new cron job with a schedule and shell command.
| Parameter | Type | Required | Description |
|---|---|---|---|
name | string | Yes | Human-readable job name (1-128 chars) |
schedule | string | Yes | Cron expression or interval (see Schedule Formats below) |
command | string | Yes | Shell command to execute |
enabled | boolean | No | Whether job is enabled (default: true) |
retryCount | number | No | Retries on failure, 0-10 (default: 0) |
retryDelayMs | number | No | Delay between retries in ms, 0-60000 (default: 1000) |
timeoutMs | number | No | Execution timeout in ms, 1000-3600000 (default: 30000) |
Remove a scheduled job and its entire run history.
| Parameter | Type | Required | Description |
|---|---|---|---|
jobId | UUID | Yes | Job ID to delete |
Execute a job immediately, bypassing its schedule. Useful for testing or manual triggers.
| Parameter | Type | Required | Description |
|---|---|---|---|
jobId | UUID | Yes | Job ID to execute |
Returns: Run result with status, exit code, stdout/stderr (truncated to 2000 chars), and duration.
Get detailed job status including last run, next run, success rate, average duration, and recent error history.
| Parameter | Type | Required | Description |
|---|---|---|---|
jobId | UUID | Yes | Job ID to check |
Returns: Full job config, next scheduled run, whether currently running, aggregate stats, and last 10 runs with status/exit code/duration.
Get execution logs for a job with full stdout, stderr, duration, and exit code.
| Parameter | Type | Required | Description |
|---|---|---|---|
jobId | UUID | Yes | Job ID |
limit | number | No | Max runs to return (1-100, default: 20) |
Pause or resume a job without deleting it. Paused jobs retain their schedule but won't execute until resumed.
| Parameter | Type | Required | Description |
|---|---|---|---|
jobId | UUID | Yes | Job ID to pause/resume |
enabled | boolean | Yes | true to resume, false to pause |
*/5 * * * * — every 5 minutes0 9 * * 1-5 — weekdays at 9am30 2 * * 0 — Sundays at 2:30am30s — every 30 seconds5m — every 5 minutes1h — every hour| Environment Variable | Default | Description |
|---|---|---|
CRON_SCHEDULER_DB | cron-scheduler.db | SQLite database path (relative to CWD) |
All job definitions and execution history are stored in a SQLite database. The database file persists across server restarts — jobs survive crashes and restarts without re-creation.
Real data from building and running this server:
MIT
Pick your client and paste the snippet. Each one is the same server, written the way that client expects it.
claude mcp add cron-scheduler -- npx -y @supernova123/cron-scheduler-mcp-server{
"mcpServers": {
"cron-scheduler": {
"args": [
"-y",
"@supernova123/cron-scheduler-mcp-server"
],
"command": "npx"
}
}
}code --add-mcp '{"name":"cron-scheduler","args":["-y","@supernova123/cron-scheduler-mcp-server"],"command":"npx"}'[mcp_servers.cron-scheduler]
command = "npx"
args = ["-y", "@supernova123/cron-scheduler-mcp-server"]Runs locally on your device. Your client starts the server itself, so nothing has to be hosted.
Paste this prompt into your agent. It reads this page and does the setup for you.
Read https://aiagentslisting.com/mcp/cron-scheduler-mcp-server to learn what the "Cron Scheduler MCP Server" MCP server does and how to install it. Add it to my coding agent's MCP configuration as documented on that page, then confirm the server connects and list the tools it exposes.Agents can also browse this directory over MCP at https://aiagentslisting.com/api/mcp
npx @supernova123/cron-scheduler-mcp-serverThis server runs locally, so we can't read its tool list over the web yet.
Maintain this server? Claiming proves you own the listing and earns the last 4 points.
Claim this listingPaste this line near the top of your repository's README. The badge always renders the current score.
[](https://aiagentslisting.com/mcp/cron-scheduler-mcp-server)Nothing comparable is listed yet.
v0.1.0v0.1.0 — Initial ReleaseRelease notesConnect to the AI Agents Listing MCP server at https://aiagentslisting.com/api/mcp using the HTTP transport and complete the sign-in when it asks. Then call the submit_review tool for the listing "cron-scheduler-mcp-server" with a rating from 1 to 5 and a short note on what worked and what did not.No reviews yet
Be the first to share your experience with this tool.
One email a week. New agents, MCP servers and skills, and what is actually getting traction.