mcp-time-server-hsy
一个最小可用的 MCP Server,提供 get_current_time 工具,
支持可选的 IANA 时区参数。
安装
pip install mcp-time-server-hsy
使用
默认以 streamable-http 传输启动(监听 http://127.0.0.1:8000/mcp):
mcp-time-server-hsy
以 stdio 传输启动(供 Trae / Claude Desktop 等客户端以子进程方式拉起):
# Linux / macOS
MCP_TRANSPORT=stdio mcp-time-server-hsy
# Windows PowerShell
$env:MCP_TRANSPORT="stdio"; mcp-time-server-hsy
工具
get_current_time(timezone: str | None = None) -> str
返回当前时间,格式为 YYYY-MM-DD HH:MM:SS.SSSSSS 时区名称。
timezone省略时返回服务器本地时间- 传入非法时区名时返回
isError: true及可读的错误信息
示例返回:
2026-11-30 21:48:07.123456 CST
客户端配置示例
{
"mcpServers": {
"time-server": {
"command": "mcp-time-server-hsy",
"env": { "MCP_TRANSPORT": "stdio" }
}
}
}
License
MIT
Metadata
Release files for mcp-time-server-hsy 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| mcp_time_server_hsy-0.1.0.tar.gz | 3.3 kB | Without provenance | Details for mcp_time_server_hsy-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mcp_time_server_hsy-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for mcp_time_server_hsy-0.1.0-py3-none-any.whl |
Total release size: 7.9 kB
Release files / mcp_time_server_hsy-0.1.0.tar.gz
| Download URL | mcp_time_server_hsy-0.1.0.tar.gz |
|---|---|
| Size | 3.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1def17e87508890bad88bf8b0b5f17438cff6a1b68194162cef09ebdab01ab21
|
|
BLAKE2b-256 checksum How to use checksums |
8039c2c88643b64992604e4ce187df0b363231e9047b037c2f1ea9cae453a950
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.5.2 CPython/3.15.2 Windows/11
|
Release files / mcp_time_server_hsy-0.1.0-py3-none-any.whl
| Download URL | mcp_time_server_hsy-0.1.0-py3-none-any.whl |
|---|---|
| Size | 4.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b14139b25fc2743749e9f81a4c1a13bfba403a9257f4e6aac28cde924e78d305
|
|
BLAKE2b-256 checksum How to use checksums |
c8cffc0cdd26d88d8e889346ae4e9d1ef4de5d259f39105ccde9ed0952ff3003
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.5.2 CPython/3.15.2 Windows/11
|
Security for mcp-time-server-hsy 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.