swiss-school-calendar-mcp
🇨🇭 Swiss Public Data MCP Portfolio の一部
これは個人プロジェクトです。雇用主や所属機関とは独立しており、いかなる機関の公式見解を代表するものではありません。
📅 swiss-holidays-mcp
AIエージェント向けのスイスの祝日カレンダー — 全26州の祝日・学校休暇・ロングウィークエンドを、州間比較付きで提供します。学校休暇はSchulart(学校種別)ごとに区別されており、これは一見した以上に重要です。APIキーは不要です。
概要
swiss-holidays-mcp は、Claude のようなAIアシスタント向けのスイスの祝日カレンダーです — 全26州の祝日・学校休暇・ロングウィークエンドを、APIキー不要で提供します。祝日は州ごとに異なります(Berchtoldstag、Fronleichnam などは連邦の最低基準だけでなく、州によって異なります)。学校休暇は州レベル、場合によっては地区レベルで設定され、6つの州では学校種別ごとに別々に設定されています。単一の連邦カレンダーは存在しないため、州境をまたいで計画を立てる人は、そうでなければ26ページのPDFを開くことになります。
このサーバーは2つのテーマ群をカバーしています: 祝日 / ロングウィークエンド と 学校休暇(Schulart による区別付き)。各テーマ群は、目的に特化したツール群に対応しており、生の機関データをクリーンで出典タグ付きのJSONレスポンスに変換します。すべてのデータは OpenHolidays API(CC BY 4.0)と Nager.Date(MIT)から取得されます。
記憶の手掛かり: スイスの学校データにおける重複は、たいてい変装した学校種別である。 基盤となるAPIは、州が学校種別で区別する場合、同じ休暇期間を複数回公開します。これは重複データのように見え、素朴な重複排除を誘発します — しかしそれは、まさに学校当局が必要とする区別を破壊してしまいます。
アンカーデモクエリ: 「2026年のどの週に、チューリッヒ、ツーク、アールガウの義務教育学校が同時に休みになりますか — そして各ペアは何日重なりますか?」
→ これは1つの会話で find_common_free_window、compare_school_holidays、list_school_types を実行し、州間調整の計画サイクルごとに繰り返される質問に答えます。
→ 対象者別のユースケース →
デモ
Related MCP server: swiss-courts-mcp
機能
🏫 学校休暇 — 州と日付範囲ごとの期間、Schulart(
VS/MS/BS/EO)で区別🎌 祝日 — 連邦の最低基準だけでなく、州ごとの祝日セット(Berchtoldstag など)
🔍 日付チェック — 指定した日付が州の学校休暇または祝日かどうか?
🔗 州間比較 — 州間の祝日日数のペアワイズ重複マトリックス
🪟 共通の空き期間 — リストされたすべての州が同時に休みになる日付範囲
🌉 ロングウィークエンド & ブリッジデー — 連邦の祝日から計算(Nager.Date)
🏘️ 地方・自治体の祝日 — チューリッヒの Sechseläuten や Knabenschiessen などの地区・自治体レベルの固有事項。
scopeマーカー付きで、州全体のものと誤認されることはありません📆 iCal / ICS エクスポート — ある州の1年分の祝日を、インポート可能な
.icsカレンダーとして🔖 祝日フィードリソース — Markdown サマリー付きの
holidays://<canton>/<year>MCP リソース📌 「今日は祝日?」 — 日常的な質問のためのワンコールの便利機能
🩺 ソースの健全性 — 両アップストリームの到達可能性とレイテンシ、常に評価可能
🔑 認証不要 — 両データソースは公開アクセス可能
☁️ デュアルトランスポート — Claude Desktop 用の stdio、クラウドデプロイ用の Streamable HTTP/SSE
🧾 すべてのレスポンスに出典情報 —
live_api|cached|degraded、黙って空のリストを返すことはありません
データソース
ソース | データ | ライセンス |
州、Schularten、学校休暇、祝日 | CC BY 4.0 | |
ロングウィークエンドと必要なブリッジデー | MIT |
両ソースは公開アクセス可能で、認証は不要です。 帰属表示が必要: OpenHolidays(CC BY 4.0)と Nager.Date は、そのデータを使用する際にソースとして引用する必要があります。
ツール
ツール | 目的 | データソース |
| ISOコードと公用語付きの26州 | OpenHolidays |
| 州ごとのSchulartグループ( | OpenHolidays |
| 1つの州と日付範囲の学校休暇 | OpenHolidays |
| 1つの州と年の祝日 | OpenHolidays |
| 1つの自治体または地区の祝日(地域固有のものを含む) | OpenHolidays |
| 指定した日付は学校休暇または祝日か? | OpenHolidays |
| 州間のペアワイズ重複マトリックス | OpenHolidays |
| リストされたすべての州が休みになる期間 | OpenHolidays |
| 次に来る休暇期間 | OpenHolidays |
| ロングウィークエンドと必要なブリッジデー | Nager.Date |
| ある州の1年分の祝日を iCalendar( | OpenHolidays |
| 今日は州の学校休暇または祝日か? | OpenHolidays |
| 両アップストリームの到達可能性とレイテンシ | 組み込み |
リソース
リソースURI | 内容 |
| すべての祝日 + 学校休暇の Markdown サマリー、例: |
すべてのツールは完全なアノテーションセットを備えています — readOnlyHint: true、destructiveHint: false、idempotentHint: true、openWorldHint: true(外部APIに到達します)。どのツールもどこにも書き込みません。入力はスキーマ検証されます(州コードは既知の26州に対して、日付は YYYY-MM-DD 形式、year は範囲制限、language/school_type はホワイトリスト)。
ユースケース例
クエリ | ツール |
「州はどれくらいあり、そのコードは何ですか?」 |
|
「2026年春のチューリッヒの義務教育学校の休暇を表示」 |
|
「2026年4月3日はティチーノ州の祝日ですか?」 |
|
「今年、チューリッヒとツークの学校休暇は重なりますか?」 |
|
「ZH、ZG、AG がすべて同時に学校を休める週はいつですか?」 |
|
「バーゼル=シュタットの学校の次の休暇はいつですか?」 |
|
「2026年のロングウィークエンドはいつで、どのブリッジデーが必要ですか?」 |
|
「チューリッヒ市だけが祝う、州の他の地域では祝わない地方の祝日はどれですか?」 |
|
「チューリッヒの2026年の祝日をインポート可能な .ics カレンダーとしてエクスポート」 |
|
「今日はアールガウ州で祝日ですか?」 |
|
🛡️ 安全性と制限
側面 | 詳細 |
アクセス | 読み取り専用( |
個人データ | 個人データなし — すべてのソースは集約された公開の祝日カレンダーです |
キャッシュ | 12時間のインメモリTTL(祝日テーブルは年に数回しか変更されません) |
リトライ | 指数バックオフ 2秒 / 4秒 / 8秒; 429 以外の 4xx はリトライされません |
タイムアウト | API呼び出しあたり20秒(ヘルスプローブは8秒) |
認証 | APIキー不要 — 両アップストリームは公開アクセス可能 |
劣化 | アップストリームの障害時は説明付きの |
利用規約 | 各データソースの利用規約に従います: OpenHolidays、Nager.Date |
アーキテクチャ
このサーバーは**アーキテクチャA(ライブAPIのみ、インメモリキャッシュ付き)**を使用しています。
┌──────────────────────────┐
Claude / any ───▶│ swiss-holidays-mcp │
MCP host │ (MCPServer · 13 tools) │
└────────┬─────────────────┘
│ retry 2s/4s/8s · 12h cache
┌────────┴─────────┐
▼ ▼
OpenHolidays API Nager.Date
(CC BY 4.0) (MIT)
cantons · Schularten long weekends
school + public bridge days根拠(2026-07-19にライブ検証済み):
文書化された10の OpenHolidays エンドポイントすべてが、妥当なペイロードで HTTP 200 を返しました;
/Subdivisions?countryIsoCode=CHは公式数と一致する正確に26州を返します。ビルド時に公開バルクダンプを検証できませんでした(
openpotato/openholidays.dataの raw アクセスが 404 を返したため)、そのためアーキテクチャBは利用できませんでした。祝日テーブルは年に数回しか変更されないため、12時間のインメモリTTLで、鮮度を損なうことなくアップストリームの負荷をほぼすべて除去できます。
結果:
すべてのレスポンスに
provenance(live_api|cached|degraded)が含まれます。アップストリームの障害時は、説明付きの
noteを含むdegradedエンベロープを返し、黙って空のリストを返すことはありません。source_statusは常に評価可能なヘルスレポートを返します。
ライブプローブの調査結果(2026-07-19)
エンドポイント | HTTP | ステータス | レコード数 | 備考 |
| 200 | ✅ 動作 | 36 | |
| 200 | ✅ 動作 | 26 | 公式のカントン数と一致 |
| 200 | ✅ 動作 | 11 | Schulart グループ、6カントンのみ |
| 200 | ✅ 動作 | 39 | カントンレベルの範囲を含む |
| 200 | ✅ 動作 | 193 | 学校種別で分割後は183件 |
| 200 | ✅ 動作 | – | |
| 200 | ⚠️ 黙って空を返す | 0 | 無効な国コード ≠ エラー |
| 200 | ⚠️ 黙って英語にフォールバック | 26 | 無効な言語コード ≠ エラー |
| 400 | ✅ 正しいエラー | – | RFC 9110 problem+json |
Nager | 200 | ✅ 動作 | 33 | 29行に |
Nager | 200 | ✅ 動作 | 3 | |
Nager | 404 | ✅ 正しいエラー | – | OpenHolidays より厳格 |
判明している所見
重複に見えるものは学校種別である。 チューリッヒは Frühlingsferien 2026 を2回返す。1回は
CH-ZH-VS(Volksschulen、Recommendedタグ付き)、もう1回はCH-ZH-BS+CH-ZH-MS(Berufsfach- および Mittelschulen)用である。重複排除ではなくschool_typeパラメータ(VS/MS/BS/EO)を使用すること。学校種別で区別するのは6カントンのみ(AI、AR、BE、GR、SO、ZH)。それ以外では
groupsは存在せず、1つのテーブルがすべてをカバーする。したがってフィルタは、groupsフィールドが存在しない場合を「すべてに適用」として扱う。サブディビジョンコードはレベルが混在する。 レコードに
CH-AI-APやCH-BE-TH-BLが含まれる場合がある。常にCH-XXプレフィックスで照合し、文字列の完全一致に依存してはならない。空のリストは回答ではない。 未知の国コードまたはカントンコードは HTTP 200 と
[]を返す。このサーバーは説明用のnoteを設定し、「祝日なし」と「不正なフィルタ」を区別できるようにしている。
前提条件
Python 3.10 以上
uv / uvx(推奨)または pip
インターネット接続(両APIは公開されている)
インストール
uv の uvx で実行 — クローンや手動インストールは不要:
uvx swiss-holidays-mcp開発
git clone https://github.com/malkreide/swiss-holidays-mcp
cd swiss-holidays-mcp
pip install -e ".[dev]"設定
Claude Desktop
claude_desktop_config.json に追加:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"swiss-holidays": {
"command": "uvx",
"args": ["swiss-holidays-mcp"]
}
}
}Claude Desktop を再起動 — サーバーは初回使用時に自動的に起動する。
クラウドデプロイ(ブラウザアクセス用 SSE / Streamable HTTP)
claude.ai をブラウザで使用する場合(例: ローカルソフトウェアをインストールできない管理対象ワークステーション):
MCP_TRANSPORT=sse PORT=8000 python -m swiss_holidays_mcpSDK は SSE を /sse で公開する(/mcp ではない)。
変数 | デフォルト | 説明 |
|
| トランスポート: |
|
| HTTP トランスポート用ポート |
|
| HTTP トランスポートのバインドアドレス。デフォルトはループバック。 |
| (空) | ブラウザクライアント用の追加 CORS オリジン(カンマ区切り)(監査 SDK-004)。ループバックオリジンは常に許可。UI が配信される公開オリジンを追加すること(例: |
HTTP トランスポートは、Mcp-Session-Id ヘッダーを公開する明示的な CORS レイヤーを追加する。これによりブラウザの MCP クライアントがセッション ID を読み取り、後続のリクエストを行える。許可リストがワイルドカードになることはない。
ロードバランサーの背後で複数の HTTP インスタンスを実行する場合、Mcp-Session-Id をキーにしたスティッキーセッションが必要 — nginx/Traefik/Kubernetes の例は docs/scaling.md を参照。単一インスタンス(一般的なケース)ではアフィニティ設定は不要。
💡 「開発者ノートPCには stdio、ブラウザには SSE。」
プロジェクト構造
swiss-holidays-mcp/
├── src/
│ └── swiss_holidays_mcp/
│ ├── __init__.py # Package init
│ ├── __main__.py # Entry point: stdio / SSE / Streamable HTTP
│ ├── server.py # MCPServer: lifespan, 13 tools, 1 resource, op_* logic
│ ├── client.py # Shared HTTP client: retry, 12h cache, egress guard
│ ├── guard.py # Egress / SSRF guard (HTTPS + allow-list + IP blocklist)
│ ├── pinning.py # DNS-pinning transport (TOCTOU-free connect, SEC-005)
│ ├── ical.py # RFC 5545 iCalendar (.ics) writer
│ ├── settings.py # Pydantic-Settings config (loopback default)
│ ├── logging_setup.py # Structured logging to stderr
│ ├── constants.py # Canton codes, Schulart suffixes, API bases, allow-list
│ └── models.py # Pydantic v2 response envelopes
├── tests/
│ ├── conftest.py # respx fixtures
│ ├── test_tools.py # Tool unit tests (mocked, no network)
│ ├── test_resilience.py # Degradation / retry / cache behaviour
│ └── test_live.py # Live smoke tests (marker: live)
├── docs/ # roadmap.md, security.md, network-egress.md
├── deploy/ # Network-layer egress manifests (Cilium / NetworkPolicy)
├── audits/ # mcp-audit run artifacts
├── Dockerfile # Non-root multi-stage container
├── .github/
│ ├── dependabot.yml # Weekly dependency / action update PRs
│ └── workflows/ # ci.yml, live-tests.yml, publish.yml
├── pyproject.toml
├── CHANGELOG.md
├── CONTRIBUTING.md # Contributing guide (English)
├── CONTRIBUTING.de.md # Contributing guide (German)
├── SECURITY.md # Security policy (English)
├── SECURITY.de.md # Security policy (German)
├── EXAMPLES.md # Use cases by audience
├── server.json # MCP registry manifest
├── LICENSE
├── README.md # This file (English)
└── README.de.md # German version単一ファイルの server.py について(監査 ARCH-011)。 13個のツールは意図的に tools/ パッケージではなく1つのモジュールに置かれている。各ツールは、トランスポートに依存しない op_* オペレーションに対する薄く均一なラッパー(@mcp.tool → @_safe_tool → op_*)であり、すべてのオペレーションは同じ小さなヘルパー群(_to_period、_matches_school_type、_require_known_canton など)と単一の HolidayClient を共有する。これらを複数ファイルに分割すると、共有コアが散らばり、分離の利点なしにインポートが重複する — ファイルは均一にセクション分けされ(エイリアス → ヘルパー → op_* ロジック → ツールラッパー → リソース)、すべての op_* はトランスポートなしで直接ユニットテストされる。tools/ への分割は、フェーズ2でツール数が実質的に増えた場合のみ計画されている。
ライフサイクルフェーズ
このサーバーは**フェーズ1(読み取り専用)**にある — すべてのツールは読み取り専用で、認証なし、副作用なし。13ツールの予算(推奨最大15〜20のうち)はまだ余裕を残している。チューリッヒの Sechseläuten や Knabenschiessen を含む地方自治体・市区町村レベルの詳細は、get_local_holidays を介して OpenHolidays から直接カバーされる(ライブプローブにより、これらが上流で Gemeinde レベルで公開されていることが確認された)。したがって、別途の市区町村データソースは不要である。
MCP プリミティブとプロトコルバージョン
プリミティブ — ツール + リソース。 13個のツールは冪等で副作用のない
GETである。リソースは安定した URI フィード(holidays://<canton>/<year>)を公開し、クライアントはツール呼び出しなしでカントンのカレンダーをキャッシュ可能なコンテキストとして読み取れる。繰り返しのテンプレート化されたワークフローはないため、プロンプトは使用されない(変更があれば再検討)。MCP プロトコルバージョン — 2つの時代。
mcp2.x は同じサーバー上で両方を提供し、接続上のクライアントの最初のリクエストがどちらが適用されるかを決定する:initializeハンドシェイクは2025-11-25で上限となり、リクエストごとのエンベロープは2026-07-28に達する。source_statusはそのうちの1つをmcp_protocol_versionフィールドに表示する — 単一の文字列では両方を名指しできない — そしてハンドシェイクの上限を表示する。なぜなら、それがinitialize経由でこのサーバーに到達するクライアントが実際にネゴシエートしたものだからである。定数名から推測するのではなく測定される: ハンドシェイクで2026-07-28を要求するクライアントは2025-11-25を受け取る。MCP_PROTOCOL_VERSIONは SDK のLATEST_HANDSHAKE_VERSIONから導出され、ハードコードされていない。そのため、かつてのように乖離することはない — 2つのリビジョンにわたって2025-06-18のままで、すべての呼び出しがそれを事実として報告していた。tests/test_protocol_version.pyは両方の時代を SDK に対して保持し、配信されたフィールドも SDK に対して検証する(それが由来する定数に対してではない)。 ワイヤーバージョンは、固定されたmcpSDK(mcp>=2.0.0,<3)によってネゴシエートされる。更新ポリシー。 SDK と依存関係の更新は Dependabot(毎週)で適用される。プロトコルバージョンやツール定義の変更は、
CHANGELOG.mdにバージョンアップとともに記録される。
データ分類
すべてのデータはÖffentlich / 公開オープンデータ — 集約された祝日カレンダーであり、個人データは含まれない(DSG/DSGVO)。これはサーバーが扱う最高分類であり、完全なモデルは docs/security.md にある。
既知の制限事項
非公式ソース。 OpenHolidays はカントンの公表を集約している。法的拘束力のある日付については、カントン当局が引き続き権威ある情報源である。すべてのレスポンスがその旨を明記している。
市区町村レベルのカバレッジは上流に依存する。 OpenHolidays は確かに地区・市区町村レベルの祝日(例:
CH-ZH-ZH-ZHの Sechseläuten、Knabenschiessen)を保持しており、get_local_holidaysを通じて公開されている。Gemeinde レベルの完全性は上流データの品質にのみ依存し、カントンによって異なる。市区町村レベルの学校休暇は別途モデル化されていない。Nager の長い週末はカントンの祝日を無視する。 全国レベルの祝日のみから計算される。
過去の深さの保証なし。 おおよそ2020年より前の年のカバレッジは不均一である。
テスト
# Unit tests (no network required — respx-mocked)
PYTHONPATH=src pytest tests/ -m "not live"
# Live smoke tests (hits the real upstream APIs)
PYTHONPATH=src pytest tests/ -m "live"
# Linting
ruff check src/ tests/ scripts/
ruff format --check src/ tests/ scripts/コントリビューション
コントリビューションを歓迎します! バグ報告、開発環境のセットアップ、コードスタイル、テスト要件のガイドラインについては、CONTRIBUTING.md(英語)· CONTRIBUTING.de.md(ドイツ語)をお読みください。
このプロジェクトは Swiss Public Data MCP Portfolio の規約に従っています。
セキュリティ
脆弱性を報告するには、SECURITY.md(英語)· SECURITY.de.md(ドイツ語)の責任ある開示プロセスに従ってください。サーバーは読み取り専用で API キーは不要です。セキュリティモデルについては上記の Safety & Limits セクションを参照してください。
変更履歴
CHANGELOG.md を参照
スイス行政機関向けデプロイ
このサーバーをスイスの学校当局または市区町村のユースケースでセルフホストする場合:
データの保存場所: クエリパターン自体(公務員が比較するカントン)が進行中の計画を明らかにする可能性があるため、スイス国内または信頼できるインフラに保持することが最善である。
上流への呼び出しは OpenHolidays(EU ホストの OGD プロジェクト)と Nager.Date に行く。個人データが環境外に出ることはない。祝日カレンダーのみが要求される。
ログ: ログは stderr に書き込まれる。IT の保持ポリシーをそれに応じて設定すること。
HTTP トランスポートは、認証と IP ごとのレート制限を備えたリバースプロキシの背後で実行すべきである — サーバーには組み込みの認証がない。
ライセンス
MIT ライセンス — LICENSE を参照
ソースデータは OpenHolidays(CC BY 4.0)および Nager.Date(MIT)の条件に従う。データ使用時にはこれらのソースへの帰属表示が必要である。
著者
Hayal Oezkan · github.com/malkreide
クレジットと関連プロジェクト
データ: OpenHolidays API(CC BY 4.0)· Nager.Date(MIT)
プロトコル: Model Context Protocol — Anthropic / Linux Foundation
構築方法:
mcp-data-source-probeメソドロジーに従う: 設計前にライブプローブ、API 依存前にダンプフォールバック、敗北主義の前にリトライ。ポートフォリオ: Swiss Public Data MCP Portfolio
サーバー | 説明 |
チューリッヒ州の教育データ | |
チューリッヒ市のオープンデータ | |
BFS STAT-TAB — スイス連邦統計 | |
スイス連邦地理データ (swisstopo) |
MITライセンス。公金、公共コード。
Available Tools
13 toolscheck_dateARead-onlyIdempotent
Check whether a given date falls into school holidays or a public holiday.
<use_case>The everyday scheduling question: can we hold the parents' evening on that Thursday? Checks one date against both school and public holidays.</use_case>
The everyday question behind this tool: "Can we schedule the parents' evening on that Thursday?"
Inputs: canton (required), check_date_iso (required), language, school_type. Returns: note, canton, source, matches, +5 more
compare_school_holidaysARead-onlyIdempotent
Compare school holiday overlap between cantons for a calendar year.
<use_case>Quantify inter-cantonal school-holiday overlap (pairwise day counts) for coordinating events or campaigns across cantonal borders.</use_case>
Returns a pairwise matrix of overlapping holiday days. Defaults to VS
(Volksschule) because that is the level most inter-cantonal coordination
concerns.
Inputs: year (required), cantons (required), language, school_type. Returns: note, rows, year, source, +3 more
export_holidays_icsARead-onlyIdempotent
Export a canton's holidays for a year as an iCalendar (.ics) document.
<use_case>Produce a ready-to-import .ics calendar of a canton's holidays for a year, filtered by public/school and Schulart.</use_case>
Returns a ready-to-save text/calendar document with one all-day event per
holiday. include selects all (default), public or school; combine
with school_type (VS/MS/BS/EO) to narrow school holidays.
Inputs: year (required), canton (required), include, language, +1 more. Returns: ics, note, year, canton, +5 more
find_common_free_windowARead-onlyIdempotent
Find date ranges in which all listed cantons are simultaneously on holiday.
<use_case>Find a common free window across several cantons — joint events, maintenance or campaigns when every listed canton is on holiday.</use_case>
Useful for planning campaigns, joint events or maintenance windows across cantonal borders.
Inputs: year (required), cantons (required), language, min_days, +1 more. Returns: note, source, windows, provenance, +1 more
get_local_holidaysARead-onlyIdempotent
Public holidays for a single municipality or district, incl. local specifics.
<use_case>Answer the locality question the canton-level tools flatten away: which holidays are observed only in this town (e.g. Zurich's Sechselaeuten)?</use_case> <important_notes>scope is 'local' (specific here), 'regional' (canton/district) or 'national' (inherited). Accepts a name or a full subdivision code.</important_notes>
Answers the local question the canton-level tools flatten away: which holidays are observed only here? The city of Zurich, for example, keeps Sechseläuten and Knabenschiessen (both half-day), which the rest of the canton does not.
municipality accepts a name (e.g. "Zürich", "Morschach") or a full
subdivision code (e.g. "CH-ZH-ZH-ZH"). The result lists every holiday that
applies in that locality; each carries a scope of local (specific to this
place), regional (inherited from the canton/district) or national.
Inputs: year (required), canton (required), municipality (required), language. Returns: note, count, source, holidays, +3 more
get_long_weekendsARead-onlyIdempotent
Return Swiss long weekends and the bridge days needed to create them.
<use_case>Plan bridge days: which long weekends exist this year and which working days must be taken off to extend them.</use_case> <important_notes>Computed from federal public holidays (Nager.Date); cantonal-only holidays are not considered.</important_notes>
Sourced from Nager.Date, which computes these from federal public holidays; cantonal-only holidays are not considered.
Inputs: year (required). Returns: note, year, source, provenance, +2 more
get_public_holidaysARead-onlyIdempotent
Return public holidays for one canton and calendar year.
<use_case>Get a canton's official public holidays for a whole year — cantonal holidays (Berchtoldstag, Fronleichnam) differ, so always pass the canton.</use_case>
Cantonal holidays such as Berchtoldstag differ substantially across Switzerland, so always pass the canton rather than assuming the federal set.
Inputs: year (required), canton (required), language. Returns: note, count, source, holidays, +3 more
get_school_holidaysARead-onlyIdempotent
Return school holiday periods for one canton in a date range.
<use_case>Look up a canton's school holidays for planning within an explicit from/to window (term breaks, parent events, campaigns).</use_case> <important_notes>Apparent duplicates are the same period per Schulart; set school_type to collapse them. Cantons that do not differentiate return one table.</important_notes>
Args:
canton: ISO subdivision code, e.g. CH-ZH.
valid_from: Inclusive start date, YYYY-MM-DD.
valid_to: Inclusive end date, YYYY-MM-DD.
school_type: Optional Schulart suffix -- VS, MS, BS or EO.
Use VS for compulsory schooling (Volksschule).
language: DE, FR, IT or EN.
Records that look duplicated are usually the same period published for a
different Schulart. Set school_type to collapse them.
Inputs: canton (required), valid_to (required), valid_from (required), language, +1 more. Returns: note, count, source, holidays, +3 more
is_holiday_todayARead-onlyIdempotent
Is today a school or public holiday in the given canton?
<use_case>One-call convenience for the everyday 'are we off today?' question in a given canton.</use_case>
Convenience wrapper over check_date for the everyday question
"are we off today?".
Inputs: canton (required), language, school_type. Returns: note, canton, source, matches, +5 more
list_cantonsARead-onlyIdempotent
List the 26 Swiss cantons with their ISO subdivision codes.
<use_case>Resolve a canton name to the CH-XX code every other tool needs; call this first when the user gives a canton by name.</use_case>
Use this first to resolve a canton name to the CH-XX code that every other
tool expects.
Inputs: language. Returns: note, source, cantons, provenance, +1 more
list_school_typesARead-onlyIdempotent
List the Schularten (school types) that publish separate holiday tables.
<use_case>Discover whether a canton differentiates school holidays by Schulart before querying, so VS/MS/BS/EO filters are used only where they exist.</use_case>
Only a minority of cantons differentiate. For Zurich the codes are
CH-ZH-VS (Volksschulen), CH-ZH-MS (Mittelschulen) and CH-ZH-BS
(Berufsfachschulen). Cantons absent from this list publish one table for
all school types.
Inputs: canton, language. Returns: note, source, provenance, retrieved_at, +1 more
next_school_holidaysARead-onlyIdempotent
Return the next upcoming school holiday periods for a canton.
<use_case>Forward-looking planning: the next N school-holiday periods for a canton from today, without computing a date range by hand.</use_case>
Inputs: canton (required), count, language, school_type. Returns: note, count, source, holidays, +3 more
source_statusARead-onlyIdempotent
Report reachability and latency of both upstream sources.
<use_case>Health check before a batch of queries, or to distinguish 'no data' from 'source down' — always returns an evaluable status.</use_case>
Always returns an evaluable status rather than an empty result set, so that "no data" can be distinguished from "source down".
Inputs: no named parameters. Returns: note, source, sources, provenance, +3 more
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 13 tools
The tools are largely distinct: each targets a specific resource or query type (e.g., list_cantons for codes, get_public_holidays for yearly public holidays, get_local_holidays for municipality specifics). Slight overlap exists between check_date and is_holiday_today (both check a date), and between get_school_holidays and next_school_holidays (both return school holiday periods), but use cases and parameters clearly separate them.
The majority follow a clear verb_noun snake_case pattern (get_school_holidays, check_date, compare_school_holidays). A few deviate: source_status (noun_noun), next_school_holidays (adjective_noun), and is_holiday_today (verb but with an adjective). These are minor exceptions and still readable, but the pattern is not perfectly uniform.
13 tools is well within the ideal 3-15 range for a focused domain. Each tool addresses a distinct need: canton resolution, holiday lookups, comparisons, convenience functions, health checks, and export. None feel redundant or missing, and the count matches the complexity of Swiss cantonal holiday variations.
The tool surface covers the full lifecycle of holiday queries: listing cantons, resolving codes, checking single dates, retrieving periods by range or upcoming, comparing across cantons, finding common windows, and exporting to .ics. It also handles public, school, and local holidays with type differentiation (Schulart). No obvious gaps for the stated use case of Swiss holiday planning.
Maintenance
Related MCP Connectors
MCP server for public_holidays_mcp
Holidays MCP — wraps Nager.Date API (free, no auth)
opendata.swiss MCP — Switzerland's federal open-data portal (CKAN catalogue).
Nager.Date Public Holidays MCP.
Related MCP Servers
- AlicenseBqualityBmaintenanceSwiss open data MCP server — transport, weather, geodata, companies, etc,. Zero API keys.5424 npm28MIT
- AlicenseAqualityAmaintenanceMCP server for searching Swiss court decisions from federal and cantonal courts via entscheidsuche.ch. Enables full-text search, law reference lookup, and filtering by canton, court level, and date without API keys.81MIT
- AlicenseBqualityDmaintenanceMCP server exposing all major Swiss official public APIs as native tools for any MCP-compatible AI agent.3412 npmMIT
- AlicenseNot gradedqualityBmaintenanceEnables MCP clients to query German public holidays by Bundesland and school holidays, check whether dates are holidays, find upcoming holidays, and count working days using offline, sourced data.MIT