Time MCP Server by PHP

by uzulla

13 stars
423 downloads
Not rated
GitHub

About

A PHP sample implementation of an MCP (Model Context Protocol) server for retrieving time information.

Details

Author
uzulla
GitHub stars
13
Downloads
423
Categories
Productivity

- get_current_time tool: returns the current time in a given IANA timezone.
- convert_time tool: converts a time between two IANA timezones.
- Automatic system timezone detection.
- Customizable local timezone via command‑line argument.
- Debugging support with the MCP inspector.

Setting up with Highlight

This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:

  1. Download and install Highlight from highlightai.com/download
  2. Navigate to the plugins tab and select "Add Custom Plugin"
  3. Configure the plugin with the settings below
    Plugin Name Time MCP Server by PHP
    Command (node, npx, python, etc.)

    Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.

  4. Enable "Start Automatically" if you want the plugin to start when Highlight launches

From the repository

Clone the repository, run composer install, then configure your MCP host (e.g., Claude.app or Zed) to execute php /path/to/bin/time-server. Optionally pass --local-timezone=Zone to override the system timezone.

Claude Desktop / Cursor

Paste into your MCP client config file to install this server.

{
    "mcpServers": {
        "time mcp server by php": {
            "mcp-time-php": {
                "command": "npx",
                "args": [
                    "@modelcontextprotocol/inspector",
                    "./bin/time-server"
                ]
            }
        }
    }
}

McpServers

{
    "mcp-time-php": {
        "command": "npx",
        "args": [
            "@modelcontextprotocol/inspector",
            "./bin/time-server"
        ]
    }
}

Time MCP Server by PHP

PHPで実装されたMCP(モデルコンテキストプロトコルサーバー)で、時刻とタイムゾーン変換機能を提供します。

このサーバーは、LLMがIANAタイムゾーン名を使用して現在の時刻情報を取得し、タイムゾーン変換を実行できるようにし、システムタイムゾーンを自動検出します。

work with claude desktop

利用可能なツール

- get_current_time - 特定のタイムゾーンまたはシステムタイムゾーンでの現在時刻を取得します。
- 必須引数:
- timezone (文字列): IANAタイムゾーン名(例: 'America/New_York'、'Europe/London')

- convert_time - タイムゾーン間で時刻を変換します。
- 必須引数:
- source_timezone (文字列): 元のIANAタイムゾーン名
- time (文字列): 24時間形式(HH:MM)の時間
- target_timezone (文字列): 変換先のIANAタイムゾーン名

インストール

```bash

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.