Skip to main content
Glama

DateTime MCP Server

by batteryshark

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
TIMEFMTNoTime format: "12" for 12-hour (2:30 PM) or "24" for 24-hour (14:30). Values other than "12" default to 24-hour format.
DEFAULT_TZNoTimezone identifier (e.g., "America/New_York", "Europe/London", "UTC"). Invalid timezone defaults to UTC.

Schema

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Tools

Functions exposed to the LLM to take actions

NameDescription
get_current_date

Get the current date in ISO format (YYYY-MM-DD).

Args: include_weekday: Whether to append the day of the week

Returns: ISO date string, optionally with weekday

Examples: get_current_date() -> "2024-01-15" get_current_date(include_weekday=True) -> "2024-01-15 (Monday)"

get_current_time

Get the current time in the configured format.

Returns: Time string in 12-hour or 24-hour format based on TIMEFMT setting

Examples: With TIMEFMT="12": "2:30 PM" With TIMEFMT="24": "14:30"

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