DateTime MCP Server
Click on "Install 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., "@DateTime MCP Serverwhat's the current date and time?"
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.
DateTime MCP Server
A Model Context Protocol (MCP) server that provides date and time utilities
Features
Get current date and time in user's timezone
Get day of the week for any date
Calculate difference between two dates
Related MCP server: DateTime MCP Server
Installation
Clone or download this repository
Install dependencies:
npm installBuild the server:
npm run buildTesting and Debugging
1. MCP Inspector (Recommended)
The easiest way to test your MCP server interactively:
npm run inspectorThis will open a web interface where you can:
See all available tools
Test the
datetime,day_of_week, anddate_difftoolsInspect requests and responses
2. VSCode Debugging
Use the built-in VSCode debugger with the provided launch configurations:
Press
F5or go to Run → Start DebuggingChoose "Debug MCP with Inspector" to debug with the web interface
Choose "Debug MCP Server" to debug the server directly
Set breakpoints in your code to step through execution
3. Manual Testing
Run the test script:
node test-server.js4. Development Mode
Build automatically on file changes:
npm run watchIn another terminal, run the inspector:
npm run inspectorCommon Issues
Exit Code 1: Make sure to run
npm run buildfirstPort in use: Close other inspector instances
Module errors: Verify
"type": "module"is in package.json
Configuration
Add the server to your MCP configuration:
For VSCode (Claude Dev Extension):
{
"mcpServers": {
"datetime": {
"command": "node",
"args": ["/path/to/datetime-mcp/build/index.js"]
}
}
}For Claude Desktop:
{
"mcpServers": {
"datetime": {
"command": "node",
"args": ["/path/to/datetime-mcp/build/index.js"]
}
}
}Usage
The server provides the following tools:
1. datetime
Get the current date and time in the user's local timezone.
Parameters: None
Example usage:
use_mcp_tool({
server_name: "datetime",
tool_name: "datetime",
})Example response:
{
"content": [
{
"type": "text",
"text": "Fri Dec 13 2025 10:30:45 GMT-0500 (Eastern Standard Time)"
}
]
}2. day_of_week
Get the day of the week for a given date in English.
Parameters:
date(string, required): Date in ISO format (YYYY-MM-DD) or DD/MM/YYYY format
Example usage:
use_mcp_tool({
server_name: "datetime",
tool_name: "day_of_week",
arguments: {
date: "2026-01-05" // or "5/1/2026"
}
})Example response:
{
"content": [
{
"type": "text",
"text": "Monday"
}
]
}3. date_diff
Calculate the difference between two dates. Returns days, weeks, months, and years.
Parameters:
start_date(string, required): Start date in ISO format (YYYY-MM-DD) or DD/MM/YYYY formatend_date(string, optional): End date in ISO format (YYYY-MM-DD) or DD/MM/YYYY format. If omitted, uses current date.
Example usage:
use_mcp_tool({
server_name: "datetime",
tool_name: "date_diff",
arguments: {
start_date: "2025-01-01",
end_date: "2026-01-01"
}
})Example response:
{
"content": [
{
"type": "text",
"text": "{\n \"days\": 365,\n \"weeks\": 52,\n \"months\": 12,\n \"years\": 1,\n \"start_date\": \"2025-01-01\",\n \"end_date\": \"2026-01-01\"\n}"
}
]
}Contributing
Feel free to submit issues and enhancement requests!
This server cannot be installed
Maintenance
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
- AlicenseCqualityDmaintenanceProvides current time and date information with timezone support and multiple formatting options. Enables AI assistants to answer time-related queries in different timezones with detailed temporal information.Last updated230MIT
- AlicenseAqualityCmaintenanceProvides LLMs with current date and time information across any timezone, with configurable defaults and support for IANA timezone identifiers.Last updated173Apache 2.0
- AlicenseAquality-maintenanceProvides AI assistants with real-time date, time, and timezone information, enabling them to access current temporal data, format dates, calculate day of week, and work with different timezones.Last updated47
- Alicense-qualityDmaintenanceProvides tools to get the current date and time in various formats (ISO, Unix timestamp, human-readable, custom) with configurable timezone support.Last updatedMIT
Related MCP Connectors
Convert and compare dates and times across any timezone with flexible, locale-aware formatting. Ad…
Timezone MCP — wraps WorldTimeAPI (free, no auth)
Keyless time/timezone: current, by IP/coords, conversion, DST, list zones.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/ryddle/datetime-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server