
Time FastMCP Server
Used FastMCP to replicate the official repo's Time Mcp Server feature.
What is Time FastMCP Server?
Time FastMCP Server is a Model Context Protocol server that provides time and timezone conversion capabilities, enabling LLMs to access current time information and perform timezone conversions using IANA timezone names with automatic system timezone detection.
How to use Time FastMCP Server?
To use the Time FastMCP Server, install it using the uv
command, configure it to detect your system's timezone or set a specific timezone, and then use the available tools to get current time or convert time between timezones.
Key features of Time FastMCP Server?
- Get current time in a specific timezone or system timezone.
- Convert time between different timezones.
- Automatic detection of system timezone.
Use cases of Time FastMCP Server?
- Querying the current time in various timezones.
- Converting time from one timezone to another for scheduling.
- Integrating with applications that require accurate time and timezone data.
FAQ from Time FastMCP Server?
- How do I get the current time?
You can use the
get_current_time
tool with the desired IANA timezone name.
- Can I convert time between any two timezones?
Yes, you can convert time between any two IANA timezone names using the
convert_time
tool.
- Is there a default timezone setting?
Yes, the server automatically detects your system's timezone unless overridden in the configuration.
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')
- Required arguments:
-
convert_time
- Convert time between timezones.- Required arguments:
source_timezone
(string): Source IANA timezone nametime
(string): Time in 24-hour format (HH:MM)target_timezone
(string): Target IANA timezone name
- Required arguments:
Installation
uv
Using 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
- "What time is it now?" (will use system timezone)
- "What time is it in Tokyo?"
- "When it's 4 PM in New York, what time is it in London?"
- "Convert 9:30 AM Tokyo time to New York time"