Skip to main content
Glama
MCP Simple Timeserver

MCP Simple Timeserver

MCP 简单时间服务器

铁匠徽章

Anthropic 的一个奇怪设计决定是剥夺了 Claude 获取用户发送消息的时间戳或当前时间的能力。可怜的 Claude 根本不知道现在几点! mcp-simple-timeserver是一个可以解决这个问题的简单 MCP 服务器。

该服务器提供了两个工具:

  • get_time提供用户机器当前的本地时间和时区信息。这样,Claude 就可以知道用户所在地的时间。他还可以计算自上次与用户交互以来已经过了多长时间(如果他愿意的话)。

  • get_utc提供从NTP 时间服务器获取的当前 UTC 时间。

安装

通过 Smithery 安装

要通过Smithery自动为 Claude Desktop 安装简单时间服务器:

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

手动安装

首先使用以下命令安装模块:

pip install mcp-simple-timeserver

然后在 MCP 客户端 - Claude 桌面应用程序中进行配置。

在 Mac OS 下它将看起来像这样:

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

在 Windows 下,您必须使用cmd (Windows 命令行)中的where python检查 Python 可执行文件的路径。

典型配置如下:

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

Available Tools

2 tools
get_local_timeGet Local Time and TimezoneA
Read-only

Returns the current local time and timezone information from your local machine. This helps you understand what time it is for the user you're assisting.

Inputs: no named parameters. Returns: result

get_utcGet UTC Time from an NTP ServerA
Read-only

Returns accurate UTC time from an NTP server. This provides a universal time reference regardless of local timezone.

:param server: NTP server address (default: pool.ntp.org)

Inputs: server. Returns: result

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.9/5.0

    Scored across 2 tools

    Disambiguation5/5

    The two tools have clearly distinct purposes: get_local_time provides local time with timezone information, while get_utc provides universal time from an NTP server. There is no overlap or ambiguity between these functions.

    Naming Consistency5/5

    Both tools follow a consistent verb_noun naming pattern (get_local_time, get_utc) with the same verb 'get' and clear noun objects. The naming is perfectly uniform and predictable.

    Tool Count3/5

    With only 2 tools, the server feels somewhat thin for a timeserver domain. While the tools cover basic time retrieval, additional functionality like time conversion, formatting, or scheduling might be expected but is missing.

    Completeness3/5

    The server provides core time retrieval functions (local and UTC), but lacks operations for time manipulation, conversion between timezones, or date calculations. These gaps limit the server's utility for more complex time-related tasks.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      B
      quality
      D
      maintenance
      A simple MCP server that provides accurate date and time information to Claude models, ensuring they always use the correct current date and time when creating time-sensitive content.
      3
      -
    • F
      license
      Not graded
      quality
      D
      maintenance
      A minimal MCP server that provides current time information with configurable timezone support set on the client side.
      -
    • A
      license
      A
      quality
      D
      maintenance
      MCP server providing various date/time functions including current time, timezone conversion, and relative time calculations. Supports both local stdio and remote HTTP access via Cloudflare Workers.
      6
      243 npm
      2
      MIT