
Time
io.github.rog0x由 GitHub 账号 rog0x 发布v1.0.2更新于 Oct 24, 2026
Timezone, dates, cron, timestamps for AI agents
概览
AI 生成的概览
一个本地 MCP 服务器,为助手提供日期、时区、cron、时间戳和时长计算工具。
- 可以做什么
- 提供时区转换、时区列表、多时区当前时间和时区差值工具。支持日期加减、日期差值和工作日计算,以及 cron 表达式的解析、校验、生成和下次执行时间计算。还可进行 Unix 时间戳与可读日期互转,并格式化、解析和倒计时时长。
- 适用场景
- 当助手需要可靠的日期时间运算、时区转换、cron 计划说明或时间戳转换,而不是靠估算时适用。适合排期、日志或跨时区等对精确值有要求的工作。
- 运行要求
- 作为本地 Node.js 进程通过 stdio 运行;需安装并构建 npm 包 @rog0x/mcp-time-tools,并用 node 指向其构建后的入口文件启动。未声明需要账号、API 密钥或网络访问。
安装前请注意
README 的示例配置中包含一个硬编码的本地文件路径,必须替换为你机器上的正确路径。未描述任何凭据、写入操作或向第三方共享数据。
安装
在 SourceWeft 中
- 打开 控制台中的 Time,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
mcp-time-tools
Date, time, and timezone tools for AI agents via the Model Context Protocol (MCP).
Built entirely with native JavaScript Date and Intl APIs -- no external date libraries required.
Tools
Timezone Converter
- convert_timezone -- Convert a date/time from one timezone to another
- list_timezones -- List common timezones with current UTC offsets
- current_time_multi -- Show current time in multiple timezones at once
- time_difference -- Calculate the time difference between two timezones
Date Calculator
- date_add_subtract -- Add or subtract days, weeks, months, or years from a date
- date_difference -- Calculate the difference between two dates in various units
- business_days -- Count business days between dates or add business days to a date
Cron Parser
- parse_cron -- Parse a cron expression into a human-readable description
- cron_next_runs -- Calculate the next N execution times for a cron expression
- validate_cron -- Validate a cron expression and explain any errors
- generate_cron -- Generate a cron expression from a human-readable description
Timestamp Converter
- timestamp_to_date -- Convert Unix timestamp (seconds or milliseconds) to readable formats
- date_to_timestamp -- Convert a date/time string to Unix timestamps
- current_timestamp -- Get the current Unix timestamp and formatted date/time
Duration Formatter
- format_duration -- Convert seconds to human-readable duration (e.g. 2h 30m 15s)
- parse_duration -- Parse a human-readable duration string to seconds
- time_ago -- Calculate relative time description (e.g. "5 minutes ago")
- countdown -- Calculate time remaining until a target date/time
Setup
Usage with Claude Desktop
Add to your Claude Desktop configuration:
Development
来源:README.md,提交 332b54d
工具
0SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。
版本历史
1- v1.0.2最新Sep 16, 2026
评分
已满足适用检查项的 40%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分
请在仓库或注册中心条目中声明许可证。