MCP Catalogs
首页

mcp-simple-timeserver

by andybrandt·30·综合分 44

一个Python MCP服务器,为Claude提供时间查询、节假日信息和时间计算功能。

productivityai-llmother
16
Forks
3
活跃 Issue
3 个月前
最近提交
2 天前
收录于

概述

mcp-simple-timeserver是一个设计良好的MCP服务器,解决了Claude缺乏时间戳功能的问题。它提供了多种时间相关工具,包括获取本地时间、从NTP服务器获取UTC时间、计算日期之间的时间差以及查询全球节假日。服务器支持多个位置、时区以及日历系统,包括日本、希伯来、伊斯兰和波斯日历。文档全面,包含清晰的示例和Smithery手动安装配置说明。

试试问 AI

装完之后,这里有 5 个你可以让 AI 做的事:

:为缺乏内置时间功能的AI助手添加时间感知能力
:计算日期之间的时间差用于日程安排和任务规划
:检查不同国家的公共假日用于国际业务规划
:除了Claude,这还适用于其他AI助手吗?
:提供的时间信息有多准确?

什么时候选它

当您的应用程序需要准确的时间数据、日期计算以及多个国家和日历系统的假期信息时,选择此服务器。

什么时候不要选它

如果您需要提供的自定义时间格式之外的选项,或需要 1970 年之前的历史时间数据(Unix 时代限制),请避免使用。

此 server 暴露的工具

从 README 抽取出 6 个工具
  • 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

可对比工具

mcp-date-utilsdate-fns-mcpmoment-mcp

安装

安装

通过Smithery安装

npx -y @smithery/cli install mcp-simple-timeserver --client claude

手动安装

pip install mcp-simple-timeserver
Claude桌面应用配置

Mac OS:

"mcpServers": {
  "simple-timeserver": {
    "command": "python",
    "args": ["-m", "mcp_simple_timeserver"]
  }
}

Windows:

"mcpServers": {
  "simple-timeserver": {
    "command": "C:\\Users\\YOUR_USERNAME\\AppData\\Local\\Programs\\Python\\Python311\\python.exe",
    "args": ["-m", "mcp_simple_timeserver"]
  }
}

FAQ

除了Claude,这还适用于其他AI助手吗?
是的,这是一个标准MCP服务器,应该与任何MCP兼容的客户端一起使用。
提供的时间信息有多准确?
除get_local_time外,所有工具都使用NTP服务器的准确时间。如果NTP不可用,它们将回退到本地服务器时间并发出通知。

mcp-simple-timeserver 对比

GitHub →

最后更新于 · 由 README + GitHub 公开数据自动生成。