currentdt-mcp

v2.0.3
io.github.biswajitpanday/currentdt-mcp Checked 2 days ago Published 2 months ago

Current date and time for AI assistants: UTC, local+offset and epoch together.

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

get_current_datetime Get current date and time

Get the current date and time. Call this before writing any date, timestamp, year, changelog entry, migration filename or copyright line -- your training data predates today. The text content is the requested `format` only; read `structuredContent` for the same instant stated as UTC (`iso`, `utc`), host-local with offset (`local`, `offset`, `timezone`) and epoch milliseconds, so there is never any doubt which clock a value came from.

ParameterTypeDescription
formatstring"iso" (default unless configured otherwise) returns UTC, e.g. 2026-08-20T12:31:02.625Z. Anything else is a token pattern rendered in the host's LOCAL time and must contain at least one token; free tex…
providerstring"local" (default) reads the system clock. "remote" queries a network time service and fails rather than silently substituting the local clock.
timezonestringZone for `local`, `offset`, `timezone` and any token format. IANA name such as "UTC", "Europe/Berlin", "America/New_York" or "Asia/Kolkata". Defaults to the host machine's zone. Does not affect `iso`/…

convert_timezone Convert a time between timezones

Re-state a time in another timezone, DST-correct for the date in question. Use this instead of adding a remembered offset: offsets change with the calendar, and the hour either side of a changeover is where guesses go wrong. Give `time` with an offset for an exact instant, or without one plus `from` for a wall-clock reading in a named zone.

ParameterTypeDescription
time *stringISO 8601. With an offset ("2026-03-29T01:30:00+01:00", "...Z") it pins an instant. Without one ("2026-03-29T01:30:00") it is a wall-clock reading and `from` is required.
to *stringZone to convert into. IANA name such as "UTC", "Europe/Berlin", "America/New_York" or "Asia/Kolkata".
formatstringToken pattern for `formatted`, rendered in `to`. Defaults to ISO with offset.
fromstringZone the wall-clock `time` was read in. Required when `time` has no offset. IANA name such as "UTC", "Europe/Berlin", "America/New_York" or "Asia/Kolkata".