Feedback

Time and Workdays (Timor API) MCP Server

@tanranv5 Claim

Basic information

Runtime
JavaScript
Version
1.0.0
Category
License
MIT
Transports
stdio
Author
tanranv5
Submitted by
Community
Quality
10
Stars
3

About Time and Workdays (Timor API) MCP Server

Integrate real-time workday and hour calculations with Timor API. Simplify scheduling using our workday calculator for accurate business planning.

Time and Workdays (Timor API) is a MCP server in the Productivity category listed in the AddMCP.net directory, published by tanranv5. It exposes 2 tools, including get_current_time, get_workdays_from_api. Supported transport: stdio. Runtime: JavaScript. License: MIT. The repository has 3 GitHub stars. Source code is hosted on github.com. Related topics: community, mcp, node, productivity, time.

Setup

{
    "mcpServers": {
        "time-and-workdays-node": {
            "command": "npx",
            "args": [
                "mcp-time-workdays-node"
            ],
            "env": []
        }
    }
}

Time and Workdays (Timor API) MCP Server config

Add this server to your MCP-compatible client using the configuration below.

{
    "mcpServers": {
        "time-and-workdays-node": {
            "command": "npx",
            "args": [
                "mcp-time-workdays-node"
            ],
            "env": []
        }
    }
}

Time and Workdays (Timor API) MCP Server tools

  • get_current_time — 获取指定时区的当前时间(支持自定义格式)
  • get_workdays_from_api — 获取某月官方工作日与补班(支持 timor 与 nate 提供方)

Overview

What is Time and Workdays (Timor API)?

A Model Context Protocol (MCP) Node.js server that provides current time in a specified timezone with custom formatting, and retrieves official workdays, holidays, and makeup workdays for a given year/month using free online data sources (Timor and NateScarlet holiday-cn, no API key required). Designed for MCP-compatible clients like Claude Desktop.

How to use Time and Workdays (Timor API)?

Requires Node.js >= 18.17. Install globally via npm install -g mcp-time-workdays-node or run directly with npx mcp-time-workdays-node. Configure as an MCP server in your client's config (e.g., claude_desktop_config.json) using the command npx mcp-time-workdays-node. The server exposes two tools: get_current_time and get_workdays_from_api, both communicating via stdio.

Key features of Time and Workdays (Timor API)

  • Two tools: get current time (any timezone, custom format) and query workdays/holidays by year/month
  • Two free online data sources: Timor (default) and NateScarlet holiday-cn (with CDN fallback)
  • Unified output as MCP text content for strict client compatibility
  • Requires only Node 18+ and the MCP SDK; no API keys or extra dependencies

Use cases of Time and Workdays (Timor API)

  • Display the current time in any IANA timezone with custom formatting
  • Retrieve Chinese official workdays, holidays, and makeup workdays for a specific month/year
  • Integrate time and workday queries into an MCP client for automation or productivity

Frequently asked questions

1 Why is the output always `text` type?

To improve MCP client compatibility, the server returns all tool results as text content (JSON string for workdays, plain text for time).

2 How does the `tz` parameter affect workday calculation?

The tz parameter only determines the default year/month when those arguments are omitted; it does not affect the workday logic itself (which uses local/official rules).

3 What does the `timeout` parameter do?

It sets the HTTP request timeout in seconds. Increase it if network fluctuations cause timeouts when fetching holiday data.

Comments

No comments yet

Be the first to share feedback about this listing. Sign in to leave a comment.

Sign In

Feedback 💬