Skip to main content

mcp-datetimeday

A lightweight MCP server for date, time, and day of week.

Installation

uv sync

Usage

Add to your Claude Desktop config (~/Library/Application Support/Claude/claude_desktop_config.json):

{
  "mcpServers": {
    "datetimeday": {
      "command": "uv",
      "args": ["run", "--directory", "/Users/robsherman/Servers/mcp-datetimeday", "mcp-datetimeday"]
    }
  }
}

Available Tools

Tool Description
get_datetime Get current date/time with day of week first. Supports tz arg for timezone, format arg: iso8601, unix, human, or full (default).
relative_time Get relative time between dates (e.g., "3 days ago", "in 2 weeks")
days_in_month Get number of days in a month with first/last day info
convert_time Convert time between timezones
get_week_year Get week number, ISO week, day of year, quarter

Example Output

get_datetime()

{
  "day_of_week": "Monday",
  "date": "2026-02-02",
  "time": "16:55:22",
  "timezone": "PST",
  "utc_offset": "-0800",
  "iso8601": "2026-02-02T16:55:22-08:00",
  "unix_timestamp": 1770080122,
  "human_readable": "Monday, February 02, 2026 at 04:55 PM"
}

get_datetime(format="iso8601")

{
  "day_of_week": "Monday",
  "iso8601": "2026-02-02T16:55:22-08:00"
}

get_datetime(tz="UTC")

{
  "day_of_week": "Tuesday",
  "date": "2026-02-03",
  "time": "00:55:22",
  "timezone": "UTC",
  "utc_offset": "+0000",
  "iso8601": "2026-02-03T00:55:22+00:00",
  "unix_timestamp": 1738544122,
  "human_readable": "Tuesday, February 03, 2026 at 12:55 AM"
}

relative_time("2026-02-10")

{
  "target": "2026-02-10",
  "target_day_of_week": "Tuesday",
  "reference": "now",
  "relative": "in 1 week",
  "days_difference": 7,
  "total_seconds": 604800
}

get_week_year()

{
  "date": "2026-02-02",
  "day_of_week": "Monday",
  "day_of_week_number": 1,
  "week_number": 5,
  "iso_week": 6,
  "iso_year": 2026,
  "day_of_year": 33,
  "days_remaining_in_year": 332,
  "is_weekend": false,
  "quarter": 1
}

Development

uv sync
uv run mcp-datetimeday

Metadata

Release files for mcp-datetimeday 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mcp-datetimeday 0.1.0
File Size Uploaded
mcp_datetimeday-0.1.0.tar.gz 92.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for mcp-datetimeday 0.1.0
File Interpreter ABI Platform
mcp_datetimeday-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 98.4 kB

Release files / mcp_datetimeday-0.1.0.tar.gz

Download URL mcp_datetimeday-0.1.0.tar.gz
Size 92.6 kB
Tags Source
SHA-256 checksum
How to use checksums
b774a62d08742cd0c39a2ab2a1a4aa5cf3712aff66d4d2ae2408033ef3363438
BLAKE2b-256 checksum
How to use checksums
a00809364266d478f2c7f6e4e8888a6c5df9d9aa48d4880e79757a784e208e43
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.5.24

Release files / mcp_datetimeday-0.1.0-py3-none-any.whl

Download URL mcp_datetimeday-0.1.0-py3-none-any.whl
Size 5.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
038a6e1ae61f663e0874b3262c4d2dca860ffd86dcd8baf1666f4bb797d38846
BLAKE2b-256 checksum
How to use checksums
c872696cc4e6d698c02701b16d77fa4f81ba39a994acc5efdc2c5624977dc4bf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.5.24

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page