Skip to main content
Glama
kujirahand

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.

ParametersJSON Schema
NameRequiredDescriptionDefault

No parameters

TDQS

A4.4/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries the full behavioral burden. It clearly states the operation and result, and the verb 'Return' implies a read-only action. It does not specify the output format, but for a simple time lookup this is a minor omission.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, front-loaded sentence with no redundant words. Every word contributes to defining the tool's purpose.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a zero-parameter, no-output-schema tool, the description is nearly complete: it states what is returned and from where. The only missing detail is the return format, which is acceptable given the tool's simplicity.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

There are no parameters, so the baseline is 4. The description appropriately adds no parameter-related information because none exist.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description uses a specific verb ('Return') and clearly identifies the resource ('current local date and time of the machine running this server'). It also distinguishes itself from siblings like get_time_in_timezone by emphasizing local server time rather than a selected timezone.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The phrase 'local date and time of the machine' gives clear context that this tool is for the server's own time, not a timezone-converted or NTP-sourced value. It does not explicitly name alternatives or exclusions, but the intended use is evident.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

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.

ParametersJSON Schema
NameRequiredDescriptionDefault
serverNo
timezoneNo

TDQS

A4.5/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries the full burden of behavioral disclosure. It does well by detailing the default server behavior (time.apple.com tried first, time.windows.com fallback) and the timezone default (local timezone used when omitted). It does not describe return format or network failure behavior, but for a simple read-only time tool the disclosed defaults and fallbacks are meaningful and transparent.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is concise and front-loaded: the first sentence states the core purpose, and the following lines clearly explain each parameter and default. There is no redundant or filler content; every sentence adds useful information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The description covers purpose, both parameters, accepted server values, and fallback/default behavior despite having no output schema and no annotations. The main gap is that it does not specify the returned time format, which would be useful absent an output schema, but for a straightforward time-query tool this is a minor omission.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema provides 0% description coverage and only bare titles/defaults, so the description must fully compensate. It does: server is explained as accepting a named short list of providers or a hostname, and timezone is explained as an IANA name with local-time default. This gives an agent all the semantic information needed to use both parameters correctly.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a clear verb and resource: 'Get the current time from a public NTP server instead of the local clock.' This immediately distinguishes the tool from sibling get_local_time and makes the tool's core behavior obvious. The rest of the description specifies the configurable server and timezone, leaving no ambiguity about what the tool does.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description clearly positions this tool as the NTP-based alternative to the local clock, which gives useful when-to-use context relative to get_local_time. It does not explicitly name sibling alternatives or state conditions for choosing get_time_in_timezone over this tool, so it falls short of the most explicit guidance.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

get_time_in_timezoneA

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

ParametersJSON Schema
NameRequiredDescriptionDefault
timezoneYes

TDQS

A4/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries the full burden of behavioral transparency. It clearly states the read-only behavior of returning current date and time, but does not disclose behavior for invalid timezone values, time source, or error conditions. This is adequate for a simple lookup tool but leaves some behavioral gaps.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single sentence that immediately states the action and the required parameter format, with examples folded in naturally. There is no filler, repetition, or extraneous detail.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple tool with one required parameter and no output schema, the description is nearly sufficient. It covers the core purpose and parameter semantics, though it does not specify the response format or error behavior for invalid timezone strings. These are minor omissions given the tool's low complexity.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema only defines the parameter name 'timezone' with 0% description coverage. The tool description compensates by explaining that the value is an IANA timezone and provides two concrete examples, which adds essential semantic meaning beyond the raw schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb ('Return'), a clear resource ('current date and time in the given IANA timezone'), and includes concrete examples. This makes the tool's purpose immediately obvious and distinguishes it from siblings like get_local_time and list_timezones.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies when to use the tool: when a caller needs the current date/time for a specified IANA timezone. However, it does not explicitly state when not to use it or mention alternative tools, leaving the routing decision partially to inference.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

list_timezonesA

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

ParametersJSON Schema
NameRequiredDescriptionDefault
queryNo

Output Schema

ParametersJSON Schema
NameRequiredDescription
resultYes

TDQS

A4/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries the full burden. It usefully discloses that query matching is case-insensitive and substring-based, but does not mention read-only behavior, result size, or what happens when query is empty. The disclosure is helpful but minimal.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is two efficiently worded sentences with no filler. The primary action and the key parameter behavior are both stated clearly and concisely.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple tool with one optional param and an output schema, the description is sufficient for an agent to understand its purpose and the query behavior. It could be slightly more complete by noting empty-query behavior or explicitly relating itself to sibling tools, but these are minor gaps.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0%, so the description must clarify the query parameter. It does so by explaining it is a case-insensitive substring match. It does not describe the default behavior, but the default is visible in the schema and the core meaning is conveyed.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool searches available IANA timezone names, which is a specific verb and resource. It also naturally distinguishes itself from sibling tools like get_local_time and get_time_in_timezone, which retrieve times rather than listing/searching names.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies usage: use this tool when you need to find timezone names via substring matching. It does not explicitly mention alternatives or when not to use it, but the sibling tool names make the distinction reasonably clear.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. 4 tool updatesv0.1.0
    • First observedget_local_time
    • First observedget_time_from_ntp
    • First observedget_time_in_timezone
    • First observedlist_timezones

TDQS

A4.3/5.0
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

ActivityMaintained
ResponsivenessNo issues

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Connectors

Related MCP Servers

  • A
    license
    A
    quality
    C
    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
    C
    maintenance
    Provides current date, time, and datetime with optional timezone support (local, UTC, or IANA timezone strings).
    3
    15
    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

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/kujirahand/mcp_server-time'

If you have feedback or need assistance with the MCP directory API, please join our Discord server