Skip to main content

schedulermcp

Task scheduling for AI agents -- cron, intervals, delays via MCP

Part of the MCP AI Suite.

Features

  • Cron scheduling -- 5-field cron expressions (*, */N, N-M, N,M; weekday 0 = Monday) for recurring jobs
  • Interval and one-shot jobs -- fixed-interval repeats or single delayed execution
  • Watch jobs -- event-driven triggers that monitor shell commands and fire on condition changes
  • Condition evaluation -- rich condition syntax with numeric comparisons, contains, and variable interpolation
  • Pluggable executors -- log, webhook, or kernel (routes job goals through kernelmcp)
  • Pluggable stores -- in-memory or SQLite for job persistence across restarts
  • Exponential backoff retry with configurable max failures
  • Job lifecycle -- create, pause, resume, cancel, delete with full history tracking

Installation

pip install mcpaisuite-schedulermcp
# Optional extras:
pip install mcpaisuite-schedulermcp[dev]       # Development tools
pip install mcpaisuite-schedulermcp[all]       # All integrations
pip install mcpaisuite-schedulermcp[kernel]    # KernelMCP executor integration
pip install mcpaisuite-schedulermcp[webhook]   # Webhook executor

Quick Start

from schedulermcp import SchedulerFactory

scheduler = SchedulerFactory.create(store="sqlite", sqlite_path="scheduler.db")
job = await scheduler.schedule(
    goal="Generate daily status report",
    job_type="cron",
    cron="0 9 * * *",
)
scheduler.start()  # Start background tick loop

MCP Server

schedulermcp serve

Configuration

Variable Default Description
SCHEDULERMCP_STORE memory Job store: memory or sqlite
SCHEDULERMCP_EXECUTOR log Executor: log, webhook, or kernel
SCHEDULERMCP_SQLITE_PATH scheduler.db SQLite database path
SCHEDULERMCP_TICK_INTERVAL 15 Seconds between scheduler ticks

API Reference

SchedulerPipeline

Manages scheduled jobs -- create, execute, track, persist.

await scheduler.schedule(goal, job_type="once", cron="", interval_seconds=0,
                         delay_seconds=0, namespace="default") -> Job
await scheduler.cancel(job_id) -> bool
await scheduler.pause(job_id) -> bool
await scheduler.resume(job_id) -> bool
await scheduler.list_jobs(namespace="", status="") -> list[Job]
await scheduler.get_history(job_id) -> list[JobResult]
await scheduler.stats(namespace="") -> SchedulerStats
scheduler.start()   # Start background loop
scheduler.stop()    # Stop background loop

SchedulerFactory

SchedulerFactory.default()               # SQLite store, log executor
SchedulerFactory.from_env()              # Build from environment variables
SchedulerFactory.create(store="sqlite", executor="kernel", kernel_pipeline=kernel, ...)

Architecture

SchedulerPipeline runs a background tick loop that checks for due jobs on each tick. Time-based jobs (cron, interval, once) are evaluated against their next_run timestamp. Watch jobs execute a shell command and evaluate a condition expression against the output. The pluggable executor system allows routing job execution through a simple logger (dev), a webhook endpoint, or the full kernelmcp pipeline for autonomous agent-driven execution.

Testing

pip install -e ".[dev]"
pytest tests/ -v

License

Apache-2.0 — see LICENSE.

Open source for individuals and open-source projects. For commercial use in closed-source products, a commercial license is available — contact contact@mcpaisuite.com.

Release files for mcpaisuite-schedulermcp 1.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mcpaisuite-schedulermcp 1.1.0
File Size Uploaded
mcpaisuite_schedulermcp-1.1.0.tar.gz 36.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for mcpaisuite-schedulermcp 1.1.0
File Interpreter ABI Platform
mcpaisuite_schedulermcp-1.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 66.0 kB

Release files / mcpaisuite_schedulermcp-1.1.0.tar.gz

Download URL mcpaisuite_schedulermcp-1.1.0.tar.gz
Size 36.0 kB
Tags Source
SHA-256 checksum
How to use checksums
f2c153d3fb65a1f7812cda94d72ab334afd54e0ddb28e83a0e8b771a149d75e9
BLAKE2b-256 checksum
How to use checksums
9fc8ef62fa74016f131d2b799b058c22ffe22d02f498ca3ecc32038d3ff1050b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 22, 2026.

Transparency log

Release files / mcpaisuite_schedulermcp-1.1.0-py3-none-any.whl

Download URL mcpaisuite_schedulermcp-1.1.0-py3-none-any.whl
Size 30.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ecc5e2a571e8ac9197e8cce781b44eef24ad1ab2cde228fc03ca88ccb50258d3
BLAKE2b-256 checksum
How to use checksums
b046151656af2a6e9937c736a3981b458843247fbb31d136a5b05aae71dc4386
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 22, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

1.1.0 This release

2 release files

1.0.5

2 release files

1.0.4

2 release files

1.0.3

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page