🚀 时间 MCP 服务器:赋予 LLM 时间感知能力
模型上下文协议 (MCP) 服务器实现允许 LLM 具有时间感知功能。
工具
current_time:获取当前时间(UTC 和本地时间)relative_time:获取相对时间get_timestamp:获取时间的时间戳days_in_month:获取月份中的天数convert_time:在时区之间转换时间get_week_year:获取一年中的第几周和第几周
Related MCP server: Time MCP Server
安装
通过 Smithery 安装
要通过Smithery自动为 Claude Desktop 安装 time-mcp:
npx -y @smithery/cli install @yokingma/time-mcp --client claude
手动安装(可选)
npm install -g time-mcp
使用 npx
npx -y time-mcp
在光标上运行
您的mcp.json文件将如下所示:
{
"mcpServers": {
"time-mcp": {
"command": "npx",
"args": ["-y", "time-mcp"]
}
}
}
在风帆冲浪中奔跑
将其添加到您的./codeium/windsurf/model_config.json文件中:
{
"mcpServers": {
"time-mcp": {
"command": "npx",
"args": ["-y", "time-mcp"]
}
}
}
执照
MIT 许可证 - 详情请参阅LICENSE文件。