Skip to main content
Glama

🚀 时间 MCP 服务器:赋予 LLM 时间感知能力

铁匠徽章

模型上下文协议 (MCP) 服务器实现允许 LLM 具有时间感知功能。

工具

  • current_time :获取当前时间(UTC 和本地时间)

  • relative_time :获取相对时间

  • get_timestamp :获取时间的时间戳

  • days_in_month :获取月份中的天数

  • convert_time :在时区之间转换时间

  • get_week_year :获取一年中的第几周和第几周

Related MCP server: Time MCP Server

安装

通过 Smithery 安装

要通过Smithery自动为 Claude Desktop 安装 time-mcp:

npx -y @smithery/cli install @yokingma/time-mcp --client claude

手动安装(可选)

npm install -g time-mcp

使用 npx

npx -y time-mcp

在光标上运行

您的mcp.json文件将如下所示:

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

在风帆冲浪中奔跑

将其添加到您的./codeium/windsurf/model_config.json文件中:

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

执照

MIT 许可证 - 详情请参阅LICENSE文件。

Available Tools

6 tools
convert_timeB

Convert time between timezones.

Inputs: time (required), sourceTimezone (required), targetTimezone (required).

current_timeA

Get the current date and time.

Inputs: format, timezone.

days_in_monthA

Get the number of days in a month. If no date is provided, get the number of days in the current month.

Inputs: date.

get_timestampD

Get the timestamp for the time.

Inputs: time.

get_week_yearB

Get the week and isoWeek of the year.

Inputs: date.

relative_timeC

Get the relative time from now.

Inputs: time (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.2/5.0

    Scored across 6 tools

    Disambiguation5/5

    Each tool targets a distinct time-related operation with no overlap. convert_time, current_time, days_in_month, get_timestamp, get_week_year, and relative_time all serve unique purposes.

    Naming Consistency4/5

    Names follow snake_case and are mostly descriptive, but there is slight inconsistency: some start with 'get' (get_timestamp, get_week_year) while others are adjective+noun (current_time) or verb+noun (convert_time).

    Tool Count5/5

    Six tools is an appropriate number for a time utility server, covering essential operations without being excessive or minimal.

    Completeness4/5

    Common time operations are covered (conversion, current time, days in month, timestamp, week/year, relative time). Missing features like date arithmetic or time difference are minor gaps that don't hinder typical use.

    Maintenance

    ActivityInactive
    ResponsivenessLimited data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      B
      quality
      D
      maintenance
      Gives large language models time awareness capabilities through various time-related functions including current time retrieval, timezone conversion, and relative time calculations.
      6
      1,379 npm
      MIT
    • A
      license
      B
      quality
      D
      maintenance
      Provides time and timezone functionality for LLMs, enabling them to get current time information across different timezones and convert times between zones.
      2
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Provides current time information and timezone conversion capabilities using IANA timezone names and automatic system detection. It enables LLMs to fetch current times across different regions and convert specific times between timezones.
      MIT