時間MCPサーバー
時刻とタイムゾーンの変換機能を提供するモデルコンテキストプロトコルサーバー。このサーバーにより、LLMは現在の時刻情報を取得し、IANAタイムゾーン名を使用してタイムゾーン変換を実行できます。また、システムによるタイムゾーンの自動検出も可能です。
利用可能なツール
get_current_time
- 特定のタイムゾーンまたはシステムタイムゾーンの現在の時刻を取得します。- 必要な引数:
timezone
(文字列): IANAタイムゾーン名(例: 'America/New_York'、'Europe/London')
- 必要な引数:
convert_time
- タイムゾーン間で時間を変換します。- 必要な引数:
source_timezone
(文字列): ソースIANAタイムゾーン名time
(文字列): 24時間形式の時刻 (HH:MM)target_timezone
(文字列): ターゲットのIANAタイムゾーン名
- 必要な引数:
インストール
uvの使用(推奨)
uv
を使用する場合、特別なインストールは必要ありません。uvx uvx
使用してmcp-server-timeを直接実行します。
PIPの使用
あるいは、pip 経由でtime-mcp-local
をインストールすることもできます。
インストール後、次のコマンドを使用してスクリプトとして実行できます。
構成
Claude.app 用に設定する
Claude 設定に追加:
Zed用の設定
Zed のsettings.jsonに追加します:
カスタマイズ - システムタイムゾーン
デフォルトでは、サーバーはシステムのタイムゾーンを自動的に検出します。設定args
の引数リストに--local-timezone
引数を追加することで、この設定を上書きできます。
例:
やり取りの例
- 現在の時刻を取得します:
応答:
- タイムゾーン間の時間を変換します:
応答:
デバッグ
MCPインスペクタを使用してサーバーをデバッグできます。UVXインストールの場合:
または、パッケージを特定のディレクトリにインストールした場合や、そのディレクトリで開発している場合は、次のようにします。
クロードへの質問例
- 「今何時ですか?」(システムのタイムゾーンを使用します)
- 「東京は何時ですか?」
- 「ニューヨークが午後4時のとき、ロンドンは何時ですか?」
- 「東京時間午前9時30分をニューヨーク時間に変換」
建てる
You must be authenticated.
local-only server
The server can only run on the client's local machine because it depends on local resources.
時間とタイムゾーンの変換機能を提供するモデル コンテキスト プロトコル サーバー。LLM が現在の時間情報を取得し、IANA タイムゾーン名を使用してタイムゾーン変換を実行できるようになります。
Related Resources
Related MCP Servers
- AsecurityAlicenseAqualityA Model Context Protocol server that provides LLM Agents with a comprehensive toolset for IP geolocation, network diagnostics, system monitoring, cryptographic operations, and QR code generation.Last updated -1634TypeScriptApache 2.0
- AsecurityAlicenseAqualityA Model Context Protocol server that gives LLMs the ability to interact with Ethereum networks, manage wallets, query blockchain data, and execute smart contract operations through a standardized interface.Last updated -313232TypeScriptMIT License
- AsecurityAlicenseAqualityA Model Context Protocol server that provides basic mathematical and statistical functions to LLMs, enabling them to perform accurate numerical calculations through a simple API.Last updated -1313TypeScriptMIT License
- -securityFlicense-qualityA Model Context Protocol server that connects LLMs to the Compiler Explorer API, enabling them to compile code, explore compiler features, and analyze optimizations across different compilers and languages.Last updated -Python