DateTime MCP Server
Integrates with Claude Desktop on macOS, using a configuration file in ~/Library/Application Support/Claude/ to provide date and time services.
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., "@DateTime MCP Server what's the current date and time in ISO format?"
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.
DateTime MCP Server
A simple MCP server that provides accurate date and time information to Claude Code and Claude Desktop.
This server ensures Claude always uses the correct current date and time when creating documents, logs, or any time-sensitive content.
Features
Tools
get_current_datetime- Get the current date and timeSupports multiple formats: ISO 8601, Unix timestamp, human-readable, or custom format
Optional timezone parameter
get_current_date- Get only the current dateFormats: ISO (YYYY-MM-DD), US (MM/DD/YYYY), EU (DD/MM/YYYY), or custom
get_current_time- Get only the current timeFormats: 24-hour (HH:MM:SS), 12-hour (hh:MM:SS AM/PM), or custom
Optional seconds display
Custom Format Support
Use format strings with these placeholders:
YYYY- 4-digit yearMM- 2-digit monthDD- 2-digit dayHH- 2-digit hour (24-hour)mm- 2-digit minutesss- 2-digit seconds
Example: "YYYY-MM-DD HH:mm" → "2025-07-31 14:30"
Related MCP server: Time
Development
Install dependencies:
npm installBuild the server:
npm run buildFor development with auto-rebuild:
npm run watchInstallation
For Claude Desktop
The server config was automatically added during setup. To verify:
On MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json
On Windows: %APPDATA%/Claude/claude_desktop_config.json
{
"mcpServers": {
"DateTime MCP Server": {
"command": "node",
"args": [
"/path/to/your/datetime-mcp/build/index.js"
]
}
}
}For Claude Code CLI
Add the server to Claude Code:
# Add the server
claude mcp add datetime-server node /path/to/your/datetime-mcp/build/index.js
# Verify it's loaded
claude mcp list
# View server details
claude mcp get datetime-serverTo remove the server:
claude mcp remove datetime-serverDebugging
Since MCP servers communicate over stdio, debugging can be challenging. We recommend using the MCP Inspector, which is available as a package script:
npm run inspectorThe Inspector will provide a URL to access debugging tools in your browser.
Available Tools
3 toolsget_current_dateA
Get only the current date
Inputs: format.
get_current_datetimeB
Get the current date and time
Inputs: format, timezone.
get_current_timeB
Get only the current time
Inputs: format, include_seconds.
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: get_current_date returns only the date, get_current_datetime returns both date and time, and get_current_time returns only the time. There is no overlap or ambiguity between these three operations.
All tool names follow a consistent verb_noun pattern with 'get_current_' prefix, using snake_case uniformly. This makes the naming predictable and easy to understand.
With only 3 tools, the server feels somewhat thin for a datetime domain, as it lacks operations like date/time parsing, formatting, arithmetic, or timezone handling. However, the tools cover basic current datetime retrieval adequately.
The toolset is severely incomplete for a datetime server, missing essential operations such as date/time manipulation, conversion between formats or timezones, parsing strings, or calculating differences. This will limit agents to only retrieving current values without any processing capabilities.
Maintenance
Related MCP Connectors
A time server that keeps your AI honest about time. Real clock + drift guard, zero dependencies.
MCP server for time in cities around the world, time zones, DST, conversion, and meetings.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceA Claude Model Configuration Protocol (MCP) server that provides real-time timezone-aware date and time information.MIT
- AlicenseNot gradedqualityDmaintenanceThe 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 back112 npm25MIT
- AlicenseAqualityDmaintenanceA Model Context Protocol server built with FastMCP that provides tools for retrieving the current local date and time. It allows LLMs to access precise temporal information directly from the host environment.9MIT
- AlicenseAqualityDmaintenanceA simple MCP server that exposes datetime information to agentic systems and chat REPLs1MIT