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 "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., "@DateTime MCP Serverwhat'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
| Name | Required | Description | Default |
|---|---|---|---|
| format | No | Output format: 'iso' (YYYY-MM-DD), 'us' (MM/DD/YYYY), 'eu' (DD/MM/YYYY), or custom format | iso |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, so the description carries the full burden. It states the tool's function but doesn't disclose behavioral traits like whether it's read-only, requires authentication, has rate limits, or what the return format looks like. The description is accurate but minimal.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single, efficient sentence with zero waste. It's appropriately sized and front-loaded, clearly stating the tool's purpose without unnecessary elaboration.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the tool's simplicity (1 optional parameter, no output schema, no annotations), the description is complete enough to understand its basic function. However, it lacks details on return values or behavioral context, which could be helpful for an agent.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The input schema has 100% description coverage, with the 'format' parameter fully documented. The description doesn't add any parameter semantics beyond what the schema provides, so it meets the baseline of 3 for high schema coverage without extra value.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description 'Get only the current date' clearly states the verb ('Get') and resource ('current date'), distinguishing it from sibling tools like get_current_datetime and get_current_time by specifying 'only the current date' rather than including time components.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description implies usage context by specifying 'only the current date', suggesting this tool should be used when only the date is needed versus siblings that include time. However, it doesn't explicitly state when not to use it or name alternatives, leaving some ambiguity.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
get_current_datetimeB
Get the current date and time
| Name | Required | Description | Default |
|---|---|---|---|
| format | No | Output format: 'iso' (ISO 8601), 'unix' (timestamp), 'human' (readable), or a custom format string | iso |
| timezone | No | Timezone (e.g., 'UTC', 'America/New_York'). Defaults to system timezone | system |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, so the description carries the full burden of behavioral disclosure. It states the tool 'Get[s] the current date and time,' which implies a read-only operation, but doesn't clarify aspects like whether it requires permissions, has rate limits, or what the output format might be. For a tool with no annotations, this leaves significant gaps in understanding its behavior beyond the basic action.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description 'Get the current date and time' is a single, efficient sentence that front-loads the core purpose without any wasted words. It's appropriately sized for a simple tool, making it easy for an agent to parse and understand quickly.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the tool's low complexity (2 optional parameters, no output schema, no annotations), the description is minimally adequate. It states what the tool does but lacks details on output format or behavioral traits. Without an output schema, the description doesn't explain return values, which could be a gap, but for this simple tool, it's borderline acceptable, scoring at the minimum viable level.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The input schema has 100% description coverage, detailing both parameters ('format' and 'timezone') with clear descriptions and defaults. The tool description adds no parameter-specific information beyond what's in the schema, so it doesn't enhance semantic understanding. According to the rules, with high schema coverage (>80%), the baseline score is 3, which is appropriate here.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description 'Get the current date and time' clearly states the tool's function with a specific verb ('Get') and resource ('current date and time'), making the purpose immediately understandable. However, it doesn't differentiate from sibling tools like 'get_current_date' and 'get_current_time', which likely provide more specific outputs, so it doesn't reach the highest score.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description provides no guidance on when to use this tool versus its siblings ('get_current_date' and 'get_current_time'), nor does it mention any prerequisites or exclusions. It's a basic statement of function without contextual usage advice, leaving the agent to infer when this general tool is preferred over more specific alternatives.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
get_current_timeB
Get only the current time
| Name | Required | Description | Default |
|---|---|---|---|
| format | No | Output format: '24h' (HH:MM:SS), '12h' (hh:MM:SS AM/PM), or custom format | 24h |
| include_seconds | No | Include seconds in the output |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, so the description carries the full burden. It states 'Get only the current time' but doesn't disclose behavioral traits like whether this is a read-only operation, if it requires permissions, or how it handles errors. For a tool with zero annotation coverage, this is a significant gap in transparency.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single, efficient sentence with zero waste. It's front-loaded and appropriately sized for a simple tool, making it easy for an agent to parse quickly.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the tool's low complexity (2 optional parameters, no output schema), the description is minimally adequate. However, with no annotations and no output schema, it lacks completeness in explaining behavioral aspects or return values, leaving gaps for the agent to infer.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The input schema has 100% description coverage, documenting both parameters (format and include_seconds) with details like default values and options. The description adds no parameter-specific information beyond what the schema provides, so it meets the baseline of 3 for high schema coverage.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description 'Get only the current time' clearly states the verb ('Get') and resource ('current time'), distinguishing it from sibling tools like get_current_date and get_current_datetime. However, it lacks specificity about what 'only' means compared to siblings, which slightly reduces clarity.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description provides no guidance on when to use this tool versus its siblings (get_current_date, get_current_datetime). It implies usage for time-only retrieval but doesn't explicitly state alternatives or exclusions, leaving the agent to infer context.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
TDQS
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
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
A time server that keeps your AI honest about time. Real clock + drift guard, zero dependencies.
Augments MCP Server - A comprehensive framework documentation provider for Claude Code
Hosted MCP server connecting claude.ai, ChatGPT and other AI apps to your own computer
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceA Claude Model Configuration Protocol (MCP) server that provides real-time timezone-aware date and time information.MIT
- AlicenseNot gradedqualityCmaintenanceThe 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 back18425MIT
- 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
Appeared in Searches
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/DSado88/datetime-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server