datetime-toolkit
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
datetime-toolkit MCP Server
一个纯本地、零配置、无需任何 API Key 的日期时间 MCP 工具集。所有计算基于 Python 标准库 zoneinfo,不读取本地文件、不访问网络,因此可以安全地提交到 MCP 目录并被托管平台审核通过。
提供的工具(8 个)
工具 | 说明 |
| 获取指定时区的当前时间 |
| 时区转换,如北京时间转纽约时间 |
| Unix 时间戳转可读时间 |
| 时间字符串转 Unix 时间戳 |
| 日期加减 |
| 计算两个日期相差天数 |
| 查询某天是星期几 |
| 按关键字搜索 IANA 时区名 |
tz 参数留空时默认 Asia/Shanghai,可通过环境变量 DATETIME_TOOLKIT_TZ 修改。
Related MCP server: @mcpx-digital/timezone
本地安装与运行
pip install -r requirements.txt
# stdio 模式(供 Claude Desktop / Cursor / Trae 等本地客户端使用)
python server.py
# streamable-http 模式(供远程访问 / 托管平台使用)
set MCP_TRANSPORT=streamable-http # Windows
# export MCP_TRANSPORT=streamable-http # macOS/Linux
python server.py
# 服务地址:http://127.0.0.1:8000/mcp客户端配置
stdio 方式(claude_desktop_config.json / .cursor/mcp.json):
{
"mcpServers": {
"datetime-toolkit": {
"command": "python",
"args": ["绝对路径/server.py"]
}
}
}streamable-http 方式:
{
"mcpServers": {
"datetime-toolkit": {
"url": "http://127.0.0.1:8000/mcp"
}
}
}Docker
docker build -t datetime-toolkit-mcp .
docker run -i --rm -p 8000:8000 datetime-toolkit-mcp发布到 MCP 目录
本项目已包含提交所需的全部文件:
server.py— 服务入口requirements.txt— 依赖声明README.md— 本说明chatmcp.yaml— 托管配置(MCP.so / ChatMCP)Dockerfile— 容器化部署LICENSE— MIT 许可证(商业友好,符合托管要求)
提交到 mcp.so
把本目录推送到你的 GitHub 仓库(
https://github.com/xiaohuo12/datetime-toolkit-mcp)填入仓库 URL,平台会自动抓取名称、描述、工具和配置
核对信息后提交,等待审核(审核周期可能较长)
审核通过后,你的服务会出现在 MCP Playground 中
审核慢的替代平台
MCP.so 审核较慢时,同一套仓库可以直接提交到这些目录/市场,流程类似:
Glama MCP:https://glama.ai/mcp/servers — 支持 GitHub 仓库直接导入,审核较快
Smithery:https://smithery.ai/ — 面向 Claude/Cursor,支持 stdio 与远程部署
PulseMCP:https://www.pulsemcp.com/servers — 社区目录,提交入口在站内
MCP 广场(魔搭 ModelScope):https://www.modelscope.cn/mcp — 国内平台,支持托管
官方 MCP Registry:https://registry.modelcontextprotocol.io/ — 官方注册表,可同时提交
提示:这些平台大多读取同一份
README.md和仓库元数据,因此把 README 写清楚能显著提高收录通过率。
许可证
MIT — 见 LICENSE。
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Get the current time in your chosen timezone and view common timezone information. Simplify schedu…
Get the current time in any timezone and quickly look up common timezone info. Set a default timez…
Get the current time in any timezone. Explore concise timezone info to pick the right region. Simp…
Convert and compare dates and times across any timezone with flexible, locale-aware formatting. Ad…
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables timezone conversion, astronomical calculations, and date utilities through natural language, supporting sunrise/sunset, moon phases, business days, and more.923 npm1ISC
- AlicenseBqualityCmaintenanceEnables converting moments between IANA zones, answering what time it is in one place when it’s a given time in another, and finding overlapping meeting windows for multiple participants’ work hours, all locally via date-fns-tz/Intl.4MIT
- AlicenseNot gradedqualityBmaintenanceEnables agents to get the current time in any IANA timezone and convert clock times between timezones, with daylight-saving changes handled automatically.55 npmMIT
- AlicenseAqualityBmaintenanceEnables users to look up current local times in cities worldwide, compare times across multiple locations, convert times between cities, and resolve ambiguous city names to IANA time zones, all offline without API keys.4MIT