Skip to main content

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

The time object returned by get_local_time and get_time_in_timezone:

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

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 -- uv --directory /Users/kujirahand/repos/mcp_server-time run time-mcp

Or in claude_desktop_config.json:

{
  "mcpServers": {
    "time": {
      "command": "uv",
      "args": ["--directory", "/Users/kujirahand/repos/mcp_server-time", "run", "time-mcp"]
    }
  }
}

License

MIT License. See LICENSE.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

time_mcp-0.1.0.tar.gz (66.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

time_mcp-0.1.0-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

Details for the file time_mcp-0.1.0.tar.gz.

File metadata

  • Download URL: time_mcp-0.1.0.tar.gz
  • Upload date:
  • Size: 66.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.13.9

File hashes

Hashes for time_mcp-0.1.0.tar.gz
Algorithm Hash digest
SHA256 7a6fbdde0b7302032c28d36c694135340f3596779b205432a8ccd7a78643f552
MD5 22490aebaaee09a0dd012311d519fa48
BLAKE2b-256 8208e04823f2c8bd8f2b28cede93d967a6452ab627718d1d8f6cd59726571486

See more details on using hashes here.

File details

Details for the file time_mcp-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: time_mcp-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.13.9

File hashes

Hashes for time_mcp-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d4b059df8fe0565928104236d19d5f97928d090de328c4fe8d369b0be0e2be1f
MD5 1cb25689f12dc1caeb2a97f5b960e42a
BLAKE2b-256 51b6c4816de20958ab7564192111baa580a228e77ba302599016ba50c63977e2

See more details on using hashes here.

Release history Release notifications | RSS feed

0.2.1

2 files

This release

0.1.0 This release

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page