mcp-time

v0.0.3
io.github.mcpcentral-io/mcp-time Checked 3 hours ago Published 1 year ago

Time MCP server via HTTP

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

current_time

Get current time in UTC and specified timezone

ParameterTypeDescription
formatstringThe format for the returned time string (default: YYYY-MM-DD HH:mm:ss)
timezonestringThe IANA timezone name (e.g., "America/New_York"). Defaults to server's guessed timezone

relative_time

Calculate relative time from now to a given time string

ParameterTypeDescription
time *stringThe time to compare (format: YYYY-MM-DD HH:mm:ss)

days_in_month

Get the number of days in a month

ParameterTypeDescription
datestringThe date to check (format: YYYY-MM-DD). Defaults to current date

get_timestamp

Convert a date-time string to Unix timestamp in milliseconds

ParameterTypeDescription
timestringThe time to convert (format: YYYY-MM-DD HH:mm:ss). Defaults to current time

convert_time

Convert time between different IANA timezones

ParameterTypeDescription
sourceTimezone *stringSource IANA timezone name (e.g., "Asia/Shanghai")
targetTimezone *stringTarget IANA timezone name (e.g., "Europe/London")
time *stringThe time to convert (e.g., "2025-03-23 12:30:00")

get_week_year

Get week number and ISO week number for a date

ParameterTypeDescription
datestringThe date to check (e.g., "2025-03-23"). Defaults to current date