
Time Mcp Server
io.github.lchinglen由 GitHub 账号 lchinglen 发布v1.0.3更新于 Oct 24, 2026
MCP server for timezone conversions and time queries with support for IANA timezones
概览
本地 MCP 服务器,让助手查询任意 IANA 时区的当前时间,并在时区之间转换时间。
- 可以做什么
- 按指定的 IANA 时区或自动检测的系统时区获取当前时间,响应中包含夏令时状态和偏移信息。将给定的 24 小时制时间从源时区转换为目标时区,返回两地的本地时间及时差。
- 适用场景
- 适合涉及某地当前时间、跨地区安排日程,或把某一时区的指定时间换算到另一时区的提问。它只是一个单一用途的小型补充,而非通用工具服务器。
- 运行要求
- 以本地进程通过 stdio 运行。需要 Python 环境并通过 pip 安装该包,或用 uv/uvx 免安装直接运行;文档也提供了 Docker 镜像方式。未声明需要账号、API 密钥或请求头。系统时区会自动检测,也可通过本地时区参数覆盖。
安装
在 SourceWeft 中
- 打开 控制台中的 Time Mcp Server,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
Time MCP Server
A Model Context Protocol server that provides time and timezone conversion capabilities. This server enables LLMs to get current time information and perform timezone conversions using IANA timezone names, with automatic system timezone detection.
Available Tools
-
get_current_time- Get current time in a specific timezone or system timezone.- Required arguments:
timezone(string): IANA timezone name (e.g., 'America/New_York', 'Europe/London')
- Required arguments:
-
convert_time- Convert time between timezones.- Required arguments:
source_timezone(string): Source IANA timezone nametime(string): Time in 24-hour format (HH:MM)target_timezone(string): Target IANA timezone name
- Required arguments:
Installation
Using uv (recommended)
When using uv no specific installation is needed. We will
use uvx to directly run mcp-server-time.
Using PIP
Alternatively you can install mcp-server-time via pip:
After installation, you can run it as a script using:
Configuration
Configure for Claude.app
Add to your Claude settings:
Using uvx
Using docker
Using pip installation
Configure for Zed
Add to your Zed settings.json:
Using uvx
Using pip installation
Configure for VS Code
For quick installation, use one of the one-click install buttons below...
[Install with UV in VS Code] [Install with UV in VS Code Insiders]
[Install with Docker in VS Code] [Install with Docker in VS Code Insiders]
For manual installation, add the following JSON block to your User Settings (JSON) file in VS Code. You can do this by pressing Ctrl + Shift + P and typing Preferences: Open User Settings (JSON).
Optionally, you can add it to a file called .vscode/mcp.json in your workspace. This will allow you to share the configuration with others.
Note that the
mcpkey is needed when using themcp.jsonfile.
Using uvx
Using Docker
Configure for Zencoder
- Go to the Zencoder menu (...)
- From the dropdown menu, select
Agent Tools - Click on the
Add Custom MCP - Add the name and server configuration from below, and make sure to hit the
Installbutton
Using uvx
Customization - System Timezone
By default, the server automatically detects your system's timezone. You can override this by adding the argument --local-timezone to the args list in the configuration.
Example:
Example Interactions
- Get current time:
Response:
- Convert time between timezones:
Response:
Debugging
You can use the MCP inspector to debug the server. For uvx installations:
Or if you've installed the package in a specific directory or are developing on it:
Examples of Questions for Claude
- "What time is it now?" (will use system timezone)
- "What time is it in Tokyo?"
- "When it's 4 PM in New York, what time is it in London?"
- "Convert 9:30 AM Tokyo time to New York time"
Build
Docker build:
Contributing
We encourage contributions to help expand and improve mcp-server-time. Whether you want to add new time-related tools, enhance existing functionality, or improve documentation, your input is valuable.
For examples of other MCP servers and implementation patterns, see: https://github.com/modelcontextprotocol/servers
Pull requests are welcome! Feel free to contribute new ideas, bug fixes, or enhancements to make mcp-server-time even more powerful and useful.
License
mcp-server-time is licensed under the MIT License. This means you are free to use, modify, and distribute the software, subject to the terms and conditions of the MIT License. For more details, please see the LICENSE file in the project repository.
来源:README.md,提交 b0f5cbb
工具
0版本历史
1- v1.0.3最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分