Time MCP 服务器:为 LLM 提供时间感知能力

Time MCP 服务器:为 LLM 提供时间感知能力

一个为大型语言模型提供时间感知能力的 MCP 服务器实现。

快速入门

安装

通过 Smithery 自动安装: 运行命令 npx -y @smithery/cli install @yokingma/time-mcp --client claude 手动安装(可选):运行 npm install -g time-mcp 使用 npx 运行:npx -y time-mcp

配置

在 Cursor 中,配置 mcp.json 文件如下:

{
  "mcpServers": {
    "time-mcp": {
      "command": "npx",
      "args": ["-y", "time-mcp"]
    }
  }
}

在 Windsurf 中,更新 model_config.json 文件。

工具功能

支持获取当前时间、相对时间、时间戳、月份天数、时区转换、年周计算等。