get_datetimeLABSCO SUMMARY
The model stops guessing what day it is.
A language model has no clock, and the usual workaround — pasting the date into the prompt — goes stale the moment a conversation runs long. One call fixes that, and the format argument means the answer arrives ready to paste.
What it is
A datetime formatting service exposed as an MCP server. One tool takes a format name and returns the current date and time rendered that way, with timezone handled for you.
What you get
- The current date and time in a named format
- Standard and ISO forms
- Japanese-language date and datetime forms
- Compact forms meant for filenames
- Timezone handling
Requirements
Python 3.12 or later with uv and uvx; the client entry is uvx mcp-datetime. Tested on macOS — Windows compatibility has not been verified by the author.
Setup effort
One command — pip install mcp-datetime
USE CASES
Timestamping a file the assistant is about to write
Ask for the filename-safe format so the name needs no cleanup.
Getting the real current date into a conversation
Call it once and the model works from a clock instead of its training data.
Writing a date in Japanese conventions
Request the Japanese format rather than converting an ISO string by hand.
Producing an ISO timestamp for a log or an API call
Name the ISO format and paste the result straight in.
1 tool
Listed in project docs. Your client may show a different list.
BEFORE YOU INSTALL
What to know first
Tools you get
1 tool named in the project's documentation.
Requires
- uvx on PATH
- Python 3.12 or later
INSTALLATION
Connect your client
Server setup
pip install mcp-datetimeMCP Clients
Claude Desktop — uvx
{
"mcpServers": {
"mcp-datetime": {
"command": "uvx",
"args": [
"mcp-datetime"
]
}
}
}Claude Desktop — Local build
git clone https://github.com/ZeparHyfar/mcp-datetime.git
cd mcp-datetime
pip install -e .Then add this to claude_desktop_config.json:
{
"mcpServers": {
"mcp-datetime": {
"command": "python",
"args": [
"-m",
"mcp_datetime"
],
"env": {
"PYTHON": "<YOUR_PYTHON>"
}
}
}
}<YOUR_PYTHON> is your actual Python interpreter path (for example /usr/local/bin/python3) — Python 3.12 or later, the one you ran pip install with. pip install mcp-datetime installs the same package without the clone.