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年の完全なデータを収録(全振替出勤日を含む)

  • ✅ 2つのツール: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 → 年間スケジュール

サンプルQ&A

  • 2026-02-14 → 「春節の振替出勤日、出勤が必要」

  • 2026-10-05 → 「国慶節の休暇、合計7日間」

  • 2026-03-10 → 「通常の平日」

ロードマップ(Pro版)

  • 旧暦/こよみ/二十四節気(万年暦)

  • 2027年以降のデータ(公式発表次第更新)

  • 企業向けシフトAPI、サブスクリプション制(HTTP + token)

  • 多言語の祝日

English

cn-holiday-mcp は、中国の祝日と振替出勤日(调休)のためのゼロ依存のMCPサーバーです。国務院の公式通知に基づき2025〜2026年をカバー。APIキー不要、ネットワーク呼び出し不要、完全オフライン。

ツール

  • query_holiday — 指定した日付(YYYY-MM-DD)が祝日か、振替出勤日か、通常の平日かを判定

  • list_holidays — 振替出勤日を含む年間スケジュールを一覧表示

実行

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

インストール — Claude Desktop の claude_desktop_config.json:

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

ロードマップ — 旧暦/二十四節気;2027年以降のスケジュール;企業向けシフトAPI(サブスクリプション);他国対応

ライセンス

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