Skip to main content
Glama
cn-holiday-mcp

cn-holiday-mcp

by qianwei2333

cn-holiday-mcp

Ein MCP-Server (Model Context Protocol) zur Abfrage chinesischer gesetzlicher Feiertage und Ausgleichsarbeitstage – ohne Abhängigkeiten, offline nutzbar und sofort einsatzbereit.

Datenquelle: Mitteilungen des Büros des Staatsrats über die Anordnung der Feiertage im Jahr 2025 und im Jahr 2026 (国办发明电).

Funktionen

  • ✅ Keine Abhängigkeiten: pure Node.js-Standardbibliothek, läuft direkt mit node >= 18

  • ✅ stdio-Transport, konform mit dem MCP-Protokoll 2024-11-05

  • ✅ Vollständige Daten für 2025 und 2026 (einschließlich aller Ausgleichsarbeitstage)

  • ✅ Zwei Werkzeuge: query_holiday (bestimmten Tag abfragen), list_holidays (das ganze Jahr auflisten)

Related MCP server: taiwan-holiday-mcp

Schnellstart

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

Anbindung an Claude Desktop

claude_desktop_config.json bearbeiten:

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

Werkzeuge

Werkzeug

Parameter

Beispiel

query_holiday

date: YYYY-MM-DD

2026-02-17 → „Feiertage zum Frühlingsfest“

list_holidays

year: Jahr (optional)

2026 → Gesamtplan für das Jahr

Beispielfragen und Antworten

  • 2026-02-14 → „Ausgleichsarbeitstag zum Frühlingsfest, Arbeit erforderlich“

  • 2026-10-05 → „Feiertage zum Nationalfeiertag, insgesamt 7 Tage“

  • 2026-03-10 → „normaler Arbeitstag“

Roadmap (Pro-Version)

  • Mondkalender / Almanach / Solarterme (Ewiger Kalender)

  • Daten ab 2027 (Aktualisierung nach offizieller Veröffentlichung)

  • Unternehmens-Schichtplanungs-API, Abo-Modell (HTTP + token)

  • Feiertage in mehreren Ländern

Englisch

cn-holiday-mcp ist ein MCP-Server ohne Abhängigkeiten für chinesische gesetzliche Feiertage und Ausgleichsarbeitstage (调休) gemäß den offiziellen Bekanntmachungen des Staatsrats für den Zeitraum 2025–2026. Keine API-Schlüssel, keine Netzwerkaufrufe, vollständig offline.

Werkzeuge

  • query_holiday – prüft, ob ein bestimmtes Datum (YYYY-MM-DD) ein gesetzlicher Feiertag, ein Ausgleichsarbeitstag oder ein normaler Werktag ist.

  • list_holidays – vollständiger Jahresplan einschließlich Ausgleichsarbeitstagen.

Ausführen

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

Installation – Claude Desktop claude_desktop_config.json:

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

Roadmap – Mondkalender / Solarterme; Zeitpläne ab 2027+; Schichtplanungs-API für Unternehmen (Abo); weitere Länder.

Lizenz

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