# Cronit

> Cronit is a free hosted cron service: it calls a URL on a schedule (every minute to once a year, or once at a set time), records every run, and e-mails the owner when a job starts failing, with a plain-language explanation of what went wrong.

Key facts:

- A job is an HTTP request (GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS) to a public URL, with optional headers, body and basic auth. Private and internal addresses are refused. Redirects are not followed.
- Schedules are 5-field cron expressions (minute hour day-of-month month day-of-week) evaluated in the job's IANA time zone, including daylight saving time. @hourly, @daily, @weekly, @monthly and @yearly also work. One-off runs use schedule_type "once" with run_at.
- The Free plan includes 500 runs a month across all jobs. Every 5 minutes is about 8,760 runs a month; hourly about 730; daily about 30. When the runs are used up, scheduled runs are skipped until the next month.
- Limits: 100 jobs per account, timeout up to 30 seconds, history kept 30 days. A job that fails 25 times in a row is switched off automatically.
- Every failed run has an explanation: title, detail and a hint with the fix.
- All timestamps in the API are UTC (ISO 8601).

## For AI agents (MCP)

- [MCP setup guide](https://cronit.app/docs/mcp.html): how to connect Claude, Claude Code, Cursor, VS Code and other clients, and what each tool does.
- [MCP server](https://cronit.app/mcp): Streamable HTTP. Authenticate with OAuth 2.1 (discovery at https://cronit.app/.well-known/oauth-protected-resource, dynamic client registration supported) or with an API token as `Authorization: Bearer <token>`. Tools: get_account, list_jobs, get_job, preview_schedule, test_request, create_job, update_job, set_job_enabled, run_job, list_runs, get_run, list_activity, delete_job.
- Claude Code: `claude mcp add --transport http cronit https://cronit.app/mcp --header "Authorization: Bearer <token>"`
- claude.ai: Settings → Connectors → Add custom connector → https://cronit.app/mcp
- Good practice: call preview_schedule before creating or rescheduling a job and tell the person the runs per month and any warnings; call test_request before creating a job for an endpoint that has not been checked; ask before delete_job. Changes made through MCP are shown to the person in Cronit's activity log.

## REST API

- [OpenAPI 3.1 description](https://cronit.app/openapi.json): every endpoint, field and error.
- [API documentation](https://cronit.app/docs/api.html): the same, for people, with examples in curl, JavaScript and Python.
- Base URL: https://cronit.app/api/v1. Tokens are created under Settings → API tokens and are read-only or read + write, optionally with an expiry date.
- POST /schedule/preview checks a schedule without saving. POST /jobs with "dry_run": true validates a job without saving. POST /test-request sends a request once without creating a job.
- Send an `Idempotency-Key` header on POST requests to make retries safe.
- Errors are JSON with a "message" that says how to fix the problem; validation errors list each field.

## Optional

- [Home page](https://cronit.app/): features and pricing.
- [Blog](https://cronit.app/blog.html): guides on cron expressions and scheduling.