mcp-datetimeday
mcp-datetimeday is a lightweight MCP server providing date, time, and day-of-week utilities through five tools:
get_datetime– Retrieve the current date, time, and day of week. Supports optional IANA timezone (e.g.,UTC,America/New_York) and output formats:iso8601,unix,human, or full (default).relative_time– Calculate relative time between two dates (e.g., "3 days ago", "in 2 weeks"). Accepts a target date and optional reference date (defaults to now).days_in_month– Get the number of days in a given month/year, along with first and last day details. Defaults to the current month and year.convert_time– Convert a datetime from one IANA timezone to another, with day-of-week info for both source and target timezones.get_week_year– Retrieve week number, ISO week, ISO year, day of year, days remaining in the year, quarter, and whether the date falls on a weekend. Defaults to today.
Supports stdio (for Claude Desktop) and HTTP transport modes, and can run as a persistent server via PM2.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mcp-datetimedayWhat's the current time and day of the week in Tokyo?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
mcp-datetimeday
A lightweight MCP server for date, time, and day of week.
Installation
pip install mcp-datetimedayOr with uv:
uv pip install mcp-datetimedayRelated MCP server: MCP Node Time
Usage
The server supports two transport modes: stdio (default) for Claude Desktop, and streamable-http for Claude Code or any HTTP-based MCP client.
Claude Code (HTTP — recommended)
Run the server as a persistent HTTP process (e.g., via PM2), then register it:
# Start the server
mcp-datetimeday --transport streamable-http --port 8105
# Register in Claude Code (user scope)
claude mcp add --transport http --scope user mcp-datetimeday http://127.0.0.1:8105/mcpClaude Code (stdio)
claude mcp add --scope user mcp-datetimeday -- uvx mcp-datetimedayClaude Desktop
Add to your config (~/Library/Application Support/Claude/claude_desktop_config.json):
{
"mcpServers": {
"datetimeday": {
"command": "uvx",
"args": ["mcp-datetimeday"]
}
}
}CLI Options
--transport {stdio,streamable-http} Transport protocol (default: stdio)
--port PORT Port for HTTP transport (default: 8105)
--host HOST Host for HTTP transport (default: 127.0.0.1)PM2 (persistent HTTP server)
An ecosystem.config.cjs is included for PM2:
pm2 start ecosystem.config.cjs
pm2 saveAvailable Tools
Tool | Description |
| Get current date/time with day of week first. Supports |
| Get relative time between dates (e.g., "3 days ago", "in 2 weeks") |
| Get number of days in a month with first/last day info |
| Convert time between timezones |
| 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
git clone https://github.com/cfdude/mcp-datetimeday.git
cd mcp-datetimeday
uv sync
uv run mcp-datetimedayMaintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityCmaintenanceThe Time MCP Server is a Model Context Protocol (MCP) server that provides AI assistants and other MCP clients with standardized tools to perform time and date-related operations. This server acts as a bridge between AI tools and a robust time-handling backLast updated17025MIT
- AlicenseAqualityDmaintenanceA MCP server that provides timezone-aware date and time operations. This server addresses the common issue where AI assistants provide incorrect date information due to timezone confusion.Last updated44MIT
- AlicenseDqualityCmaintenanceA lightweight MCP server that provides date and time tools, including the ability to retrieve current timestamps and parse date strings with IANA timezone support. It enables AI models to interact with the host OS clock and perform temporal calculations via stdio transport.Last updated3177MIT
- AlicenseAqualityDmaintenanceMCP server providing various date/time functions including current time, timezone conversion, and relative time calculations. Supports both local stdio and remote HTTP access via Cloudflare Workers.Last updated63702MIT
Related MCP Connectors
Date calculator MCP.
Timezone MCP — wraps WorldTimeAPI (free, no auth)
A time server that keeps your AI honest about time. Real clock + drift guard, zero dependencies.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/cfdude/mcp-datetimeday'
If you have feedback or need assistance with the MCP directory API, please join our Discord server