Skip to main content
Glama
cn-holiday-mcp

cn-holiday-mcp

by qianwei2333

cn-holiday-mcp

中国法定节假日与调休查询的 MCP(Model Context Protocol)服务器,零依赖、离线可用、开箱即用。

数据来源:国务院办公厅《关于 2025 年部分节假日安排的通知》《关于 2026 年部分节假日安排的通知》(国办发明电)。

特性

  • ✅ 零依赖:纯 Node.js 标准库,node >= 18 直接跑

  • ✅ stdio 传输,符合 MCP 2024-11-05 协议

  • ✅ 收录 2025、2026 两年完整数据(含全部调休上班日)

  • ✅ 两个工具:query_holiday(查某天)、list_holidays(列全年)

Related MCP server: taiwan-holiday-mcp

快速开始

node src/server.mjs          # 直接运行
npm start                    # 或通过 npm script
node tests/smoke.mjs         # 冒烟测试

接入 Claude Desktop

编辑 claude_desktop_config.json:

{
  "mcpServers": {
    "cn-holiday": {
      "command": "node",
      "args": ["C:\\path\\to\\cn-holiday-mcp\\src\\server.mjs"]
    }
  }
}

工具

工具

参数

示例

query_holiday

date:YYYY-MM-DD

2026-02-17 → 春节假期

list_holidays

year:年份(可省)

2026 → 全年安排

示例问答

  • 2026-02-14 → 「春节的调休上班日,需要上班」

  • 2026-10-05 → 「国庆节假期,共 7 天」

  • 2026-03-10 → 「普通工作日」

路线图(Pro 版)

  • 农历/黄历/节气(万年历)

  • 2027 年及以后数据(官方发布即更新)

  • 企业排班 API、订阅制(HTTP + token)

  • 多国节假日

English

cn-holiday-mcp is a zero-dependency MCP server for Chinese public holidays and makeup workdays (调休), covering 2025–2026 per official State Council notices. No API keys, no network calls, fully offline.

Tools

  • query_holiday — is a given date (YYYY-MM-DD) a public holiday, a makeup workday, or a regular working day?

  • list_holidays — full yearly schedule including makeup workdays.

Run

node src/server.mjs   # Node.js >= 18, nothing to install

Install — Claude Desktop claude_desktop_config.json:

{
  "mcpServers": {
    "cn-holiday": {
      "command": "node",
      "args": ["C:\\path\\to\\cn-holiday-mcp\\src\\server.mjs"]
    }
  }
}

Roadmap — lunar calendar / solar terms; 2027+ schedules; enterprise scheduling API (subscription); more countries.

License

MIT

Available Tools

2 tools
list_holidaysA

列出某一年(或全部已收录年份)的法定节假日安排,包括放假区间、天数与调休上班日。

Inputs: year.

query_holidayA

查询某一天(YYYY-MM-DD)是法定节假日、调休上班日还是普通工作日。返回节假日名称、放假区间和该区间内的调休上班日。

Inputs: date (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.9/5.0

    Scored across 2 tools

    Disambiguation5/5

    query_holiday targets a single specific date while list_holidays returns full annual arrangements, so their purposes are clearly distinct. There is no practical overlap that would cause an agent to misselect.

    Naming Consistency5/5

    Both tool names follow a consistent verb_noun pattern: query_holiday and list_holidays. The only minor difference is singular versus plural noun, which is natural and does not harm consistency.

    Tool Count3/5

    Two tools is slightly thin, but each tool earns its place for the server's narrow read-only purpose. It falls at the borderline edge of the typical 3-15 tool range.

    Completeness4/5

    The server covers the core holiday use cases: checking a specific day and listing a year's holiday schedule. Minor gaps exist, such as date-range lookups or upcoming-holiday queries, but they are workable conveniences rather than critical dead ends.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      B
      quality
      D
      maintenance
      A Taiwan holiday query server based on Model Context Protocol (MCP), providing accurate information on scheduled holidays and make-up working days, supporting multiple query methods and integration with AI tools.
      3
      2
      Apache 2.0
    • A
      license
      A
      quality
      D
      maintenance
      A Taiwan holiday query server based on the Model Context Protocol, providing accurate Taiwan public holiday and compensatory work day information.
      3
      15 npm
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      An MCP server providing A-share market data tools (daily OHLCV, real-time quotes, financials, northbound capital flow, sector lists) with zero dependencies, also serving as a template for building custom MCP servers.
      2
      MIT