Time Tools MCP Server
MCP-сервер для манипуляции временем
Динамическая служба управления сервером MCP для управления временем.
Related MCP server: Time MCP Server
Инструменты МКП
Этот сервер предоставляет несколько инструментов, связанных со временем, через протокол контекста модели (MCP).
получить_часовой_пояс
Получить текущий часовой пояс сервера.
Возврат:
text: Строка часового пояса.например
Asia/Tokyo
получить_unixtime
Получить текущую временную метку Unix (секунды с начала эпохи).
Возврат:
text: временная метка Unix в виде строки.например
1746627290
convert_unix_to_datetime
Преобразовать временную метку 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:01или2025-01-01T01:01:01+09:00
конвертировать_дата_время_в_unix
Преобразовать строку даты и времени в метку времени Unix (миллисекунды с начала эпохи).
Параметры:
time(string, обязательно): строка даты и времени для преобразования.например
2025-01-01 01:01:01
timezone(string, необязательно): используемый часовой пояс (по умолчанию: часовой пояс сервера).например
Asia/Tokyo
Возврат:
text: временная метка Unix в виде строки.например
1746627290000
получить_текущую_дату_время
Получите текущую дату и время в формате YYYY-MM-DD HH:mm:ss .
Параметры:
timezone(string, необязательно): используемый часовой пояс (по умолчанию: часовой пояс сервера).например
Asia/Tokyo
Возврат:
text: Отформатированная текущая дата и время.например
2025-01-01 01:01:01
получить_текущую_дату_время_iso
Получите текущую дату и время в формате ISO 8601.
Параметры:
timezone(string, необязательно): используемый часовой пояс (по умолчанию: часовой пояс сервера).например
Asia/Tokyo
Возврат:
text: Текущая дата и время в формате ISO 8601.например
2025-05-07T23:03:27+09:00
получить_прошедшее_время
Рассчитайте разницу между двумя строками даты и времени.
Параметры:
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 install2. Построить
pnpm buildИнспектор МКП
Инспектор - Модель контекстного протокола
pnpm inspectполучить_текущую_дату_время
получить_прошедшее_время
Код 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"]
}
}
}
}Пример подсказки
ru
## 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|<enter result>|
|end time|<enter result>|
|elapsed time|<enter result>|ru
## 概要
- 以下のタスクを実行してください
- タスク実行に要した時間も計測します
- 計測の方法はタイムトラッキング要件にしたがってください
## タスク
- src ディレクトリを作成する
- その中に空のファイルを作成する
- 作成するファイル名は index.ts とする
## タイムトラッキング要件
1. タスク開始前の現在時間を取得して表示する
2. タスク終了後の現在時間を取得して表示する
3. タスクの開始時と終了時の時間から経過時間を取得して表示する
4. 最終的に以下の表形式で表示してください
|項目|記録|
|:---|:---|
|開始時間|<結果を入力>|
|終了時間|<結果を入力>|
|経過時間|<結果を入力>|Available Tools
7 toolsconvert_datetime_to_unixC
Convert datetime time to unixtime (e.g. 2025-01-01 01:01:01 to 1746627290)
Inputs: time (required), timezone.
convert_unix_to_datetimeC
Convert unixtime to datetime time (e.g. 1746627290 to 2025-01-01 01:01:01)
Inputs: unixtime (required), timezone, isISO.
get_current_date_timeA
Get the current date and time (e.g. 2025-01-01 01:01:01)
Inputs: timezone.
get_current_date_time_isoB
Get ISO 8601 time. (e.g. 2025-05-07T23:03:27+09:00)
Inputs: timezone.
get_elapsed_timeB
Get the difference time between two datetimes (e.g. 2025-01-01 01:01:01 and 2025-01-02 02:02:02)
Inputs: from (required), to (required), unit.
get_timezoneB
Get timezone (e.g. Asia/Tokyo)
get_unixtimeB
Get unixtime (e.g. 1746627290)
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 7 tools
Each tool has a clearly distinct purpose with no overlap. For example, convert_datetime_to_unix and convert_unix_to_datetime are inverse operations, get_current_date_time and get_current_date_time_iso provide different formats, and get_elapsed_time calculates differences, making misselection unlikely.
All tool names follow a consistent verb_noun pattern using snake_case (e.g., convert_datetime_to_unix, get_current_date_time). The naming is predictable and readable throughout the set, with no deviations in style or convention.
With 7 tools, the count is well-scoped for a time utility server. Each tool serves a specific function in time conversion, retrieval, and calculation, with no redundancy or missing essential operations, making the set efficient and focused.
The tool set covers core time operations like conversion, current time retrieval, elapsed time calculation, and timezone handling. Minor gaps might include operations like timezone conversion or date arithmetic, but agents can work around these with the provided tools.
Maintenance
Related MCP Connectors
A time server that keeps your AI honest about time. Real clock + drift guard, zero dependencies.
Current time, timezone conversion & date math for AI agents. On Cloudflare Workers.
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
A Model Context Protocol server for Wix AI tools
Related MCP Servers
- AlicenseBqualityDmaintenanceA Model Context Protocol server that provides tools to get the current date and time in various formats, supporting different timezones and custom formatting options.125 npm1MIT
- AlicenseBqualityDmaintenanceA Model Context Protocol server that provides time and timezone conversion capabilities, enabling LLMs to get current time information and perform timezone conversions using IANA timezone names.2MIT
- AlicenseNot gradedqualityDmaintenanceThe Time MCP Server is a Model Context Protocol (MCP) server that provides AI assistants and other MCP clients with standardized tools to perform time and date-related operations. This server acts as a bridge between AI tools and a robust time-handling back72 npm25MIT
- AlicenseNot gradedqualityDmaintenanceA Model Context Protocol (MCP) server that provides AI agents with comprehensive temporal awareness and time calculation capabilities.3MIT