agentcron — Claude Code MCP server: what it does, how to install
agentcron schedules persistent HTTP tasks that execute even after your agent session ends. Supports schedules up to 30 days.
no license 545 installs updated 2026-05-25
claude mcp add --transport http agentcron https://agentcron--heavysword1.run.toolsWhat agentcron does
The server connects your coding assistant to a persistent cron service over HTTP. Using schedule_task, the agent defines recurring webhook triggers alongside the total active duration. Configured tasks continue to run independently once your conversation finishes.
Job monitoring relies on dedicated tools. Querying active states and upcoming execution times runs through check_schedule. Past invocation logs with status codes come from get_execution_history, while cancel_schedule halts remaining triggers immediately. Active schedules cannot exceed the 30-day limit.
What it helps with
- trigger recurring HTTP requests without keeping the agent session alive
- verify active schedule statuses and upcoming run times
- inspect recent execution records and response codes
- terminate scheduled automation workflows immediately
Example prompts for the agent
- Schedule a webhook ping every two hours for the next seven days.
- Check the active cron job to see its next run time.
- Show recent task execution history with status codes and response previews.
How to install agentcron
Platform CLI: remote server
claude mcp add --transport http agentcron https://agentcron--heavysword1.run.toolsPlatform CLI: remote server
codex mcp add agentcron --url https://agentcron--heavysword1.run.toolsConfig file
{
"mcpServers": {
"agentcron": {
"url": "https://agentcron--heavysword1.run.tools"
}
}
}Config file
{
"servers": {
"agentcron": {
"type": "http",
"url": "https://agentcron--heavysword1.run.tools"
}
}
}Platform CLI: remote server
gemini mcp add -t http agentcron https://agentcron--heavysword1.run.toolsStep by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more
Questions about agentcron
How to install agentcron in Claude Code?
Run claude mcp add --transport http agentcron https://agentcron--heavysword1.run.tools. The tool connects remotely via HTTP without local build steps.
What does agentcron do?
It manages persistent cron schedules that ping remote endpoints autonomously. Tasks run independently even after the client session disconnects.
What is the longest duration for a scheduled task?
A schedule can remain active for up to 30 days. You can stop any future executions at any moment using cancel_schedule.