Skip to main content
Glama

Time Tools MCP Server

Servidor MCP para manipulación del tiempo

Un servicio dinámico de gestión de servidor MCP para la manipulación del tiempo.

Herramientas MCP

Este servidor proporciona varias herramientas relacionadas con el tiempo a través del Protocolo de Contexto de Modelo (MCP).


obtener_zona_horaria

Obtenga la zona horaria actual del servidor.

  • Devoluciones:
    • text : La cadena de zona horaria.
      • p. ej Asia/Tokyo

obtener_tiempo_unix

Obtener la marca de tiempo actual de Unix (segundos desde la época).

  • Devoluciones:
    • text : La marca de tiempo de Unix como una cadena.
      • p.ej. 1746627290

convertir_unix_a_fecha_hora

Convierte una marca de tiempo de Unix en una cadena de fecha y hora formateada.

  • Parámetros:
    • unixtime ( number , obligatorio): la marca de tiempo de Unix que se convertirá.
      • p.ej. 1746627290
    • timezone ( string , opcional): la zona horaria a utilizar (predeterminado: zona horaria del servidor).
      • p. ej Asia/Tokyo
    • isISO ( boolean , opcional): si es verdadero, devuelve el formato ISO 8601; de lo contrario, devuelve YYYY-MM-DD HH:mm:ss .
      • p. ej. true
  • Devoluciones:
    • text : La cadena de fecha y hora formateada.
      • p. ej. 2025-01-01 01:01:01 o 2025-01-01T01:01:01+09:00

convertir_fecha_y_hora_a_Unix

Convierte una cadena de fecha y hora en una marca de tiempo Unix (milisegundos desde la época).

  • Parámetros:
    • time ( string , requerida): La cadena de fecha y hora que se convertirá.
      • p. ej. 2025-01-01 01:01:01
    • timezone ( string , opcional): la zona horaria a utilizar (predeterminado: zona horaria del servidor).
      • p. ej Asia/Tokyo
  • Devoluciones:
    • text : La marca de tiempo de Unix como una cadena.
      • p.ej. 1746627290000

obtener_fecha_hora_actual

Obtenga la fecha y hora actuales en formato YYYY-MM-DD HH:mm:ss .

  • Parámetros:
    • timezone ( string , opcional): la zona horaria a utilizar (predeterminado: zona horaria del servidor).
      • p. ej Asia/Tokyo
  • Devoluciones:
    • text : La fecha y hora actuales formateadas.
      • p. ej. 2025-01-01 01:01:01

obtener_fecha_hora_actual_iso

Obtenga la fecha y hora actuales en formato ISO 8601.

  • Parámetros:
    • timezone ( string , opcional): la zona horaria a utilizar (predeterminado: zona horaria del servidor).
      • p. ej Asia/Tokyo
  • Devoluciones:
    • text : La fecha y hora actuales con formato ISO 8601.
      • p. ej. 2025-05-07T23:03:27+09:00

obtener_tiempo_transcurrido

Calcular la diferencia entre dos cadenas de fecha y hora.

  • Parámetros:
    • from ( string , obligatorio): La fecha y hora de inicio.
      • p. ej. 2025-01-01 01:01:01
    • to ( string , obligatorio): la fecha y hora de finalización.
      • p. ej. 2025-01-02 02:02:02
    • unit ( "millisecond" | "second" | "minute" | "hour" | "day" | "week" | "month" | "year" , opcional, predeterminado: "second" ): La unidad para la diferencia.
      • p.ej. "hour"
  • Devoluciones:
    • text : La diferencia entre las dos fechas y horas en la unidad especificada.
      • p. ej. 3600

Preparar la aplicación del servidor mcp

1. Instalar paquetes

pnpm install

2. Construir

pnpm build

Inspector de Mcp

Inspector - Protocolo de contexto del modelo

pnpm inspect

obtener_fecha_hora_actual

obtener_tiempo_transcurrido

Código VS

Cuando se gestiona en un proyecto

.vscode/mcp.json

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

Para la gestión global personal

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

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

Ejemplo de mensaje

en

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

en

## 概要 - 以下のタスクを実行してください - タスク実行に要した時間も計測します - 計測の方法はタイムトラッキング要件にしたがってください ## タスク - 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.

Un servidor de protocolo de contexto de modelo para tareas de manipulación de tiempo, que permite a los modelos de IA obtener la fecha y hora actuales y calcular la duración entre marcas de tiempo.

  1. Herramientas MCP
    1. obtener\_zona\_horaria
    2. obtener\_tiempo\_unix
    3. convertir\_unix\_a\_fecha\_hora
    4. convertir\_fecha\_y\_hora\_a\_Unix
    5. obtener\_fecha\_hora\_actual
    6. obtener\_fecha\_hora\_actual\_iso
    7. obtener\_tiempo\_transcurrido
  2. Preparar la aplicación del servidor mcp
    1. Instalar paquetes
    2. Construir
  3. Inspector de Mcp
    1. Código VS
      1. Cuando se gestiona en un proyecto
      2. Para la gestión global personal
    2. Ejemplo de mensaje

      Related MCP Servers

      • -
        security
        F
        license
        -
        quality
        A versatile Model Context Protocol server that enables AI assistants to manage calendars, track tasks, handle emails, search the web, and control smart home devices.
        Last updated -
        2
        Python
        • Apple
        • Linux
      • A
        security
        F
        license
        A
        quality
        A Model Context Protocol server that enables AI assistants to interact with Bluesky/ATProtocol, providing authentication, timeline access, post creation, and social features like likes and follows.
        Last updated -
        18
        10
        TypeScript
        • Apple
        • Linux
      • -
        security
        F
        license
        -
        quality
        A Model Context Protocol server that provides persistent task management capabilities for AI assistants, allowing them to create, update, and track tasks beyond their usual context limitations.
        Last updated -
        1
        TypeScript
      • -
        security
        A
        license
        -
        quality
        A Model Context Protocol server that enables AI assistants to manage meeting data, including creating meeting bots, searching transcripts, and organizing calendar events.
        Last updated -
        15
        TypeScript
        MIT License
        • Apple

      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