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

コメント

「その他」の他のコンテンツ