Skip to main content
Glama
batteryshark

DateTime MCP Server

by batteryshark

DateTime MCP Server

A simple MCP server that provides timezone-aware date and time information.

Tools

  • get_current_date(include_weekday=False) - Returns current date in ISO format (YYYY-MM-DD) with optional weekday

  • get_current_time() - Returns current time in configured format

Related MCP server: Date and Time MCP Server

Configuration

Set these environment variables (for stdio) or headers (for HTTP):

  • DEFAULT_TZ - Timezone identifier (e.g., "America/New_York", "Europe/London", "UTC")

  • TIMEFMT - Time format: "12" for 12-hour (2:30 PM) or "24" for 24-hour (14:30)

Fallbacks

  • Invalid timezone → defaults to UTC

  • TIMEFMT not "12" → defaults to 24-hour format

Usage Examples

STDIO (default)

{
  "date-time-mcp": {
    "command": "uv",
    "args": ["run", "python", "server.py"],
    "env": {
      "DEFAULT_TZ": "America/New_York",
      "TIMEFMT": "12"
    }
  }
}

HTTP Server

{
  "date-time-mcp": {
    "url": "http://localhost:8855",
    "headers": {
      "DEFAULT_TZ": "America/New_York",
      "TIMEFMT": "24"
    }
  }
}
Install Server
F
license - not found
A
quality
-
maintenance - not tested

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

  • F
    license
    -
    quality
    D
    maintenance
    An MCP server providing timezone conversions and time-related operations via RESTful API endpoints, featuring comprehensive error handling and timezone database integration.
    Last updated
  • A
    license
    B
    quality
    D
    maintenance
    A Model Context Protocol server that provides tools to get the current date and time in various formats, supporting different timezones and custom formatting options.
    Last updated
    4
    1
    19
    1
    MIT
  • F
    license
    B
    quality
    D
    maintenance
    An MCP server that automatically detects and provides current time and location information based on system timezone and IP geolocation.
    Last updated
    2

View all related MCP servers

Related MCP Connectors

  • Timezone MCP — wraps WorldTimeAPI (free, no auth)

  • A real clock for AI agents: current time, timezone conversion, and DST facts from the IANA tzdb.

  • Timezone tools for agents: convert, world clock, offset, lookup, date math, holidays, slots. x402

View all MCP Connectors

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/batteryshark/mcp-datetime'

If you have feedback or need assistance with the MCP directory API, please join our Discord server