MCP Simple Timeserver

MCP Simple Timeserver

通过 MCP 为 Claude 提供查询当前时间的能力的简易方案。

smithery 徽章

概述

mcp-simple-timeserver 为 Claude 提供获取时间的能力,解决了其无法获取时间戳的设计限制。

提供两个工具:

  • get_time: 提供用户本地时间和时区
  • get_utc: 提供从 NTP 服务器获取的 UTC 时间

安装选项

方法 1: Smithery 快速安装 (推荐)

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

方法 2: 手动安装

  1. 安装模块:

    pip install mcp-simple-timeserver
    
  2. 在 Claude 桌面应用中配置:

    MacOS:

    "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"]
      }
    }
    

    💡 在 Windows 上使用 where python 查找 Python 可执行文件的确切路径

安装完成后,Claude 将能够使用这些工具获取当前时间信息。