Skip to main content
Glama

Time Tools MCP Server

MCP-Server zur Zeitmanipulation

Ein dynamischer MCP-Serververwaltungsdienst zur Zeitmanipulation.

MCP-Tools

Dieser Server stellt über das Model Context Protocol (MCP) mehrere zeitbezogene Tools bereit.


get_timezone

Ruft die aktuelle Zeitzone des Servers ab.

  • Widerrufsfolgen:
    • text : Die Zeitzonenzeichenfolge.
      • zB Asia/Tokyo

get_unixtime

Holen Sie sich den aktuellen Unix-Zeitstempel (Sekunden seit Epoche).

  • Widerrufsfolgen:
    • text : Der Unix-Zeitstempel als Zeichenfolge.
      • z.B. 1746627290

convert_unix_to_datetime

Konvertiert einen Unix-Zeitstempel in eine formatierte Datums-/Uhrzeitzeichenfolge.

  • Parameter:
    • unixtime ( number , erforderlich): Der zu konvertierende Unix-Zeitstempel.
      • z.B. 1746627290
    • timezone ( string , optional): Die zu verwendende Zeitzone (Standard: Zeitzone des Servers).
      • zB Asia/Tokyo
    • isISO ( boolean , optional): Wenn wahr, wird das ISO 8601-Format zurückgegeben; andernfalls wird YYYY-MM-DD HH:mm:ss zurückgegeben.
      • zB true
  • Widerrufsfolgen:
    • text : Die formatierte Datums-/Uhrzeitzeichenfolge.
      • zB 2025-01-01 01:01:01 oder 2025-01-01T01:01:01+09:00

Datum/Uhrzeit in Unix konvertieren

Konvertiert eine Datums-/Uhrzeitzeichenfolge in einen Unix-Zeitstempel (Millisekunden seit Epoche).

  • Parameter:
    • time ( string , erforderlich): Die zu konvertierende Datums-/Uhrzeitzeichenfolge.
      • zB 2025-01-01 01:01:01
    • timezone ( string , optional): Die zu verwendende Zeitzone (Standard: Zeitzone des Servers).
      • zB Asia/Tokyo
  • Widerrufsfolgen:
    • text : Der Unix-Zeitstempel als Zeichenfolge.
      • z.B. 1746627290000

Aktuelles Datum und Uhrzeit abrufen

Rufen Sie das aktuelle Datum und die Uhrzeit im Format YYYY-MM-DD HH:mm:ss .

  • Parameter:
    • timezone ( string , optional): Die zu verwendende Zeitzone (Standard: Zeitzone des Servers).
      • zB Asia/Tokyo
  • Widerrufsfolgen:
    • text : Das formatierte aktuelle Datum und die Uhrzeit.
      • zB 2025-01-01 01:01:01

get_current_date_time_iso

Holen Sie sich das aktuelle Datum und die Uhrzeit im ISO 8601-Format.

  • Parameter:
    • timezone ( string , optional): Die zu verwendende Zeitzone (Standard: Zeitzone des Servers).
      • zB Asia/Tokyo
  • Widerrufsfolgen:
    • text : Das aktuelle Datum und die aktuelle Uhrzeit im ISO 8601-Format.
      • zB 2025-05-07T23:03:27+09:00

get_elapsed_time

Berechnen Sie die Differenz zwischen zwei Datums-/Uhrzeitzeichenfolgen.

  • Parameter:
    • from ( string , erforderlich): Das Startdatum und die Startzeit.
      • zB 2025-01-01 01:01:01
    • to ( string , erforderlich): Das Enddatum und die Endzeit.
      • zB 2025-01-02 02:02:02
    • unit ( "millisecond" | "second" | "minute" | "hour" | "day" | "week" | "month" | "year" , optional, Standard: "second" ): Die Einheit für die Differenz.
      • z.B. "hour"
  • Widerrufsfolgen:
    • text : Die Differenz zwischen den beiden Datums- und Uhrzeitangaben in der angegebenen Einheit.
      • zB 3600

MCP-Server-App vorbereiten

1. Pakete installieren

pnpm install

2. Bauen

pnpm build

Mcp-Inspektor

Inspector - Modellkontextprotokoll

pnpm inspect

Aktuelles Datum und Uhrzeit abrufen

get_elapsed_time

VS Code

Bei Verwaltung in einem Projekt

.vscode/mcp.json

{ "servers": { "time-tools": { "command": "node", "args": ["/ABSOLUTE/PATH/TO/PARENT/FOLDER/build/index.js"] } } }

Für das persönliche globale Management

~/Library/Application Support/Code/User/settings.json

{ "mcp": { "servers": { "time-tools": { "command": "node", "args": ["/ABSOLUTE/PATH/TO/PARENT/FOLDER/build/index.js"] } } } }

Beispiel-Eingabeaufforderung

de

## 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>|

de

## 概要 - 以下のタスクを実行してください - タスク実行に要した時間も計測します - 計測の方法はタイムトラッキング要件にしたがってください ## タスク - src ディレクトリを作成する - その中に空のファイルを作成する - 作成するファイル名は index.ts とする ## タイムトラッキング要件 1. タスク開始前の現在時間を取得して表示する 2. タスク終了後の現在時間を取得して表示する 3. タスクの開始時と終了時の時間から経過時間を取得して表示する 4. 最終的に以下の表形式で表示してください |項目|記録| |:---|:---| |開始時間|<結果を入力>| |終了時間|<結果を入力>| |経過時間|<結果を入力>|
Install Server
A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

local-only server

The server can only run on the client's local machine because it depends on local resources.

Ein Model Context Protocol-Server für Zeitmanipulationsaufgaben, der es KI-Modellen ermöglicht, das aktuelle Datum/die aktuelle Uhrzeit abzurufen und die Dauer zwischen Zeitstempeln zu berechnen.

  1. MCP-Tools
    1. get_timezone
    2. get_unixtime
    3. convert_unix_to_datetime
    4. Datum/Uhrzeit in Unix konvertieren
    5. Aktuelles Datum und Uhrzeit abrufen
    6. get_current_date_time_iso
    7. get_elapsed_time
  2. MCP-Server-App vorbereiten
    1. 1. Pakete installieren
    2. 2. Bauen
  3. Mcp-Inspektor
    1. VS Code
      1. Bei Verwaltung in einem Projekt
      2. Für das persönliche globale Management
    2. Beispiel-Eingabeaufforderung

      Related MCP Servers

      • A
        security
        F
        license
        A
        quality
        A 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.
        Last updated -
        2
        1
        Python
      • A
        security
        F
        license
        A
        quality
        A Model Context Protocol server that provides tools to get the current date and time in various formats, supporting different timezones and custom formatting options.
        Last updated -
        1
        11
        JavaScript
      • -
        security
        F
        license
        -
        quality
        A Model Context Protocol server that provides time tracking integration with TimeCamp, allowing AI assistants to create, retrieve, update, and delete time entries through natural language commands.
        Last updated -
        TypeScript
      • A
        security
        F
        license
        A
        quality
        A 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.
        Last updated -
        2
        Python

      View all related MCP servers

      MCP directory API

      We provide all the information about MCP servers via our MCP API.

      curl -X GET 'https://glama.ai/api/mcp/v1/servers/t-shiratori/time-tools-mcp-server'

      If you have feedback or need assistance with the MCP directory API, please join our Discord server