mcp-datetime
A MCP server for datetime formatting and file name generation.
Overview
mcp-datetime is a datetime formatting service implemented as an MCP server for the Claude Desktop Application, allowing generation of datetime strings in various formats and optimized for filename creation.
To use mcp-datetime, install the package via PyPI (pip install mcp-datetime) or clone from GitHub. Integrate it with the Claude Desktop App by adding the configuration to your claude_desktop_config.json file.
- Supports various datetime formats including standard, Japanese, and ISO formats. - Optimized formats specifically designed for file name generation. - Accurate handling of timezones. - Easy integration with the Claude Desktop App to fetch datetime.
- Generating datetime strings in different formats for logging and reporting.
- Creating filenames with timestamps for system files and logs.
- Formatting datetime outputs for applications that require localization such as in Japanese.
Add to your AI client
Use these steps to connect mcp-datetime in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.
Cursor
Add this to your .cursor/mcp.json file in your project root, then restart Cursor.
.cursor/mcp.json
{
"mcpServers": {
"mcp-datetime-zeparhyfar": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-datetime-zeparhyfar"
]
}
}
}Claude Desktop
Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.
~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
{
"mcpServers": {
"mcp-datetime-zeparhyfar": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-datetime-zeparhyfar"
]
}
}
}Claude Code
Add this to your project's .mcp.json file. Claude Code will detect it automatically.
.mcp.json (project root)
{
"mcpServers": {
"mcp-datetime-zeparhyfar": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-datetime-zeparhyfar"
]
}
}
}VS Code (Copilot)
Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.
.vscode/mcp.json
{
"servers": {
"mcp-datetime-zeparhyfar": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-datetime-zeparhyfar"
]
}
}
}Windsurf
Add this to your Windsurf MCP config file, then restart Windsurf.
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"mcp-datetime-zeparhyfar": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-datetime-zeparhyfar"
]
}
}
}Cline
Open Cline settings, navigate to MCP Servers, and add this server configuration.
Cline MCP Settings (via UI)
{
"mcpServers": {
"mcp-datetime-zeparhyfar": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-datetime-zeparhyfar"
]
}
}
}