Skip to main content
AgentsUse

MCP server, by Model Context Protocol

Time MCP Server

Python MCP server that returns the current time for an IANA timezone and converts times between timezones.

stdio (local process)Checked 2026-11-03Config checked

Quick facts

Transport
stdio (local process)
Runs as
uvx (mcp-server-time)
Review state
Config checked against the official source on 2026-11-03; not locally tested by AgentsUse.

What it does

The time server answers two kinds of question for an MCP client: what time is it in a given place, and what is a given wall-clock time in another place. It takes IANA timezone names such as America/New_York and Europe/London, and detects the system timezone automatically when no override is given. It is a Python package run with uvx, pip, or the mcp/time Docker image, and it speaks stdio.

The timezone name must be an exact IANA key, case included. The README gives the example that Europe/Warsaw is accepted and europe/warsaw is rejected on every platform, including macOS, whose case-insensitive filesystem would otherwise resolve it. The same rule applies to the --local-timezone argument, which overrides the detected system zone. In the Docker image the host timezone is not visible, so the container reads a LOCAL_TIMEZONE environment variable at start and uses UTC when it is unset or empty. A --local-timezone argument placed after the image name takes precedence over that variable.

Responses are structured. Each tool declares an output schema and returns its result twice, as structuredContent and as the same object in indented JSON in a text block, so a client that ignores structured output still sees it. A current-time result carries the timezone, an ISO datetime with offset, the day of the week, and an is_dst flag. A conversion result carries a source block and a target block of the same shape plus a time_difference string such as +14.0h.

The README says the server speaks both protocol eras over stdio with nothing to configure: a 2026-07-28 client discovers it with server/discover and no session, and a 2025-11-25 client uses the initialize handshake. The first request from the client decides which. The tools behave the same in both. The README states the server needs MCP Python SDK 2.x (mcp>=2.3,<3), and that it registers no prompts or resources, so those list methods answer with empty lists. It is MIT licensed.

Failures are reported in a way a model can act on. A tool failure comes back as a result flagged isError whose text begins Error executing tool followed by the tool name. That covers an unknown or non-exact timezone (Invalid timezone), an empty timezone (Missing required argument), a time that is not in HH:MM 24-hour form, a wall-clock time skipped by a clock change, and an argument that is missing or of the wrong type. An unknown tool name is different: it is a JSON-RPC -32602 error, not an isError result.

Configuration

Run with uvx mcp-server-time, install with pip install mcp-server-time, or use the mcp/time Docker image.

MCP config (placeholders)
{
  "mcpServers": {
    "time": {
      "command": "uvx",
      "args": ["mcp-server-time"]
    }
  }
}

Source: https://github.com/modelcontextprotocol/servers/tree/main/src/time. Placeholders only. Replace them in your own environment, and never commit real keys to a repository.

Environment variableRequiredPurpose
LOCAL_TIMEZONEOptionalPasses the local timezone into the container in the Docker example.

Tools and features on record

  • get_current_time Config checked

    Returns the current time in one timezone. Required argument: timezone, an exact IANA name such as America/New_York. The result has timezone, datetime (ISO 8601 with offset), day_of_week, and is_dst.

  • convert_time Config checked

    Converts a time between zones. Required arguments: source_timezone, time in 24-hour HH:MM form, and target_timezone. The result has a source block, a target block (each with timezone, datetime, day_of_week, is_dst), and time_difference such as +14.0h.

  • Exact IANA names Config checked

    Timezone keys are case-sensitive on every platform. The README shows Europe/Warsaw accepted and europe/warsaw rejected, so a model that lowercases a name gets an Invalid timezone error rather than a guess.

  • System timezone and LOCAL_TIMEZONE Config checked

    The system timezone is detected by default. Override it with --local-timezone in the args list. The Docker image cannot see the host zone, reads LOCAL_TIMEZONE at start, and falls back to UTC when it is unset or empty.

  • Structured and text results Config checked

    Each result is returned as structuredContent and as the same JSON in a text block, so clients that read only text still get the full object.

  • Error results Config checked

    A failed call returns isError with text prefixed Error executing tool. Skipped wall-clock times (a clock change) and malformed HH:MM input are among the listed causes. An unknown tool name is a JSON-RPC -32602 error.

  • Debugging Config checked

    The README suggests running npx @modelcontextprotocol/inspector uvx mcp-server-time to call the tools by hand and inspect the raw results.

Security notes

Security notes
  • The server reads the system clock and timezone data only. The README describes no filesystem writes, no outbound network calls, and no credentials, so the practical blast radius of connecting it is small.
  • The only model-controlled inputs are the timezone names and the HH:MM string. They are validated as exact IANA keys and a 24-hour time, and a bad value produces an isError result rather than widening access to anything.
  • No API keys are required and none are read. The only environment variable in the README is LOCAL_TIMEZONE, used by the Docker example to pass a zone name into the container.
  • It runs as a local stdio process with the permissions of whatever starts it. If your client launches it in a container, the host timezone is not visible, so a conversion that relies on the system zone will silently use UTC unless you set LOCAL_TIMEZONE or --local-timezone.
  • Daylight saving edge cases are reported rather than hidden: a wall-clock time that a clock change skips returns an error, and is_dst is part of every result. Check that flag before using a result for scheduling around a transition.
  • The root README of the servers repository says its servers are reference implementations meant as educational examples, not production-ready solutions, so review the code against your own requirements before building a workflow on top of it.

An MCP server runs with the permissions of the process you start it from. Scope credentials to the narrowest access the job needs, and review what the client will send before connecting anything sensitive.

Sources and freshness

Checked 2026-11-03. Config-checked means the configuration and feature list trace to the official source above; it does not mean AgentsUse ran the server. Send corrections through the contact page. Back to the MCP server index.