本地时间获取服务
@panpeter2024
About 本地时间获取服务
为 LLM 提供了获取“当前”时间、日期、星期等信息的能力。有了它,LLM 回答“现在”、“最近”相关问题时,终于可以获得真正的“现在”——不再停留在模型训练的过去!
Basic information
Config
Add this server to your MCP-compatible client using the configuration below.
{
"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": {}
}
}
}Tools
No tools detected
We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.
Overview
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
FAQ from 本地时间获取服务
What tools does 本地时间获取服务 provide?
Five tools: get_current_date, get_current_time, get_current_weekday, get_current_timestamp, and get_current_iso_datetime.
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.
Where does the data come from?
All data comes from the local system clock. No external network or public exposure is required.
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.
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).
More Other MCP servers
🚀 Model Context Protocol (MCP) Curriculum for Beginners
microsoftThis open-source curriculum introduces the fundamentals of Model Context Protocol (MCP) through real-world, cross-language examples in .NET, Java, TypeScript, JavaScript, Rust and Python. Designed for developers, it focuses on practical techniques for building modular, scalable,
Awesome Mlops
visengerA curated list of references for MLOps
Nginx UI
0xJackyYet another WebUI for Nginx
Servers
modelcontextprotocolModel Context Protocol Servers

Sequential Thinking
modelcontextprotocolModel Context Protocol Servers
Comments