Cover image
Try Now
2025-04-07

3 years

Works with Finder

1

Github Watches

0

Github Forks

0

Github Stars

IoEHub MCP Time Server

A robust MCP (Model Context Protocol) Time Server that provides the current Unix timestamp. This server implements the MCP protocol to provide time information for AI models that don't have access to the current time.

Features

  • Extreme Reliability: Designed to stay running even when stdin/stdout connections are closed
  • Comprehensive Logging: Logs to both stderr and file for troubleshooting
  • Self-Healing: Resists termination attempts and maintains availability
  • Rich Time Information: Provides time data in multiple formats
  • MCP Protocol Compliant: Fully compatible with Claude, Cursor and other MCP clients

Installation and Usage

There are several ways to start the server:

Method 1: Using the batch file (Recommended for Windows)

start-mcp-server.bat

This will start the server in background mode, allowing it to run independently.

Method 2: Direct node command

node ioehub-time.js

Method 3: Using npm

npm install
npm start

Protocol Support

This server implements the Model Context Protocol (MCP) and supports the following methods:

  • initialize: Initialize the server with capabilities
  • getTime: Get the current time in various formats
  • shutdown: Gracefully shut down the server (server actually stays running)

Time Response Format

The server provides time information in the following formats:

{
  "unix_time": 1713258180,
  "unix_ms": 1713258180123,
  "human_readable": "2024-04-16T09:36:20.000Z",
  "formatted": "4/16/2024, 5:36:20 PM",
  "utc": "Tue, 16 Apr 2024 09:36:20 GMT",
  "date_only": "Tue Apr 16 2024",
  "time_only": "09:36:20 GMT+0000 (Coordinated Universal Time)"
}

Logging

Logs are written to both stderr and to a log file in the logs directory. Each server instance creates a new log file with a timestamp, making it easy to troubleshoot issues.

Integration with AI Platforms

MCP Configuration

Add the time server to your MCP configuration using the following JSON format:

{
  "mcpServers": {
    "IoEHubMcpTimeServer": {
      "command": "cmd",
      "args": [
        "/c",
        "C:\\path\\to\\your\\ioehub-mcp-time-server\\start-mcp-server.bat"
      ]
    }
  }
}

For Unix/Linux/macOS environments:

{
  "mcpServers": {
    "IoEHubMcpTimeServer": {
      "command": "node",
      "args": [
        "/path/to/your/ioehub-mcp-time-server/ioehub-time.js"
      ]
    }
  }
}

Using with Claude

Claude AI doesn't have direct access to the current time. To integrate the IoEHub MCP Time Server with Claude:

  1. Set up the IoEHub MCP Time Server in your MCP configuration:
{
  "mcpServers": {
    "IoEHubMcpTimeServer": {
      "command": "cmd",
      "args": [
        "/c",
        "C:\\path\\to\\your\\ioehub-mcp-time-server\\start-mcp-server.bat"
      ]
    }
  }
}
  1. Claude will automatically gain access to the time server via the MCP protocol. You can access time information directly through function calls:
I need to get the current time.

Using with Cursor

Cursor IDE can benefit from the IoEHub MCP Time Server when working with AI-assisted coding that requires timestamps:

  1. Configure the IoEHub MCP Time Server in your project settings:
{
  "mcpServers": {
    "IoEHubMcpTimeServer": {
      "command": "cmd",
      "args": [
        "/c",
        "C:\\path\\to\\your\\ioehub-mcp-time-server\\start-mcp-server.bat"
      ]
    }
  }
}
  1. Cursor will automatically have access to the current time information through the MCP protocol.

Troubleshooting

If you encounter issues:

  1. Check the log files in the logs directory
  2. Ensure no other Node.js processes are running that might conflict
  3. Make sure your MCP configuration points to the correct file paths

相关推荐

  • 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

  • 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.

  • Mintplex-Labs
  • La aplicación AI de escritorio todo en uno y Docker con trapo incorporado, agentes de IA, creador de agentes sin código, compatibilidad de MCP y más.

    Reviews

    3 (1)
    Avatar
    user_wkSdNmmb
    2025-04-17

    I've been using the ioehub-mcp-time-server for several months now, and it has significantly improved my time synchronization processes. The seamless integration with existing infrastructure and the reliability it offers make it an essential tool for anyone needing precise time management. The documentation provided is thorough, making setup straightforward. Kudos to ioehub for an exceptional product!