Cron Platform
Agent Integration

Product MCP Server

Use TrigRun from AI agents via the Model Context Protocol.

TrigRun provides an MCP server that lets AI agents manage jobs, executions, notifications, and secrets through tool calls.

Setup

Claude Desktop

Add to your claude_desktop_config.json:

{
  "mcpServers": {
    "trigrun": {
      "command": "npx",
      "args": ["@cron/mcp"],
      "env": {
        "CRON_API_URL": "https://api.trigrun.com"
      }
    }
  }
}

Claude Code

claude mcp add trigrun -- npx @cron/mcp

Any Streamable HTTP MCP client

The MCP server also runs as a standalone HTTP server:

CRON_API_URL=https://api.trigrun.com MCP_PORT=9090 npx @cron/mcp

Connect your MCP client to http://localhost:9090/mcp.

Authentication

Every tool requires a token argument. Use an API token (cron_pat_...) for long-lived agent use:

{
  "tool": "list_jobs",
  "arguments": {
    "token": "cron_pat_abc123..."
  }
}

Available tools

Jobs

ToolDescriptionKey arguments
list_jobsList all jobs, optionally filter by statetoken, state?
get_jobGet job details by IDtoken, job_id
create_jobCreate a new scheduled jobtoken, name, url, kind?, cron?, every_n_minutes?, timezone?, method?, headers?, body?
pause_jobPause a jobtoken, job_id
resume_jobResume a paused jobtoken, job_id
run_job_nowTrigger immediate executiontoken, job_id
delete_jobDelete a jobtoken, job_id

Executions

ToolDescriptionKey arguments
list_executionsList executions, optionally for a jobtoken, job_id?, status?
get_executionGet execution details with attemptstoken, execution_id
replay_executionRe-run an executiontoken, execution_id

Notification channels

ToolDescriptionKey arguments
list_channelsList notification channelstoken
create_channelCreate a channel (webhook/email/slack/discord)token, name, type, url?, email?, secret?
delete_channelDelete a channeltoken, channel_id

Notification rules

ToolDescriptionKey arguments
list_rulesList rules for a jobtoken, job_id
add_ruleAttach a channel to a job eventtoken, job_id, channel_id, event
remove_ruleRemove a notification ruletoken, job_id, rule_id

Secrets

ToolDescriptionKey arguments
list_secretsList secret names (values hidden)token
create_secretStore an encrypted secrettoken, name, value
delete_secretDelete a secrettoken, secret_id

Example conversation

User: Create a cron job that calls my API every hour and notify me on Slack if it fails.

The agent would:

  1. Call create_job with kind: "cron", cron: "0 * * * *", and the target URL
  2. Call create_channel with type: "slack" and the Slack webhook URL
  3. Call add_rule with the job ID, channel ID, and event: "on_failure"

All three operations use the same token argument.

On this page