Cover image
Try Now
2025-04-02

Un servidor MCP simple que hace solo una cosa: ayuda a su LLM a usar las marcas de tiempo UNIX actuales. Algo con los que los modelos están luchando actualmente, en parte debido a los límites de conocimiento y no saber realmente dónde están.

3 years

Works with Finder

1

Github Watches

0

Github Forks

1

Github Stars

Unix Timestamps MCP Server

Node.js License Status

A lightweight MCP server for converting ISO 8601 date/time strings to Unix timestamps.

Features

  • ISO 8601 to Unix Timestamp Conversion: Provides a tool (iso8601_to_unix) to convert standard ISO 8601 date/time strings into Unix timestamps (seconds since the epoch).
  • Input Validation: Basic check to ensure the input string is a valid date recognized by JavaScript's Date parser.
  • Error Handling: Returns an error message if the input string is not a valid ISO 8601 date/time.

Installation

Prerequisites

  • Node.js (version 18 or higher recommended)
  • npm or npx (usually included with Node.js)

Client Configuration (Claude Desktop)

To use this server with a client like Claude Desktop, add the following configuration to your client's settings file (e.g., claude_desktop_config.json):

{
  "mcpServers": {
    "unix_timestamps_mcp": {
      "command": "npx",
      "args": ["-y", "github:Ivor/unix-timestamps-mcp"]
    }
  }
}

Usage

This server provides tools accessible via an MCP client.

Available Tools

Tool: iso8601_to_unix(iso8601: string)

Converts an ISO 8601 formatted date/time string into a Unix timestamp (seconds since epoch).

  • Input Parameter: iso8601 (string) - The date/time string in ISO 8601 format (e.g., "2024-07-26T10:00:00Z", "2024-07-26T12:00:00+02:00").

  • Output: Text containing the calculated Unix timestamp and confirmation of the parsed date. Example:

    Unix Timestamp: 1721988000
    
    Original ISO8601: 2024-07-26T10:00:00Z
    Parsed as: Fri, 26 Jul 2024 10:00:00 GMT
    
  • Error Handling: Returns an error message if the input string is not a valid ISO 8601 date/time.

Examples in Claude Desktop

  1. Configure the server as shown in the Installation section.
  2. Use the iso8601_to_unix tool in your prompts:
    • "Convert '2023-03-15T12:00:00Z' to a Unix timestamp: iso8601_to_unix(iso8601: '2023-03-15T12:00:00Z')"
    • "What is the Unix timestamp for '2024-01-01T00:00:00-05:00'? iso8601_to_unix(iso8601: '2024-01-01T00:00:00-05:00')"

License

This project is licensed under the MIT License. See the LICENSE file for details. (Please create a LICENSE file or update this section if using a different license).

相关推荐

  • Joshua Armstrong
  • Confidential guide on numerology and astrology, based of GG33 Public information

  • https://suefel.com
  • Latest advice and best practices for custom GPT development.

  • Emmet Halm
  • Converts Figma frames into front-end code for various mobile frameworks.

  • Elijah Ng Shi Yi
  • Advanced software engineer GPT that excels through nailing the basics.

  • lumpenspace
  • Take an adjectivised noun, and create images making it progressively more adjective!

  • https://maiplestudio.com
  • Find Exhibitors, Speakers and more

  • Yusuf Emre Yeşilyurt
  • I find academic articles and books for research and literature reviews.

  • Carlos Ferrin
  • Encuentra películas y series en plataformas de streaming.

  • https://zenepic.net
  • Embark on a thrilling diplomatic quest across a galaxy on the brink of war. Navigate complex politics and alien cultures to forge peace and avert catastrophe in this immersive interstellar adventure.

  • apappascs
  • Descubra la colección más completa y actualizada de servidores MCP en el mercado. Este repositorio sirve como un centro centralizado, que ofrece un extenso catálogo de servidores MCP de código abierto y propietarios, completos con características, enlaces de documentación y colaboradores.

  • ShrimpingIt
  • Manipulación basada en Micrypthon I2C del expansor GPIO de la serie MCP, derivada de AdaFruit_MCP230xx

  • jae-jae
  • Servidor MCP para obtener contenido de la página web con el navegador sin cabeza de dramaturgo.

  • ravitemer
  • Un poderoso complemento Neovim para administrar servidores MCP (protocolo de contexto del modelo)

  • patruff
  • Puente entre los servidores Ollama y MCP, lo que permite a LLM locales utilizar herramientas de protocolo de contexto del modelo

  • HiveNexus
  • Un bot de chat de IA para equipos pequeños y medianos, que apoyan modelos como Deepseek, Open AI, Claude y Gemini. 专为中小团队设计的 ai 聊天应用 , 支持 Deepseek 、 Open ai 、 Claude 、 Géminis 等模型。

  • pontusab
  • La comunidad de cursor y windsurf, encontrar reglas y MCP

  • JackKuo666
  • 🔍 Habilitar asistentes de IA para buscar y acceder a la información del paquete PYPI a través de una interfaz MCP simple.

  • av
  • Ejecute sin esfuerzo LLM Backends, API, frontends y servicios con un solo comando.

    Reviews

    2 (1)
    Avatar
    user_B3HeNtHJ
    2025-04-16

    As a loyal user of MCP applications, I am really impressed with the unix-timestamps-mcp by Ivor. This tool is incredibly efficient for managing Unix timestamps. Its straightforward implementation and reliability have significantly streamlined my workflow. Highly recommended for anyone dealing with Unix timestamps! Check it out on GitHub.