Date MCP Server
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Date MCP Server what's the current date and time in Tokyo?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
@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 |
|
{
"mcpServers": {
"date-mcp": {
"command": "npx",
"args": ["-y", "@ainarsklavins/date-mcp"]
}
}
}Claude Code (CLI)
claude mcp add --scope user date-mcp -- npx -y @ainarsklavins/date-mcpAdd to ~/.claude/settings.json:
{
"mcpServers": {
"date-mcp": {
"command": "npx",
"args": ["-y", "@ainarsklavins/date-mcp"]
}
}
}VS Code
Or manually add to your VS Code MCP settings (Ctrl+Shift+P → "MCP: Open User Configuration"):
{
"servers": {
"date-mcp": {
"command": "npx",
"args": ["-y", "@ainarsklavins/date-mcp"]
}
}
}Cursor
Add to Cursor's MCP settings (Settings → MCP Servers):
{
"mcpServers": {
"date-mcp": {
"command": "npx",
"args": ["-y", "@ainarsklavins/date-mcp"]
}
}
}Windsurf
Add to ~/.codeium/windsurf/mcp_config.json:
{
"mcpServers": {
"date-mcp": {
"command": "npx",
"args": ["-y", "@ainarsklavins/date-mcp"]
}
}
}npm install -g @ainarsklavins/date-mcpThen 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:
{
"iso": "2024-12-15T14:30:00.000Z",
"formatted": "12/15/2024, 9:30:00 AM",
"timezone": "America/New_York",
"timestamp": 1734272200000
}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:
{
"dayName": "Sunday",
"dayNumber": 0,
"date": "2024-12-15"
}get-timezone-info
Returns detailed timezone information.
Parameters:
Name | Type | Required | Description |
| string | No | IANA timezone name |
Example:
{
"timezone": "America/New_York",
"offset": "GMT-05:00",
"abbreviation": "EST",
"currentTime": "12/15/2024, 9:30:00 AM"
}format-date
Formats a date in various styles.
Parameters:
Name | Type | Required | Description |
| string | No | Date in ISO format (defaults to today) |
| string | No |
|
| string | No | Locale code (e.g., |
Example:
{
"formatted": "December 15, 2024",
"style": "long",
"locale": "en-US",
"iso": "2024-12-15T00:00:00.000Z"
}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:
npx @modelcontextprotocol/inspector npx -y @ainarsklavins/date-mcpDevelopment
git clone https://github.com/ainarsklavins/date-mcp.git
cd date-mcp
npm install
npm run buildTesting Locally
Add to Claude Code with direct path:
{
"mcpServers": {
"date-mcp": {
"command": "node",
"args": ["/path/to/date-mcp/dist/index.js"]
}
}
}License
MIT - see LICENSE
Available Tools
4 toolsformat-dateFormat DateC
Format a date in various styles (short, medium, long, full).
Inputs: date, style, locale.
get-current-datetimeGet Current Date and TimeA
Returns the current date and time. Optionally specify a timezone.
Inputs: timezone.
get-day-of-weekGet Day of WeekB
Returns the day of the week for a given date or today.
Inputs: date, locale.
get-timezone-infoGet Timezone InformationB
Returns information about the current or specified timezone.
Inputs: timezone.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 4 tools
Each tool has a clearly distinct purpose: formatting dates, getting current datetime, determining day of week, and retrieving timezone information. There is no overlap in functionality, and an agent can easily select the correct tool based on the specific need.
All tool names follow a consistent verb_noun pattern with hyphens (e.g., format-date, get-current-datetime, get-day-of-week, get-timezone-info). The naming is predictable and readable throughout the set.
With 4 tools, the server is well-scoped for handling date and time operations. Each tool serves a unique and essential function, and the count is appropriate for the domain without being too thin or bloated.
The tool set covers core date/time operations like formatting, current datetime retrieval, day-of-week calculation, and timezone info. A minor gap is the lack of date arithmetic or manipulation tools (e.g., add days, compare dates), but agents can work around this with the provided tools.
Related MCP Connectors
Current time, timezone conversion & date math for AI agents. On Cloudflare Workers.
A real clock for AI agents: current time, timezone conversion, and DST facts from the IANA tzdb.
Time and date math for AI agents: Unix timestamp conversion, DST-correct time zone conversion, durations, epoch arithmetic, cron schedules, and holiday countdowns. Eight tools, no key.
Deterministic time tools for AI agents: timezone conversion, business-day math, cron interpretation.