Formats the current date and time in many formats and generates date-based file names.
Setup
Choose your client, copy the config, then fill in any required environment variables.
claude mcp add datetime --env PYTHON='<PYTHON>' -- uvx mcp-datetime~/.codex/config.toml
[mcp_servers.datetime]
command = "uvx"
args = ["mcp-datetime"]
env = { PYTHON = "<PYTHON>" }
# codex mcp add datetime --env PYTHON='<PYTHON>' -- uvx mcp-datetime~/.cursor/mcp.json
{
"mcpServers": {
"datetime": {
"command": "uvx",
"args": [
"mcp-datetime"
],
"env": {
"PYTHON": "<PYTHON>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"datetime": {
"type": "stdio",
"command": "uvx",
"args": [
"mcp-datetime"
],
"env": {
"PYTHON": "<PYTHON>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"datetime": {
"command": "uvx",
"args": [
"mcp-datetime"
],
"env": {
"PYTHON": "<PYTHON>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"datetime": {
"command": "uvx",
"args": [
"mcp-datetime"
],
"env": {
"PYTHON": "<PYTHON>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"datetime": {
"command": "uvx",
"args": [
"mcp-datetime"
],
"env": {
"PYTHON": "<PYTHON>"
}
}
}
}Environment variables
PYTHON
Replace the placeholders with your own credentials and keep them out of version control.