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 weekdayget_current_time()
- Returns current time in configured format
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)
HTTP Server
hybrid server
The server is able to function both locally and remotely, depending on the configuration or use case.
Provides timezone-aware date and time information with configurable time formats and timezone support. Enables users to get current date and time in their preferred timezone and format through simple MCP tools.
Related MCP Servers
- -securityFlicense-qualityAn MCP server providing timezone conversions and time-related operations via RESTful API endpoints, featuring comprehensive error handling and timezone database integration.Last updated -
- -securityFlicense-qualityA simple Model Context Protocol (MCP) server that provides date and time functionality in any timezone, along with user profiles and personalized greeting resources.Last updated -
- AsecurityFlicenseAqualityA 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 -11
- AsecurityFlicenseAqualityAn MCP server that automatically detects and provides current time and location information based on system timezone and IP geolocation.Last updated -2