Clockport

io.github.CloudCorpRecords由 GitHub 账号 CloudCorpRecords 发布v0.1.0更新于 Oct 29, 2026

Current time and timezone conversion for any IANA zone.

已验证STDIO仅桌面位置与生活

概览

AI 生成的概览

Clockport 是一个本地 MCP 服务器,让助手查询任意 IANA 时区的当前时间,并在时区之间换算时刻。

可以做什么
  • 查询指定 IANA 时区的当前时间,含钟面时间、带偏移的 ISO 8601 形式、星期、UTC 偏移分钟数与是否处于夏令时
  • 把某一时刻从源时区换算到目标时区,返回目标日期、ISO 8601 形式与带符号的偏移差
  • 遇到未知时区名或不合法的时刻时以工具错误返回,而不是猜测
  • 也可作为命令行工具使用,支持纯文本或 JSON 输出
适用场景
适合助手需要可靠的各地当前时间,或跨时区换算会议时间(包括夏令时差异)而不想自行推算的场景。
运行要求
以本地 stdio 进程运行,可通过 npx 从 npm 包启动,或用 docker 运行容器镜像。未声明任何账号、API 密钥、环境变量或请求头。时区数据来自平台通过 Node 的 Intl 支持的 IANA 数据库。
安装前请注意
换算只接受时刻、不含日期,因此以源时区今天的日期作为参考日期;夏令时切换前后的结果反映的是今天生效的偏移,每次结果都会附带所用参考日期。该服务器只读,且不需要任何凭据。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Clockport,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

clockport

clockport tells you what time it is somewhere else, and what a given clock time in one place corresponds to in another. It answers two questions — "what time is it in Tokyo right now?" and "my call is at 12:00 New York time, what is that in London?" — from the command line or as an MCP server for agents.

All zone handling uses the IANA timezone database behind Node's Intl support, so daylight-saving changes are handled by the platform rather than by a fixed offset table.

Install

bash
npx @reneturcios/clockport now Europe/London

Or run the container image:

bash
docker run -i ghcr.io/cloudcorprecords/clockport

The container defaults to the MCP server (see below). Pass CLI arguments to use it as a CLI instead.

CLI

bash
# Current time in a zoneclockport now America/New_York# 2026-01-15 07:00:00 (America/New_York, 2026-01-15T07:00:00-05:00)
# Convert a time between zonesclockport convert America/New_York 12:00 Europe/London# 2026-10-26 12:00 America/New_York -> 2026-10-26 17:00 Europe/London (+5h)
# Machine-readable outputclockport now Asia/Tokyo --jsonclockport convert UTC 09:30 Asia/Kolkata --json
clockport --version

Exit codes: 0 on success, 1 when a zone or time cannot be handled (the error names the problem), 2 for usage errors.

MCP server

One bin serves both faces. The mcp subcommand starts a stdio MCP server:

bash
npx -y @reneturcios/clockport mcp

MCP client configuration:

json
{  "mcpServers": {    "clockport": {      "command": "npx",      "args": ["-y", "@reneturcios/clockport", "mcp"]    }  }}

Tools

ToolInputWhat it returns
get_current_timetimezone (string, required) — IANA timezone nameThe current time in that zone: wall-clock rendering, ISO 8601 form with offset, weekday, UTC offset in minutes, and whether DST is in effect.
convert_timesource_timezone (string, required), time (string, required, HH:MM 24-hour), target_timezone (string, required)The requested time rendered in the target zone, with the target date (which may differ from the source date), an ISO 8601 form, and the signed offset difference.

Unknown timezone names and times that are not valid HH:MM values are reported as tool errors rather than guessed at.

Reference date for conversions

convert_time takes a time of day but no date. Conversions therefore use today's date — the current calendar date in the source zone — as the reference date. This matters around daylight-saving transitions, where the offset difference between two zones can change from one week to the next; the result always reflects the difference in force today. The reference date used is included in every conversion result.

Development

bash
npm installnpm run build   # tsc -> dist/npm test        # node test runner over test/*.test.ts, no networknpm run dev     # run the CLI from source via tsx

License

MIT — see LICENSE.

来源:README.md,提交 0903cf2

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v0.1.0最新Oct 29, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分