Skip to main content
Glama
Date-time Tools MCP

Date-time Tools MCP

by abhi12299

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 den mcp-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/mcp

Bereitstellung auf Cloudflare

Manuell

Einmalige Einrichtung:

npx wrangler login

Bereitstellung:

npm run deploy

Wrangler 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:

Integration mit MCP-Clients

Claude Code

claude mcp add date-time-tools --transport http https://date-time-tools.iabhishek.workers.dev/mcp

Fü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/inspector

Wä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 tools
convertTimezonesA

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

    A3.7/5.0

    Scored across 3 tools

    Disambiguation5/5

    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.

    Naming Consistency4/5

    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.

    Tool Count3/5

    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.

    Completeness3/5

    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

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      B
      quality
      D
      maintenance
      Gives large language models time awareness capabilities through various time-related functions including current time retrieval, timezone conversion, and relative time calculations.
      6
      MIT
    • A
      license
      B
      quality
      D
      maintenance
      Provides time and timezone functionality for LLMs, enabling them to get current time information across different timezones and convert times between zones.
      2
      MIT
    • A
      license
      B
      quality
      C
      maintenance
      Provides 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.
      4
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Provides current date and time information in multiple formats, timezone conversion, date/time differences, and date calculations.
      1
      MIT