Skip to main content
Glama

Time MCP Server

by ConechoAI

時間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をインストールすることもできます。

pip install time-mcp-local

インストール後、次のコマンドを使用してスクリプトとして実行できます。

python -m time-mcp-local

構成

Claude.app 用に設定する

Claude 設定に追加:

"mcpServers": { "time": { "command": "uvx", "args": ["time-mcp-local"] } }
"mcpServers": { "time": { "command": "python", "args": ["-m", "time_mcp_local"] } }

Zed用の設定

Zed のsettings.jsonに追加します:

"context_servers": [ "mcp-server-time": { "command": "uvx", "args": ["time-mcp-local"] } ],
"context_servers": { "mcp-server-time": { "command": "python", "args": ["-m", "time_mcp_local"] } },

カスタマイズ - システムタイムゾーン

デフォルトでは、サーバーはシステムのタイムゾーンを自動的に検出します。設定argsの引数リストに--local-timezone引数を追加することで、この設定を上書きできます。

例:

{ "command": "python", "args": ["-m", "time_mcp_local", "--local-timezone=America/New_York"] }

やり取りの例

  1. 現在の時刻を取得します:
{ "name": "get_current_time", "arguments": { "timezone": "Europe/Warsaw" } }

応答:

{ "timezone": "Europe/Warsaw", "datetime": "2024-01-01T13:00:00+01:00", "is_dst": false }
  1. タイムゾーン間の時間を変換します:
{ "name": "convert_time", "arguments": { "source_timezone": "America/New_York", "time": "16:30", "target_timezone": "Asia/Tokyo" } }

応答:

{ "source": { "timezone": "America/New_York", "datetime": "2024-01-01T12:30:00-05:00", "is_dst": false }, "target": { "timezone": "Asia/Tokyo", "datetime": "2024-01-01T12:30:00+09:00", "is_dst": false }, "time_difference": "+13.0h", }

デバッグ

MCPインスペクタを使用してサーバーをデバッグできます。UVXインストールの場合:

npx @modelcontextprotocol/inspector uvx time-mcp-local

または、パッケージを特定のディレクトリにインストールした場合や、そのディレクトリで開発している場合は、次のようにします。

cd path/to/servers/src/time npx @modelcontextprotocol/inspector uv run time-mcp-local

クロードへの質問例

  1. 「今何時ですか?」(システムのタイムゾーンを使用します)
  2. 「東京は何時ですか?」
  3. 「ニューヨークが午後4時のとき、ロンドンは何時ですか?」
  4. 「東京時間午前9時30分をニューヨーク時間に変換」

建てる

uv build --wheel uv publish --token xxx

You must be authenticated.

A
security – no known vulnerabilities
F
license - not found
A
quality - confirmed to work

local-only server

The server can only run on the client's local machine because it depends on local resources.

時間とタイムゾーンの変換機能を提供するモデル コンテキスト プロトコル サーバー。LLM が現在の時間情報を取得し、IANA タイムゾーン名を使用してタイムゾーン変換を実行できるようになります。

  1. 利用可能なツール
    1. インストール
      1. uvの使用(推奨)
      2. PIPの使用
    2. 構成
      1. Claude.app 用に設定する
      2. Zed用の設定
      3. カスタマイズ - システムタイムゾーン
    3. やり取りの例
      1. デバッグ
        1. クロードへの質問例
          1. 建てる

            Related MCP Servers

            • A
              security
              A
              license
              A
              quality
              A 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 -
              16
              3
              4
              TypeScript
              Apache 2.0
            • A
              security
              A
              license
              A
              quality
              A 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 -
              31
              323
              2
              TypeScript
              MIT License
            • A
              security
              A
              license
              A
              quality
              A 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 -
              13
              13
              TypeScript
              MIT License
            • -
              security
              F
              license
              -
              quality
              A 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

            View all related MCP servers

            MCP directory API

            We provide all the information about MCP servers via our MCP API.

            curl -X GET 'https://glama.ai/api/mcp/v1/servers/ConechoAI/time-mcp-local'

            If you have feedback or need assistance with the MCP directory API, please join our Discord server