Purpose
mcp-simple-timeserver is a simple MCP (Model Context Protocol) server designed to solve the problem that Claude in claude.ai cannot know message timestamps or the current time. Through this server, Claude can obtain the current time, learn about holidays, calculate the time distance between dates, and more.
Main Capabilities
The server provides the following tools:
- get_current_time: Supports positional parameters (timezone > city > country priority) to obtain the local time anywhere in the world, returning the local time, timezone information, UTC offset, and daylight saving time status. If the day is a public holiday, it will be shown in the output. It can also accept an optional calendar parameter, passing in a comma-separated list of calendar formats, for example,
get_current_time(city="Tokyo", calendar="japanese")returns Tokyo local time and the Japanese era calendar. - calculate_time_distance: Calculates the duration between two dates or times. Positional parameters (city, country, timezone) can be used to specify the timezone context. When
business_days=true, the specific time is ignored, and the dates are treated as full days (including endpoints); in this case, the unit parameter is ignored. Holidays are excluded only when they fall on a weekday. Example:calculate_time_distance(from_date="now", to_date="2025-12-31")returns the New Year countdown;calculate_time_distance(from_date="2026-01-26", to_date="2026-01-30", business_days=true, exclude_holidays=true, city="Sydney")returns the number of business days in that range. - get_holidays and is_holiday: Obtain public holiday and school holiday information for about 119 countries. When is_holiday uses the city parameter, school holidays are filtered to show only holidays affecting a specific region, which is suitable for countries where school holidays vary by region (such as Polish provinces, German federal states, and Spanish autonomous communities). Example:
is_holiday(city="Warsaw", date="2026-01-19")returns school holiday information specific to the Masovian Voivodeship.
All tools (except get_local_time ) use accurate time from NTP servers. If NTP is unavailable, they gracefully fall back to the local server time and provide a notice.
Usage
It can be automatically installed to Claude Desktop through Smithery, or installed manually: first use the command to install the module, then configure it in an MCP client (such as the Claude desktop application). The configuration paths differ between Mac OS and Windows; on Windows, use where python to check the Python executable path. A typical configuration is shown below. The project also includes a web-hostable version that can be deployed as a standalone web server; see the web server deployment guide for details. You can also directly add https://mcp.andybrandt.net/timeserver to Claude and other tools that support MCP.
Applicable Scenarios
Suitable for scenarios where Claude needs to be aware of time, query holidays, calculate date differences, etc., especially in date calculations involving multiple time zones, public holidays, or school holidays.
Limitations
- Public holiday data comes from the Nager.Date API (119 countries), and school holiday data comes from OpenHolidaysAPI (36 countries, mainly in Europe).
- Filtering school holidays by region only takes effect when the city parameter is provided, and coverage is limited.
- If NTP is unavailable, time accuracy falls back to the local server time.
- Specific installation commands and configuration examples need to refer to the official repository documentation.