Time FastMCP Server logo

Time FastMCP Server

by fykong

The Time FastMCP Server provides time and timezone conversion capabilities for LLMs. It allows LLMs to get current time information and perform timezone conversions using IANA timezone names.

View on GitHub

Last updated: N/A

Time FastMCP Server

A Model Context Protocol server that provides time and timezone conversion capabilities. This server enables LLMs to get current time information and perform timezone conversions using IANA timezone names, with automatic system timezone detection.

Available Tools

  • get_current_time - Get current time in a specific timezone or system timezone.

    • Required arguments:
      • timezone (string): IANA timezone name (e.g., 'America/New_York', 'Europe/London')
  • convert_time - Convert time between timezones.

    • Required arguments:
      • source_timezone (string): Source IANA timezone name
      • time (string): Time in 24-hour format (HH:MM)
      • target_timezone (string): Target IANA timezone name

Installation

Using uv

uv add mcp tzdata datetime

Configuration

Add to your settings:

By default, the server automatically detects your system's timezone. You can override this by adding the argument --local-timezone to the args list in the configuration.

"mcpServers": {
  "time": {
    "command": "uv",
    "args": [
      "--directory",
      "C:\\Users\\kongfy\\time_fastmcp_server",
      "run",
      "main.py",
      "--local-timezone=America/New_York" (optional)
    ]
  }
}

Examples of Questions for Claude

  1. "What time is it now?" (will use system timezone)
  2. "What time is it in Tokyo?"
  3. "When it's 4 PM in New York, what time is it in London?"
  4. "Convert 9:30 AM Tokyo time to New York time"