Oleafly is a live collaborative LaTeX, Typst and Markdown editor for research that offers a local MCP server and an oleafly mcp stdio command so outside AI clients can use its project tools.

Node MCP server for time and Chinese workday data
A Node-based Model Context Protocol server that returns the current time in a chosen timezone and retrieves official workdays, holidays and makeup workdays for a given year and month from online data sources.
WHAT IT DOES
- •Offers a get_current_time tool that takes a timezone (IANA name or local) and a format string, returning the time as text.
- •Offers a get_workdays_from_api tool taking year, month, timezone, provider and timeout, returning a JSON text with provider, year, month, workdays, holidays and makeup_workdays.
- •Supports two free online data sources: Timor's yearly aggregate API by default and NateScarlet holiday-cn via GitHub Raw with a CDN fallback.
- •Computes workdays as all weekdays in the month minus official holidays plus official makeup weekend days.
BEST FOR
- •Checking the current time in a specific timezone with a custom format through an MCP client.
- •Determining the official working days, holidays and makeup workdays for a given year and month in China.
- •Choosing between data providers for workday lookups, with Timor as default or Nate as fallback.
ABOUT TIME-AND-WORKDAYS-TIMOR-API
Node MCP server for time and Chinese workday data is cataloged as an MCP server attributed to tanranv5. A Node-based Model Context Protocol server that returns the current time in a chosen timezone and retrieves official workdays, holidays and makeup workdays for a given year and month from online data sources. It is categorized under productivity work. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.
HOW TO INSTALL
Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.
LICENSE
Catalog license label: Not specified. Check the source repository's current license and terms before using, modifying or distributing this software.
能力检查器
能力定义尚未审核。未核验的采集内容不会作为可信接口展示。
Tools (0)
暂无可展示的已审核记录。这不表示上游不支持此能力。
Resources (0)
暂无可展示的已审核记录。这不表示上游不支持此能力。
Prompts (0)
暂无可展示的已审核记录。这不表示上游不支持此能力。
Newsletter subscriptions are not open yet
Email delivery is not connected. This page does not collect email addresses or create subscriptions.
Browse the registry for current listings instead.
Community Reviews
Reviews for Node MCP server for time and Chinese workday data are not available yet
Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.
FREQUENTLY ASKED QUESTIONS
Which data providers can be used for workday lookups?
Timor's yearly aggregate API is the default, and NateScarlet holiday-cn via GitHub Raw with a CDN fallback is supported as a free alternative; no API key is required.
Does the timezone parameter affect workday calculation?
No; the tz parameter only affects determining the default year and month, not the workday calculation itself.
What content type do tool outputs use?
Tool outputs are uniformly returned as MCP text content, either a JSON string or plain text, for client compatibility.
上游原版 README
README.md · 66c31db859e4 · 采集于 2026-11-13 08:17:58 UTC
保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。
当前显示最后一次成功采集的文档快照,请以来源页面为准。
MCP Time & Workdays (Node)
提供一个基于 Model Context Protocol (MCP) 的 Node 服务器:
- 获取指定时区的当前时间(可自定义格式)
- 获取某年某月的官方工作日、假期与补班(多数据源)
默认在线数据源为 Timor 年聚合接口,额外支持 NateScarlet holiday-cn(GitHub Raw)作为免费备选,无需 API Key。
特性
- 在线数据源(免费):
- Timor 年聚合接口(默认)
- NateScarlet holiday-cn(GitHub Raw,内置 CDN 兜底)
- 统一输出:工作日(
workdays)、假期(holidays)、补班(makeup_workdays) - 工具输出统一封装为 MCP
text内容,兼容严格客户端 - Node 18+ 原生运行,无需额外依赖(除 MCP SDK)
环境与安装
- 要求:Node.js >= 18.17
方式一:NPX(推荐)
# 全局安装
npm install -g mcp-time-workdays-node
# 或直接使用 npx
npx mcp-time-workdays-node
方式二:本地开发
# 克隆项目
git clone https://github.com/tanranv5/mcp_time_workdays_node.git
cd mcp-time-workdays-node
# 安装依赖
npm install
# 运行服务器
node mcp_time_workdays_node.mjs
# 或
npm start
提示:本项目
package.json已设定type: module与最小依赖@modelcontextprotocol/sdk。
MCP 工具
服务器启动后会通过 stdio 暴露以下工具:
get_current_time
- 输入:
tz:IANA 时区名或local(默认local)fmt:时间格式,默认%Y-%m-%d %H:%M:%S%z
- 输出:
text(字符串) - 示例输出:
2025-09-10 10:30:45+08:00
get_workdays_from_api
- 输入:
year:整数(默认当前年)month:1-12(默认当前月)tz:local或 IANA 时区名(默认local,仅用于获取“当前年月”)provider:timor(默认)或natetimeout:超时秒数(默认8.0)
- 输出:
text(JSON 字符串):provider, year, month, workdays[], holidays[], makeup_workdays[]
- 逻辑:
- 工作日 = “当月所有周一至周五 - 官方假期 + 官方补班周末”
例:手动调用(模拟 MCP 客户端逻辑)
以下展示从命令行模拟调用的方式(仅示例):
# 获取 2025-10 月(Timor)
node -e "(async()=>{const s=await import('./mcp_time_workdays_node.mjs');})();" \
| echo '{"method":"tools/call","params":{"name":"get_workdays_from_api","arguments":{"year":2025,"month":10,"provider":"timor"}}}'
实际使用中,请让 MCP 兼容的客户端(如 Claude Desktop)通过 stdio 连接。
客户端配置示例(Claude Desktop)
NPX 方式(推荐)
在 claude_desktop_config.json(或等效位置)中添加:
{
"mcpServers": {
"time-and-workdays-node": {
"command": "npx",
"args": ["mcp-time-workdays-node"],
"env": {}
}
}
}
本地开发方式
{
"mcpServers": {
"time-and-workdays-node": {
"command": "node",
"args": ["/absolute/path/to/mcp_time_workdays_node.mjs"],
"env": {}
}
}
}
数据源说明
-
timor(默认):- 年聚合接口:
https://timor.tech/api/holiday/year/{year} - 响应字段包含
holiday映射:{ 'MM-DD': { date, holiday, name, ... } } - 使用方式:从映射中过滤当月项;
holiday=true视为放假;holiday=false且name包含“补班”视为补班
- 年聚合接口:
-
nate:- 年文件(GitHub Raw):
https://raw.githubusercontent.com/NateScarlet/holiday-cn/master/{year}.json - 内置 CDN 兜底:
https://cdn.jsdelivr.net/gh/NateScarlet/holiday-cn@master/{year}.json days[]内isOffDay=true为放假;isOffDay=false若对应周末则视为补班
- 年文件(GitHub Raw):
备注:不推荐用于“补班”判断的数据源(例如 Nager.Date)未内置。
常见问题
- 输出是
text:为提升 MCP 客户端兼容性,本服务统一返回text类型内容(JSON 字符串或纯文本)。 - 时区参数
tz:仅影响“默认年月”的判定,不影响工作日计算(工作日按本地/官方规则计算)。 - 超时
timeout:单位秒。网络波动时可适当增大。
致谢
- Timor 年聚合接口:https://timor.tech/
- NateScarlet holiday-cn:https://github.com/NateScarlet/holiday-cn
- Model Context Protocol:https://github.com/modelcontextprotocol
如需把 CLI 也加入 npm bin 或增加更多数据源(例如带 Key 的商业 API),欢迎提 Issue/PR。
Install configuration
Claim this server with your GitHub account to request manual ownership verification.
Link to the catalog listing for Node MCP server for time and Chinese workday data from your README. This badge does not certify ownership, compatibility or security.
[](https://awesome-mcp.com/servers/time-and-workdays-timor-api)REPOSITORY STATS
Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.
下载与拉取统计
来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。
尚无已审核的包 / 镜像标识,暂不展示下载统计。
Related productivity work MCP Servers
Alternative and complementary servers in the same category
Buddy is an Android app that offers its phone tools through a local MCP server to Claude Code, Codex, OpenCode, Antigravity, and Grok sessions.

Tuqui is a hosted MCP server that connects Odoo with Claude and ChatGPT so users can ask about sales, stock, customers and overdue invoices in plain language.

