Skip to content

time

Read-only system clock and timezone conversion. No filesystem or network access; nothing to sandbox.

Usage

bash
native-mcp time [--default-tz TZ]

Flags

FlagDefaultDescription
--default-tzUTCIANA timezone used when current_time is called without an argument

Tools

current_time

Returns the current time in the requested IANA timezone, formatted as RFC 3339.

Arguments

FieldTypeRequiredDescription
timezonestringnoIANA timezone name (e.g. Europe/Paris). Falls back to --default-tz.

Example

json
{ "name": "current_time", "arguments": { "timezone": "Asia/Tokyo" } }

"2026-05-10T21:00:00+09:00"

convert_time

Converts an RFC 3339 timestamp from one IANA timezone to another.

Arguments

FieldTypeRequiredDescription
timestringyesRFC 3339 timestamp
from_tzstringyesSource IANA timezone
to_tzstringyesTarget IANA timezone

Example

json
{
  "name": "convert_time",
  "arguments": {
    "time": "2026-05-10T12:00:00Z",
    "from_tz": "UTC",
    "to_tz": "Asia/Tokyo"
  }
}

"2026-05-10T21:00:00+09:00"

Register in Claude Code

bash
claude mcp add native-time native-mcp time
# or with a default timezone
claude mcp add native-time-paris native-mcp time --default-tz Europe/Paris

Released under the MIT License.