cronmanager-mcp

cronmanager-mcp

Enables managing cron jobs, maintenance windows, and settings through natural language by exposing the Cronmanager REST API as MCP tools for LLM clients like Claude.

Category
访问服务器

README

cronmanager-mcp

MCP (Model Context Protocol) server that exposes the Cronmanager REST API as conversational tools for LLM clients such as Claude Desktop or Claude Code.

Example prompts:

  • "Show me all failed jobs from the last 24 hours"
  • "Disable job 42"
  • "Create a maintenance window for Sunday night at 2 AM"
  • "Export all jobs tagged 'backup' as JSON"

Requirements

  • Cronmanager 4.1.0 or later (external REST API required)
  • An API key generated in the Cronmanager web UI (API Keys section)

Quick start

docker run -d \
  -e CM_BASE_URL=https://cronmanager.example.com \
  -e CM_API_KEY=cm_your_api_key_here \
  -e MCP_AUTH_TOKEN=your_mcp_auth_token_here \
  -p 3000:3000 \
  cs1711/cronmanager-mcp:latest

Configure your MCP client to connect to http://your-host:3000/mcp with Bearer token MCP_AUTH_TOKEN.

For integration into an existing Cronmanager Docker Compose stack, see docker-compose.snippet.yml.

Configuration

All configuration is via environment variables.

Variable Required Default Description
CM_BASE_URL yes Cronmanager web app base URL (no trailing slash)
CM_API_KEY yes Cronmanager API key (cm_…)
CM_AGENT_ID no Target a specific agent (sets X-Agent-Id header)
MCP_AUTH_TOKEN yes Bearer token protecting this MCP endpoint
PORT no 3000 HTTP port
TIMEOUT_MS no 10000 Cronmanager API request timeout in milliseconds
LOG_LEVEL no info Log level: debug, info, warn, error
MCP_READONLY_MODE no false When true, only read-only tools are registered

API key scopes

The API key must have the scopes matching the tools you intend to use:

Scope Tools unlocked
jobs:read list_jobs, get_job, get_job_history, get_timeline, list_tags
jobs:write create_job, update_job, delete_job
jobs:execute execute_job, kill_execution
export:read export_jobs
maintenance:read list_maintenance_windows, get_maintenance_window
maintenance:write create_maintenance_window, update_maintenance_window, delete_maintenance_window
settings:read get_settings, get_settings_section
settings:write update_settings_section, resync_crontab

For read-only access, use the read-only profile (jobs:read, maintenance:read, export:read) and set MCP_READONLY_MODE=true.

Tools

Tool Scope Description
list_jobs jobs:read List cron jobs with optional filters
get_job jobs:read Get a single job by ID
create_job jobs:write Create a new cron job
update_job jobs:write Update a job (partial update; targets/tags are full-replaced)
delete_job jobs:write Delete a job
execute_job jobs:execute Trigger immediate one-time execution
kill_execution jobs:execute Kill a running execution
get_job_history jobs:read Execution history for a specific job
get_timeline jobs:read Cross-job execution timeline
list_tags jobs:read List all tags
export_jobs export:read Export jobs as JSON, CSV, or crontab text
list_maintenance_windows maintenance:read List maintenance windows
get_maintenance_window maintenance:read Get a single maintenance window
create_maintenance_window maintenance:write Create a maintenance window
update_maintenance_window maintenance:write Update a maintenance window
delete_maintenance_window maintenance:write Delete a maintenance window
get_settings settings:read Read all agent settings
get_settings_section settings:read Read one settings section
update_settings_section settings:write Update a settings section
resync_crontab settings:write Resync crontab from database

Note on update_job

If targets or tags are included in an update_job call, they fully replace the existing list — there is no merge. To add a single tag, first call get_job to read the current tags, then pass the complete updated array.

Endpoints

Endpoint Description
POST /mcp MCP Streamable HTTP endpoint (Bearer auth required)
GET /healthz Liveness check (always 200, no auth required)
GET /readyz Readiness check — pings Cronmanager API (no auth required)

Security

  • The MCP endpoint is protected by a Bearer token (MCP_AUTH_TOKEN), separate from the Cronmanager API key.
  • The Cronmanager API key (CM_API_KEY) is never exposed to MCP clients.
  • Bind to a specific interface or place behind a reverse proxy if the server should not be publicly accessible.

License

GNU General Public License version 3 or later

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选