Labsco
Taki-Ta logo

Time MCP Server

1

from Taki-Ta

Provides the current time using IANA timezone names, with automatic system timezone detection.

🔥🔥✓ VerifiedFreeQuick setup

Time MCP Server

基于官方MCP项目修改
原作者:Mariusz 'maledorak' Korzekwa
原仓库:modelcontextprotocol/servers
原项目路径:src/time

A Model Context Protocol server that provides time capabilities. This server enables LLMs to get current time information using IANA timezone names, with automatic system timezone detection.

注意: 此版本已移除时区转换功能,仅保留获取当前时间功能。

Available Tools

  • get_current_time - Get current time in a specific timezone or system timezone.
    • Required arguments:
      • timezone (string): IANA timezone name (e.g., 'America/New_York', 'Europe/London')

Example Interactions

  1. Get current time:
{
  "name": "get_current_time",
  "arguments": {
    "timezone": "Asia/Shanghai"
  }
}

Response:

{
  "timezone": "Asia/Shanghai",
  "datetime": "2024-01-01T20:00:00+08:00",
  "is_dst": false
}

Debugging

You can use the MCP inspector to debug the server. For uvx installations:

npx @modelcontextprotocol/inspector uvx mcp-server-time

Or if you've installed the package in a specific directory or are developing on it:

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

Examples of Questions for Claude

  1. "What time is it now?" (will use system timezone)
  2. "What time is it in Tokyo?"
  3. "What time is it in New York?"
  4. "Get the current time in London"

Build

Docker build:

cd src/time
docker build -t mcp/time .

Docker build with SSE support:

cd time
docker build -f Dockerfile.sse -t mcp-time-sse .