
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 分
請在儲存庫或註冊中心條目中宣告授權條款。