MCP Hub
Back to servers

mcp-epochs

MCP tool that provides current Unix timestamp

Registry
Updated
Mar 27, 2026

Quick Install

uvx mcp-epochs

mcp-epochs

mcp-name: io.github.daedalus/mcp-epochs

MCP tool that provides current Unix timestamp (epochs) to LLMs.

PyPI Python Coverage Ruff

Install

pip install mcp-epochs

Usage

mcp-epochs

This runs the MCP server with STDIO transport. The server provides a get_unix_time tool.

MCP Configuration

{
  "mcpServers": {
    "mcp-epochs": {
      "command": "mcp-epochs"
    }
  }
}

Development

git clone https://github.com/daedalus/mcp-epochs.git
cd mcp-epochs
pip install -e ".[test]"

# run tests
pytest

# format
ruff format src/ tests/

# lint
ruff check src/ tests/

# type check
mypy src/

API

get_unix_time()

Returns the current Unix timestamp as a dictionary with the following keys:

  • unix_time (int): Current Unix timestamp in seconds since epoch.
  • unix_time_ms (int): Current Unix timestamp in milliseconds since epoch.
  • iso8601 (str): Current UTC time in ISO 8601 format (e.g., "2026-03-26T21:30:00Z").

run_server()

Starts the MCP server using STDIO transport for local desktop MCP clients.

Reviews

No reviews yet

Sign in to write a review