MCP.so
登录

Time MCP Server by PHP

@uzulla

基本信息

分类

生产力

传输方式

stdio

作者

uzulla

关于 Time MCP Server by PHP

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

Time MCP Server by PHP 配置

使用下面的配置,将此服务器添加到你的 MCP 客户端。

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

Time MCP Server by PHP 工具

工具列表暂未提供

当前收录暂时没有可展示的工具列表,不代表服务没有工具。请查阅项目文档了解支持的能力。

点击上方按钮,在临时沙箱中运行此服务器并实时获取工具列表。

概览

What is Time MCP Server by PHP?

A PHP‑based MCP (Model Context Protocol) server that provides current time retrieval and timezone conversion using IANA timezone names. It automatically detects the system timezone and is designed for use by LLMs such as Claude.

How to use Time MCP Server by PHP?

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.

Key features of Time MCP Server by PHP

  • 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.

Use cases of Time MCP Server by PHP

  • An LLM answering “What time is it?” using the system timezone.
  • An LLM providing the current time for a specific city (e.g., “Tokyo time?”).
  • Converting a time from one timezone to another (e.g., “4 PM in New York to London”).
  • Calculating time differences between two timezones.

常见问题

1

What runtime does it require?

PHP must be installed on the system. Composer is used to install dependencies.

2

Does it store any data?

No. The server only returns live time information based on the server’s clock and timezone data.

3

How does it communicate with the MCP host?

It uses standard I/O (stdio) as the transport layer.

4

Is authentication required?

No authentication is mentioned; the server runs locally on the same machine as the MCP host.

5

Are there any known limitations?

The README does not list any limits, but the tools require valid IANA timezone names and 24‑hour format for time input.

评论

生产力 分类下的更多 MCP 服务器