Token导航 LogoToken导航TokenDH.com
Time Tools MCP Server logo
搜索检索未说明官方级别未说明来源级核验

Time Tools MCP Server

MCP Server

MCP server to enable AI agents to perform time-related processing, such as retrieving the current time

工具数

7

提示词数

0

GitHub Stars

2

资源数

0
时间管理服务器工具TypeScript本地部署

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

作者 / 组织

t-shiratori

提供方

t-shiratori

最后核验

2026/5/18 02:14

快速接入

先看主来源和安装命令,再打开仓库或文档;下面只保留这个条目的关键接入事实。

详细介绍

用于时间操纵的MCP服务器

用于时间操纵的动态MCP服务器管理服务。

MCP工具

该服务器通过模型上下文协议(MCP)提供了几个与时间相关的工具。

______________________________________________________________________

get_timezone

获取服务器的当前时区。

  • 退货:

- text:时区字符串。 - 例如 Asia/Tokyo

______________________________________________________________________

get_unixtime

获取当前Unix时间戳(自纪元以来的秒数)。

  • 退货:

- text:字符串形式的Unix时间戳。 - 例如 1746627290

______________________________________________________________________

convert_unix_to_datime

将Unix时间戳转换为格式化的日期时间字符串。

  • 参数:

- unixtime (number,必填):要转换的Unix时间戳。 - 例如 1746627290 - timezone (string,可选):要使用的时区(默认:服务器的时区)。 - 例如 Asia/Tokyo - isISO (boolean,可选):如果为true,则返回ISO 8601格式;否则,返回 YYYY-MM-DD HH:mm:ss. - 例如 true

  • 退货:

- text:格式化的日期时间字符串。 - 例如 2025-01-01 01:01:012025-01-01T01:01:01+09:00

______________________________________________________________________

convert_datetime_tounix

将日期时间字符串转换为Unix时间戳(自纪元以来的毫秒数)。

  • 参数:

- time (string,必填):要转换的日期时间字符串。 - 例如 2025-01-01 01:01:01 - timezone (string,可选):要使用的时区(默认:服务器的时区)。 - 例如 Asia/Tokyo

  • 退货:

- text:字符串形式的Unix时间戳。 - 例如 1746627290000

______________________________________________________________________

get_current \_日期_时间

获取当前日期和时间 YYYY-MM-DD HH:mm:ss 格式。

  • 参数:

- timezone (string,可选):要使用的时区(默认:服务器的时区)。 - 例如 Asia/Tokyo

  • 退货:

- text:格式化的当前日期和时间。 - 例如 2025-01-01 01:01:01

______________________________________________________________________

get_current_date_time_iso

获取ISO 8601格式的当前日期和时间。

  • 参数:

- timezone (string,可选):要使用的时区(默认:服务器的时区)。 - 例如 Asia/Tokyo

  • 退货:

- text:ISO 8601格式化了当前日期和时间。 - 例如 2025-05-07T23:03:27+09:00

______________________________________________________________________

get_elapsed_time

计算两个日期时间字符串之间的差值。

  • 参数:

- from (string,必填):开始日期时间。 - 例如 2025-01-01 01:01:01 - to (string,必填):结束日期时间。 - 例如 2025-01-02 02:02:02 - unit ("millisecond" | "second" | "minute" | "hour" | "day" | "week" | "month" | "year",可选,默认值: "second"):差异的单位。 - 例如 "hour"

  • 退货:

- text:指定单位中两个日期时间之间的差值。 - 例如 3600

准备mcp服务器应用程序

1.安装软件包

pnpm install

2.建造

pnpm build

Mcp检查员

检查器-模型上下文协议

pnpm inspect

get_current \_日期_时间

get_elapsed_time

VS代码

在项目中管理时

.vscode/mcp.json

{
  "servers": {
    "time-tools": {
      "command": "node",
      "args": ["/ABSOLUTE/PATH/TO/PARENT/FOLDER/build/index.js"]
    }
  }
}

个人全球管理

~/Library/Application Support/Code/User/settings.json

{
  "mcp": {
    "servers": {
      "time-tools": {
        "command": "node",
        "args": ["/ABSOLUTE/PATH/TO/PARENT/FOLDER/build/index.js"]
      }
    }
  }
}

示例提示

en

## Overview
- Please perform the following tasks
- Perform the following tasks and measure the time it takes to perform the tasks.
- Please follow the time tracking requirements for the measurement method

## Tasks
- Create the src directory
- Create an empty file in it
- Name the file index.ts

## Time tracking requirements
1. retrieve and display the current time before the task starts 2.
2. retrieve and display the current time after the task is completed 3.
3. retrieve and display the elapsed time from the start and end time of the task 4. finally display the following table
4. finally display in the following table format 
|item|record| 
|:---|:---| 
|start time|| 
|end time|| 
|elapsed time||

日元

## 概要
- 以下のタスクを実行してください
- タスク実行に要した時間も計測します
- 計測の方法はタイムトラッキング要件にしたがってください

## タスク
- src ディレクトリを作成する
- その中に空のファイルを作成する
- 作成するファイル名は index.ts とする

## タイムトラッキング要件
1. タスク開始前の現在時間を取得して表示する
2. タスク終了後の現在時間を取得して表示する
3. タスクの開始時と終了時の時間から経過時間を取得して表示する
4. 最終的に以下の表形式で表示してください
|項目|記録|
|:---|:---|
|開始時間||
|終了時間||
|経過時間||

目录标签

目录标签

时间管理服务器工具TypeScript本地部署research-and-data时间转换MCP协议

接入字段

传输方式(transport,传输协议)

未说明

鉴权方式(authType,认证方式)

none

部署方式(deploymentType,部署类型)

local-only

工具数量(toolCount,工具数)

7

资源数量(resourceCount,资源数)

0

提示词数量(promptCount,提示词数)

0

权限和风险

未说明nonelocal-only

接入前请确认传输方式、认证方式和部署位置,并根据实际工具能力限制访问范围。

安装前确认

不要直接授予不必要的文件、网络或账号权限;先核对安装命令和配置内容。

仍需确认:installCommand

来源信息

继续浏览同类 MCP