MCP.so
登录

Time MCP Server已精选

@modelcontextprotocol

基本信息

分类

生产力

许可证

NOASSERTION

传输方式

stdio

作者

modelcontextprotocol

提交者

孙文志

关于 Time MCP Server

Model Context Protocol Servers

Time MCP Server 配置

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

{
  "mcpServers": {
    "time": {
      "command": "uvx",
      "args": [
        "mcp-server-time",
        "--local-timezone=America/New_York"
      ]
    }
  }
}

Time MCP Server 工具

2

Get current time in a specific timezone

Convert time between timezones

概览

What is Time?

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

How to use Time?

Install via uvx mcp-server-time, pip install mcp-server-time, or Docker. Configure the server in your MCP client (Claude, Zed, VS Code, Zencoder) using the appropriate command. Use the get_current_time tool with a timezone argument, or the convert_time tool with source timezone, time, and target timezone arguments. Optionally set a custom system timezone with the --local-timezone argument.

Key features of Time

  • Get current time in any IANA timezone.
  • Convert time between two timezones.
  • Automatic system timezone detection.
  • Customizable local timezone via --local-timezone.
  • Compatible with Claude, Zed, VS Code, and Zencoder.
  • Available via uvx, pip, or Docker.

Use cases of Time

  • LLM answering "What time is it now?" (uses system timezone).
  • LLM answering "What time is it in Tokyo?".
  • Converting times for global scheduling ("When 4 PM New York is in London").
  • Checking if daylight saving time is active for a given timezone.

常见问题

1

What tools does the Time MCP server provide?

It provides `get_current_time` to get the current time in a specific timezone, and `convert_time` to convert a time between two timezones.

2

How do I set a custom local timezone?

Add the `--local-timezone` argument to the server command, e.g., `--local-timezone=America/New_York`.

3

How can I install the Time MCP server?

Install via `uvx mcp-server-time` (no separate installation needed), `pip install mcp-server-time`, or by using the Docker image `mcp/time`.

4

How do I debug the Time MCP server?

Use the MCP inspector: run `npx @modelcontextprotocol/inspector uvx mcp-server-time`.

5

What timezone format does the server accept?

The server uses IANA timezone names, for example `America/New_York` or `Europe/London`.

评论

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