Date-time Tools MCP
This server provides date-time manipulation and timezone conversion tools for LLMs and applications. All date-time inputs use Luxon-compatible format: yyyy-MM-dd hh:mm:ss a.
convertTimezones: Convert a date-time string from one IANA timezone to another (e.g.,
America/New_YorktoAsia/Calcutta).mutateDate: Add or subtract time units (days, hours, minutes, months, or years) from a given date-time string.
currentDateTimeAndTimezone: Retrieve the current date, time, and timezone of the user/system — must be invoked first when working with relative date references like "today", "tomorrow", or "next week".
Click on "Deploy 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., "@Date-time Tools MCP convert 10:00 AM EST to Tokyo time"
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.
Date-time Tools MCP
A Model Context Protocol (MCP) server for date-time manipulation and timezone conversion.
Overview
This MCP server provides a set of tools for working with date-time strings, including timezone conversion, date mutation (arithmetic), and fetching the current date-time and timezone. It is designed to be used as a backend utility for applications or agents that need robust, standardized date-time operations.
Live deployment: https://date-time-tools.iabhishek.workers.dev/mcp
Related MCP server: Time MCP Server
Architecture
This server runs on Cloudflare Workers and uses the Streamable HTTP transport (with a legacy SSE endpoint also exposed). Per-session state is backed by a Durable Object via Cloudflare's agents McpAgent wrapper.
Endpoints:
POST/GET/DELETE /mcp— Streamable HTTP transport. Sessions tracked via themcp-session-idheader.GET /sse,POST /sse/message— Legacy SSE transport for older clients.
Local development
npm install
npm run dev # wrangler dev — serves at http://127.0.0.1:8787/mcpDeploying to Cloudflare
Manual
One-time setup:
npx wrangler loginDeploy:
npm run deployWrangler prints the public URL — for this project it's https://date-time-tools.iabhishek.workers.dev/mcp. The Workers Free plan covers this server (100k requests/day; Durable Objects free tier covers session storage).
Automated (GitHub Actions)
.github/workflows/deploy.yml deploys on every push to main (and on manual workflow_dispatch). Configure two repository secrets:
CLOUDFLARE_API_TOKEN— create at https://dash.cloudflare.com/profile/api-tokens using the Edit Cloudflare Workers templateCLOUDFLARE_ACCOUNT_ID— found on the Workers & Pages dashboard sidebar
Integration with MCP Clients
Claude Code
claude mcp add date-time-tools --transport http https://date-time-tools.iabhishek.workers.dev/mcpAdd --scope user to register it for every project, or --scope project to commit a .mcp.json shared with collaborators. Verify with claude mcp list; inside Claude Code, run /mcp to inspect status and tools.
Generic Streamable HTTP clients
Configure clients that support Streamable HTTP transports to point at the deployed URL:
{
"mcpServers": {
"date-time-tools": {
"url": "https://date-time-tools.iabhishek.workers.dev/mcp"
}
}
}For clients that only speak stdio, bridge with mcp-remote:
{
"mcpServers": {
"date-time-tools": {
"command": "npx",
"args": ["-y", "mcp-remote", "https://date-time-tools.iabhishek.workers.dev/mcp"]
}
}
}Available Tools
This MCP server provides the following tools for LLMs:
convertTimezones: Convert a date-time string from one timezone to another.mutateDate: Add or subtract days, hours, minutes, months, or years from a date-time string.currentDateTimeAndTimezone: Get the current date, time, and timezone.
🧪 Testing with MCP Inspector
Run npm run dev, then in another terminal:
npx -y @modelcontextprotocol/inspectorSelect the Streamable HTTP transport and use http://127.0.0.1:8787/mcp as the URL.
Features
Timezone Conversion
Convert a date-time string from one IANA timezone to another using Luxon-compatible formats.Date Mutation
Add or subtract days, hours, minutes, months, or years from a date-time string.Current Date-Time & Timezone
Retrieve the current date, time, and timezone of the user/system.
Available Tools
3 toolsconvertTimezonesA
Converts a date time string from one timezone to another.
The date time string must follow luxon date-time format: yyyy-MM-dd hh:mm:ss a. Example: 2025-06-16 10:00:00 pm.
The timezones must be valid IANA timezones. Example: Asia/Calcutta, America/New_York.
You must first invoke the tool named "currentDateTimeAndTimezone" to get the current date, time and timezone of the user if they don't specify the date or time explicitly or use relative date or time (i.e. in an hour/today/tomorrow/yesterday/next week/next month/next year etc.).
Inputs: dateTime (required), fromZone (required), toZone (required).
currentDateTimeAndTimezoneB
Gets the current date, time and timezone of the user.
Inputs: no named parameters.
mutateDateA
Mutates a date time string by adding or subtracting days, hours, minutes, months, or years.
The date time string must follow luxon date-time format: yyyy-MM-dd hh:mm:ss a. Example: 2025-06-16 10:00:00 pm.
The update object must be a valid update object. Example: { days: -1, hours: 2, minutes: 3, months: 4, years: 5 }.
You must first invoke the tool named "currentDateTimeAndTimezone" to get the current date, time and timezone of the user if they don't specify an absolute date or time explicitly (today/tomorrow/yesterday/next week/next month/next year etc. is not absolute date or time).
Inputs: dateTime (required), update (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 3 tools
Each tool has a clearly distinct purpose: convertTimezones handles timezone conversion, currentDateTimeAndTimezone retrieves current datetime and timezone, and mutateDate performs date arithmetic. There is no overlap or ambiguity between these functions.
Two tools use camelCase (convertTimezones, currentDateTimeAndTimezone) while one uses snake_case (mutateDate), creating a minor inconsistency. However, all names are descriptive and follow a verb_noun pattern, making them readable despite the mixed conventions.
With only 3 tools, the set feels thin for a date-time utility server. While the tools cover core operations, additional functions like parsing, formatting, or comparing dates would enhance completeness. The count is borderline but manageable.
The tools cover conversion, retrieval, and mutation, but there are notable gaps such as date parsing from various formats, date comparison, duration calculation, or formatting. Agents may struggle with tasks requiring these missing operations, though core workflows are supported.
Maintenance
Related MCP Connectors
Time and date math for AI agents: Unix timestamp conversion, DST-correct time zone conversion, durations, epoch arithmetic, cron schedules, and holiday countdowns. Eight tools, no key.
Deterministic time tools for AI agents: timezone conversion, business-day math, cron interpretation.
Current time, timezone conversion & date math for AI agents. On Cloudflare Workers.
Convert and compare dates and times across any timezone with flexible, locale-aware formatting. Ad…
Related MCP Servers
- AlicenseBqualityDmaintenanceGives large language models time awareness capabilities through various time-related functions including current time retrieval, timezone conversion, and relative time calculations.61,379 npmMIT
- AlicenseBqualityDmaintenanceProvides time and timezone functionality for LLMs, enabling them to get current time information across different timezones and convert times between zones.2MIT
- AlicenseAqualityCmaintenanceProvides comprehensive date, time, timezone, and calendar operations powered by Luxon, enabling AI agents to perform time calculations, timezone conversions, and temporal data handling across 400+ IANA timezones.2448 npmMIT
- AlicenseNot gradedqualityDmaintenanceProvides time and date functionality with support for multiple formats and timezones, enabling users to get current time/date, format timestamps, and retrieve comprehensive datetime information.72 npmMIT