MCP 简单时间服务器
Anthropic 的一个奇怪设计决定是剥夺了 Claude 获取用户发送消息的时间戳或当前时间的能力。可怜的 Claude 根本不知道现在几点!
该服务器提供了两个工具:
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"]
}
}
local-only server
The server can only run on the client's local machine because it depends on local resources.
MCP 服务器允许检查客户端计算机上的本地时间或从 NTP 服务器检查当前 UTC 时间
Related MCP Servers
- -securityFlicense-qualityAn MCP server providing timezone conversions and time-related operations via RESTful API endpoints, featuring comprehensive error handling and timezone database integration.Last updated -
- AsecurityAlicenseAqualityA lightweight mcp server that tells you exactly what time is it based on your IP.Last updated -18MIT License
- AsecurityFlicenseAqualityAn MCP server that automatically detects and provides current time and location information based on system timezone and IP geolocation.Last updated -2
- -securityAlicense-qualityThe Time MCP Server is a Model Context Protocol (MCP) server that provides AI assistants and other MCP clients with standardized tools to perform time and date-related operations. This server acts as a bridge between AI tools and a robust time-handling backLast updated -6MIT License