
andybrandt/mcp-simple-timeserver 是从 https://github.com/andybrandt/mcp-simple-timeserver. 导入的 MCP 服务器候选
概览
andybrandt/mcp-simple-timeserver 是从 https://github.com/andybrandt/mcp-simple-timeserver. 导入的 MCP 服务器候选
概述(AI 翻译)
Anthropic做的一个奇怪设计决定是剥夺了Claude在 claude.ai 或当前时间发送的消息的时间戳。可怜的Claude无法判断现在是几点!mcp-simple-timeserver是一个简单的MCP服务器,解决了这个问题。
可用工具
该服务器提供以下工具:
| 工具 | 描述 |
|---|---|
get_local_time |
返回用户机器的当前本地时间、星期几和时区 |
get_utc |
返回来自NTP时间服务器的准确UTC时间 |
get_current_time |
返回当前时间,可选择位置、时区和日历转换 |
calculate_time_distance |
计算两个日期/时间之间的持续时间(倒计时,经过时间) |
get_holidays |
返回国家的公共假期(可选择学校假期) |
is_holiday |
检查某一特定日期是否为某一国家或城市的节假日 |
所有工具(除 get_local_time)都使用来自 NTP 服务器的准确时间。如果 NTP 不可用,它们会优雅地回退到本地服务器时间并发出通知。
位置支持通过get_current_time
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
MCP Simple Timeserver
One of the strange design decisions Anthropic made was depriving Claude of timestamps for messages sent by the user in claude.ai or current time in general. Poor Claude can’t tell what time it is! mcp-simple-timeserver is a simple MCP server that fixes that.
Available Tools
This server provides the following tools:
| Tool | Description |
|---|---|
get_local_time |
Returns the current local time, day of week, and timezone from the user’s machine |
get_utc |
Returns accurate UTC time from an NTP time server |
get_current_time |
Returns current time with optional location, timezone, and calendar conversions |
calculate_time_distance |
Calculates duration between two dates/times (countdowns, elapsed time) |
get_holidays |
Returns public holidays (and optionally school holidays) for a country |
is_holiday |
Checks if a specific date is a holiday in a given country or city |
All tools (except get_local_time) use accurate time from NTP servers. If NTP is unavailable, they gracefully fall back to local server time with a notice.
Location Support via get_current_time
The get_current_time tool supports location parameters to get local time anywhere in the world:
| Parameter | Description | Example |
|---|---|---|
city |
City name (primary use case) | "Warsaw", "Tokyo", "New York" |
country |
Country name or ISO code | "Poland", "JP", "United States" |
timezone |
IANA timezone or UTC offset | "Europe/Warsaw", "+05:30" |
Priority: timezone > city > country. When location is provided, the response includes local time, timezone info, UTC offset, and DST status.
If today is a public holiday at the specified location, it will be shown in the output.
Calendar Support via get_current_time
The get_current_time tool also accepts an optional calendar parameter with a comma-separated list of calendar formats:
| Calendar | Description |
|---|---|
unix |
Unix timestamp (seconds since 1970-01-01) |
isodate |
ISO 8601 week date (e.g., 2026-W03-6) |
hijri |
Islamic/Hijri lunar calendar |
japanese |
Japanese Era calendar (returns both English and Kanji) |
hebrew |
Hebrew/Jewish calendar (returns both English and Hebrew, includes holidays) |
persian |
Persian/Jalali calendar (returns both English and Farsi) |
安装
npx -y @smithery/cli install mcp-simple-timeserver --client claude配置
"mcpServers": {
"simple-timeserver": {
"command": "python",
"args": ["-m", "mcp_simple_timeserver"]
}
}