About mcp-epochs
mcp-epochs is an MCP server for LLMs that returns the current Unix time in seconds and milliseconds, plus UTC ISO 8601 time. It provides a single tool over STDIO.
Key features
- 01Current Unix time in seconds
- 02Current Unix time in milliseconds
- 03UTC time in ISO 8601 format
Use cases
- 01Providing an LLM with the current timestamp
- 02Getting UTC time in a structured response
MCP support
Exposes the `get_unix_time` tool to MCP clients over STDIO. The tool returns Unix timestamps in seconds and milliseconds, as well as UTC ISO 8601 time.
Configuration
Local server config is the same for every client. Copy it into your client’s MCP config file.
Tools
Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.
Details
From the project READMEmcp-epochs
mcp-name: io.github.daedalus/mcp-epochs
MCP tool that provides current Unix timestamp (epochs) to LLMs.
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.
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.