kw-time-mcp

v1.0.0
kw-time-mcp Checked 3 days ago Published 1 month ago

MCP server providing current time, timezone conversion, duration arithmetic, and Japanese holiday lookup — no API key required

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

get_current_time

Returns the current date and time in the given IANA timezone (default Asia/Tokyo) as ISO 8601 with UTC offset, plus UTC and unix seconds.

ParameterTypeDescription
timezonestringIANA timezone name (e.g. "Asia/Tokyo", "America/New_York", "Europe/London"). Defaults to "Asia/Tokyo".

convert_timezone

Converts a datetime to another IANA timezone, with correct daylight-saving handling. Input with an offset or Z is used as-is (from_tz ignored). Input without an offset is local time in from_tz; for a time that does not exist (clock springs forward) it is shifted forward, and for an ambiguous time (clock falls back) the first (earlier) occurrence is used.

ParameterTypeDescription
datetime *stringISO 8601 datetime (e.g. "2024-01-01T09:00:00" or "2024-01-01T00:00:00Z"). Impossible dates such as 2024-02-30 are rejected.
from_tz *stringSource IANA timezone (e.g. "Asia/Tokyo").
to_tz *stringTarget IANA timezone (e.g. "America/New_York").

add_duration

Adds a fixed duration to a datetime and returns the result in UTC. Format: non-negative integer + unit s/m/h/d/w (e.g. "3h", "1d", "2w"); "d" is exactly 24 hours (not a calendar day across DST) and "w" is 7 such days. A datetime without an offset is treated as UTC.

ParameterTypeDescription
datetime *stringISO 8601 datetime (e.g. "2024-01-01T00:00:00Z"). No offset means UTC.
duration *stringDuration such as "30s", "15m", "3h", "1d", "2w".

is_japanese_holiday

Checks whether a date (YYYY-MM-DD) is a Japanese national holiday, including substitute holidays (振替休日) and 国民の休日. Returns the holiday name. Supports 2024-2028; other years return an error rather than a guess.

ParameterTypeDescription
date *stringDate in YYYY-MM-DD format (e.g. "2026-05-03").

list_japanese_holidays

Lists all Japanese national holidays (incl. substitute holidays and 国民の休日) for a year. Supported years: 2024-2028.

ParameterTypeDescription
year *integerYear (2024-2028).