Skip to main content

MCP tool that provides current Unix timestamp

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mcp_epochs-0.1.0.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mcp_epochs-0.1.0-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

Details for the file mcp_epochs-0.1.0.tar.gz.

File metadata

  • Download URL: mcp_epochs-0.1.0.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for mcp_epochs-0.1.0.tar.gz
Algorithm Hash digest
SHA256 a145b6a89a0231422612dae02fc980edcd8d2163449c7d8f86ce193de539020a
MD5 361b11eff5cbee19f73a51d4511d525c
BLAKE2b-256 f1bd9e2b1412f8d69c85f92e435fc870e1e5eb08c676e8b67822298e18ac88dd

See more details on using hashes here.

Provenance

The following attestation bundles were made for mcp_epochs-0.1.0.tar.gz:

Publisher: pypi-publish.yml on daedalus/mcp-epochs

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mcp_epochs-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: mcp_epochs-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for mcp_epochs-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 421fe6648b3523371010f21e6d053ad0320e9fcf01eeca6a2be8a67fd34044cc
MD5 446b2743a2c11b3f7acecff9966929e6
BLAKE2b-256 90ab1b4dde9edd9cf86c22a528e86ad960329522670611e2877721e241c3a6c7

See more details on using hashes here.

Provenance

The following attestation bundles were made for mcp_epochs-0.1.0-py3-none-any.whl:

Publisher: pypi-publish.yml on daedalus/mcp-epochs

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page