English | 日本語 A datetime formatting service implemented as an MCP server for the Claude Desktop Application. Supports generation of datetime strings in various formats. Before using mcp-datetime, ensure you have the following tools installed: - Python 3.12 or later - uv (Python package installer) - uvx (Python package runner) - ✨ Support for various datetime formats - 🇯🇵 Japanese language suppor
Add this skill
npx mdskills install ZeparHyfar/mcp-datetimeWell-documented MCP server providing datetime formatting with comprehensive format support
1# mcp-datetime23[](https://www.python.org/downloads/)4[](https://github.com/anaisbetts/mcp)5[](LICENSE)67English | [日本語](README_ja.md)89A datetime formatting service implemented as an MCP server for the Claude Desktop Application. Supports generation of datetime strings in various formats.1011> **Note**: This package has been tested only on macOS. Windows compatibility has not been verified.1213## Prerequisites1415Before using mcp-datetime, ensure you have the following tools installed:1617- Python 3.12 or later18- uv (Python package installer)19- uvx (Python package runner)2021## Features2223- ✨ Support for various datetime formats24- 🇯🇵 Japanese language support25- 📁 Optimized formats for filename generation26- 🌏 Accurate timezone handling27- 🔧 Seamless integration with Claude Desktop App2829## MCP Server Components3031### Tools3233The server implements one tool:3435- `get_datetime`: Get current date and time in various formats36 - Takes "format" as a required string argument37 - Returns formatted datetime string based on specified format38 - Supports multiple format types including standard, Japanese, and ISO formats3940## Usage with Claude Desktop App4142Add the following to your config file:4344Config file location (macOS):45`~/Library/Application Support/Claude/claude_desktop_config.json`4647```json48{49 "mcpServers": {50 "mcp-datetime": {51 "command": "uvx",52 "args": ["mcp-datetime"]53 }54 }55}56```5758## About Installation5960If you need to install the package directly (e.g., for development or source code inspection), you can use one of these methods:6162- Install from PyPI6364 ```bash65 pip install mcp-datetime66 ```6768- Install from GitHub Source6970 ```bash71 git clone https://github.com/ZeparHyfar/mcp-datetime.git72 cd mcp-datetime73 pip install -e .74 ```7576- Example `claude_desktop_config.json` for manual installation7778 ```json79 {80 "mcpServers": {81 "mcp-datetime": {82 "command": "python",83 "args": ["-m", "mcp_datetime"],84 "env": {85 "PYTHON": "/path/to/your/python"86 }87 }88 }89 }90 ```9192 Replace "/path/to/your/python" with your actual Python interpreter path93 > e.g., "/usr/local/bin/python3" or "/Users/username/.pyenv/versions/3.12.0/bin/python3"9495## Basic Examples9697- Command format9899 ```100 # Standard datetime format101 call datetime-service.get_datetime {"format": "datetime"}102 # Result: 2024-12-10 00:54:01103104 # Japanese format105 call datetime-service.get_datetime {"format": "datetime_jp"}106 # Result: 2024年12月10日 00時54分01秒107108 # Filename format109 call datetime-service.get_datetime {"format": "filename_md"}110 # Result: 20241210005401.md111 ```112113- Claude Desktop App prompt examples114115 - User116117 ```118 Please tell me the current time in date_slash format119 ```120121 - Claude122123 ```124 I'll get the current date in date_slash format.125126 The current date is 2024/12/12127 ```128129## Supported Formats130131| Format Name | Example | Description |132| ------------ | --------------------------- | ---------------------------- |133| date | 2024-12-10 | Standard date format |134| date_slash | 2024/12/10 | Date with slashes |135| date_jp | 2024年12月10日 | Japanese date format |136| datetime | 2024-12-10 00:54:01 | Standard datetime |137| datetime_jp | 2024年12月10日 00時54分01秒 | Japanese datetime |138| datetime_t | 2024-12-10T00:54:01 | DateTime with T separator |139| compact | 20241210005401 | Compact format for IDs |140| compact_date | 20241210 | Compact date only |141| compact_time | 005401 | Compact time only |142| filename_md | 20241210005401.md | Markdown filename |143| filename_txt | 20241210005401.txt | Text filename |144| filename_log | 20241210005401.log | Log filename |145| iso | 2024-12-10T00:54:01+0900 | ISO 8601 format |146| iso_basic | 20241210T005401+0900 | Basic ISO format |147| log | 2024-12-10 00:54:01.123456 | Log format with microseconds |148| log_compact | 20241210_005401 | Compact log format |149| time | 00:54:01 | Time only |150| time_jp | 00時54分01秒 | Japanese time format |151152## Debugging153154Since MCP servers run over stdio, debugging can be challenging. We recommend using the [MCP Inspector](https://github.com/modelcontextprotocol/inspector):155156- Using PyPI package157158 ```159 npx @modelcontextprotocol/inspector uvx mcp-datetime160 ```161162- Using downloaded source code from GitHub163164 ```165 git clone https://github.com/ZeparHyfar/mcp-datetime.git166 npx @modelcontextprotocol/inspector uvx --directory ./mcp-datetime run mcp-datetime167 ```168169## License170171This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.172
Full transparency — inspect the skill content before installing.