MCP Simple Timeserver

hybrid server

The server is able to function both locally and remotely, depending on the configuration or use case.

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"] } }
-
security - not tested
A
license - permissive license
-
quality - not tested

MCP 服务器允许检查客户端计算机上的本地时间或从 NTP 服务器检查当前 UTC 时间

  1. Installation
    1. Installing via Smithery
    2. Manual Installation
ID: 4kbi50f69g