mcp-time
v0.0.3Time 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
| Parameter | Type | Description |
|---|---|---|
format | string | The format for the returned time string (default: YYYY-MM-DD HH:mm:ss) |
timezone | string | The 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
| Parameter | Type | Description |
|---|---|---|
time * | string | The time to compare (format: YYYY-MM-DD HH:mm:ss) |
days_in_month
Get the number of days in a month
| Parameter | Type | Description |
|---|---|---|
date | string | The date to check (format: YYYY-MM-DD). Defaults to current date |
get_timestamp
Convert a date-time string to Unix timestamp in milliseconds
| Parameter | Type | Description |
|---|---|---|
time | string | The time to convert (format: YYYY-MM-DD HH:mm:ss). Defaults to current time |
convert_time
Convert time between different IANA timezones
| Parameter | Type | Description |
|---|---|---|
sourceTimezone * | string | Source IANA timezone name (e.g., "Asia/Shanghai") |
targetTimezone * | string | Target IANA timezone name (e.g., "Europe/London") |
time * | string | The time to convert (e.g., "2025-03-23 12:30:00") |
get_week_year
Get week number and ISO week number for a date
| Parameter | Type | Description |
|---|---|---|
date | string | The date to check (e.g., "2025-03-23"). Defaults to current date |