Skip to main content
Glama

🚀 时间 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文件。

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/yokingma/time-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server