development
location
documentation
public
API
cron jobs
What is A comprehensive Model Context Protocol (MCP) server for cron job management.?
The Cronlytic MCP Server enables AI agents and LLM applications to manage cron jobs seamlessly through the Cronlytic API. It supports health checks, job management, job control, logs and monitoring, smart prompts, and performance optimization.
Documentation
Cronlytic MCP Server
🎉 PROJECT COMPLETED - PRODUCTION READY 🎉
A comprehensive Model Context Protocol (MCP) server that integrates with the Cronlytic API to provide seamless cron job management through LLM applications like Claude Desktop.
Final Status: ✅ All 6 phases complete | 88/88 tests passing | Production documentation ready
Overview
The Cronlytic MCP Server enables AI agents and LLM applications to:
🔍 Health Check: Test connectivity and authentication with the Cronlytic API ✅
📊 Job Management: Create, read, update, and delete cron jobs ✅
⏯️ Job Control: Pause, resume, and monitor job execution ✅
Production Ready (Multi-platform deployment support)
Installation# Prerequisites
Python 3.8 or higher
Cronlytic account with API access
Install from Source## Quick Setup (Recommended)
git clone https://github.com/Cronlytic/cronlytic-mcp-server.git
cd cronlytic-mcp-server
# Run the setup script (creates venv and installs everything)
./setup_dev_env.sh
# Activate the virtual environment
source venv/bin/activate
python -m cronlytic_mcp_server.server
# With command line arguments
python -m cronlytic_mcp_server.server --api-key "your_key" --user-id "your_id"
# With debug logging
python -m cronlytic_mcp_server.server --debug
# With custom config file
python -m cronlytic_mcp_server.server --config /path/to/config.json
Available Tools (Phase 1)## Health Check
Test connectivity and authentication with the Cronlytic API:
Example Output:
**Status:** ✅ Cronlytic API connection is healthy and working correctly
**Timestamp:** 2025-01-27T10:30:00Z
**Response Time:** 150 ms
## Connection Details
- **Base URL:** https://api.cronlytic.com/prog
- **Connectivity:** ✅
- **Authentication:** ✅
## Job Information
- **Job Count:** 3
- **Can List Jobs:** ✅
## Performance
- **Performance Rating:** Good
## Recommendations
- 💡 Found 3 job(s). All systems appear to be working correctly.
Claude Desktop Integration
To use with Claude Desktop, add this to your claude_desktop_config.json:
source venv/bin/activate
# Install in development mode (if not already done)
pip install -e .
# Set environment variables for testing
export CRONLYTIC_API_KEY="your_test_key"
export CRONLYTIC_USER_ID="your_test_user_id"
# Run with debug logging
python -m cronlytic_mcp_server.server --debug
# Run validation tests
python validate_phase1.py
# Format code (if you have development dependencies)
black src/
ruff check src/
# Type checking
mypy src/
Testing with MCP Inspector
npm install -g @modelcontextprotocol/inspector
# Test the server
mcp-inspector python -m cronlytic_mcp_server.server
Error Handling
The server provides comprehensive error handling:
Authentication Errors: Clear guidance on credential issues
Connection Errors: Network and connectivity diagnostics
API Errors: Proper error codes and user-friendly messages
Rate Limiting: Automatic retry with exponential backoff
Logging
Structured logging is provided at multiple levels:
2025-01-27 10:30:00 - cronlytic_mcp_server.server - INFO - Cronlytic MCP Server initialized
# Debug mode
python -m cronlytic_mcp_server.server --debug
Roadmap# Phase 2: Basic CRUD Operations (Next)
create_job - Create new cron jobs
list_jobs - List all user jobs
get_job - Get specific job details
update_job - Update existing jobs
delete_job - Delete jobs permanently
Phase 3: Advanced Job Management
pause_job - Pause job execution
resume_job - Resume paused jobs
get_job_logs - Retrieve execution logs
Phase 4: Resources Implementation
Dynamic job resources
Cron template library
Real-time resource updates
Phase 5: Prompts & UX
Interactive job creation flows
Monitoring and troubleshooting guidance
User experience optimization
Phase 6: Testing & Documentation
Comprehensive test suite
Performance optimization
Complete documentation
Contributing
This project follows a structured development approach with clearly defined phases. Each phase builds upon the previous one to ensure stability and maintainability.
Fork the repository
Create a feature branch
Make your changes
Add tests (Phase 6)
Submit a pull request
License
MIT License - see LICENSE file for details.
Support
Documentation: See docs/ directory for detailed specifications
Issues: Report bugs and feature requests on GitHub
API Reference: Check docs/cronlytic-API-specification.md