本地时间获取服务
@panpeter2024
关于 本地时间获取服务
为 LLM 提供了获取“当前”时间、日期、星期等信息的能力。有了它,LLM 回答“现在”、“最近”相关问题时,终于可以获得真正的“现在”——不再停留在模型训练的过去!
基本信息
配置
使用下面的配置,将此服务器添加到你的 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": {}
}
}
}工具
未检测到工具
工具是从 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
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).
其他 分类下的更多 MCP 服务器
Core Philosophy: Connect, Unify, Respond
mindsdbDelegate anything. It comes back done.
Reactive Resume
amruthpillaiA one-of-a-kind resume builder that keeps your privacy in mind. Completely secure, customizable, portable, open-source and free forever. Try it out today!
Mcp
browsermcpBrowser MCP is a Model Context Provider (MCP) server that allows AI applications to control your browser
Blender
ahujasidOpen-source MCP to use Blender with any LLM
MCP Toolbox for Databases
googleapisMCP Toolbox for Databases is an open source MCP server for databases.
评论