Date-time Tools MCP
MCP de herramientas de fecha y hora
Un servidor del Protocolo de Contexto de Modelo (MCP) para la manipulación de fecha y hora y la conversión de zonas horarias.
Descripción general
Este servidor MCP proporciona un conjunto de herramientas para trabajar con cadenas de fecha y hora, incluyendo la conversión de zonas horarias, la mutación de fechas (aritmética) y la obtención de la fecha, hora y zona horaria actuales. Está diseñado para ser utilizado como una utilidad de backend para aplicaciones o agentes que necesitan operaciones de fecha y hora robustas y estandarizadas.
Despliegue en vivo: https://date-time-tools.iabhishek.workers.dev/mcp
Related MCP server: Time MCP Server
Arquitectura
Este servidor se ejecuta en Cloudflare Workers y utiliza el transporte Streamable HTTP (con un endpoint SSE heredado también expuesto). El estado por sesión está respaldado por un Durable Object a través del envoltorio McpAgent de agents de Cloudflare.
Endpoints:
POST/GET/DELETE /mcp— Transporte HTTP transmitible. Sesiones rastreadas a través del encabezadomcp-session-id.GET /sse,POST /sse/message— Transporte SSE heredado para clientes más antiguos.
Desarrollo local
npm install
npm run dev # wrangler dev — serves at http://127.0.0.1:8787/mcpDespliegue en Cloudflare
Manual
Configuración única:
npx wrangler loginDesplegar:
npm run deployWrangler imprime la URL pública; para este proyecto es https://date-time-tools.iabhishek.workers.dev/mcp. El plan gratuito de Workers cubre este servidor (100 mil solicitudes/día; el nivel gratuito de Durable Objects cubre el almacenamiento de sesiones).
Automatizado (GitHub Actions)
.github/workflows/deploy.yml se despliega en cada push a main (y en workflow_dispatch manual). Configure dos secretos de repositorio:
CLOUDFLARE_API_TOKEN— créelo en https://dash.cloudflare.com/profile/api-tokens usando la plantilla Edit Cloudflare WorkersCLOUDFLARE_ACCOUNT_ID— se encuentra en la barra lateral del panel de control de Workers & Pages
Integración con clientes MCP
Claude Code
claude mcp add date-time-tools --transport http https://date-time-tools.iabhishek.workers.dev/mcpAñada --scope user para registrarlo en cada proyecto, o --scope project para confirmar un .mcp.json compartido con colaboradores. Verifique con claude mcp list; dentro de Claude Code, ejecute /mcp para inspeccionar el estado y las herramientas.
Clientes HTTP transmitibles genéricos
Configure los clientes que admiten transportes HTTP transmitibles para que apunten a la URL desplegada:
{
"mcpServers": {
"date-time-tools": {
"url": "https://date-time-tools.iabhishek.workers.dev/mcp"
}
}
}Para clientes que solo admiten stdio, cree un puente con mcp-remote:
{
"mcpServers": {
"date-time-tools": {
"command": "npx",
"args": ["-y", "mcp-remote", "https://date-time-tools.iabhishek.workers.dev/mcp"]
}
}
}Herramientas disponibles
Este servidor MCP proporciona las siguientes herramientas para LLMs:
convertTimezones: Convierte una cadena de fecha y hora de una zona horaria a otra.mutateDate: Suma o resta días, horas, minutos, meses o años de una cadena de fecha y hora.currentDateTimeAndTimezone: Obtiene la fecha, hora y zona horaria actuales.
🧪 Pruebas con MCP Inspector
Ejecute npm run dev, luego en otra terminal:
npx -y @modelcontextprotocol/inspectorSeleccione el transporte Streamable HTTP y utilice http://127.0.0.1:8787/mcp como URL.
Características
Conversión de zona horaria
Convierte una cadena de fecha y hora de una zona horaria IANA a otra utilizando formatos compatibles con Luxon.Mutación de fecha
Suma o resta días, horas, minutos, meses o años de una cadena de fecha y hora.Fecha-hora y zona horaria actuales
Recupere la fecha, hora y zona horaria actuales del usuario/sistema.
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