Skip to main content
Glama
DSado88

DateTime MCP Server

by DSado88

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 time

    • Supports multiple formats: ISO 8601, Unix timestamp, human-readable, or custom format

    • Optional timezone parameter

  • get_current_date - Get only the current date

    • Formats: ISO (YYYY-MM-DD), US (MM/DD/YYYY), EU (DD/MM/YYYY), or custom

  • get_current_time - Get only the current time

    • Formats: 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 year

  • MM - 2-digit month

  • DD - 2-digit day

  • HH - 2-digit hour (24-hour)

  • mm - 2-digit minutes

  • ss - 2-digit seconds

Example: "YYYY-MM-DD HH:mm""2025-07-31 14:30"

Related MCP server: Time

Development

Install dependencies:

npm install

Build the server:

npm run build

For development with auto-rebuild:

npm run watch

Installation

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-server

To remove the server:

claude mcp remove datetime-server

Debugging

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 inspector

The Inspector will provide a URL to access debugging tools in your browser.

Available Tools

3 tools
get_current_dateA

Get only the current date

ParametersJSON Schema
NameRequiredDescriptionDefault
formatNoOutput format: 'iso' (YYYY-MM-DD), 'us' (MM/DD/YYYY), 'eu' (DD/MM/YYYY), or custom formatiso

TDQS

A3.9/5.0
Behavior3/5

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.

Conciseness5/5

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.

Completeness3/5

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.

Parameters3/5

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.

Purpose5/5

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.

Usage Guidelines4/5

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

ParametersJSON Schema
NameRequiredDescriptionDefault
formatNoOutput format: 'iso' (ISO 8601), 'unix' (timestamp), 'human' (readable), or a custom format stringiso
timezoneNoTimezone (e.g., 'UTC', 'America/New_York'). Defaults to system timezonesystem

TDQS

B3.1/5.0
Behavior2/5

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.

Conciseness5/5

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.

Completeness3/5

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.

Parameters3/5

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.

Purpose4/5

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.

Usage Guidelines2/5

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

ParametersJSON Schema
NameRequiredDescriptionDefault
formatNoOutput format: '24h' (HH:MM:SS), '12h' (hh:MM:SS AM/PM), or custom format24h
include_secondsNoInclude seconds in the output

TDQS

B3.1/5.0
Behavior2/5

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.

Conciseness5/5

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.

Completeness3/5

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.

Parameters3/5

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.

Purpose4/5

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.

Usage Guidelines2/5

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

B3.4/5.0
Disambiguation5/5

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.

Naming Consistency5/5

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.

Tool Count3/5

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.

Completeness2/5

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

ActivityInactive
ResponsivenessSyncing

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

Related MCP Servers

  • A
    license
    Not graded
    quality
    D
    maintenance
    A Claude Model Configuration Protocol (MCP) server that provides real-time timezone-aware date and time information.
    MIT
  • A
    license
    Not graded
    quality
    C
    maintenance
    The 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 back
    184
    25
    MIT
  • A
    license
    A
    quality
    D
    maintenance
    A 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.
    9
    MIT
  • A
    license
    A
    quality
    D
    maintenance
    A simple MCP server that exposes datetime information to agentic systems and chat REPLs
    1
    MIT

Latest Blog Posts

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