JM

jolks/mcp-cron

Developer tools

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기

26 stars 17 forks 품질 74 트렌드 19NOASSERTION

MCP 서버 스케줄링 및 실행 AI 프롬프트, HTTP/webhook 요청 및 쉘 명령

개요

Model Context Protocol (MCP) 표준 API를 통해 스케줄링 및 관리 작업을 위한 서버. 서버는 쉘 명령과 AI 전원 작업을 모두 지원하는 작업 스케줄링 기능을 제공합니다. MCP 프로토콜을 통해 모든 액세스 할 수 있습니다. - Cron expressions을 사용하여 AI 작업에 일정 쉘 명령 또는 신속한 - AI는 MCP 서버에 액세스 할 수 있습니다 - MCP 프로토콜을 통해 작업을 관리 - 명령 출력 캡처와 작업 실행 - 재시작 (SQLite)의 작업 지속 - 다중 인스턴스는 중복 실행없이 동일한 데이터베이스를 공유 할 수 있습니다 - 다른 --db-path와 여러 분리 된 인스턴스 지원 AI 공급자, 모형 선택 및 잠 예방을 가진 더 완전한 체제: LiteLLM 프록시를 통해 AI 작업을 경로: --ai-model 값은 LiteLLM 프록시 설정에서 모델 이름을 일치해야합니다. LiteLLM은 OpenAI 호환 API를 노출하므로 --ai-provider는 omitted (defaults to openai)이 될 수 있습니다.

개요(AI 번역)

Model Context Protocol (MCP) 표준 API를 통해 스케줄링 및 관리 작업을 위한 서버. 서버는 쉘 명령과 AI 전원 작업을 모두 지원하는 작업 스케줄링 기능을 제공합니다. MCP 프로토콜을 통해 모든 액세스 할 수 있습니다.

특징

  • cron expressions를 사용하여 쉘 명령 또는 신속한
  • AI는 MCP 서버에 접근할 수 있습니다
  • MCP 프로토콜을 통해 작업 관리
  • 명령 출력 캡처와 작업 실행
  • 재시작 (SQLite)의 작업 지속
  • Multi-instance safe - 다중 인스턴스는 중복 실행 없이 동일한 데이터베이스를 공유할 수 있습니다.
  • 다른 여러 분리 된 인스턴스 지원 --db-path

설치

npm (추천)

Claude 코드

커서/클래드 데스크탑

권장 구성

AI 공급자, 모형 선택 및 잠 예방을 가진 더 완전한 체제:

LiteLLM 사용

LiteLLM 프록시를 통해 AI 작업을 경로:

--ai-model 값은 LiteLLM 프록시 설정에서 모델 이름을 일치해야 합니다. LiteLLM은 OpenAI 호환 API를 노출하므로 --ai-provider]는 omitted (defaults to openai)가 될 수 있습니다.

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.

README

원문 README의 일부입니다. 원문 보기.

MCP Cron

Model Context Protocol (MCP) server for scheduling and managing tasks through a standardized API. The server provides task scheduling capabilities supporting both shell commands and AI-powered tasks, all accessible via the MCP protocol.

Features

  • Schedule shell command or prompt to AI tasks using cron expressions
  • AI can have access to MCP servers
  • Manage tasks via MCP protocol
  • Task execution with command output capture
  • Task persistence across restarts (SQLite)
  • Multi-instance safe — multiple instances can share the same database without duplicate execution
  • Support multiple isolated instances with different --db-path

Installation

npx -y mcp-cron

Claude Code

claude mcp add mcp-cron -- npx -y mcp-cron

Cursor / Claude Desktop

{
  "mcpServers": {
    "mcp-cron": {
      "command": "npx",
      "args": ["-y", "mcp-cron", "--transport", "stdio"]
    }
  }
}

A more complete setup with AI provider, model selection, and sleep prevention:

{
  "mcpServers": {
    "mcp-cron": {
      "command": "npx",
      "args": [
        "-y", "mcp-cron",
        "--transport", "stdio",
        "--prevent-sleep",
        "--ai-provider", "anthropic",
        "--ai-model", "claude-sonnet-4-5-20250929"
      ],
      "env": {
        "ANTHROPIC_API_KEY": "your-api-key"
      }
    }
  }
}

Using LiteLLM

To route AI tasks through a LiteLLM proxy:

{
  "mcpServers": {
    "mcp-cron": {
      "command": "npx",
      "args": [
        "-y", "mcp-cron",
        "--transport", "stdio",
        "--prevent-sleep",
        "--ai-base-url", "https://litellm.yourcompany.com",
        "--ai-model", "claude-sonnet-4-5-20250929"
      ],
      "env": {
        "MCP_CRON_AI_API_KEY": "sk-your-litellm-key"
      }
    }
  }
}

The --ai-model value should match a model name in your LiteLLM proxy config. LiteLLM exposes an OpenAI-compatible API, so --ai-provider can be omitted (defaults to openai). When a custom base URL is set, mcp-cron automatically uses the Chat Completions API instead of the Responses API. The Responses API is only used for direct OpenAI (api.openai.com) and Azure OpenAI (*.openai.azure.com) endpoints.

See Command Line Arguments and Environment Variables for all available options.

Building from Source

Prerequisites

  • Go 1.24.0 or higher
# Clone the repository
git clone https://github.com/jolks/mcp-cron.git
cd mcp-cron

# Build the application as mcp-cron binary
go build -o mcp-cron cmd/mcp-cron/main.go

Usage

The server supports two transport modes:

  • HTTP (Streamable HTTP): Default HTTP-based transport for browser and network clients
  • stdio: Standard input/output transport for direct piping and inter-process communication
GitHub에서 전체 README 보기

설치

npx -y mcp-cron --transport stdio
MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →

설정

{ "mcpServers": { "mcp-cron": { "command": "npx", "args": ["-y", "mcp-cron", "--transport", "stdio"] } } }