Date-time Tools MCP
Datum-Zeit-Tools MCP
Ein Model Context Protocol (MCP) Server für Datum-Zeit-Manipulation und Zeitzonenkonvertierung.
Übersicht
Dieser MCP-Server bietet eine Reihe von Werkzeugen für die Arbeit mit Datum-Zeit-Strings, einschließlich Zeitzonenkonvertierung, Datumsänderung (Arithmetik) und dem Abrufen des aktuellen Datums, der Uhrzeit und der Zeitzone. Er ist als Backend-Dienstprogramm für Anwendungen oder Agenten konzipiert, die robuste, standardisierte Datum-Zeit-Operationen benötigen.
Live-Bereitstellung: https://date-time-tools.iabhishek.workers.dev/mcp
Related MCP server: Time MCP Server
Architektur
Dieser Server läuft auf Cloudflare Workers und verwendet den Streamable HTTP Transport (wobei auch ein Legacy-SSE-Endpunkt bereitgestellt wird). Der Sitzungsstatus wird durch ein Durable Object über den agents McpAgent-Wrapper von Cloudflare gesichert.
Endpunkte:
POST/GET/DELETE /mcp— Streamable HTTP-Transport. Sitzungen werden über denmcp-session-id-Header nachverfolgt.GET /sse,POST /sse/message— Legacy-SSE-Transport für ältere Clients.
Lokale Entwicklung
npm install
npm run dev # wrangler dev — serves at http://127.0.0.1:8787/mcpBereitstellung auf Cloudflare
Manuell
Einmalige Einrichtung:
npx wrangler loginBereitstellung:
npm run deployWrangler gibt die öffentliche URL aus — für dieses Projekt ist es https://date-time-tools.iabhishek.workers.dev/mcp. Der Workers Free-Plan deckt diesen Server ab (100.000 Anfragen/Tag; das kostenlose Kontingent für Durable Objects deckt die Sitzungsspeicherung ab).
Automatisiert (GitHub Actions)
.github/workflows/deploy.yml führt die Bereitstellung bei jedem Push auf main (und bei manuellem workflow_dispatch) durch. Konfigurieren Sie zwei Repository-Secrets:
CLOUDFLARE_API_TOKEN— erstellen unter https://dash.cloudflare.com/profile/api-tokens unter Verwendung der Vorlage Edit Cloudflare WorkersCLOUDFLARE_ACCOUNT_ID— zu finden in der Seitenleiste des Workers & Pages Dashboards
Integration mit MCP-Clients
Claude Code
claude mcp add date-time-tools --transport http https://date-time-tools.iabhishek.workers.dev/mcpFügen Sie --scope user hinzu, um es für jedes Projekt zu registrieren, oder --scope project, um eine .mcp.json zu committen, die mit Mitarbeitern geteilt wird. Überprüfen Sie dies mit claude mcp list; führen Sie innerhalb von Claude Code /mcp aus, um Status und Werkzeuge zu überprüfen.
Generische Streamable HTTP-Clients
Konfigurieren Sie Clients, die Streamable HTTP-Transporte unterstützen, so, dass sie auf die bereitgestellte URL verweisen:
{
"mcpServers": {
"date-time-tools": {
"url": "https://date-time-tools.iabhishek.workers.dev/mcp"
}
}
}Für Clients, die nur stdio unterstützen, verwenden Sie eine Brücke mit mcp-remote:
{
"mcpServers": {
"date-time-tools": {
"command": "npx",
"args": ["-y", "mcp-remote", "https://date-time-tools.iabhishek.workers.dev/mcp"]
}
}
}Verfügbare Werkzeuge
Dieser MCP-Server bietet die folgenden Werkzeuge für LLMs:
convertTimezones: Konvertiert einen Datum-Zeit-String von einer Zeitzone in eine andere.mutateDate: Addiert oder subtrahiert Tage, Stunden, Minuten, Monate oder Jahre von einem Datum-Zeit-String.currentDateTimeAndTimezone: Ruft das aktuelle Datum, die Uhrzeit und die Zeitzone ab.
🧪 Testen mit dem MCP Inspector
Führen Sie npm run dev aus und dann in einem anderen Terminal:
npx -y @modelcontextprotocol/inspectorWählen Sie den Streamable HTTP-Transport und verwenden Sie http://127.0.0.1:8787/mcp als URL.
Funktionen
Zeitzonenkonvertierung
Konvertieren Sie einen Datum-Zeit-String von einer IANA-Zeitzone in eine andere unter Verwendung von Luxon-kompatiblen Formaten.Datumsänderung
Addieren oder subtrahieren Sie Tage, Stunden, Minuten, Monate oder Jahre von einem Datum-Zeit-String.Aktuelles Datum-Zeit & Zeitzone
Rufen Sie das aktuelle Datum, die Uhrzeit und die Zeitzone des Benutzers/Systems ab.
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