time-mcp
Allows retrieving accurate current time from Apple's public NTP server (time.apple.com), including the local clock offset, via the get_time_from_ntp tool.
Allows retrieving accurate current time from Cloudflare's public NTP server (time.cloudflare.com) using the get_time_from_ntp tool.
Allows retrieving accurate current time from Google's public NTP server (time.google.com) using the get_time_from_ntp tool.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@time-mcp what's the current time in Tokyo?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
time-mcp
An MCP server that returns the local current time and the current time in any IANA timezone.
Tools
Tool | Arguments | Returns | Description |
| (none) | time object | Current date and time of the machine running the server |
|
| time object | Current date and time in the given timezone. Errors if the name is unknown |
|
|
| Available IANA timezone names, max 200 results |
|
| time object + | Current time from a public NTP server instead of the local clock |
The time object returned by the tools above:
Field | Type | Example |
| string |
|
| string (ISO 8601) |
|
| string |
|
| string |
|
| string |
|
| string |
|
| integer |
|
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 |
|
| Microsoft |
|
| NICT (Japan) |
|
| |
|
| Cloudflare |
|
| 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-mcpOr run it without installing:
uvx time-mcpDevelopment setup
uv syncTry it
uv run mcp dev src/time_mcp/server.pyRegister with Claude Code
claude mcp add time -- uvx time-mcpOr in claude_desktop_config.json:
{
"mcpServers": {
"time": {
"command": "uvx",
"args": ["time-mcp"]
}
}
}Register with Codex CLI
codex mcp add time -- uvx time-mcpOr add it to ~/.codex/config.toml by hand:
[mcp_servers.time]
command = "uvx"
args = ["time-mcp"]Check that it is registered:
codex mcp listRunning 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-mcpLicense
MIT License. See LICENSE.
Available Tools
4 toolsget_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
Scored across 4 tools
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.
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.
Four tools is a well-scoped size for a time-focused MCP server. Each tool covers a distinct time-related need without unnecessary bloat.
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
Related MCP Connectors
Current time in any IANA time zone, plus the full time-zone list. Via timeapi.io.
A real clock for AI agents: current time, timezone conversion, and DST facts from the IANA tzdb.
Current time, time differences, DST changes and time conversion for any city or IANA time zone.
Get the current time in any timezone and quickly look up common timezone info. Set a default timez…
Related MCP Servers
- AlicenseAqualityFmaintenanceProvides 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.73Apache 2.0
- FlicenseBqualityDmaintenanceProvides current time and timezone conversion using IANA timezone names, with automatic system timezone detection.2-
- AlicenseAqualityDmaintenanceProvides current date, time, and datetime with optional timezone support (local, UTC, or IANA timezone strings).37 npmMIT
- AlicenseNot gradedqualityDmaintenanceProvides current time and timezone conversion using IANA timezone names, enabling LLMs to get system time or convert times between timezones.MIT