Date-time Tools MCP
MCP-инструменты для работы с датой и временем
Сервер протокола контекста модели (MCP) для манипуляций с датой и временем и преобразования часовых поясов.
Обзор
Этот MCP-сервер предоставляет набор инструментов для работы со строками даты и времени, включая преобразование часовых поясов, изменение даты (арифметические операции) и получение текущей даты, времени и часового пояса. Он разработан как серверная утилита для приложений или агентов, которым требуются надежные и стандартизированные операции с датой и временем.
Рабочая версия: https://date-time-tools.iabhishek.workers.dev/mcp
Related MCP server: Time MCP Server
Архитектура
Этот сервер работает на Cloudflare Workers и использует транспорт Streamable HTTP (также доступна устаревшая конечная точка SSE). Состояние сеанса поддерживается объектом Durable Object через обертку McpAgent из пакета agents для Cloudflare.
Конечные точки:
POST/GET/DELETE /mcp— транспорт Streamable HTTP. Сеансы отслеживаются через заголовокmcp-session-id.GET /sse,POST /sse/message— устаревший транспорт SSE для старых клиентов.
Локальная разработка
npm install
npm run dev # wrangler dev — serves at http://127.0.0.1:8787/mcpРазвертывание в Cloudflare
Вручную
Однократная настройка:
npx wrangler loginРазвертывание:
npm run deployWrangler выведет публичный URL — для этого проекта это https://date-time-tools.iabhishek.workers.dev/mcp. Бесплатный тарифный план Workers покрывает этот сервер (100 тыс. запросов в день; бесплатный уровень Durable Objects покрывает хранилище сеансов).
Автоматизированное (GitHub Actions)
Файл .github/workflows/deploy.yml выполняет развертывание при каждом пуше в ветку main (а также при ручном запуске workflow_dispatch). Настройте два секрета репозитория:
CLOUDFLARE_API_TOKEN— создайте на странице https://dash.cloudflare.com/profile/api-tokens, используя шаблон Edit Cloudflare WorkersCLOUDFLARE_ACCOUNT_ID— находится на боковой панели панели управления Workers & Pages
Интеграция с MCP-клиентами
Claude Code
claude mcp add date-time-tools --transport http https://date-time-tools.iabhishek.workers.dev/mcpДобавьте --scope user, чтобы зарегистрировать его для каждого проекта, или --scope project, чтобы зафиксировать файл .mcp.json, общий для всех участников. Проверьте с помощью claude mcp list; внутри Claude Code выполните /mcp, чтобы проверить статус и инструменты.
Универсальные клиенты Streamable HTTP
Настройте клиенты, поддерживающие транспорт Streamable HTTP, на развернутый URL:
{
"mcpServers": {
"date-time-tools": {
"url": "https://date-time-tools.iabhishek.workers.dev/mcp"
}
}
}Для клиентов, которые поддерживают только stdio, используйте мост mcp-remote:
{
"mcpServers": {
"date-time-tools": {
"command": "npx",
"args": ["-y", "mcp-remote", "https://date-time-tools.iabhishek.workers.dev/mcp"]
}
}
}Доступные инструменты
Этот MCP-сервер предоставляет следующие инструменты для LLM:
convertTimezones: Преобразование строки даты и времени из одного часового пояса в другой.mutateDate: Сложение или вычитание дней, часов, минут, месяцев или лет из строки даты и времени.currentDateTimeAndTimezone: Получение текущей даты, времени и часового пояса.
🧪 Тестирование с помощью MCP Inspector
Выполните npm run dev, затем в другом терминале:
npx -y @modelcontextprotocol/inspectorВыберите транспорт Streamable HTTP и используйте http://127.0.0.1:8787/mcp в качестве URL.
Функции
Преобразование часовых поясов
Преобразование строки даты и времени из одного часового пояса IANA в другой с использованием форматов, совместимых с Luxon.Изменение даты
Сложение или вычитание дней, часов, минут, месяцев или лет из строки даты и времени.Текущая дата, время и часовой пояс
Получение текущей даты, времени и часового пояса пользователя/системы.
Available Tools
3 toolsconvertTimezonesA
Converts a date time string from one timezone to another.
The date time string must follow luxon date-time format: yyyy-MM-dd hh:mm:ss a. Example: 2025-06-16 10:00:00 pm.
The timezones must be valid IANA timezones. Example: Asia/Calcutta, America/New_York.
You must first invoke the tool named "currentDateTimeAndTimezone" to get the current date, time and timezone of the user if they don't specify the date or time explicitly or use relative date or time (i.e. in an hour/today/tomorrow/yesterday/next week/next month/next year etc.).
Inputs: dateTime (required), fromZone (required), toZone (required).
currentDateTimeAndTimezoneB
Gets the current date, time and timezone of the user.
Inputs: no named parameters.
mutateDateA
Mutates a date time string by adding or subtracting days, hours, minutes, months, or years.
The date time string must follow luxon date-time format: yyyy-MM-dd hh:mm:ss a. Example: 2025-06-16 10:00:00 pm.
The update object must be a valid update object. Example: { days: -1, hours: 2, minutes: 3, months: 4, years: 5 }.
You must first invoke the tool named "currentDateTimeAndTimezone" to get the current date, time and timezone of the user if they don't specify an absolute date or time explicitly (today/tomorrow/yesterday/next week/next month/next year etc. is not absolute date or time).
Inputs: dateTime (required), update (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 3 tools
Each tool has a clearly distinct purpose: convertTimezones handles timezone conversion, currentDateTimeAndTimezone retrieves current datetime and timezone, and mutateDate performs date arithmetic. There is no overlap or ambiguity between these functions.
Two tools use camelCase (convertTimezones, currentDateTimeAndTimezone) while one uses snake_case (mutateDate), creating a minor inconsistency. However, all names are descriptive and follow a verb_noun pattern, making them readable despite the mixed conventions.
With only 3 tools, the set feels thin for a date-time utility server. While the tools cover core operations, additional functions like parsing, formatting, or comparing dates would enhance completeness. The count is borderline but manageable.
The tools cover conversion, retrieval, and mutation, but there are notable gaps such as date parsing from various formats, date comparison, duration calculation, or formatting. Agents may struggle with tasks requiring these missing operations, though core workflows are supported.
Maintenance
Related MCP Connectors
Time and date math for AI agents: Unix timestamp conversion, DST-correct time zone conversion, durations, epoch arithmetic, cron schedules, and holiday countdowns. Eight tools, no key.
Deterministic time tools for AI agents: timezone conversion, business-day math, cron interpretation.
Current time, timezone conversion & date math for AI agents. On Cloudflare Workers.
Convert and compare dates and times across any timezone with flexible, locale-aware formatting. Ad…
Related MCP Servers
- AlicenseBqualityDmaintenanceGives large language models time awareness capabilities through various time-related functions including current time retrieval, timezone conversion, and relative time calculations.6MIT
- AlicenseBqualityDmaintenanceProvides time and timezone functionality for LLMs, enabling them to get current time information across different timezones and convert times between zones.2MIT
- AlicenseBqualityCmaintenanceProvides time and date functionality with support for multiple formats and timezones, enabling users to get current time/date, format timestamps, and retrieve comprehensive datetime information.4MIT
- AlicenseNot gradedqualityDmaintenanceProvides current date and time information in multiple formats, timezone conversion, date/time differences, and date calculations.1MIT