Time FastMCP Server
About
Used FastMCP to replicate the official repo's Time Mcp Server feature.
Details
- Author
- fykong
- Downloads
- 314
- Categories
- Productivity
Jump to
- Get current time in any IANA timezone or system timezone.
- Convert time between two IANA timezones.
- Automatic detection of system timezone.
- Supports 24-hour time format for conversions.
- Simple tool-based interface for LLMs.
Install using uv with packages mcp, tzdata, and datetime. Configure in your MCP settings with the command uv and arguments pointing to the script. Optionally pass --local-timezone to override the system timezone.
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
``bash
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.
`json
"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"Sign in to leave a review
Use Google, GitHub, or an email account so ratings stay tied to real people.
No reviews posted yet.



