MCP Catalogs
首页mcp-time screenshot

mcp-time

by TheoBrigitte·15·综合分 42

Go 语言实现的 MCP 服务器,提供带自然语言处理和时区转换功能的时间工具。

developer-toolsproductivityai-llm
6
Forks
1
活跃 Issue
2 个月前
最近提交
2 天前
收录于

概述

mcp-time 服务器是一个 Model Context Protocol 实现,使 AI 助手能够执行复杂的时间和日期操作。它提供了获取当前时间、时区转换、处理相对时间表达式、比较时间和灵活格式化日期的工具。服务器支持 stdio 和 HTTP 流传输,使其适用于不同的集成场景。Go 实现确保了良好的性能和可靠性,并对各种时间格式和边缘情况进行了全面的错误处理。

试试问 AI

装完之后,这里有 5 个你可以让 AI 做的事:

:AI 助手回答不同时区的时间相关问题
:需要精确时间计算和转换的自动调度系统
:需要标准化时间格式和比较的数据分析流程
:服务器支持哪些时间格式?
:服务器如何处理时区转换?

什么时候选它

当您的 AI 应用程序需要强大的时间操作能力和自然语言解析功能,特别是经常处理多个时区的应用程序时,选择此 MCP server。

什么时候不要选它

如果您需要超出简单时间操作的复杂日历或事件管理功能,请不要选择它,因为它专门专注于时间工具而非完整的日历功能。

此 server 暴露的工具

从 README 抽取出 5 个工具
  • current_time

    Get the current time in any timezone and format

  • relative_time

    Get a time based on a relative natural language expression

  • convert_timezone

    Convert a given time between timezones

  • add_time

    Add or subtract a duration from a given time

  • compare_time

    Compare two times and determine their relationship

可对比工具

mcp-schedulemcp-calendartime-mcp

安装

安装

使用 npm/npx

{
  "mcpServers": {
    "mcp-time": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@theo.foobar/mcp-time"
      ]
    }
  }
}

使用 Docker

{
  "mcpServers": {
    "mcp-time": {
      "type": "stdio",
      "command": "docker",
      "args": [
        "run",
        "--rm",
        "-i",
        "theo01/mcp-time:latest"
      ]
    }
  }
}

使用二进制文件

从 [releases](https://github.com/TheoBrigitte/mcp-time/releases) 下载适合您平台的二进制文件并添加到 PATH。

FAQ

服务器支持哪些时间格式?
服务器支持各种预定义格式(RFC3339、Kitchen 等)和自定义 Go 布局字符串。它可以自动解析大多数常见的时间格式。
服务器如何处理时区转换?
它使用 IANA 时区名称(如 'America/New_York')进行准确的时区转换,并自动遵循夏令时。

mcp-time 对比

GitHub →

最后更新于 · 由 README + GitHub 公开数据自动生成。