quartz-mcp-server

grokify/quartz-mcp-server

3.2

If you are the rightful owner of quartz-mcp-server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

The Quartz MCP Server is a Model Context Protocol Server designed to validate cron expressions using the Quartz Scheduler library.

Tools
1
Resources
0
Prompts
0

Quartz MCP Server

A Model Context Protocol (MCP) Server that provides cron expression validation using the Quartz Scheduler library.

Features

  • check_cron_validity: Validates cron expressions using org.quartz.CronExpression.isValidExpression

Dependencies

  • MCP Java SDK - Model Context Protocol implementation for Java
  • Quartz Scheduler - Job scheduling library with robust cron expression support
  • Jackson - JSON processing
  • SLF4J - Logging

Building

mvn clean compile
mvn package

Running

java -jar target/quartz-mcp-server-0.1.1.jar

Or run the shaded JAR:

java -jar target/quartz-mcp-server-0.1.1-shaded.jar

AI Assistant Configuration

To use this MCP server with popular AI assistants, add the following configuration to your MCP settings:

{
    "mcpServers": {
        "quartz": {
            "command": "java",
            "args": ["-jar", "path/to/quartz-mcp-server-0.1.1.jar"]
        }
    }
}

Replace path/to/quartz-mcp-server-0.1.1.jar with the actual path to your built JAR file.

Tool: check_cron_validity

Validates a cron expression using Quartz's CronExpression.isValidExpression method.

Input

  • cron_expression (string): The cron expression to validate (e.g., "0 0 12 * * ?")

Output

  • cron_expression: The input expression
  • is_valid: Boolean indicating if the expression is valid
  • description: Human-readable description of the result
  • summary: The cron expression (if valid)
  • error: Error message (if invalid)

Example Usage

{
  "tool": "check_cron_validity",
  "arguments": {
    "cron_expression": "0 0 12 * * ?"
  }
}

Response:

{
  "cron_expression": "0 0 12 * * ?",
  "is_valid": true,
  "summary": "0 0 12 * * ?",
  "description": "Valid cron expression"
}

Cron Expression Format

This server uses Quartz cron expressions which support:

  • Seconds (0-59)
  • Minutes (0-59)
  • Hours (0-23)
  • Day of month (1-31)
  • Month (1-12 or JAN-DEC)
  • Day of week (1-7 or SUN-SAT, where 1=Sunday)
  • Year (optional, 1970-2099)