Skip to main content
Glama
time-mcp

time-mcp

by kujirahand

time-mcp

An MCP server that returns the local current time and the current time in any IANA timezone.

日本語はこちら(README-ja.md)

Tools

Tool

Arguments

Returns

Description

get_local_time

(none)

time object

Current date and time of the machine running the server

get_time_in_timezone

timezone (string, required) — IANA name, e.g. Asia/Tokyo

time object

Current date and time in the given timezone. Errors if the name is unknown

list_timezones

query (string, optional, default "") — case-insensitive substring; empty returns all

string[]

Available IANA timezone names, max 200 results

get_time_from_ntp

server (string, optional) — short name or hostname; timezone (string, optional) — IANA name, defaults to local

time object + ntp_server, local_clock_offset_seconds

Current time from a public NTP server instead of the local clock

The time object returned by the tools above:

Field

Type

Example

timezone

string

Asia/Tokyo

datetime

string (ISO 8601)

2026-09-05T14:10:32.637530+09:00

date

string

2026-09-05

time

string

14:10:32

weekday

string

Saturday

utc_offset

string

+0900

unix_timestamp

integer

1788585032

get_time_from_ntp adds two fields: ntp_server (the host actually used) and local_clock_offset_seconds (how far the machine's clock is from the NTP time; positive means the local clock is behind).

NTP servers

server takes one of these short names, or any NTP hostname.

Short name

Host

Operator

apple

time.apple.com

Apple

microsoft / windows

time.windows.com

Microsoft

nict

ntp.nict.jp

NICT (Japan)

google

time.google.com

Google

cloudflare

time.cloudflare.com

Cloudflare

pool

pool.ntp.org

NTP Pool Project

When server is omitted, time.apple.com is tried first and time.windows.com is used as a fallback. Requires outbound UDP port 123; the timeout is 5 seconds.

Related MCP server: time-mcp-local

Install

pip install time-mcp

Or run it without installing:

uvx time-mcp

Development setup

uv sync

Try it

uv run mcp dev src/time_mcp/server.py

Register with Claude Code

claude mcp add time -- uvx time-mcp

Or in claude_desktop_config.json:

{
  "mcpServers": {
    "time": {
      "command": "uvx",
      "args": ["time-mcp"]
    }
  }
}

Register with Codex CLI

codex mcp add time -- uvx time-mcp

Or add it to ~/.codex/config.toml by hand:

[mcp_servers.time]
command = "uvx"
args = ["time-mcp"]

Check that it is registered:

codex mcp list

Running from a local checkout

Replace uvx time-mcp with the following in any of the configurations above:

uv --directory /path/to/mcp_server-time run time-mcp

License

MIT License. See LICENSE.

Available Tools

4 tools
get_local_timeA

Return the current local date and time of the machine running this server.

Inputs: no named parameters.

get_time_from_ntpA

Get the current time from a public NTP server instead of the local clock.

server accepts a short name (apple, microsoft, windows, nict, google, cloudflare, pool) or a hostname. When omitted, time.apple.com is tried first and time.windows.com is used as a fallback. timezone is an IANA name for the returned time; the local timezone is used when omitted.

Inputs: server, timezone.

get_time_in_timezoneA

Return the current date and time in the given IANA timezone (e.g. Asia/Tokyo, America/New_York).

Inputs: timezone (required).

list_timezonesA

Search available IANA timezone names. query is a case-insensitive substring match.

Inputs: query. Returns: result

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.3/5.0

    Scored across 4 tools

    Disambiguation4/5

    Each tool has a distinct purpose: local clock time, timezone-specific time, timezone lookup, and NTP-sourced time. There is minor overlap between get_local_time and get_time_in_timezone when the timezone is omitted, but the descriptions make the intended differences clear.

    Naming Consistency5/5

    Tool names follow a consistent get_/list_ verb pattern and clearly indicate their function. The naming style is uniform and predictable across all four tools.

    Tool Count5/5

    Four tools is a well-scoped size for a time-focused MCP server. Each tool covers a distinct time-related need without unnecessary bloat.

    Completeness5/5

    The tool set covers the core time domain: local time, arbitrary timezone time, timezone discovery, and external NTP time. Timezone conversion and UTC access are achievable via get_time_in_timezone, so there are no obvious dead ends.

    Maintenance

    ActivityStale
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      F
      maintenance
      Provides high-accuracy time information by querying multiple NTP servers for consensus time, and comprehensive timezone support using IANA tzdata for conversions, DST handling, and clock drift detection independent of system time.
      7
      3
      Apache 2.0
    • F
      license
      B
      quality
      D
      maintenance
      Provides current time and timezone conversion using IANA timezone names, with automatic system timezone detection.
      2
      -
    • A
      license
      A
      quality
      D
      maintenance
      Provides current date, time, and datetime with optional timezone support (local, UTC, or IANA timezone strings).
      3
      7 npm
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Provides current time and timezone conversion using IANA timezone names, enabling LLMs to get system time or convert times between timezones.
      MIT