Swiss school & public holidays, 26 cantons, by Schulart (OpenHolidays + Nager.Date)
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
We haven't yet run this listing's install command through our automated sandbox check. This isn't a red flag β we're steadily working through the catalog.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
π¨π Part of the Swiss Public Data MCP Portfolio
This is a private project. It is independent of any employer or institutional affiliation and represents no official position of any authority.
A Swiss holiday calendar for AI agents β public holidays, school holidays and long weekends for all 26 cantons, with cross-cantonal comparison. School holidays are differentiated by Schulart (school type), which matters more than it first appears. No API key required.
swiss-holidays-mcp is a Swiss holiday calendar for AI assistants like Claude β public holidays, school holidays and long weekends for all 26 cantons, no API keys required. Public holidays are cantonal (Berchtoldstag, Fronleichnam & co. differ by canton, not just the federal minimum). School holidays are set cantonally, sometimes at district level, and β in six cantons β separately per school type. A single federal calendar does not exist; anyone planning across cantonal borders is otherwise reduced to opening 26 PDF pages.
The server covers two thematic clusters: public holidays / long weekends and school holidays (with Schulart differentiation). Each cluster maps to a group of purpose-built tools that translate raw agency data into clean, provenance-tagged JSON responses. All data comes from the OpenHolidays API (CC BY 4.0) and Nager.Date (MIT).
Mnemonic: A duplicate in Swiss school data is usually a school type in disguise. The underlying API publishes the same holiday period several times when a canton differentiates by school type. That looks like duplicated data and invites naive de-duplication β which would destroy exactly the distinction a school authority needs.
Anchor demo query: "In which weeks of 2026 are the compulsory schools of Zurich, Zug and Aargau simultaneously on holiday β and how many overlapping days does each pair share?"
β This exercises find_common_free_window, compare_school_holidays and list_school_types in a single conversation, and answers a question that recurs every planning cycle in inter-cantonal coordination.
β More use cases by audience β
VS / MS / BS / EO)scope marker so they are never mistaken for canton-wide.ics calendarholidays://<canton>/<year> MCP resource with a Markdown summarylive_api | cached | degraded, never a silent empty list| Source | Data | Licence |
|---|---|---|
| OpenHolidays API | Cantons, Schularten, school holidays, public holidays | CC BY 4.0 |
| Nager.Date | Long weekends and required bridge days | MIT |
Both sources are publicly accessible, no authentication required. Attribution required: OpenHolidays (CC BY 4.0) and Nager.Date must be cited as the source when using their data.
| Tool | Purpose | Data Source |
|---|---|---|
list_cantons | The 26 cantons with ISO codes and official languages | OpenHolidays |
list_school_types | Schulart groups per canton (CH-ZH-VS etc.) | OpenHolidays |
get_school_holidays | School holidays for one canton and date range | OpenHolidays |
get_public_holidays | Public holidays for one canton and year | OpenHolidays |
get_local_holidays | Public holidays for one municipality or district, incl. local specifics | OpenHolidays |
check_date | Is a given date a school or public holiday? | OpenHolidays |
compare_school_holidays | Pairwise overlap matrix across cantons | OpenHolidays |
find_common_free_window | Windows where all listed cantons are on holiday | OpenHolidays |
next_school_holidays | The next upcoming holiday periods | OpenHolidays |
get_long_weekends | Long weekends and required bridge days | Nager.Date |
export_holidays_ics | A canton's holidays for a year as an iCalendar (.ics) document | OpenHolidays |
is_holiday_today | Is today a school or public holiday in a canton? | OpenHolidays |
source_status | Reachability and latency of both upstreams | Built-in |
| Resource URI | Content |
|---|---|
holidays://{canton}/{year} | Markdown summary of all public + school holidays, e.g. holidays://CH-ZH/2026 |
All tools carry the full annotation set β readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: true (they reach an external API). No tool writes anywhere. Inputs are schema-validated (canton codes against the 26 known cantons, dates as YYYY-MM-DD, year bounded, language/school_type whitelisted).
| Query | Tool |
|---|---|
| "Which cantons are there, and what are their codes?" | list_cantons |
| "Show Zurich's compulsory-school holidays for spring 2026" | get_school_holidays |
| "Is 3 April 2026 a public holiday in Ticino?" | check_date |
| "Do Zurich and Zug school holidays overlap this year?" | compare_school_holidays |
| "When can all of ZH, ZG, AG plan a joint week off school?" | find_common_free_window |
| "What are the next holidays for Basel-Stadt schools?" | next_school_holidays |
| "Which long weekends does 2026 have, and which bridge days do they need?" | get_long_weekends |
| "Which local holidays does the city of Zurich keep that the rest of the canton doesn't?" | get_local_holidays |
| "Export Zurich's 2026 holidays as an .ics calendar I can import" | export_holidays_ics |
| "Is today a holiday in Aargau?" | is_holiday_today |
| Aspect | Details |
|---|---|
| Access | Read-only (readOnlyHint: true) β the server cannot modify or delete any data |
| Personal data | No personal data β all sources are aggregated, public holiday calendars |
| Caching | 12-hour in-memory TTL (holiday tables change a handful of times per year) |
| Retry | Exponential backoff 2s / 4s / 8s; 4xx except 429 are not retried |
| Timeout | 20 seconds per API call (8 seconds for health probes) |
| Authentication | No API keys required β both upstreams are publicly accessible |
| Degradation | Upstream failure yields a degraded envelope with an explanatory note, never a silent empty list |
| Terms of Service | Subject to the ToS of the respective data sources: OpenHolidays, Nager.Date |
This server uses Architecture A (live API only, with in-memory cache).
Rationale (verified live on 2026-07-19):
/Subdivisions?countryIsoCode=CH returns exactly 26 cantons, matching the official count.openpotato/openholidays.data raw access returned 404), so Architecture B was not available.Consequences:
provenance (live_api | cached | degraded).degraded envelope with an explanatory note, never a silent empty list.source_status always returns an evaluable health report.No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/swiss-holidays-mcp)<a href="https://allmcps.com/mcp/swiss-holidays-mcp"><img src="https://allmcps.com/api/badge/swiss-holidays-mcp?style=directory" alt="Swiss Holidays MCP on AllMCPs" /></a>