
zeparhyfar/mcp-datetime
Data science & MLこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
zeparhyfar/mcp-datetime は [https://github.com/zeparhyfar/mcp-datetime.] からインポートされた MCP サーバーの候補です
概要
zeparhyfar/mcp-datetime は [https://github.com/zeparhyfar/mcp-datetime.] からインポートされた MCP サーバーの候補です
概要(AI 翻訳)
日本語 | English
Claudeデスクトップアプリケーション用のMCPサーバーとして実装された日時フォーマットサービス。 様々な形式の日付文字列の生成をサポートします。
**注記: このパッケージは、macOS でのみテストされています。 Windowsの互換性は確認されていません。
前提条件
mcp-datetime を使用する前に、次のツールがインストールされていることを確認してください。
- Python 3.12以降
- uv(Pythonパッケージインストーラ)
- uvx(Pythonパッケージランナー)
##特徴
- ✨ 各種日時フォーマットのサポート
- 日本語サポート
- 📁 ファイル名生成のための最適化されたフォーマット
- 正確なタイムゾーン処理
- ❀ デスクトップアプリとのシームレスな統合
# MCP サーバー コンポーネント
ツール
サーバは一つのツールを実行します。
- 必須の文字列引数として “format” を取る
- 指定された形式に基づいてフォーマットされた日時文字列を返す
- 標準、日本語、ISO フォーマットを含む複数のフォーマットのタイプを支えて下さい
Claudeデスクトップアプリでの使用
設定ファイルに以下を追加します。
ファイルの場所 (macOS): 設定
[~/Library/Application Support/Claude/claude_desktop_config.json]
インストールについて
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。
README
以下は原文 README の抜粋です。原文を見る。
mcp-datetime
English | 日本語
A datetime formatting service implemented as an MCP server for the Claude Desktop Application. Supports generation of datetime strings in various formats.
Note: Day-to-day use is on macOS. Automated tests also run on Linux and Windows.
Prerequisites
Before using mcp-datetime, ensure you have the following tools installed:
- uv (provides
uvx). uvx downloads a suitable Python (3.10 or later) if needed.
Features
- ✨ Support for various datetime formats
- 🇯🇵 Japanese language support, including Japanese era (wareki) and weekday
- 🧩 Custom format patterns that work the same on macOS, Linux and Windows
- 📁 Optimized formats for filename generation
- 🌏 Any IANA timezone (
Asia/Tokyo,UTC,America/New_York, …) - 🔧 Seamless integration with Claude Desktop App
MCP Server Components
Tools
The server implements four tools:
get_datetime: Get current date and time in various formatsformat(required): a format name (see Supported Formats) or a custom pattern containing%(see Custom Patterns)timezone(optional): an IANA timezone name such asAsia/Tokyo,UTCorAmerica/New_York. When omitted, the local timezone of the machine is used- Returns formatted datetime string based on specified format
convert_time: Convert a time or date-time between timezonestime(required),target_timezone(required),source_timezone(optional, local by default),format(optional,datetimeby default)- Returns both sides with timezone, UTC offset and weekday, plus the time difference. Adds a note when the time is skipped or repeated by a daylight saving time change
shift_datetime: Add or subtract time (negative numbers for the past)years,months,weeks,days,hours,minutes,seconds, and optionalbase(now by default),timezone,format- Months and years keep the end of the month in range (2024-01-31 + 1 month = 2024-02-29). Days keep the wall time; hours are elapsed time
get_datetime_info: Details of a date-time and its difference from another- Optional
datetime(now by default),reference(now by default),timezone
- Optional
インストール
uvx mcp-datetime設定
{
"mcpServers": {
"mcp-datetime": {
"command": "uvx",
"args": ["mcp-datetime"]
}
}
}