@ainarsklavins/date-mcp
An MCP server that provides real-time date, time, and timezone information to AI assistants.
Why Use This?
AI models don't inherently know the current date or time. This MCP server solves that by providing tools that return accurate, real-time temporal information.
Installation
Claude Desktop
Add to your Claude Desktop configuration file:
OS | Path |
macOS |
|
Windows |
|
Claude Code (CLI)
Add to ~/.claude/settings.json:
VS Code
Or manually add to your VS Code MCP settings (Ctrl+Shift+P → "MCP: Open User Configuration"):
Cursor
Add to Cursor's MCP settings (Settings → MCP Servers):
Windsurf
Add to ~/.codeium/windsurf/mcp_config.json:
Then use "command": "date-mcp" instead of npx in any configuration above.
Available Tools
Tool | Description | Read-only |
| Get current date/time with timezone | Yes |
| Get day name for any date | Yes |
| Get timezone offset and details | Yes |
| Format dates in various styles | Yes |
All tools are read-only and have no side effects.
get-current-datetime
Returns the current date and time.
Parameters:
Name | Type | Required | Description |
| string | No | IANA timezone (e.g.,
) |
Example:
get-day-of-week
Returns the day of the week for a given date.
Parameters:
Name | Type | Required | Description |
| string | No | Date in YYYY-MM-DD format (defaults to today) |
| string | No | Locale code (e.g.,
,
) |
Example:
get-timezone-info
Returns detailed timezone information.
Parameters:
Name | Type | Required | Description |
| string | No | IANA timezone name |
Example:
format-date
Formats a date in various styles.
Parameters:
Name | Type | Required | Description |
| string | No | Date in ISO format (defaults to today) |
| string | No |
,
,
, or
|
| string | No | Locale code (e.g.,
,
) |
Example:
Supported Timezones
Uses IANA timezone database. Common examples:
America/New_York,America/Los_Angeles,America/ChicagoEurope/London,Europe/Paris,Europe/BerlinAsia/Tokyo,Asia/Shanghai,Asia/SingaporeAustralia/SydneyUTC
Full list: IANA Time Zone Database
Debugging
You can use the MCP Inspector to debug the server:
Development
Testing Locally
Add to Claude Code with direct path:
License
MIT - see LICENSE
This server cannot be installed