MCP.so
登录
本

本地时间获取服务 MCP Server

@panpeter2024

基本信息

分类

其他

传输方式

stdio

作者

panpeter2024

提交者

Liping Pan

关于 本地时间获取服务 MCP Server

为 LLM 提供了获取“当前”时间、日期、星期等信息的能力。有了它,LLM 回答“现在”、“最近”相关问题时,终于可以获得真正的“现在”——不再停留在模型训练的过去!

#date-server#time-service#local-time

本地时间获取服务 MCP Server 配置

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

{
  "mcpServers": {
    "dateserver": {
      "command": "python",
      "args": [
        "server_date.py"
      ],
      "setup": [
        "python -m venv venv",
        "venv\\Scripts\\activate || source venv/bin/activate",
        "pip install -r requirements.txt"
      ],
      "env": {}
    }
  }
}

本地时间获取服务 MCP Server 工具

工具列表暂未提供

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

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

概览

What is 本地时间获取服务?

本地时间获取服务 is a FastMCP-based local date and time tool service that supports the MCP protocol. It runs locally and can be called by MCP clients such as Cherry Studio to retrieve current date, time, weekday, timestamp, and ISO datetime information.

How to use 本地时间获取服务?

Requires Python 3.8+ with a virtual environment. Clone the repository, install the fastmcp dependency, and run server_date.py. In Cherry Studio, configure a new MCP service with SSE transport at http://127.0.0.1:9000/sse and leave authentication blank.

Key features of 本地时间获取服务

  • Provides current date in YYYY-MM-DD format
  • Provides current time in HH:MM:SS format
  • Returns weekday name in Chinese
  • Returns current Unix timestamp in seconds
  • Returns current date and time in ISO 8601 format

Use cases of 本地时间获取服务

  • Get the current local date and time from an MCP client
  • Retrieve the current weekday in Chinese for scheduling applications
  • Obtain Unix timestamps for logging or scripting tasks
  • Use ISO datetime strings for record-keeping or integration

常见问题

1

What tools does 本地时间获取服务 provide?

Five tools: `get_current_date`, `get_current_time`, `get_current_weekday`, `get_current_timestamp`, and `get_current_iso_datetime`.

2

How do I install and run 本地时间获取服务?

Clone the repository, create a Python virtual environment, install `fastmcp` via pip, and run `server_date.py`. The server listens on port 9000 with SSE transport.

3

Where does the data come from?

All data comes from the local system clock. No external network or public exposure is required.

4

How do I configure this MCP server in Cherry Studio?

Create a new MCP service named "本地日期服务" with SSE transport, address `http://127.0.0.1:9000/sse`, and leave the auth/Key field empty.

5

How do I stop or restart 本地时间获取服务?

Stop the process using `kill` on macOS/Linux or by closing the terminal/ending the Python process on Windows. Logs can be viewed via `tail -f mcp.log` (macOS/Linux) or `type mcp.log` (Windows).

评论

其他 分类下的更多 MCP 服务器