odgrim/mcp-datetime
Platform-specific configuration:
{
"mcpServers": {
"mcp-datetime": {
"command": "npx",
"args": [
"-y",
"mcp-datetime"
]
}
}
}Add the config above to .claude/settings.json under the mcpServers key.
A TypeScript implementation of a Model Context Protocol (MCP) server that provides datetime and timezone information to agentic systems and chat REPLs.
MCP DateTime is a simple server that implements the Model Context Protocol to provide datetime and timezone information to AI agents and chat interfaces. It allows AI systems to:
npm install -g mcp-datetimegit clone https://github.com/odgrmi/mcp-datetime.git
cd mcp-datetime
npm install
npm run buildMCP DateTime can be run in two modes:
This mode is ideal for integrating with AI systems that support the MCP protocol through standard input/output:
mcp-datetimeThis mode starts an HTTP server that provides SSE transport for the MCP protocol:
mcp-datetime --sseYou can also specify a custom port and URI prefix:
mcp-datetime --sse --port=8080 --prefix=/api/datetimePORT: Sets the port for SSE mode (default: 3000)URI_PREFIX: Sets the URI prefix for SSE mode (default: none)MCP DateTime provides the following tools:
get-current-timeReturns the current time in the system's local timezone.
get-current-timezoneReturns the current system timezone.
get-time-in-timezoneReturns the current time in a specified timezone.
Parameters:
timezone: The timezone to get the current time for (e.g., "America/New_York")list-timezonesReturns a list of all available timezones.
MCP DateTime also provides access to timezone information through resource URIs
Loading reviews...