MCP.so
登录

Time MCP Server

@sidharthrajaram

基本信息

分类

生产力

传输方式

stdio

作者

sidharthrajaram

关于 Time MCP Server

mcp server for the time and date

#time-mcp#mcp-server#time-and-date

Time MCP Server 配置

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

{
  "mcpServers": {
    "time": {
      "command": "uv",
      "args": [
        "--directory",
        "/ABSOLUTE/PATH/TO/PARENT/FOLDER/time-mcp",
        "run",
        "time_mcp_server.py"
      ]
    }
  }
}

Time MCP Server 工具

工具列表暂未提供

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

工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。

概览

What is Time-MCP?

Time-MCP is a Model Context Protocol server that enables agents to retrieve the current date and time via two tools, get_datetime and get_current_unix_timestamp. It is designed for agents that need to know the current time in any timezone or the current UNIX timestamp.

How to use Time-MCP?

For Claude Desktop, add the server to claude_desktop_config.json using uv with the path to time_mcp_server.py. For custom clients (or Linux), implement an STDIO‑based client following the official MCP client tutorial and use time_mcp_server.py as the server.

Key features of Time-MCP

  • Returns current date and time in a specified timezone (defaults to UTC)
  • Provides the current UNIX timestamp
  • Lightweight, single‑file Python server
  • STDIO transport for easy integration
  • Works with Claude Desktop and custom clients
  • Requires only Python and uv

Use cases of Time-MCP

  • Answering “what time is it?” in a given timezone
  • Calculating time offsets for future weather forecasts
  • Timestamping agent actions or events
  • Supporting time‑dependent task scheduling

常见问题

1

What tools does Time-MCP provide?

It provides two tools: `get_datetime` returns the current date and time in a specified timezone (UTC if none), and `get_current_unix_timestamp` returns the current UNIX timestamp.

2

What dependencies does Time-MCP require?

The server requires Python and the `uv` package manager. It is a single Python script.

3

How do I set up Time-MCP in Claude Desktop?

Add a `"time"` entry to the `mcpServers` section of `claude_desktop_config.json` with the command `uv` and arguments pointing to the `time_mcp_server.py` file. The full path to `uv` may be needed.

4

What transport does Time-MCP use?

Time-MCP uses STDIO transport, the standard for MCP servers.

5

Can I use Time-MCP with a custom client?

Yes. Implement an STDIO‑based MCP client (following the official example tutorial) and connect it to `time_mcp_server.py` instead of the example weather server.

评论

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